]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Fix date in last ChangeLog entry
[grub2.git] / ChangeLog
1 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
2
3 * grub-core/kern/efi/init.c: check value of *path before
4 dereferencing.
5
6 2014-11-03 Michael Chang <mchang@suse.com>
7
8 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
9 of neighbor solicitation packet in grub_netbuff_pull.
10
11 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
12
13 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
14 avoid fatal warnings with older gcc (probably before 4.7).
15 * grub-core/loader/arm64/linux.c: Likewise.
16 * grub-core/loader/i386/linux.c: Likewise.
17 * grub-core/loader/i386/pc/linux.c: Likewise.
18 * grub-core/loader/ia64/efi/linux.c: Likewise.
19 * grub-core/loader/mips/linux.c: Likewise.
20 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
21 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
22
23 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
24
25 Fix in-tree --platform=none
26
27 * configure.ac: Only remove include/grub/cpu and
28 include/grub/machine in the --platform=none case, not all of
29 include/grub.
30
31 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
32
33 Add a new "none" platform that only builds utilities
34
35 * configure.ac: Add "none" platform. Default to it for unsupported
36 CPUs rather than stopping with a fatal error. Don't downgrade
37 x86_64-none to i386. Define COND_real_platform Automake conditional
38 if the platform is anything other than "none". Don't do any include
39 directory linking for "none".
40 * Makefile.am: Skip building grub-core and all bootcheck targets if
41 !COND_real_platform.
42 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
43 is defined.
44
45 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
46
47 Use grub_cpu_to_XXX_compile_time for constants.
48
49 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
50
51 The AML parser implements only a small subset of possible AML
52 opcodes. On the Fujitsu Lifebook E744 this and another bug in
53 the parser (incorrect handling of TermArg data types) would lead
54 to the laptop not turning off (_S5 not found).
55
56 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
57 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
58 aren't always simply strings!); Add function to skip TermArgs
59 * include/grub/acpi.h: Add new opcodes
60
61 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * grub-core/normal/main.c: Don't drop to rescue console in
64 case of password-protected prompt and no menu entries.
65
66 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * grub-core/commands/keylayouts.c: Ignore unknown keys.
69
70 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * grub-core/gmodule.pl.in: Accept newer binutils which output
73 empty column rather than 0x0.
74
75 2014-09-21 Michael Chang <mchang@suse.com>
76
77 * grub-core/osdep/unix/config.c: Remove extraneous comma.
78
79 2014-09-21 Peter Jones <pjones@redhat.com>
80
81 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
82 we don't free a random pointer from the stack.
83 * grub-core/loader/arm64/linux.c: Likewise.
84 * grub-core/loader/i386/linux.c: Likewise.
85 * grub-core/loader/i386/pc/linux.c: Likewise.
86 * grub-core/loader/ia64/efi/linux.c: Likewise.
87 * grub-core/loader/mips/linux.c: Likewise.
88 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
89 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
90
91 2014-09-15 Khem Raj <raj.khem@gmail.com>
92
93 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
94 _BSD_SOURCE to avoid warnings under glibc 2.20+.
95
96 2014-09-08 Michael Chang <mchang@suse.com>
97
98 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
99 check; comparing &data->extent against addresses in the region it
100 points to is unpredictable.
101
102 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
103
104 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
105
106 * configure.ac: Remove -m64 from checks for -mcmodel=large and
107 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
108 already in TARGET_CFLAGS at this point, and they produce incorrect
109 results when building for x32.
110 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
111 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
112 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
113 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
114
115 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
116
117 * configure.ac: Remove several unnecessary semicolons.
118
119 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
120
121 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
122 Initialise pend to pacify GCC.
123
124 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
125
126 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
127 gettext_printf).
128
129 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * grub-core/term/at_keyboard.c: Retry probing keyboard if
132 scancode setup failed.
133
134 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
135
136 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
137
138 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
141 safety to avoid triggerring VirtualBox bug.
142
143 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
146
147 Fixes hang on virtualbox.
148
149 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
150
151 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
152 kernels whose paths contain regex metacharacters.
153 * util/grub.d/10_kfreebsd.in: Likewise.
154 * util/grub.d/10_linux.in: Likewise.
155 * util/grub.d/20_linux_xen.in: Likewise.
156
157 Reported by: Heimo Stranner.
158
159 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
160
161 * docs/grub-dev.texi (Finding your way around): The build system no
162 longer uses AutoGen directly.
163
164 2014-06-21 Роман Пехов <roman_pekhov>
165
166 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
167
168 2014-06-21 Glenn Washburn <development@efficientek.com>
169
170 * util/grub-install.c: Fix handling of --disk-module.
171
172 2014-06-21 Stephane Rochoy <sheda>
173
174 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
175 EFI system table.
176
177 2014-06-21 Stephane Rochoy <sheda>
178
179 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
180 EFI system table physical address.
181
182 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
183
184 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
185
186 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
189
190 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
193 check.
194
195 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
198
199 Reported by: Yves Blusseau <blusseau@zetam.org>.
200
201 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
202
203 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
204 GDT in conventional memory.
205
206 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
207
208 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
209 UUID. Other parts of grub-mkconfig tolerate these, they were
210 previously allowed here up to commit
211 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
212 practice when the system has active LVM snapshots.
213 Fixes Ubuntu bug #1287436.
214
215 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
216
217 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
218 "logical_volumes" block a little more accurately.
219
220 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
223
224 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
227 pulled from libgcc.
228
229 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
230
231 Replace few instances of memcmp/memcpy in the code that should be
232 grub_memcmp/grub_memcpy.
233
234 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
237 device names.
238
239 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
240
241 btrfs: fix get_root key comparison failures due to endianness
242
243 * grub-core/fs/btrfs.c (get_root): Convert
244 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
245
246 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
247
248 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
249
250 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
251 no longer to be forgiving of trailing spaces on grub-probe output
252 lines, which among other things means that util/grub.d/10_linux.in
253 no longer detects LVM. To fix this, make grub-probe's output
254 delimiting more consistent. As a bonus, this improves the coverage
255 of the -0 option.
256
257 Fixes Debian bug #735935.
258
259 * grub-core/disk/cryptodisk.c
260 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
261 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
262 Likewise.
263 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
264 Update prototype.
265 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
266 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
267 probe_mods): Adjust for extra user-data arguments.
268 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
269 probe_abstraction): Use configured delimiter. Update callers.
270
271 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
272
273 * util/grub-probe,c (options): Make -0 work again (broken by
274 conversion to argp).
275 (main): Simplify logic.
276
277 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
280
281 2014-03-26 Fu Wei <fu.wei@linaro.org>
282
283 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
284
285 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
288 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
289
290 Suggested by: Markus Müller.
291
292 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
295 if E820 failed to return any regions.
296
297 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
298
299 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
300 tables for low memory calculations.
301
302 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
305 location to 640K.
306
307 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
308
309 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
310 region.
311
312 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
315 exclusively.
316
317 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
318
319 Add bootpath parser for open firmware.
320
321 It enables net boot even when there is no bootp/dhcp server.
322
323 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
324 and call it at grub_ieee1275_net_config_real.
325 * grub-core/kern/ieee1275/init.c: Add bootpath to
326 grub_ieee1275_net_config.
327 * include/grub/ieee1275/ieee1275.h: Likewise.
328
329
330 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
331
332 Add grub_env_set_net_property function.
333
334 * grub-core/net/bootp.c: Remove set_env_limn_ro.
335 * grub-core/net/net.c: Add grub_env_set_net_property.
336 * include/grub/net.h: Likewise.
337
338 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
341
342 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
345
346 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
349 7 seconds to recover if last poweroff was bad.
350
351 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * grub-core/disk/ahci.c: Properly handle transactions with no
354 transferred data.
355
356 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * grub-core/disk/ahci.c: Add safety cleanups.
359
360 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
363 slots to avoid pointing to uninited area.
364
365 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
368 enabling busmaster for the end.
369
370 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * util/grub-mkfont.c: Downgrade warnings about unhandled features
373 to debug.
374
375 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
378
379 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
380
381 * .gitignore: add missing files and .exe variants.
382
383 2014-01-26 Mike Gilbert <floppym@gentoo.org>
384
385 grub-install: support for partitioned partx loop devices.
386
387 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
388 /dev/loopX as being the parent of /dev/loopXpY.
389
390 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
391
392 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
393 Ensure that pointers are inited to NULL and that pointers are not
394 accessed after free.
395
396 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
397
398 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
399 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
400 * include/grub/emu/misc.h: ... and here.
401 * include/grub/err.h: ... and here.
402 * util/import_gcry.py: ... and here (in files g10lib.h).
403
404 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
405
406 * util/grub-mkimage.c: Make prefix argument mandatory.
407
408 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
409
410 Fix several translatable strings.
411
412 Suggested by: D. Prévot.
413
414 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * util/grub-install.c: List available targets.
417
418 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
419
420 * util/grub-install.c (write_to_disk): Add an info message.
421
422 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
423
424 * Makefile.am: Allow adding extra files to generated Windows ZIP
425 archive by setting GRUB_WINDOWS_EXTRA_DIST.
426
427 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
428
429 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
430 Show detected font path in summary.
431
432 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
433
434 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
435 interval gradually.
436 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
437 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
438 * grub-core/net/tftp.c (tftp_open): Likewise.
439 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
440
441 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
442
443 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
444 infinite loops.
445
446 In net/net.c there is a while (1) that only exits if there is a stop
447 condition and more then 10 packages or if there is no package received.
448
449 If GRUB is idle and enter in this loop, the only condition to leave is
450 if it doesn't have incoming packages. In a network with heavy traffic
451 this never happens.
452
453 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
454
455 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
456 EPERM when modifying kern.geom.debugflags. It is only a problem for
457 such things as installing GRUB to the MBR, in which case there'll be
458 an error later anyway, not for opening files during tests.
459
460 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
461
462 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
463 instead of MOD_FILES.
464 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
465 both with and without .exe.
466 * grub-core/genemuinitheader.sh: Same.
467
468 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
469
470 * util/grub-install.c: Fix a typo.
471
472 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/normal/main.c (read_config_file): Buffer config file.
475 Reduces boot time.
476
477 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
478
479 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
480 symbolic link to directory. It fails in Msys shell on Windows 2003.
481
482 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
483
484 * Makefile.am (default_payload.elf): Add modules
485 multiboot cbmemc linux16 gzio echo help.
486
487 2014-01-18 Mike Gilbert <floppym@gentoo.org>
488
489 * Makefile.util.def: Link grub-ofpathname with zfs libs.
490
491 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
494 conflicts.
495
496 Reported by: Andrey Borzenkov.
497
498 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
499
500 * include/grub/misc.h: Move macros for compiler features to ...
501 * include/grub/compiler.h: ... new file.
502 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
503 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
504 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
505 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
506 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
507 * grub-core/video/capture.c: Include <grub/misc.h>.
508 * include/grub/command.h: Include <grub/misc.h>.
509 * include/grub/dl.h: Include <grub/misc.h>.
510 * include/grub/procfs.h: Include <grub/misc.h>.
511
512 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
513
514 * configure.ac: Add support for BUILD_EXEEXT and use it ...
515 * Makefile.am: ... here.
516 * Makefile.util.def: ... and here.
517 * grub-core/Makefile.am: ... and here.
518
519 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
520
521 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
522 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
523
524 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * grub-core/term/terminfo.c: Recognize keys F1-F12.
527
528 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
529
530 * configure.ac: Add support for BUILD_LDFLAGS.
531 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
532 * grub-core/Makefile.am: ... and here.
533 * INSTALL: Mention BUILD_LDFLAGS.
534
535 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
538
539 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
542 and has no //.
543
544 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * NEWS: Add few missing entries.
547
548 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
549
550 * util/grub.d/00_header.in (make_timeout): Use && rather than test
551 -a.
552 * util/grub.d/10_windows.in: Likewise.
553 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
554 than test -o.
555 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
556 rather than test -o.
557
558 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
559
560 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
561 redundant preprocessor conditional.
562
563 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
564
565 * Makefile.util.def (grub-macbless): Change mansection to 8.
566
567 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
568
569 * grub-core/loader/arm64/linux.c: correctly set device path end length.
570
571 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
572
573 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
574 arm64 to comply with EFI specification. Also use grubaa64.efi for
575 consistency.
576 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
577
578 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
579
580 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
581 on MinGW-64 when compiling for 32 bits.
582
583 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
584
585 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
586
587 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * NEWS: Add few missing entries. Correct existing ones.
590
591 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
592
593 Don't abort() on unavailable coreboot tables if not running on coreboot.
594
595 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
596
597 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
598 on mingw.
599
600 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
601
602 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
603 mention of it from 2.02.
604
605 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
608
609 As these functions are used on pre-ARMv6 CPUs as well we don't want
610 to make assembler assume that architecture is higher than default one.
611
612 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
613
614 * NEWS: First draft of 2.02 entry.
615
616 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
617
618 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
619 * docs/grub.texi (Getting the source code): Likewise.
620
621 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
622
623 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
624 detection.
625
626 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * configure.ac: Set version to 2.02~beta2.
629
630 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
633
634 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
635
636 * util/grub-probe.c: Improve help message and simplify list handling.
637
638 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
639
640 Fix buffer overflow in grub_efi_print_device_path.
641
642 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
643
644 Show SATA device path.
645
646 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
647
648 Revert grub-file usage in grub-mkconfig.
649
650 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
651
652 Make newly-created files other than grub.cfg world-readable.
653
654 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
655
656 * util/grub.d/00_header.in: Improve compatibility with old config.
657
658 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
659
660 Make rijndael.c respect aliasing rules.
661
662 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
663
664 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
665
666 Make grub_util_device_is_mapped_stat available in grub-emu core.
667
668 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
669
670 Add -Qn to TARGET_CFLAGS if it's supported.
671 Fixes compilation on cygwin.
672
673 Reported by: Andrey Borzenkov.
674 Suggested by: Andrey Borzenkov.
675
676 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
677
678 Save TARGET_CC version in modinfo.sh.
679
680 Suggested by: Andrey Borzenkov.
681
682 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
685 follow the same algorithm to avoid method mismatch. Don't assume
686 DMRAID- UUID to mean full disk but instead check that mapping is linear.
687
688 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
689
690 Declare GRUB_EFI_VENDOR_APPLE_GUID.
691
692 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
693
694 Dump type and vendor specific data when printing device path.
695
696 2013-12-23 Colin Watson <cjwatson@debian.org>
697
698 Update some documentation to refer to Git rather than Bazaar.
699
700 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
701 than Bazaar.
702 * po/README: Likewise. Fix spelling mistake.
703
704 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
705
706 Don't distribute config.h.
707
708 * Makefile.am (platform_HEADERS): Move to ...
709 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
710 failure when building from a distributed tarball.
711
712 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
713
714 * configure.ac: Fix spelling.
715 * grub-core/commands/parttool.c: Fix grammar.
716 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
717 Embedding Partition".
718
719 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
720
721 ARM64 support for grub-mkrescue.
722
723 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
724
725 Install modinfo.sh to keep build information around.
726
727 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
728
729 * grub-core/modinfo.sh.in: Add build config information.
730
731 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
732
733 ARM64 grub-file and grub-mkconfig support.
734
735 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Remove leftover options defines.
738
739 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
740
741 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
742
743 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
744
745 * grub-core/loader/arm64/linux.c: Add missing bracket.
746
747 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
748
749 Add arm64-efi recognition to grub-file.
750
751 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
752
753 Fix ia64-efi recognition in grub-file.
754
755 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
756
757 Recognize raspberry pi kernel in grub-file.
758
759 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
760
761 Enable cache on ARM U-Boot port.
762
763 Without it the port is reidiculously slow.
764
765 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
766
767 Fix ARM cache maintainance.
768
769 More code was converted from ASM to C for easier handling.
770
771 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
772
773 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
774 algorithm on v5.
775
776 Suggested by: Leif Lindholm.
777
778 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
779
780 * util/grub-mkconfig.in: Fix Xen platform conditions.
781
782 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
783
784 * util/grub-mkrescue.c: Split single help message string in several
785 strings used in previous shell version.
786
787 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
788
789 Add arm64 Linux loader.
790
791 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
792
793 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
794
795 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
796
797 Add module loading and parsing boot time checkpoints.
798
799 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
800
801 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
802 platforms.
803
804 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
805
806 * util/grub-mkconfig.in: Skip non-executable files.
807
808 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Workaround buggy timer in raspberry pie by using our own timer
811 implementation.
812
813 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
816 Increase to 16 MiB to allow loading the whole memdisk.
817
818 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
819
820 Fix ARM Linux Loader on non-FDT platforms.
821
822 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * configure.ac: Choose link format based on host_os on emu.
825
826 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
829
830 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * grub-core/kern/emu/main.c: Build fix for emu.
833
834 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
835
836 Build fixes for argp.h with older gcc.
837
838 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
841 in strings.
842
843 Suggested by: David Prévot.
844
845 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
848
849 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
850
851 Enable -Wformat=2 if it's supported.
852
853 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
856 -Wmissing-declarations if supported.
857
858 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
861 u32 as both HFS and HFS+ have 32-bit inodes.
862
863 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * include/grub/misc.h (grub_strtol): Fix overflow.
866
867 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
870 as return type in both conditionals.
871
872 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
875 to use uint8_t for color.
876
877 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
878
879 * util/misc.c (grub_util_get_image_size): Check for overflow.
880
881 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
884 for size.
885
886 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
889 for pointer difference.
890
891 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * util/import_gcry.py: Skip sample keys.
894
895 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
898
899 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * configure.ac: Remove duplicate warning arguments.
902
903 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
904
905 Add missing static qualifiers.
906
907 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
908
909 Add missing includes.
910
911 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
912
913 Inline printf templates when possible to enable format checking.
914
915 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * include/grub/crypto.h: Don't discard const attribute.
918
919 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
922 was intended.
923
924 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * grub-core/lib/crypto.c: Don't discard const attribute.
927
928 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
929
930 * grub-core/lib/disk.c: Fix potential overflow.
931
932 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
933
934 * grub-core/lib/arg.c: Don't discard const attribute.
935
936 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * grub-core/kern/dl.c: Don't discard const attribute.
939
940 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/kern/disk.c: Fix potential overflow.
943
944 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * conf/Makefile.common: Don't include non-existing directory
947 grub-core/lib/libgcrypt-grub/include.
948
949 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
950
951 Clarify several translatable messages.
952
953 2013-12-21 David Prévot <david@tilapin.org>
954
955 Correct some translatable strings.
956
957 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
958
959 * util/grub-mkrescue.c: Rephrase mkrescue description.
960
961 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
963
964 Clarify several translatable messages.
965
966 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
967
968 Be more verbose about some configure failures.
969
970 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
971
972 Fix various build problems on GNU/Hurd.
973
974 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
975 !defined (__GNU__).
976 (xgetcwd): Likewise.
977 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
978 [__GNU__]: Add prototype.
979 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
980 long int using %ld rather than %d.
981
982 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
983
984 * util/grub-install.c: Inform user about install platform.
985
986 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * configure.ac: Set version to 2.02~beta1.
989
990 2013-12-18 Allen Pais <allen.pais@oracle.com>
991 2013-12-18 Bob Picco <bob.picco@oracle.com>
992
993 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
994
995 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
996
997 Make grub_zlib_decompress handle incomplete chunks.
998
999 Fixes squash4.
1000
1001 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1004 on i386-multiboot.
1005
1006 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1007
1008 * grub-core/disk/usbms.c: Retry on unknown errors.
1009 Reuse the same tag on retries.
1010
1011 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1012
1013 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1014
1015 Avoid confusing them with already completed transfers.
1016
1017 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Remove xen VFB.
1020
1021 Due to XEN bug it prevents Linux boot. Remove it at least, until
1022 workaround is found.
1023
1024 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * po/exclude.pot: Add 2 missing excludes.
1027
1028 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 Add missing license section in macbless.mod and macho.mod.
1031
1032 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 Allow compilation without thumb-interwork as long as no thumb is
1035 involved or only thumb2 is used.
1036
1037 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1040
1041 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 Add __attribute__ ((sysv_abi)) only if it's really needed.
1044
1045 Some compilers don't support it.
1046
1047 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1050
1051 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 Remove -Wold-style-definition.
1054
1055 Not very useful and interaction of it with regexp depends on GCC
1056 version.
1057
1058 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 Make grub_util_get_windows_path_real static.
1061
1062 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/commands/fileXX.c: Silence cast-align.
1065 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1066
1067 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1070 rather than LL suffix.
1071
1072 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1075
1076 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * grub-core/loader/arm/linux.c: Use common initrd functions.
1079
1080 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 Decrease number of strings to translate.
1083
1084 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1087
1088 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Mark strings for translation and add remaining ones to exclude list.
1091
1092 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * util/grub-file.c (main): Fix sizeof usage.
1095
1096 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 Silence spurious warning.
1099
1100 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 Remove check_nt_hiberfil as it's been superseeded by file command.
1103
1104 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1105
1106 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1107
1108 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 Implement syslinux parser.
1111
1112 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1113
1114 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1115
1116 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 Support cpuid --pae.
1119
1120 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 Use AT keyboard on Yeeloong 3A.
1123
1124 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 Add Yeeloong 3A reboot and halt.
1127
1128 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 Add Radeon Yeeloong 3A support.
1131
1132 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 Add bonito 3A support.
1135
1136 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1139
1140 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1143
1144 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1145
1146 * grub-core/loader/macho.c: Fix compilation on non-i386.
1147
1148 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 Add missing format_arg attribute to check that printf with translated
1151 messages has proper arguments.
1152
1153 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 Use grub_xasprintf to format translated error messages containing
1156 64-bit quantity.
1157
1158 2013-12-17 Jon McCune <jonmccune@google.com>
1159
1160 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1161
1162 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 Unify message for unsupported relocation.
1165
1166 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Mark miscompile error for translation.
1169
1170 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1171
1172 Use %I64 and not %ll when using OS printf if compiling for windows.
1173
1174 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 Update Mac code to match new register_efi prototype.
1177
1178 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1179
1180 Implement better integration with Mac firmware.
1181
1182 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1185 load_addr.
1186
1187 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 Include serial module in default_payload.elf.
1190
1191 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1192
1193 Add explicit thumb interwork bx in asm files.
1194
1195 Shouldn't matter for armv >= 5 but let's be safe.
1196
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 Implement Truecrypt ISO loader.
1200
1201 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1204
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 Implement grub_file tool and use it to implement generating of config
1208 in separate root.
1209
1210 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Change to v1 xen grants.
1213
1214 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1217
1218 GRUB relied on %ebx being preserved across hypercall which isn't true.
1219
1220 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1221
1222 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1223
1224 GRUB relied on %rdi being preserved across hypercall which isn't true.
1225
1226 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 Implement XEN VFB support.
1229
1230 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 Remove grub_bios_interrupt on coreboot.
1233
1234 It's not used currently and cannot be used safely currently.
1235
1236 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 Update exclude.pot and mark few strings for translation.
1239
1240 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1243
1244 Reported by: Jon McCune
1245
1246 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1247
1248 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1249 Add verbose information which firmware directories were tried.
1250
1251 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1252
1253 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1254 function to optionally redirect all three standard descriptors.
1255 Redefine grub_util_exec, grub_util_exec_redirect and
1256 grub_util_exec_redirect_null to use it.
1257 * include/grub/emu/exec.h: Define it.
1258 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1259 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1260 Use grub_util_exec_redirect_all to redirect error to NULL.
1261
1262 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * grub-core/tests/sleep_test.c: Silence spurious warning.
1265
1266 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1267
1268 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1269 linker trying to "fixup" the code.
1270
1271 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1274
1275 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 Add support for converting PE+ to Elf64.
1278
1279 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1282
1283 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 Remove practice of assigning random const pointers to device id.
1286
1287 This is not required as cache code already checks driver id as well.
1288
1289 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1292 with mingw.
1293
1294 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1297 mingw or cygwin as API already matches.
1298
1299 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1302
1303 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1306 not on long.
1307
1308 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 Handle X86_64_PC64 relocation.
1311
1312 Those are generated by some cygwin compilers.
1313
1314 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 Determine the need for mingw-related stubs at compile time rather than
1317 using not very significant $target_os.
1318
1319 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1322 may not work with ELF.
1323
1324 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 Use unix functions for temporary files and special files on cygwin.
1327
1328 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 Define functions explicitly rather than using --defsym in tests
1331 whenever possible. Respect locality in remaining cases.
1332
1333 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1336
1337 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1338
1339 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1340 unlikely errors when getting EFI variables and make exhaustive search
1341 for all BootNNNN variables to find matching one.
1342
1343 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1344
1345 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1346
1347 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1348
1349 New functional test for sleep function.
1350
1351 This test allows to check sleep without qemu. Keep qemu version as
1352 well as functional test won't notice if all clocks are going too fast
1353 or too slow.
1354
1355 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 Add explicit sysv_abi on amd64 asm routines.
1358
1359 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1362 num_table_entries.
1363
1364 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1367 functions.
1368
1369 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1372 appropriate.
1373
1374 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1377
1378 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1381 appropriate.
1382
1383 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1386
1387 In case of quick removal of loopback and adding another one it may
1388 get same ID, confusing the cache system.
1389
1390 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1393 appropriate.
1394
1395 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1398 than converting to long.
1399
1400 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1403
1404 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1407 than almost useless pointer.
1408
1409 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 Add gcc_struct to all packed structures when compiling with mingw.
1412
1413 Just "packed" doesn't always pack the way we expect.
1414
1415 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1418
1419 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * util/grub-pe2elf.c: Fix handling of .bss.
1422
1423 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 Implement windows flavour of EFI install routines.
1426
1427 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1430
1431 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 Change grub_install_register_efi interface to pass GRUB device.
1434
1435 This allows grub_install_register_efi to request partition info
1436 directly.
1437
1438 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1441
1442 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 Do not use TCHAR string functions as they are not available on cygwin.
1445
1446 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 Workaround windows bug when querying EFI system partition parameters.
1449
1450 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1453 by using bitfields.
1454
1455 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1458
1459 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 Make i386-* other than i386-pc compileable under cygwin.
1462
1463 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 Fix definition of grub_efi_hard_drive_device_path. Take care that
1466 existing code would work even if by some reason bogus definition is
1467 used by EFI implementations.
1468
1469 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1472
1473 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1476 invocation.
1477
1478 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * util/config.c: Remove trailing newline from distributor in simple
1481 parsing.
1482
1483 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * include/grub/efi/api.h: Rename protocol and interface to avoid
1486 conflict.
1487
1488 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * .gitignore: add .exe variants. add missing files. remove few outdated
1491 entries.
1492
1493 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * grub-core/osdep/exec.c: Use unix version on cygwin.
1496
1497 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 Implement multiboot2 EFI BS specification.
1500
1501 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1504 Crash happened only in some cases like a string starting at the
1505 half of the screen of same length.
1506
1507 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1510 with EFI counterpart.
1511
1512 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 Propagate the EFI commits to x86-efi specific parts.
1515
1516 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1519
1520 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 Introduce grub_efi_packed_guid and use it where alignment is not
1523 guaranteed.
1524
1525 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1528 unaligned u16 rather than u8[2].
1529
1530 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1533 for relocation range.
1534
1535 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1538 non-function pcrel21b relocation. It happens with .text.unlikely
1539 section.
1540
1541 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1542
1543 * make MAX_USABLE_ADDRESS platform-specific
1544 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1545
1546 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1547
1548 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1549
1550 2013-12-09 Jon McCune <jonmccune@google.com>
1551
1552 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1553 in grub-install and grub-bios-setup for x86 BIOS targets.
1554
1555 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 Add missing compile and link options for sparc64-emu.
1558
1559 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 Implement sparc64 trampolines (needed for sparc64-emu).
1562
1563 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1566 range of R_SPARC_HI22.
1567 Implement R_SPARC_LM22.
1568
1569 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1572 Do not explicitly check for symbol table as it's already checked in
1573 platform-independent layer.
1574
1575 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1578 on ia64 as __clear_cache is a dummy on ia64.
1579
1580 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1583 Do not explicitly check for symbol table as it's already checked in
1584 platform-independent layer.
1585
1586 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1587
1588 * util/grub-mkconfig.in: Add missing newline to output.
1589
1590 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1593 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1594
1595 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1598 compilation with GCC <= 4.2.
1599 * grub-core/kern/emu/argp_common.c: Likewise.
1600
1601 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1604 right platform rather than leaking to sparc64-emu.
1605
1606 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1609 But ensure that the variables in question are indeed unsigned.
1610
1611 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1614
1615 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 Remove grub_memalign on emu.
1618
1619 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1622 truncate incomplete lines but instead flushes them.
1623
1624 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1627 and implement windows variant.
1628
1629 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 Fix mips-emu compilation.
1632
1633 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 * configure.ac: Check for freetype library usability.
1636
1637 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 Make arm-emu work.
1640
1641 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1644
1645 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1646
1647 * docs/grub.texi (Environment): Update color_normal and color_highlight
1648 defaults (light-gray instead of white).
1649
1650 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1651
1652 * grub-core/normal/main.c (INIT): Set default color to light-gray
1653 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1654 and apparently BIOS defaults.
1655
1656 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 Transform -C option to grub-mkstandalone to --core-compress available
1659 in all grub-install flavours.
1660
1661 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 Merge GRUBFS and GRUB_FS variables.
1664
1665 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1666
1667 Revert commit 69ca97c820, it caused failures when using OS device name
1668 in grub-install. Instead just strip off parenthesis in grub-install
1669 if (hdX) was passed.
1670
1671 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1672
1673 * util/grub-install.c (push_partmap_module): Add helper to convert
1674 partmap names to module names and use it in probe_mods(). Fixes
1675 failure to find partmap modules in diskfilter case.
1676
1677 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * configure.ac: Make unifont mandatory on coreboot.
1680
1681 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1682
1683 * configure.ac: Skip unifont 6.3 pcf and bdf.
1684
1685 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1686
1687 * Makefile.am: Remove partial font files if generation failed.
1688
1689 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1690
1691 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1692 strings.
1693 * include/grub/util/misc.h: Define it ...
1694 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1695
1696 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1697
1698 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1699 ${grub_probe}.
1700
1701 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 Don't add -mlong-calls when compiling with clang.
1704
1705 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 * configure.ac: Fix a typo.
1708
1709 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 Revamp relocation handling.
1712
1713 Move more code to common dl.c. Add missing veneers for arm and arm64.
1714 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1715
1716 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1719
1720 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1721
1722 * INSTALL: Raise minimum python version to 2.6.
1723 * gentpl.py: Use python3-style print function.
1724
1725 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * util/grub-install.c: Mention Boot* variable.
1728
1729 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1730
1731 * grub-core/osdep/linux/hostdisk.c
1732 (grub_util_find_partition_start_os): Initialise start to avoid
1733 spurious compiler warning.
1734
1735 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1736
1737 On Linux, read partition start offsets from sysfs if possible, to
1738 cope with block device drivers that don't implement HDIO_GETGEO.
1739 Fixes Ubuntu bug #1237519.
1740
1741 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1742 function.
1743 (sysfs_partition_start): Likewise.
1744 (grub_util_find_partition_start_os): Try sysfs_partition_start
1745 before HDIO_GETGEO.
1746
1747 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1748
1749 * grub-core/kern/fdt.c: Update struct size when adding node.
1750
1751 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Handle unaligned .bss on sparc64.
1754
1755 Current code improperly assumes that both __bss_start and _end are
1756 aligned to 8-bytes. Eliminating this assumption and explicitly align
1757 modules.
1758
1759 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1762 so it doesn't land in the middle of loaded image.
1763
1764 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1765
1766 * configure.ac: Move all warning options that may be absent in
1767 gcc >= 3.1 to optional.
1768
1769 Note: while this allows to compile with older GCC, official requirements
1770 remain the same and no support for older GCC.
1771
1772 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1773
1774 Copying the themes directory in grub-shell isn't
1775 parallel-test-friendly and breaks on the second test when the source
1776 directory is read-only (as in "make distcheck"). Instead, add a
1777 hidden --themes-directory option to grub-mkrescue et al, and use it
1778 in grub-shell.
1779
1780 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1781
1782 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1783 as it's no longer necessarry.
1784
1785 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * configure.ac: Allow compilation with older GCC for ARM.
1788
1789 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1792 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1793 ppc.
1794
1795 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1798
1799 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 Pass font config to config.h and not by TARGET_CFLAGS as adding
1802 arguments doesn't work if TARGET_CFLAGS is specified on command
1803 line.
1804
1805 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * configure.ac: Add -Wvla if compiler supports it.
1808
1809 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1812 Remove variable length arrays.
1813 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1814
1815 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1818
1819 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * include/grub/types.h: Declare all byteswaps as inline functions
1822 except compile-time ones.
1823
1824 Solves variable shadowing in constructions like
1825 cpu_to_le (le_to_cpu(x) + 1).
1826
1827 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1830
1831 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1834 minutes.
1835
1836 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1839 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1840
1841 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1842
1843 * grub-core/Makefile.core.def (setjmp): Distribute
1844 lib/arm64/setjmp.S.
1845
1846 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1847
1848 Add a new timeout_style environment variable and a corresponding
1849 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1850 controls hidden-timeout handling more simply than the previous
1851 arrangements, and pressing any hotkeys associated with menu entries
1852 during the hidden timeout will now boot the corresponding menu entry
1853 immediately.
1854
1855 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1856 generates a warning, and if it shows the menu it will do so as if
1857 the second timeout were not present. Other combinations are
1858 translated into reasonable equivalents.
1859
1860 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1861
1862 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * util/config.c: Add missing pointer adjustment.
1865 Reported by: qwertial
1866
1867 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1868
1869 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1870 directly, not via `cpu' link, to fix libgrub.pp generation.
1871
1872 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1873
1874 New port arm64-efi.
1875
1876 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1877
1878 * docs/grub.texi (sleep): Document exit codes.
1879
1880 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 Ensure that -mno-unaligned-access or some equivalent option is used.
1883
1884 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1887 -march=armv3.
1888
1889 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1892
1893 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1894
1895 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1896 builds, since we don't have an EPS version of font_char_metrics.png.
1897 Add leading dot to image extension per the Texinfo documentation.
1898
1899 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1900
1901 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1902 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1903 * util/grub-gen-widthspec.c: Likewise.
1904 * util/grub-mkfont.c: Likewise.
1905
1906 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1907
1908 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1909 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1910 failed to install on (hdX).
1911 * util/grub-setup.c (get_device_name): Remove, not needed after
1912 above change.
1913
1914 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1917
1918 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * util/grub-fstest.c: Remove variable length arrays.
1921
1922 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1925
1926 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1929 computing crc32 rather than handling with md fundtions directly.
1930
1931 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1934 checking fwstart.img rather than md fundtions directly.
1935
1936 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * util/grub-mkrescue.c (main): Check that fread succeeded.
1939
1940 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * conf/Makefile.common: Remove -mexplicit-relocs and
1943 -DUSE_ASCII_FALLBACK on yeeloong.
1944
1945 -DUSE_ASCII_FALLBACK is already added by font snippets.
1946 -mexplicit-relocs isn't needed is compiler/assemblera are
1947 configured properly.
1948 If they're not we shouldn't attempt to fix it by ourselves.
1949 Binary compare between before and after shows no difference.
1950
1951 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1952
1953 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1954 sources in dependencies directly.
1955
1956 This was the only instance of "library" in core config. A bug was
1957 reported that -fno-stack-protector wasn't passed to it. Instead of
1958 figuring out why it failed just remove this construction used
1959 needlessly.
1960
1961 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1964 fgets succeeded.
1965
1966 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1967
1968 * docs/grub.texi (ls): Fix command description in case of a device name
1969 passed as argument.
1970
1971 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 Eliminate variable length arrays in grub_vsnprintf_real.
1974
1975 A bit tricky because this function has to continue to work without
1976 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1977 but make all stack references use 32-bit offset rather than 8-bit one.
1978 So split va_args preparsing to separate function and put the prealloc
1979 into the caller.
1980
1981 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
1984 Fixes build for windows.
1985
1986 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * gentpl.py: Don't generate platform-dependent conditionals for
1989 platform-independent targets.
1990
1991 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
1992
1993 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
1994 references to mdadm from otherwise generic code.
1995 (grub_util_exec_pipe): Likewise.
1996 (grub_util_exec_pipe_stderr): Likewise.
1997 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
1998 This function calls vgs, not mdadm; adjust variable names
1999 accordingly.
2000
2001 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2002
2003 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2004 of Autogen. The Autogen definitions files remain intact as they
2005 offer a useful abstraction.
2006
2007 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2008
2009 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2010 into no-ops, and use it in programs that copy files but do not need
2011 to take special care to sync writes (grub-mknetdir, grub-rescue,
2012 grub-mkstandalone).
2013
2014 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2015
2016 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2017 than hardcoding /usr/local/bin/xorriso.
2018
2019 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 Add PCI command activation to all PCI drivers as required for coreboot
2022 and maybe some other firmwares.
2023
2024 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2027 and non-Apple variants of efiemu compile.
2028
2029 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2030
2031 * configure.ac: Add explicit check for linking format of
2032 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2033 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2034 hardcoding linking format.
2035
2036 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2039 and not pkgdatadir.
2040
2041 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2042 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 Add a --locale-directory option to grub-install and related tools.
2045
2046 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2047 --locale-directory option.
2048 (enum grub_install_options): Add
2049 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2050 * util/grub-install-common.c (grub_install_help_filter): Handle
2051 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2052 (grub_install_parse): Likewise.
2053 (get_localedir): New function to check for a user-provided option
2054 before trying grub_util_get_localedir.
2055 (copy_locales): Use get_localedir rather than
2056 grub_util_get_localedir. Handle differing locale directory layouts.
2057 (grub_install_copy_files): Likewise.
2058
2059 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2062 Don't rely on PATH_MAX.
2063
2064 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/genmoddep.awk: Use more portable && rather than and.
2067
2068 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2071 an object after data. While it doesn't seem right solution, it
2072 works well enough and OSX isn't main compilation platform.
2073
2074 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2077 While it doesn't seem right solution, it works well enough and
2078 OSX isn't main compilation platform.
2079
2080 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * configure.ac: Add -static to LDFLAGS when using apple linker to
2083 prevent it from pulling in dynamic linker.
2084
2085 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Apple assembly doesn't handle symbol arithmetic well. So define an
2088 offset symbol in boot.S and use it.
2089
2090 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 Apple assembly doesn't handle symbol arithmetic well. So instead
2093 of getting addres of kernel_sector + 4 define kernel_sector_high.
2094 It also makes code more readable.
2095
2096 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 With Apple assembly in .macro environvemnt you have to use $$ instead
2099 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2100 to $$x on Apple and to $x on everything else.
2101
2102 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2105 OBJCONV.
2106
2107 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2110 and non-Apple. This instruction is shorter and faster,
2111 so no reason not to use it on both.
2112
2113 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2116 .text when compiling for Apple.
2117
2118 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2121
2122 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2125 %dx restore the probe worked on non-existant drive. Reorganize the
2126 code a little bit to free 2 bytes necessary for push/pop.
2127
2128 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2131 Add missing cast to silence warning.
2132
2133 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2134
2135 * util/grub-install.c (update_nvram): Support --no-nvram flag
2136 for EFI targets.
2137
2138 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2141
2142 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * util/garbage-gen.c: Add missing include of sys/time.h.
2145
2146 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 Don't add -mflush-func if it's not supported by compiler.
2149
2150 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 Move common BIOS/coreboot memory map declarations to
2153 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2154
2155 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2156
2157 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2158
2159 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * INSTALL: Document why older clang versions aren't appropriate.
2162
2163 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * INSTALL: Document about clang for mips.
2166
2167 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2170 clang.
2171
2172 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 Add *-xen to the list of grub-install-common platforms.
2175
2176 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2177
2178 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2179 3 last commits.
2180
2181 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2184
2185 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2188 with -mcmodel=large.
2189
2190 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2193 range-checking for 32-bit quantities.
2194
2195 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * configure.ac: Compile with -fPIC when compiling with clang on
2198 mips.
2199
2200 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2203 when compiling with clang.
2204
2205 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 clang emits calls to abort () under some unknown conditions.
2208 Export abort () when compiling with clang.
2209
2210 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 * docs/grub-dev.texi: Document stack and heap sizes.
2213
2214 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2215
2216 * include/grub/i386/pc/memory.h: Decrease
2217 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2218 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2219 The binary doesn't change (checked). It's more to better reflect actual
2220 usage.
2221
2222 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2225 at compile time that enough of scratch size is available.
2226
2227 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2230 Previously we misaligned stack by 8 in startup.S and compensated
2231 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2232 right behaviour is to align stack in startup.S and keep it aligned
2233 in callwrap.S. startup.S part was committed few commits before. This
2234 takes care of callwrap.S.
2235 Reported by: Gary Lin.
2236
2237 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2240 .data and .bss. May happen if compiler and assembly use different
2241 alignment.
2242
2243 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2246 way.
2247
2248 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Add support for a new magic symbol _gp_disp on mips to handle PIC
2251 binaries.
2252
2253 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2254
2255 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2256
2257 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2260 when rest of GRUB is compiled for hisher stepping. Instead use
2261 .set mips3/.set mips1 around cache and sync opcodes.
2262
2263 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2266 do essentially the same thing, do it in similar way.
2267
2268 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2269
2270 * util/grub-mkrescue.c (main): If a source directory is not
2271 specified, read platform-specific files from subdirectories of
2272 pkglibdir, not pkgdatadir.
2273
2274 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2275
2276 * grub-core/normal/progress.c: Remove unused file.
2277
2278 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2281 array.
2282
2283 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2286 than grub.cfg.
2287
2288 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 * coreboot.cfg: Add missing file.
2291
2292 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2295
2296 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2297
2298 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2299 selectively skipping systems.
2300
2301 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2302
2303 * Makefile.util.def (grub-mkimage): Add
2304 grub-core/osdep/aros/config.c to extra_dist.
2305 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2306 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2307 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2308 grub-core/gnulib-no-gets.diff.
2309
2310 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 Add automated filesystem checking based on scripts I've used now for
2313 quite some time locally. Most of the test require root so they are
2314 skipped when run without necessarry privelegies.
2315
2316 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2317
2318 * util/grub-install.c (main): Adjust info messages to match
2319 installed paths of grub-bios-setup and grub-sparc64-setup.
2320
2321 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2322
2323 * util/grub-install-common.c (copy_locales): Consistently use
2324 grub_util_get_localedir () rather than LOCALEDIR.
2325 (grub_install_copy_files): Likewise.
2326
2327 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2328
2329 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2330 16-byte boundary, as required by the x86-64 ABI, before calling
2331 grub_main. In some cases, GCC emits code that assumes this
2332 alignment, which crashes if not aligned. The EFI firmware is also
2333 entitled to assume that stack alignment without checking.
2334
2335 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2336
2337 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2338 4k page boundaries as expected by firmware rather than 1k
2339 boundaries.
2340 (grub_mmap_malign_and_register): Likewise.
2341
2342 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2345 fragmentation 512M is enough.
2346
2347 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2350 pointer to 32K. This is the size of cache element which is the most
2351 common allocation >1K. This way the pointer is always around blocks
2352 of 32K and so we keep performance while decreasing fragmentation.
2353
2354 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2357 current memory when allocating large chunks. This significantly
2358 decreases memory fragmentation.
2359
2360 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2361
2362 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2363 but for symmetry).
2364 * tests/lzocompress_test.in: Skip if lzop is not installed.
2365 * tests/xzcompress_test.in: Skip if xz is not installed.
2366
2367 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2368
2369 * util/grub-mkrescue.c (main): Fix typo.
2370
2371 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2374 clock frequency to 200 MHz,
2375
2376 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2379
2380 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2381
2382 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2383 Load config file from (cbfsdisk)/etc/grub.cfg.
2384
2385 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2386
2387 * util/grub-install-common.c (grub_install_copy_files): Fix module
2388 destination directory.
2389
2390 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2391
2392 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2393 files have not been built.
2394
2395 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2396
2397 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2398 Handle errors from mkstemp.
2399 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2400
2401 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2404 on primary master on pseries.
2405
2406 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2409 already loaded. This saves memory needed for tests,
2410
2411 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2414 work again.
2415
2416 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2419 work again.
2420
2421 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2422
2423 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2424 master since with some combinations of qemu and firmware only primary
2425 IDE channel is available.
2426
2427 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2428
2429 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2430 low-memory platforms where we don't have enough memory for them.
2431 * grub-core/tests/videotest_checksum.c: Likewise.
2432
2433 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2436 already loaded. This saves memory needed for tests,
2437
2438 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 Fix handling of install lists.
2441
2442 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2443
2444 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2445
2446 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2447
2448 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2449 the devices before accessing them.
2450
2451 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2454 as file argument.
2455
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2459
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2463 (grub_file_close): Free file->name.
2464
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2468 (grub_load_public_key): Likewise.
2469 (grub_verify_signature_real): Likewise.
2470 (grub_cmd_verify_signature): Likewise.
2471
2472 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2473
2474 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2475 memory leak.
2476
2477 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2478
2479 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2480 (grub_longjmp): Restore r31.
2481 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2482
2483 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2486 modules to be in line with make_image_abs.
2487
2488 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2491
2492 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2493
2494 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2495
2496 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2497
2498 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2501 to leave some memory to firmware.
2502
2503 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2506 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2507 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2508 Load gfxmenu.
2509
2510 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2513 now needs full arguments.
2514
2515 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * util/grub-mkrescue.c (main): Add trailing \n in
2518 .disk_label.contentDetails to be in line with previous shell script.
2519
2520 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2523
2524 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * util/grub-install-common.c (grub_install_parse): Recognize
2527 --compress=none like shell script did.
2528
2529 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * include/grub/misc.h: Replace check for __sparc64__ with one for
2532 __sparc__ as __sparc64__ isn't actually defined.
2533
2534 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2537 counterpart of fixing the naming of escc ports.
2538
2539 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * util/grub-install-common.c (platforms): Fix the order of entries and
2542 remove useless field val.
2543
2544 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * util/grub-install.c: Add new option --no-bootsector to skip
2547 installing of bootsector. Accept --grub-setup=/bin/true as
2548 backwards-compatible synonym.
2549
2550 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2551
2552 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2553 order of qsort arguments (number of elements vs. element size).
2554
2555 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2558 the function of these files exceeds what can be sanely handled in shell
2559 in posix-comaptible way. Also writing it in C extends the functionality
2560 to non-UNIX-like OS and minimal environments.
2561
2562 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2565 compiling to thumb2.
2566 * grub-core/kern/arm/cache_armv7.S: Likewise.
2567 * grub-core/lib/arm/setjmp.S: Likewise.
2568
2569 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2570
2571 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2572 in grub_uboot_syscall
2573
2574 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 Decrease stack usage in lexer.
2577
2578 We have only 92K of stack and using over 4K per frame is wasteful
2579
2580 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2581 as macros so that compiler would remove useless structure on stack.
2582 Better solution would be to fix flex not to put this structure on
2583 the stack but flex is external program.
2584
2585 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2586
2587 Decrease stack usage in signature verification.
2588
2589 We have only 92K of stack and using over 4K per frame is wasteful
2590
2591 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2592 rather than stack.
2593 (grub_verify_signature_real): Likewise.
2594
2595 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 Decrease stack usage in mdraid 0.9x.
2598
2599 We have only 92K of stack and using over 4K per frame is wasteful
2600
2601 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2602 rather than stack.
2603
2604 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 Decrease stack usage in BtrFS.
2607
2608 We have only 92K of stack and using over 4K per frame is wasteful
2609
2610 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2611 rather than stack.
2612
2613 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 Decrease stack usage in JFS.
2616
2617 We have only 92K of stack and using over 4K per frame is wasteful
2618
2619 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2620 stack. Note: this function is recursive.
2621 (grub_jfs_read_inode): Read only part we care about.
2622
2623 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2624
2625 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2626 handling
2627
2628 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2629
2630 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2631
2632 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2633
2634 * docs/grub.texi (Environment): Document cmdpath.
2635
2636 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2637
2638 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2639 Remove "unused" attribute from arguments, they are used.
2640
2641 2013-11-15 Colin Watson <cjwatson@debian.org>
2642
2643 * .gitignore: Only ignore grub-mk* at the top level.
2644
2645 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2646
2647 * util/grub-reboot.in (usage): Fix a typo.
2648
2649 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 Replace libgcc version of ctz with our own.
2652
2653 On upcoming arm64 port libgcc ctz* are not usable in standalone
2654 environment. Since we need ctz* for this case and implementation is
2655 in C we may as well use it on all concerned platforms.
2656
2657 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * configure.ac: Probe for linking format rather than guessing it based
2660 on target_os.
2661
2662 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2665 "1" prior to handoff.
2666
2667 Reported by: M A Young.
2668
2669 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2672 \0 to all files.
2673
2674 Reported by: M A Young.
2675
2676 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2679 compilation on NetBSD.
2680
2681 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * acinclude.m4: Don't add -P on initial nm test.
2684
2685 Note: even though this patch postdates Andrey's it bears 14 Nov as
2686 date due to timezone difference.
2687
2688 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2689
2690 * grub-core/Makefile.core.def (signature_test): Add missing
2691 tests/signatures.h.
2692
2693 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2694
2695 * util/grub-install_header: Set localedir here, since this file is
2696 where it's used.
2697 * util/grub-install.in: Remove setting of localedir.
2698 * util/grub-mkrescue.in: Likewise.
2699
2700 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2703
2704 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * configure.ac: Move nm checks to the end.
2707 Call grub_PROG_NM_WORKS.
2708 * acinclude.m4: New check grub_PROG_NM_WORKS.
2709 Use $TARGET_CFLAGS -c when compiling test binary.
2710
2711 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2712
2713 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2714 unused variables.
2715
2716 2013-11-14 Matthew Garrett <mjg@redhat.com>
2717
2718 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2719 cmdpath to firmware directory.
2720
2721 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2724 at the start of second iteration.
2725
2726 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2729
2730 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * Makefile.am (default_payload.elf): New target for easier coreboot
2733 build.
2734
2735 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2738 clang (not necessarry with -no-integrated-as).
2739 * include/grub/symbol.h [__arm__]: Likewise.
2740
2741 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 * configure.ac: Use -no-integrated-as on arm with clang.
2744 * INSTALL: Mention ARM compilation with clang.
2745
2746 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2749 -mthumb-interwork.
2750
2751 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2752
2753 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2754 code for indirect block handling.
2755
2756 Saves 185 bytes on compressed image.
2757
2758 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2759
2760 Fix make clean.
2761
2762 * Makefile.am: Remove build-grub-* in make clean.
2763
2764 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2765
2766 New files to gitignore.
2767
2768 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2769 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2770
2771 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2772
2773 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2774
2775 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2776
2777 * .gitignore: fix rules for .dep* and add *.a post git migration
2778
2779 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2780
2781 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2782 to match INSTALL.
2783
2784 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2785
2786 * grub-core/kern/misc.c: Don't redirect divisions in the
2787 GRUB_UTIL case.
2788 * include/grub/misc.h: Likewise.
2789
2790 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2791
2792 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2793 systems that require checking the return value of write.
2794
2795 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2796
2797 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2798 efibootmgr quiet when --debug is not used, rather than when it is.
2799
2800 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2801
2802 * gentpl.py (define_macro_for_platform_dependencies): Remove
2803 first (and thus unused) of two definitions for this function.
2804 (platform_dependencies): Likewise.
2805
2806 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2807
2808 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2809 functions, we only need to check this for the target, not the host.
2810 * configure.ac (grub_apple_cc): Likewise.
2811
2812 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2813
2814 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2815 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2816 asm to stay in arm even if surrounding is thumb.
2817
2818 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2821 helper functions are needed for thumb.
2822
2823 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2826 level / 3 division explicitly unsigned. Saves few bytes.
2827
2828 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2831
2832 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2835 division.
2836
2837 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2840 grub_uboot_boot_data to asm part.
2841
2842 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2845 literal load.
2846 (grub_uboot_syscall): Save/restore r9 and align stack.
2847
2848 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2851
2852 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2855 occurencies with END.
2856
2857 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2858
2859 * util/grub-editenv.c (help_filter, argp): Document how to delete
2860 the whole environment block.
2861 Reported by Dan Jacobson. Fixes Debian bug #726265.
2862
2863 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2864
2865 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2866 sectioning.
2867
2868 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2869
2870 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2871 increment/decrement.
2872
2873 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2876 compiling with clang.
2877
2878 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2881 ".".
2882
2883 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 Redirect all divisions to grub_divmod64.
2886
2887 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2890
2891 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 Add missing includes of loader.h.
2894
2895 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * configure.ac: Allow disabling themes.
2898
2899 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2900
2901 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2902
2903 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2906 until it becomes operational.
2907
2908 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2909
2910 * grub-core/Makefile.core.def (legacy_password_test): Disable
2911 on platforms where no legacycfg is compiled.
2912 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2913 load legacy_password_test.
2914
2915 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2918
2919 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2922
2923 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2924
2925 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2926 strict-aliasing warning.
2927 (fsync): Silence cast warning.
2928
2929 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * grub-core/commands/verify.c: Remove variable length arrays.
2932 Load gcry_dsa/gcry_rsa automatically.
2933
2934 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/tests/signature_test.c: New test.
2937
2938 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2939
2940 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2941 API.
2942
2943 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2946 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2947
2948 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2951
2952 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * grub-core/fs/proc.c: Allow \0 in proc files.
2955
2956 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2959
2960 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2963
2964 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/fs/ext2.c: Remove variable length arrays.
2967
2968 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2969
2970 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2971 length arrays.
2972
2973 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2974
2975 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2976 * grub-core/disk/cryptodisk.c: Likewise.
2977 * grub-core/disk/geli.c: Likewise.
2978 * grub-core/disk/luks.c: Likewise.
2979
2980 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * grub-core/tests/legacy_password_test.c: New test.
2983 * grub-core/commands/legacycfg.c: Remove variable length arrays.
2984
2985 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2986
2987 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
2988
2989 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * grub-core/tests/pbkdf2_test.c: New test.
2992
2993 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
2996
2997 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/io/lzopio.c: Remove variable length arrays.
3000
3001 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * include/grub/crypto.h: Add maximums on hash size and cipher block
3004 size.
3005
3006 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3007
3008 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3009
3010 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * grub-core/tests/xnu_uuid_test.c: New test.
3013
3014 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3017 covers it).
3018
3019 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/commands/hashsum.c: Remove variable length arrays.
3022
3023 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3026 condition.
3027 * tests/grub_func_test.in: Increase memory allocation.
3028
3029 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3032 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3033 sys/mount.h.
3034
3035 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3038 (grub_util_get_fd_size_os): ...this.
3039 (grub_hostdisk_flush_initial_buffer): New empty function.
3040
3041 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3044 without --defined-only.
3045
3046 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3049 rip-relative addressing in prologue.
3050
3051 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3054 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3055
3056 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3059 Add missing semicolon.
3060
3061 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3064
3065 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 * configure.ac: Check for lzma.h for enabling liblzma and allow
3068 manual disabling.
3069
3070 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 Add missing includes of loader.h.
3073
3074 2013-11-11 Fam Zheng <famcool@gmail.com>
3075
3076 * util/grub.d/30_os-prober.in: Add minix entry.
3077
3078 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3081 right buffer for temporary load.
3082
3083 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3086
3087 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3090 payload.
3091
3092 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3093
3094 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3095 not Types.h.
3096 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3097 environment.
3098 (LzmaDec_InitDicAndState): Make static.
3099
3100 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3103
3104 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3107
3108 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3109
3110 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * docs/grub-dev.texi: Replace bzr references with git ones.
3113
3114 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3115
3116 * docs/grub.texi (Simple configuration): Remove reference to
3117 grub-reboot from saved default entry description - grub-default
3118 does not use it anymore.
3119
3120 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3123 compiled with.
3124
3125 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3126
3127 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3128
3129 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 Fix grub_machine_fini bitrot.
3132
3133 Reported by: Glenn Washburn.
3134
3135 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3138
3139 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3142 -DELF.
3143 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3144 instead of ELF*.
3145
3146 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3149 Add -march=core2 when testing compile of efiemu64.
3150
3151 Thanks Andrey Borzenkov for spotting this.
3152
3153 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3156 XEN PV environment and load kernels.
3157
3158 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3161 * grub-core/loader/multiboot_mbi2.c: Likewise.
3162
3163 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3166 handling.
3167
3168 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3171
3172 Tested by: Denis 'GNUtoo' Carikli.
3173
3174 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3177
3178 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3181 Use to get rounded angle rather than truncated.
3182
3183 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/term/serial.c: Add option for enabling/disabling
3186 RTS/CTS flow control.
3187
3188 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3191 divisions.
3192
3193 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3196 Use grub_fatal rather than divide by zero.
3197 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3198
3199 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3202 truncate.
3203 (grub_fixed_fsf_divide): Likewise.
3204
3205 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3208 division by-zero and senseless negative divisions.
3209
3210 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3213 division by-zero and senseless negative divisions.
3214 (circprog_set_property): Don't accept negative num_ticks.
3215
3216 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3219 division by-zero and senseless negative divisions.
3220
3221 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * configure.ac: Use elf_*_fbsd on kfreebsd.
3224
3225 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/tests/div_test.c: New test.
3228
3229 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3230
3231 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3232 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3233 * grub-core/gfxmenu/view.c: Likewise.
3234 * grub-core/video/fb/video_fb.c: Introduce new functions:
3235 grub_video_set_area_status, grub_video_get_area_status,
3236 grub_video_set_region, grub_video_get_region.
3237 * grub-core/video/bochs.c: Likewise.
3238 * grub-core/video/capture.c: Likewise.
3239 * grub-core/video/video.c: Likewise.
3240 * grub-core/video/cirrus.c: Likewise.
3241 * grub-core/video/efi_gop.c: Likewise.
3242 * grub-core/video/efi_uga.c: Likewise.
3243 * grub-core/video/emu/sdl.c: Likewise.
3244 * grub-core/video/radeon_fuloong2e.c: Likewise.
3245 * grub-core/video/sis315pro.c: Likewise.
3246 * grub-core/video/sm712.c: Likewise.
3247 * grub-core/video/i386/pc/vbe.c: Likewise.
3248 * grub-core/video/i386/pc/vga.c: Likewise.
3249 * grub-core/video/ieee1275.c: Likewise.
3250 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3251 * include/grub/video.h: Likewise.
3252 * include/grub/video_fb.h: Likewise.
3253 * include/grub/fbfill.h: Updated render_target structure.
3254 grub_video_rect_t viewport, region, area
3255 int area_offset_x, area_offset_y, area_enabled
3256 * include/grub/gui.h: New helper function
3257 grub_video_bounds_inside_region.
3258 * docs/grub-dev.texi: Added information about new functions.
3259
3260 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3263 for alignment.
3264
3265 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3268 missing attribute.
3269 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3270
3271 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3274 simple division on arm and ia64.
3275
3276 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3279 link with libgcc.
3280
3281 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3284
3285 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3288 prefix symbol, not @.
3289
3290 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * INSTALL: Add note about older gcc and clang.
3293
3294 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3297
3298 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3301 NULL pointer dereference.
3302
3303 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3306 clang.
3307
3308 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3311 warnings.
3312
3313 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3316 function.
3317 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3318 * grub-core/disk/geli.c (ascii2hex): Likewise.
3319
3320 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * configure.ac: Run linker tests without -Werror.
3323 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3324 Change all occurences of -static-libgcc resp -lgcc to
3325 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3326
3327 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3330
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 Allow compiling with clang (not really supported though).
3334
3335 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3336 unconditionally.
3337 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3338 Add -mrtd -mregparm=3 on i386 when not using clang.
3339 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3340
3341 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3344 bindings.
3345 * grub-core/lib/reed_solomon.c: Likewise.
3346 * include/grub/i386/gdb.h: Likewise.
3347 * include/grub/i386/pc/int.h: Likewise.
3348 * include/grub/i386/pc/pxe.h: Likewise.
3349 * include/grub/ieee1275/ieee1275.h: Likewise.
3350
3351 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 Import libgcrypt 1.5.3.
3354
3355 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * configure.ac: Don't add -Wcast-align on x86.
3358
3359 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * configure.ac: Add -freg-struct-return on all platforms that
3362 support it.
3363
3364 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * acinclude.m4: Use -Werror on parameter tests.
3367 * configure.ac: Likewise.
3368
3369 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3372
3373 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * configure.ac: Check that -malign-loops works rather than assuming that
3376 either -falign-loops or -malign-loops work.
3377
3378 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3381
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * configure.ac: Prevent cflags leaking to subsequent tests by always
3385 resetting cflags to target_cflags in target tests.
3386
3387 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3390 function.
3391
3392 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3395
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3399
3400 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/normal/cmdline.c (grub_cmdline_get):
3403 Remove nested functions.
3404
3405 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * tests/test_sha512sum.in: Make it work on emu.
3408
3409 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3412 functions.
3413 (grub_bidi_line_logical_to_visual): Likewise.
3414
3415 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 Remove vestiges of -Wunsafe-loop-optimisations.
3418
3419 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3420 -Wno-unsafe-loop-optimisations.
3421 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3422 pragma.
3423 * grub-core/io/gzio.c: Likewise.
3424 * grub-core/script/parser.y: Likewise.
3425 * grub-core/script/yylex.l: Likewise.
3426 * util/grub-mkfont.c: Likewise.
3427
3428 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * util/grub-mkfont.c (process_cursive): Remove nested function.
3431
3432 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3435 (grub_boot_time): Likewise.
3436
3437 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 * include/grub/symbol.h (FUNCTION): Use @function rather than
3440 "function".
3441 (VARIABLE): Likewise.
3442
3443 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3446
3447 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3450 (parse_dhcp_vendor): Likewise.
3451
3452 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3455
3456 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3459 Define after defining type and not before.
3460
3461 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3464 type.
3465 (grub_gcm_decrypt): Likewise.
3466 (algo_decrypt): Likewise.
3467 (grub_zfs_decrypt_real): Transform error type.
3468
3469 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3472
3473 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3476 (grub_usbms_cbi_reset): Likewise.
3477 (grub_usbms_bo_reset): Likewise.
3478 (grub_usbms_reset): Likewise.
3479 (grub_usbms_attach): Likewise.
3480 (grub_usbms_transfer_cbi): Likewise.
3481
3482 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3485 "checksum = checksum;".
3486
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3490 entry_type.
3491
3492 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3495 BIOS disk check.
3496
3497 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3500 type.
3501 (grub_ehci_fini_hw): Likewise.
3502 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3503
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3507 return grub_usb_err_t for cosistency. All users updated.
3508
3509 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3512 assigning to itself.
3513
3514 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3515 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3516
3517 Issue separate DNS queries for ipv4 and ipv6
3518
3519 Adding multiple questions on a single DNS query is not supportted by
3520 most DNS servers. This patch issues two separate DNS queries
3521 sequentially for ipv4 and then for ipv6.
3522
3523 Fixes: https://savannah.gnu.org/bugs/?39710
3524
3525 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3526 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3527 * (grub_net_dns_lookup): Now using separated dns packages.
3528 * (grub_cmd_nslookup): Add error condition.
3529 * (grub_cmd_list_dns): Print DNS option.
3530 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3531 --prefer-ipv4, and --prefer-ipv6.
3532 * include/grub/net.h (grub_dns_option_t): New enum.
3533 * (grub_net_network_level_address): option added.
3534
3535 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3536
3537 * grub-core/video/fb/video_fb.c: Merge two blit functions
3538 into one.
3539
3540 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3541
3542 * grub-core/term/terminfo.c: Add sequences for home and end.
3543
3544 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3547 graphics console.
3548
3549 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3552 add mode 0x12.
3553
3554 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3557 e-mail by Per Öberg.
3558
3559 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3560
3561 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3562 name.
3563
3564 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3565
3566 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3567 emu platforms.
3568 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3569
3570 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * docs/grub.texi: Document usage of menuentry id.
3573
3574 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3577
3578 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3579
3580 * grub-core/commands/i386/nthibr.c: New command.
3581
3582 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3583
3584 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3585
3586 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3589 coordinate.
3590
3591 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 Support GRUB_DISABLE_SUBMENU config.
3594
3595 Inspired by patch from Prarit Bhargava.
3596
3597 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * docs/grub.texi: Mention RSA support.
3600
3601 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * grub-core/commands/verify.c: Add RSA support.
3604
3605 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3608 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3609 device is known to be ATAPI.
3610
3611 2013-11-03 Mike Frysinger <vapier>
3612
3613 * configure.ac: Don't add target-prefix.
3614
3615 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3618 variables.
3619
3620 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3621
3622 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3623 if language is English.
3624
3625 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3628
3629 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * configure.ac: Don't add -m32/-m64 on emu.
3632
3633 2013-11-02 neil
3634
3635 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3636 broken linux headers.
3637
3638 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3641
3642 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3645 Reed-Solomon recovery if more than half of redundancy info is 0.
3646
3647 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * util/grub-mount.c: Handle symlinks to directories.
3650
3651 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3654 find_file recursively for symlink.
3655
3656 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * tests/util/grub-shell.in: Copy themes.
3659
3660 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3663
3664 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * configure.ac: Use 0x8000 for address instead of 8000.
3667
3668 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3671 signature.
3672
3673 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3676 variable.
3677
3678 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3681
3682 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3685 file_progress_read_hook.
3686 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3687
3688 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3691 and double.
3692
3693 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3696
3697 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 Rewrite blocklist functions in order to get progress when
3700 reading large extents and decrease amount of blocklist hook calls.
3701
3702 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3705 of SI suffixes.
3706
3707 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 Support --base-clock for serial command to handle weird cards with
3710 non-standard base clock.
3711
3712 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3715 strncpy.
3716 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3717 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3718 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3719 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3720 + strcpy rather than strncpy.
3721
3722 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3725 (check_pool_label): Likewise. Fixes overflow.
3726 (nvlist_find_value): Fix comparison.
3727
3728 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3731 more appropriate functions.
3732
3733 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3736 realloc.
3737
3738 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3741
3742 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3745 on core size.
3746
3747 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3750
3751 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3754 (initialize_tables): reset tl and td to NULL after freeing.
3755
3756 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3759
3760 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3763 of supported tags.
3764
3765 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3768
3769 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3772 quirks.
3773
3774 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3777 a page in protected space.
3778
3779 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3782 allocate space for zero-sized modules.
3783
3784 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3787
3788 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3789
3790 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3791
3792 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3795 safeguards. Fixes a crash with i386/pc/console.c.
3796
3797 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3800 and grub_hostfs_init.
3801
3802 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3805 windows method on other platforms without good stat as well.
3806
3807 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3810
3811 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 Make / in btrfs refer to real root, not the default volume.
3814 Modify mkrelpath to work even if device is mounted with subvolid option.
3815
3816 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3817
3818 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3819 extra_dist.
3820 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3821 extra_dist.
3822
3823 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3826 fails.
3827
3828 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3829
3830 * docs/autoiso.cfg: New file.
3831
3832 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3835 COND_GRUB_PE2ELF conditions.
3836
3837 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3840 "vnd", "rd" and "fd" disks.
3841
3842 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 Move grub_disk_write out of kernel into disk.mod.
3845
3846 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3849 handling.
3850
3851 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * grub-core/kern/misc.c (grub_abort): Make static
3854
3855 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3858 transform invalid unicode codepoints.
3859
3860 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3863 \0 checking.
3864
3865 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3868
3869 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 Consolidate cpuid code.
3872
3873 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Move cpuid code to cpuid.h and TSC code to tsc.c.
3876
3877 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3878
3879 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3880
3881 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3882
3883 * util/grub-mkconfig.in: Replace $0 with $self.
3884 * util/grub-reboot.in: Likewise.
3885 * util/grub-set-default.in: Likewise.
3886
3887 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3888
3889 * docs/osdetect.cfg: New file.
3890
3891 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3892
3893 * tests/util/grub-shell.in: Add new --debug option.
3894
3895 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3896
3897 * tests/test_unset.in: New test.
3898
3899 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3900
3901 * tests/test_sha512sum.in: New test.
3902
3903 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3906 * include/grub/misc.h: Remove strncat.
3907 * grub-core/lib/posix_wrap/string.h: Likewise.
3908
3909 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3912 Try to handle more than 0xFFFF packets.
3913 Reported by: Bernhard Übelacker <bernhardu>.
3914 He also spotted few overflows in first version of this patch.
3915
3916 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * tests/date_unit_test.c: New test.
3919
3920 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3923 of first three years after start of validity of unixtime.
3924
3925 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3928 division as the one making more sense.
3929 (update_screen): Likewise.
3930 (complete): Likewise.
3931
3932 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3935
3936 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 Make char and string width grub_size_t rather than grub_ssize_t.
3939
3940 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3943 unsigned.
3944 (grub_history_replace): Likewise.
3945
3946 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3949 appropriate.
3950
3951 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3954 appropriate.
3955
3956 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3959 Use unsigned divisions rather than signed variants.
3960
3961 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3964 unsigned arithmetics.
3965 Add missing break.
3966
3967 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3970
3971 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3974 rather than signed one.
3975 (recovery): Likewise.
3976
3977 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3980
3981 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
3984 than signed.
3985
3986 2013-10-25 Jon McCune <jonmccune@google.com>
3987
3988 * docs/grub.texi: Cleanup security documentation around signatures.
3989
3990 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
3993
3994 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
3997 than int.
3998
3999 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4002 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4003 functions when compiling for kernel.
4004
4005 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4008 unsigned long long when using %llu.
4009
4010 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4013 terminal after updating progress.
4014
4015 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4018 argument. We don't disable Gate A20 in this code.
4019
4020 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4023 Conceptually based on change in branch "vbe-on-coreboot".
4024
4025 2013-10-24 Robert Millan <rmh@gnu.org>
4026
4027 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4028 numeric constants with their symbolic equivalent.
4029 Taken from branch "vbe-on-coreboot".
4030
4031 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4034
4035 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4038 divmod64 for offset division.
4039
4040 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4041
4042 Rename .bzrignore to .gitignore. Add "*.o" rule.
4043
4044 * .bzrignore: Renamed to...
4045 * .gitignore: ...this.
4046
4047 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4048
4049 Add new progress module that displays the load progress of files.
4050
4051 * grub-core/lib/progress.c: New file.
4052 * grub-core/Makefile.core.def (progress): New module.
4053 * grub-core/kern/file.c (grub_file_open): File name added.
4054 * (grub_file_read): Progress hook added.
4055 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4056 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4057 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4058 * include/grub/file.h (struct grub_file): Add progress module members.
4059 * include/grub/term.h (struct grub_term_output): Likewise.
4060 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4061 Terminal velocity added.
4062 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4063 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4064 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4065 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4066 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4067 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4068 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4069 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4070 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4071 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4072 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4073 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4074
4075 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 Verify signatures of signatures unless --skip-sig is specified.
4078
4079 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4082 \0 checking.
4083
4084 Saves 70 bytes on compressed image.
4085
4086 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4087
4088 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4089 check.
4090
4091 Saves 10 bytes on compressed image.
4092
4093 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/kern/misc.c (grub_isprint): Move to ...
4096 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4097
4098 Saves 20 bytes on compressed image due to remving exporting.
4099
4100 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4103
4104 Saves 5 bytes on compressed image.
4105
4106 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4107
4108 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4109 function get_utf8.
4110
4111 Saves 379 bytes on compressed image.
4112
4113 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4116
4117 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4120
4121 Saves 40 bytes on compressed image.
4122
4123 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4126 mask rather than 64-bit type.
4127
4128 Saves 20 bytes on compressed image.
4129
4130 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4133 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4134
4135 Saves 273 bytes on compressed image.
4136
4137 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4140 variable length arrays.
4141
4142 Saves 50 bytes on compressed image.
4143
4144 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4147
4148 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/fs/ufs.c: Remove variable length arrays.
4151
4152 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4155
4156 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * grub-core/fs/zfs.c: Remove variable length arrays.
4159 Reduces zfs.mod by 160 bytes (208 compressed).
4160
4161 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4164
4165 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/net/arp.c: Remove variable length arrays.
4168 * grub-core/net/bootp.c: Likewise.
4169 * grub-core/net/dns.c: Likewise.
4170 * grub-core/net/icmp6.c: Likewise.
4171 * grub-core/net/net.c: Likewise.
4172
4173 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * grub-core/fs/ntfs.c: Remove variable length arrays.
4176 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4177 compressed).
4178
4179 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * grub-core/fs/hfs.c: Remove variable length arrays.
4182 Reduces hfs.mod by 8 bytes (52 compressed).
4183
4184 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4185
4186 * grub-core/fs/udf.c: Remove variable length arrays.
4187 Increases udf.mod by 128 bytes (but decreases by 13 when
4188 compressed).
4189
4190 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * grub-core/fs/iso9660.c: Remove variable length arrays.
4193 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4194 compressed).
4195
4196 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4199 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4200 compressed).
4201
4202 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/xfs.c: Remove variable length arrays.
4205 Reduces xfs.mod by 40 bytes (43 compressed).
4206
4207 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * grub-core/fs/fshelp.c: Remove variable length arrays.
4210 Reduces fshelp.mod by 116 bytes (23 compressed).
4211
4212 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/normal/completion.c: Remove variable length arrays.
4215 * grub-core/normal/menu_entry.c: Likewise.
4216
4217 Reduces normal.mod by 496 bytes.
4218
4219 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4222 by 356 bytes (158 compressed).
4223
4224 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4227 by 364 bytes (169 compressed).
4228
4229 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4232 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4233 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4234
4235 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4238 bitmasks to small structures of size chosen to fit in registers.
4239
4240 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * conf/Makefile.common: Use -freg-struct-return on i386. This
4243 decreases code size and improves performance.
4244
4245 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4248
4249 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4252 "(null)" string.
4253 Simplify expressions to save around 256 bytes in kernel.img.
4254 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4255
4256 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4259 Use GRUB_UTIL_FD_O_* rather than O_*.
4260
4261 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 Add haiku-specific functions.
4264
4265 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4268
4269 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4270
4271 Move stat () and device mode checking into OS-dependent files as
4272 long as performance doesn't suffer.
4273
4274 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 Split make_system_path_relative_to_its_root into separate file
4277 relpath.c from getroot.c as it's common between unix and haiku
4278 but otherwise haiku doesn't use any functions from unix getroot.c.
4279
4280 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4283 New function.
4284 (grub_util_is_special_file): Likewise.
4285
4286 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4289 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4290
4291 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4294 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4295
4296 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4299 (load_image): Likewise.
4300
4301 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * util/grub-render-label.c: Move backend part to ...
4304 * util/render-label.c: ... here.
4305
4306 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4309 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4310
4311 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4314
4315 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4316
4317 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4318 CD-ROM in case when it's declared as having subpartitions.
4319
4320 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 Don't add -lm on haiku.
4323
4324 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4325 and empty on haiku.
4326 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4327 -lm.
4328
4329 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * configure.ac: Use -melf_*_haiku as target on haiku.
4332
4333 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * Makefile.util.def: Add util/setup.c to extra_dist.
4336
4337 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4340 unknown types through.
4341
4342 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4345 (grub_util_check_char_device): Likewise.
4346 * include/grub/emu/getroot.h: Likewise.
4347
4348 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4351 memset rather than inline static function.
4352
4353 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4356 not doing embedded decompressor.
4357
4358 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4361 shadowing.
4362 * grub-core/kern/disk.c: Likewise.
4363 * grub-core/kern/misc.c: Likewise.
4364 * include/grub/parser.h: Likewise.
4365 * include/grub/script_sh.h: Likewise.
4366 * include/grub/zfs/zfs.h: Likewise.
4367
4368 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4371
4372 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4375 defined before trying to use it.
4376
4377 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4380 warning.
4381
4382 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4385 Use __unused__ rather than __used__ on gcc < 3.2.
4386
4387 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4390 gcc < 4.0.
4391 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4392
4393 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4396
4397 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4398
4399 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4400 * include/grub/emu/misc.h: Likewise.
4401
4402 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4405 cur_color.
4406
4407 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4408
4409 * grub-core/tests/checksums.h: Regenerated due to progress bar
4410 get_minimal_size changes.
4411
4412 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4413
4414 Added `tr' command support.
4415
4416 * grub-core/commands/tr.c: New file.
4417 * grub-core/Makefile.core.def: Build rules for new module.
4418
4419 * tests/grub_cmd_tr.in: New test.
4420 * Makefile.util.def: Build rules for new test.
4421
4422 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4423
4424 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4425
4426 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4427
4428 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4429 * docs/gurb.texi: Likewise.
4430
4431 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4432
4433 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4434 Pixmap highlighted section with east and west slices was displayed
4435 incorrectly due to negative width of the central slice.
4436
4437 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4438
4439 * docs/grub.texi: Graphical options information update.
4440 Removed outdated. Updated current. Inserted missed.
4441
4442 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * docs/grub.texi: Mention few new platform-specific commands.
4445
4446 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4449 currently used so this doesn't really have any effect.
4450 Reported by: Douglas Ray <dougray>
4451
4452 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4455 compilation but prevents gcc from displaying messages in non-Latin
4456 alphabets.
4457 * conf/Makefile.common: Likewise.
4458
4459 2013-10-16 Hiroyuki YAMAMORI
4460
4461 Handle Japanese special keys.
4462 Reported by: Hiroyuki YAMAMORI.
4463 Codes supplied by: Hiroyuki YAMAMORI.
4464
4465 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4466
4467 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4468
4469 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4470
4471 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4472 * docs/grub.texi: Likewise.
4473
4474 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4477 value in case of incomplete read.
4478 (grub_util_fd_write): Likewise.
4479
4480 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4483
4484 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4485
4486 * util/grub-editenv.c (create_envblk_file): More from here ...
4487 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4488
4489 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4490
4491 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4492 canonicalize file name before doing the rest.
4493
4494 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4497 mingw32.
4498
4499 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 Define grub_util_is_directory/regular/special_file and
4502 use OS-dependent versions rather than to rely on stat().
4503
4504 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 * util/grub-mkimage.c: Move backend part to ...
4507 * util/mkimage.c: ... here.
4508
4509 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 Allow compilation with mingw64 albeit with warnings due to lack of
4512 %llx/%llu.
4513
4514 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4515 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4516 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4517 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4518 on mingw64.
4519 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4520
4521 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 Remove leftover references to some of the system headers.
4524
4525 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4528 read.
4529
4530 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4533 of strerror.
4534
4535 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 Split out blocklist retrieving from setup.c to
4538 grub-core/osdep/blocklist.c and add windows implementation since
4539 generic version doesn't work on NTFS on Windows due to aggressive
4540 unflushable cache.
4541
4542 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4545 files.
4546
4547 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4550 Cut tailing newline. Remove arbitrary limitation. Always use
4551 grub_util_tchar_to_utf8.
4552
4553 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4556 * tests/printf_unit_test.c (printf_test): Add %% tests.
4557 Reported by: Paulo Flabiano Smorigo.
4558
4559 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4562 implement fsync.
4563
4564 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4567 use nvlist_lookup_string and don't use nvlist_print.
4568
4569 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4572 closedir to handle filename charset translation.
4573
4574 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * include/grub/emu/hostdisk.h: Move file operations to
4577 * include/grub/emu/hostfile.h: ... here.
4578
4579 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4582 unicode path.
4583
4584 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4587
4588 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4591 and remove export.h.
4592
4593 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/kern/emu/error.c: Removed.
4596 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4597 explicitly as it's already in libgnu.a.
4598
4599 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4602 config-util.h include.
4603
4604 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4605
4606 Split emunet into platform-dependent and GRUB-binding parts. Keep
4607 platform-dependent part in kernel for easy access to OS functions.
4608
4609 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4612 open/read/write.
4613
4614 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/osdep/windows/emuconsole.c: New file.
4617
4618 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4619
4620 * conf/Makefile.extra-dist: Add osdep/*/init.c
4621
4622 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4625
4626 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * util/grub-probe.c (probe): Separate different drives in hint-str
4629 by spaces and not newlines.
4630 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4631
4632 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4633
4634 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4635 Handle CD-ROMs.
4636
4637 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 Pass-through unknown E820 types. It required reorganisation of mmap
4640 module.
4641
4642 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4643
4644 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4645
4646 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4649 fseeko.
4650
4651 2013-10-14 qwertial <qwertial>
4652
4653 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4654
4655 2013-10-14 Jon McCune <jonmccune@google.com>
4656
4657 * docs/grub.texi: Document new signatures possibility.
4658
4659 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4662
4663 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4666 missing prototype.
4667 (grub_util_tchar_to_utf8): Likewise.
4668
4669 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4670
4671 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4672 * grub-core/kern/emu/main.c: Add missing include.
4673 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4674 Don't call grub_util_init_nls.
4675 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4676 Likewise.
4677
4678 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4681 stat.
4682
4683 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4686
4687 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4690
4691 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 Add a wrapper for fopen. On unix-like systems just pass-through. On
4694 windows use unicode version.
4695
4696 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 Move set_program_name and init_nls to host_init. On windows
4699 fix in this fuction console and argument charset as well.
4700
4701 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4702
4703 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4704 GRUB_ENABLE_CRYPTODISK.
4705
4706 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4707 GRUB_ENABLE_CRYPTODISK.
4708 * util/grub-mkconfig_lib.in: Likewise.
4709
4710 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4711
4712 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4713
4714 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4715
4716 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4717 error when enabling debug.
4718
4719 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4720
4721 * configure.ac: Use -melf_*_obsd on openbsd.
4722
4723 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4726
4727 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 * include/grub/misc.h: Use gnu_printf rather than printf as format
4730 template since our functions are independent of libc.
4731
4732 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * util/grub-setup.c (setup): Move copying of partition table as
4735 futher up as possible to avoid possible overwrite by floppy routines.
4736
4737 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4740
4741 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4742
4743 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4744 * docs/grub.texi: Likewise.
4745
4746 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4749 it's mostly unused. Move vestiges to the callers.
4750
4751 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4754 version of salt and hash. Use grub_snprintf rather than snprintf.
4755
4756 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * docs/grub.texi: Fix problem with braces.
4759
4760 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * conf/Makefile.extra-dist: Fix extra-dist list.
4763 * grub-core/Makefile.core.def: Likewise.
4764
4765 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * docs/grub.texi: Document disk names used on Windows and AROS.
4768
4769 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4772 with AROS devs.
4773 * grub-core/osdep/aros/hostdisk.c: Likewise.
4774
4775 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Avoid including hostfile.h when not necessarry as it pulls
4778 in OS-specific headers which may redefine generic names
4779 like "far".
4780
4781 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4782
4783 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4784 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4785 scrollbar_bottom_pad
4786 * docs/grub.texi: Likewise.
4787
4788 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4789
4790 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4791
4792 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4795
4796 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4799 Removed.
4800 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4801 Made static.
4802
4803 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4806 leftover.
4807
4808 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 Move OS-specific driver configuration to grub_util_fd_open. This
4811 moves OS-dependent parts from kern/emu/hostdisk.c to
4812 grub-core/osdep/*/hostdisk.c.
4813
4814 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * util/grub-mkimage.c (generate_image): Use size_t instead of
4817 grub_size_t.
4818 * util/grub-mkimagexx.c (locate_sections): Likewise.
4819 (load_image): Likewise.
4820
4821 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4824 size_t.
4825 (grub_util_write_image): Likewise.
4826
4827 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4830 get random when no RNG is available.
4831 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4832
4833 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 * include/grub/util/lvm.h: Removed.
4836
4837 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4840 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4841
4842 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4845
4846 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4849
4850 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 * grub-core/net/drivers/emu/emunet.c: Move to ..
4853 * grub-core/osdep/linux/emunet.c: ..here.
4854
4855 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 * util/ieee1275/ofpath.c: Move to ...
4858 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4859 * grub-core/osdep/basic/ofpath.c: ..here.
4860
4861 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 Move password-querying (util-version) routines to grub-core/osdep.
4864
4865 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 Move sleep routines to grub-core/osdep.
4868
4869 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 Move OS-dependent files to grub-core/osdep and document it.
4872
4873 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4876 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4877
4878 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4881
4882 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * util/misc.c: Remove leftover inclusion of malloc.h.
4885
4886 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * include/grub/setjmp.h: Remove leftover GRUBOF.
4889
4890 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * util/raid.c: Fold into ...
4893 * util/getroot_linux.c: ... here. Make all functions static.
4894
4895 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4898 macros to GRUB ones.
4899
4900 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4901
4902 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4903 occasional bug. If there are too many boot entries or too low
4904 scrollbar height then we need to use another formula to calculate
4905 the position and size of the scrollbar thumb.
4906
4907 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4910
4911 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4912
4913 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4914 * docs/grub.texi: Likewise.
4915
4916 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4917
4918 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4919 viewport.
4920
4921 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4922
4923 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4924 minimal width calculations.
4925
4926 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * docs/grub.texi: Update note on colors on emu console.
4929
4930 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4933 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4934 it's FS and not GRUB limitation.
4935
4936 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4939
4940 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4943
4944 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4945
4946 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4947 kernels by version order.
4948
4949 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4952
4953 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 Add AROS hostdisk and getroot routines.
4956
4957 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 Make cryptodisk and diskfilter probe data retrievable programmatically
4960 and not just printable.
4961
4962 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 Split random retrieving code into separate files.
4965
4966 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4969 R_ARM_V4BX.
4970
4971 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4974 condition.
4975 * grub-core/tests/fake_input.c: Likewise.
4976 * grub-core/tests/cmdline_cat_test.c: Likewise.
4977
4978 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 * grub-core/video/capture.c: Do not do finalization when .fini
4981 is called as there is explicit capture_end.
4982
4983 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4984
4985 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
4986 changing windows to avoid crash.
4987
4988 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4989
4990 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
4991
4992 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * po/exclude.pot: Add several strings to exclude.
4995
4996 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
4999
5000 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5003 ./util/grub-gen-asciih.c to exclude list.
5004
5005 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5008 and don't mark error strings for translation.
5009
5010 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5013 properly in case of missing block size.
5014
5015 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/lib/arm/setjmp.S: Add missing license section.
5018
5019 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * po/swiss.sed: Add replacement for key names and for term computer.
5022
5023 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5024
5025 * grub-core/gfxmenu/theme_loader.c: New global options for the
5026 theme background image handling. desktop-image-scale-method,
5027 desktop-image-h-align, desktop-image-v-align.
5028 * grub-core/gfxmenu/view.c: Likewise.
5029 * include/gfxmenu_view.h: Likewise.
5030 * include/bitmap_scale.h: Proportional scale functions introduced.
5031 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5032 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5033 cases of unexpected input variables for scale functions.
5034 * docs/grub.texi: Updated documentation for new options.
5035
5036 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5037
5038 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5039
5040 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5041
5042 * grub-core/tests/checksums.h: Corrected due to changes in
5043 bilinear interpolation function.
5044
5045 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5046
5047 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5048 to eliminate artefacts in bilinear interpolation.
5049
5050 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * grub-core/video/readers/tga.c: Support paletted tga.
5053
5054 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5057 incorrect cbcr setting when in color mode.
5058
5059 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5060
5061 * grub-core/video/readers/png.c: Support paletted images and clean up
5062 greyscale support.
5063
5064 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5067 usage of wrong table which resulted in mishandling of 4-byte
5068 sequences.
5069
5070 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * grub-core/term/terminfo.c: Add Home and End key sequences.
5073
5074 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5077 Fix formula for computing total number of bytes.
5078
5079 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5082 image processing, fix big-endian and support grayscale.
5083
5084 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5087 Correctly will with maximum transparency when using index color.
5088
5089 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * grub-core/video/readers/png.c: Support grayscale
5092
5093 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 * grub-core/video/readers/jpeg.c: Support grayscale.
5096
5097 2013-09-26 Jon McCune <jonmccune@google.com>
5098
5099 * grub-core/commands/loadenv.c: Support skipping signature check
5100 and variable names filtering.
5101
5102 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5105 * grub-core/kern/emu/hostfs.c: Likewise.
5106 * util/getroot_unix.c: Likewise.
5107
5108 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5111 Migrate all explicit defines to this new one.
5112
5113 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5116 grub_util_fd_strerror when using grub_util_fd_*.
5117 (grub_util_fd_open_device): Likewise.
5118 (grub_util_biosdisk_read): Likewise.
5119 (grub_util_biosdisk_write): Likewise.
5120 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5121 (grub_util_fd_strerror): Likewise.
5122 (grub_util_fd_sync): Likewise.
5123 (grub_util_fd_close): Likewise.
5124 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5125 (grub_util_fd_close): Likewise.
5126 (grub_util_fd_strerror): Likewise.
5127 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5128 function proto rather than macro.
5129 (grub_util_fd_sync): Likewise.
5130 (grub_util_fd_open): Likewise.
5131 (grub_util_fd_strerror): New proto.
5132
5133 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5136 platforms on which it doesn't work.
5137
5138 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5141 stat immediately to where it's used.
5142
5143 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * util/getroot.c (grub_util_check_block_device): Move to ...
5146 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5147 * util/getroot.c (grub_util_check_char_device): Move to ...
5148 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5149
5150 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5153 disk closing logic.
5154
5155 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5156
5157 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5158
5159 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5160
5161 * docs/grub.texi (File name syntax): Document ZFS filenames
5162 (/volume@snapshot/...).
5163
5164 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5167 Always return full path. Fixes a problem with mkrelpath.
5168
5169 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5170
5171 * util/grub-install.in: Add GPT PReP support.
5172 * util/grub-probe.c (probe): Support GPT partition type.
5173 (main): Support -t gpt_parttype.
5174
5175 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5176
5177 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5178
5179 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5180
5181 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5182
5183 2013-09-23 Tim Hardeck <thardeck>
5184
5185 * util/grub.d/10_hurd.in: Filter out character for the class.
5186 * util/grub.d/10_kfreebsd.in: Likewise.
5187 * util/grub.d/10_linux.in: Likewise.
5188 * util/grub.d/20_linux_xen.in: Likewise.
5189
5190 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5191
5192 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5193 "changed".
5194
5195 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5196
5197 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5198 boot partition.
5199
5200 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5203 doesn't use posix_wrap. Keep literal -fno-builtin however.
5204
5205 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5206
5207 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5208
5209 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5210 2013-09-23 neil
5211
5212 * configure.ac: Do not enable -Wmissing-noreturn as its
5213 usefulness is limited and creates problems on some OS notably with
5214 code generated by bison.
5215
5216 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5217 2013-09-23 neil
5218
5219 * configure.ac: Do not explicitly enable -Waddress as it's not
5220 supported by all gcc and when it is, it's already enabled by -Wall.
5221
5222 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5225 desactivated use of EDID at all.
5226
5227 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5228 2013-09-23 neil
5229
5230 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5231 video if no text is available.
5232
5233 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5234 2013-09-23 neil
5235
5236 * configure.ac: Substitute TARGET_RANLIB.
5237
5238 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5239 2013-09-23 neil
5240
5241 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5242
5243 Based on patches from AROS.
5244
5245 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5246 2013-09-23 neil
5247
5248 * grub-core/Makefile.am: Override STRIP and RANLIB.
5249 * configure.ac: compute TARGET_RANLIB.
5250 * INSTALL: Document TARGET_RANLIB
5251
5252 Based on patches from AROS.
5253
5254 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5257 that floppies are unpartitioned.
5258
5259 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5262 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5263
5264 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5265
5266 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5267 less nice but more portable.
5268 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5269
5270 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5273 for cheat_fd.
5274 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5275 functions.
5276 (grub_cryptodisk_cheat_insert): Likewise.
5277 (grub_cryptodisk_close): Likewise.
5278
5279 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5282 Use windows path for DEFAULT_DIRECTORY.
5283
5284 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5287 difference was likely just gcc version, not anything mingw-related.
5288
5289 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 Use Winapi on both cygwin and mingw32 to share more code between both.
5292
5293 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5294
5295 * util/grub-install.in: Add --grub-editenv option.
5296 * util/grub-install_header (grub_compress_file): Explicitly check for
5297 plain file to avoid cp error.
5298
5299 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5300
5301 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5302 names; fix LVM driver name (lvm, not lv).
5303 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5304 names.
5305
5306 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5309 files rather than one file with loads of #if's.
5310 * util/getroot.c: Likewise.
5311
5312 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5315
5316 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5319 GNU/Hurd to the list of checked PRNG.
5320
5321 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5322
5323 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5324
5325 2013-09-21 Ales Nesrsta <starous@volny.cz>
5326
5327 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5328
5329 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5332 * grub-core/disk/lvm.c: Add LVM UUIDs.
5333 * util/getroot.c: Use LVM UUIDs whenever possible.
5334
5335 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5336
5337 * docs/grub.texi (Networking commands): Add documentation for
5338 network related commands.
5339
5340 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5341
5342 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5343 to determine if device is handled by devmapper.
5344 (convert_system_partition_to_system_disk): Likewise.
5345 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5346 already done in grub_util_open_dm.
5347
5348 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5349
5350 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5351 Clean up stack manipulation (sync_caches_armv*)
5352
5353 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * util/lvm.c: Remove since unused. Remove remaining references.
5356
5357 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 Handle the case of partitioned LVM properly.
5360
5361 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5362 Stop on meeting LVM, mpath or DMRAID.
5363 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5364 (read_device_map): Likewise.
5365 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5366 device is full disk rather than erroring out on LVM and similar cases.
5367
5368 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5371
5372 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5375 4K before the end.
5376 Reported by: Leif Lindholm
5377
5378 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5379 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5382 codes.
5383
5384 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5385
5386 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5387 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5388
5389 2013-09-18 Douglas Ray <dougray@cpan.org>
5390
5391 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5392 as secure.
5393
5394 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5395
5396 * docs/grub.texi: Fix broken link.
5397
5398 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5399
5400 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5401 to break endless loop.
5402
5403 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * util/grub-fstest.c: Fix several printf formats.
5406 * util/grub-mkimage.c: Likewise.
5407 * util/grub-mkimagexx.c: Likewise.
5408 * util/grub-script-check.c: Likewise.
5409
5410 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5413 error.
5414
5415 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5416
5417 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5418
5419 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5422 removed in current versions cygwin_conv_*.
5423
5424 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * configure.ac: Disable efiemu runtime on cygwin.
5427
5428 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5431 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5432
5433 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5436 error message.
5437
5438 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5439
5440 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5441 windows variant.
5442 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5443 data.
5444
5445 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5448 when on x86 and not cygwin.
5449 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5450 -Wl,-melf_x86_64.
5451
5452 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * configure.ac: Set CPP to build one when checkoing for freetype for
5455 build.
5456
5457 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5460 [!GRUB_BUILD]: Remove has_argument.
5461
5462 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5465 Replace with a dummy.
5466
5467 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * configure.ac: Don't change host_os from mingw to cygwin.
5470
5471 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * configure.ac: Change target_os from windows to cygwin.
5474
5475 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5478
5479 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5480 (build-grub-gen-asciih): Likewise.
5481 (build-grub-gen-widthspec): Likewise.
5482 * Makefile.util.def (grub-pe2elf): Remove.
5483 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5484 * configure.ac: Separate tests for build.
5485 Move ./build-grub-pe2elf to grub-core.
5486 Fix typo.
5487 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5488 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5489 defined.
5490 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5491 constants.
5492 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5493 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5494 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5495
5496 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5499 mingw32 as well based on grub_util_get_disk_size.
5500 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5501 grub_util_get_fd_size.
5502 (sync): Removed.
5503 (fsync): Moved to ...
5504 * grub-core/kern/emu/misc.c (fsync): ... here.
5505
5506 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * include/grub/mm.h (grub_extend_alloc): Remove.
5509 * grub-core/loader/i386/pc/plan9.c: Use own version of
5510 grub_extend_alloc with appropriate types.
5511
5512 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5515
5516 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5519
5520 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 Fix dependencies on cygwin.
5523
5524 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5525 dependencies when used and defined.
5526 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5527
5528 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5531 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5532
5533 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5536 implementation available to cause compile-time rather than runtime
5537 error.
5538
5539 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * util/grub-fstest.c: Don't check for symlinks on windows.
5542
5543 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5544
5545 * INSTALL: Mention unavailability of man pages when cross-compiling.
5546
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5550 and gcry_log_bug.
5551 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5552
5553 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * INSTALL: Document cross-compilation.
5556 * acinclude.m4: Determine whether nm support -P and --defined-only.
5557 * configure.ac: Add TARGET_ to all variables pertaining to target
5558 that don't have it yet.
5559 * gentpl.py: Likewise.
5560 * grub-core/Makefile.am: Likewise.
5561 * grub-core/genmod.sh.in: Likewise.
5562 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5563 as well.
5564
5565 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5566
5567 * configure.ac: Remove -Wempty-body. It's not essential and needs
5568 recent gcc.
5569
5570 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5571
5572 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5573 * util/getroot.c: Likewise.
5574
5575 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5576
5577 * grub-core/disk/ahci.c: Add needed explicit cast.
5578 * grub-core/lib/backtrace.c: Likewise.
5579 * grub-core/net/ip.c: Likewise.
5580 * grub-core/net/tcp.c: Likewise.
5581 * grub-core/net/udp.c: Likewise.
5582
5583 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5586
5587 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * util/import_gcry.py: Add final newline in visibility.h.
5590
5591 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * conf/Makefile.common: Fix typo.
5594
5595 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5598
5599 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5600
5601 * Makefile.am (widthspec.h): Fix typo.
5602 * util/grub-gen-widthspec.c: Likewise.
5603
5604 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 Move ascii.h and widthspec.h generation to a separate build-time-only
5607 tool.
5608
5609 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5610
5611 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5612 Always fill bootdisk info and improve check for NetBSD disklabel.
5613
5614 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5615
5616 * conf/Makefile.extra-dist: Add util/bin2h.c.
5617 Reported by: floppym.
5618
5619 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5622
5623 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5624
5625 * configure.ac: Disable unifont and starfield if no freetype was found.
5626
5627 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5630 on NetBSD and OpenBSD.
5631
5632 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5633
5634 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5635
5636 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5637
5638 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5639 reduced. Inheritant options are processed during the theme loading.
5640
5641 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5642
5643 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5644
5645 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5646
5647 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5648
5649 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5650
5651 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5652 using qemu.
5653
5654 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5655
5656 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5657 remove-potcdate.sed.
5658
5659 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5660
5661 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5662 unused attribute from pull argument.
5663
5664 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5665
5666 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5667 memory leak.
5668
5669 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5670
5671 * util/getroot.c (pull_lvm_by_command): add --separator option
5672 to vgs call to disable padding of output to 10 characters.
5673
5674 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5677 here ...
5678 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5679 here.
5680
5681 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5684 length.
5685
5686 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5689 full Canadian cross. Tested with build=x86_64, host=arm,
5690 target=ppc-ieee1275.
5691
5692 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * configure.ac: Error if no $BUILD_CC could be found.
5695 Reported by: DevHC.
5696
5697 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5700 i386-multiboot.
5701
5702 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5705 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5706
5707 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5708
5709 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5710 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5711 falling back to the partition device, otherwise a later call to this
5712 function may fail spuriously.
5713 Reported by Axel Beckert. Fixes Debian bug #708614.
5714
5715 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5716
5717 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5718
5719 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5720
5721 Prevent shadowing of stdlib's devname(3) on BSD.
5722
5723 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5724 and devlast to diskname and disklast, respectively.
5725
5726 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5727
5728 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5729
5730 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5731
5732 * docs/grub.texi: Introduce terminal window position options:
5733 terminal-left: terminal window's left position
5734 terminal-top: terminal window's top position
5735 terminal-width: terminal window's width
5736 terminal-height: terminal window's height
5737 terminal-border: terminal window's border width
5738 * grub-core/gfxmenu/theme-loader.c: Likewise.
5739 * include/grub/gfxmenu_view.h: Likewise.
5740 * po/exlude.pot: Likewise.
5741 * grub-core/gfxmenu/view.c: Likewise.
5742 Also updated minimal window size.
5743 Also terminal_sanity_check function has been introduced.
5744 * grub-core/tests/checksums.h: Update (terminal window height
5745 is adjusted now for low resolution screen)
5746
5747 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5750 position).
5751
5752 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * po/exclude.pot: Add few recent exceptions.
5755
5756 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * tests/grub_func_test.in: Add unicode.pf2.
5759
5760 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5763 standard rather than noral color, in line with other terminals.
5764
5765 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5768 analysis.
5769
5770 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5773
5774 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5777 inappropriate printf.
5778
5779 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5780
5781 * .bzrignore: Remove grub-core/lib/dtc-grub,
5782 grub-core/Makefile.libfdt.def
5783 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5784
5785 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 * include/grub/video.h (grub_video_register): Keep double-linked as
5788 well as single-linked invariants.
5789 Reported by: qwertial.
5790
5791 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 * grub-core/commands/nativedisk.c (get_uuid): Handle
5794 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5795
5796 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5797
5798 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5799 maximum of NW, N, NE heights instead of N's height and maximum of
5800 NW, W, SW widths instead of W's width. (So the box will be always
5801 correctly drawn)
5802
5803 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5804
5805 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5806 Fix misuse of variable count.
5807
5808 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5809 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5810 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 New ports to arm-uboot and arm-efi.
5813 Mostly by Leif Lindholm with some additions from
5814 Francesco Lavra and cleanup by Vladimir Serbinenko.
5815
5816 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5819 and not before.
5820 Reported by: Leon Drugi.
5821
5822 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5825 Reported by: Paulo Flabiano Smorigo.
5826
5827 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5828
5829 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5830
5831 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5832
5833 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5834
5835 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5838
5839 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5840
5841 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5842
5843 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5844
5845 * grub-core/net/bootp.c: Export net_* variables.
5846 * grub-core/net/net.c: Likewise.
5847
5848 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5851
5852 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5853
5854 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5855
5856 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5859
5860 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5861
5862 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5863
5864 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5865
5866 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5867 <= 0.
5868
5869 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5870
5871 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5872 functions.
5873
5874 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5875
5876 * grub-core/fs/zfs/zfs_lz4.c: New file.
5877 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5878
5879 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5880
5881 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5882
5883 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5884
5885 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5886 (check_pool_label): Likewise.
5887 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5888
5889 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5890
5891 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5892
5893 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5894
5895 * docs/grub.texi (Commands): Document postition parameters
5896 for menuentry command.
5897
5898 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5899
5900 * util/grub-mknetdir.in: Remove stray line from help output.
5901
5902 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 Remove early sm712 init as there is no reason for it (the "watchdog"
5905 effect was due to wrong GPIO map).
5906
5907 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/commands/pcidump.c: Remove static variables.
5910
5911 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5914
5915 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 * configure.ac: Move delimiter after the infos.
5918
5919 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5922
5923 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5926 not filling whole 8x16 space.
5927
5928 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5931
5932 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * configure.ac: Indicate which liblzma is used if any.
5935
5936 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5937 2013-06-21 Craig Sanders <savannah@taz.net.au>
5938
5939 * util/grub-reboot.in: Document submenu usage.
5940
5941 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5942
5943 * .bzrignore: Update with a number of new test-related files.
5944
5945 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5946
5947 * util/grub-script-check.c: Fail on scripts containing no
5948 commands, to guard against corrupted grub-mkconfig setups that
5949 produce no useful output.
5950 * tests/grub_script_no_commands.in: New test.
5951 * Makefile.util.def (grub_script_no_commands): Add.
5952 Reported by Hans Putter. Fixes Debian bug #713886.
5953
5954 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5955
5956 * grub-core/disk/diskfilter.c: Forgot to remove comment
5957 from previous commit.
5958
5959 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5960
5961 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5962 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5963
5964 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5965
5966 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5967
5968 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5969
5970 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5971 rescan diskfilter devices until nothing new is found.
5972
5973 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5976
5977 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 Don't try to detect cbfs on *-emu.
5980
5981 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5982
5983 * grub-core/term/gfxterm.c: USe right background color when scrolling.
5984
5985 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5986
5987 Add support for processed coreboot payload chainloading.
5988
5989 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 Enable coreboot information commands even when not loaded as
5992 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
5993
5994 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5995
5996 Support for cbfs. Also factor out the part which is common
5997 for all archives to a separate module. This splits tar from cpio
5998 as they are very different but keeps cpio, cpio_be, odc and newc
5999 together since they're very similar.
6000
6001 2013-06-15 David Michael <fedora.dm0@gmail.com>
6002
6003 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6004 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6005
6006 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * tests/grub_script_eval.in: Really add the eval test.
6009
6010 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 Move flavour-specific parts out of common cpio.c file and
6013 rename remaining to cpio_common.c
6014
6015 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6016
6017 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6018 off new function grub_script_execute_new_scope. Change callers to use
6019 either of them as appropriate.
6020 * grub-core/commands/eval.c: New command eval.
6021 * docs/grub.texi (Commands): Document it.
6022
6023 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6024
6025 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6026 to fetch values when listing.
6027
6028 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6029
6030 Fix make dist on non-pc.
6031
6032 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6033
6034 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6035 without a device name.
6036
6037 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 Remove enable_executable_check as it's not needed anymore.
6040 Reported by: dougray.
6041
6042 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6045 ambigouos RAID before discovering RAIDs on top of it.
6046 Reported by: bodom.
6047
6048 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 Fix typo (failback vs fallback).
6051
6052 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6053
6054 * util/grub.d/30_os-prober.in: Add support for probing EFI
6055 System Partition (as of os-prober 1.58).
6056
6057 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * configure.ac: Add yet another path to unifont. For parabola.
6060
6061 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6062
6063 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6064 handling to copy the killed characters to the kill buffer as
6065 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6066 stored as char. Eliminates UCS4 truncation and corruption
6067 observed when killing characters with Ctrl-u and yanking them
6068 back with Ctrl-y.
6069
6070 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 Detach optional parts of gfxterm and integrate in with coreboot init.
6073
6074 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 Move blit and fill dispatcher to appropriate files to decrease export
6077 and relocation overhead.
6078
6079 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6080
6081 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6082 functions.
6083
6084 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6085
6086 * grub-core/Makefile.am: Fix compilation problem with some
6087 automake versions.
6088
6089 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6092
6093 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6096 automake versions.
6097
6098 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6101 SSDT.
6102
6103 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6104
6105 * grub-core/partmap/dfly.c: New partition map.
6106
6107 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6110 checking.
6111 Reported by: Francesco Lavra.
6112
6113 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6114
6115 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6116 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6117 false conditions.
6118 * conf/Makefile.common: define dist_grubconf_DATA
6119
6120 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 Progressively skip menu elements on small terminals rather
6123 than crashing.
6124
6125 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6128 to avoid losing last column.
6129
6130 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 * po/exclude.pot: Add missing string "%C".
6133
6134 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6137 after the test.
6138
6139 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * util/grub-install.in: Gettextize "Not found" message.
6142
6143 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 Fix distfiles list.
6146 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6147
6148 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6149
6150 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6151 present.
6152 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6153
6154 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6157
6158 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6161 attribute since structure is not necessarily aligned.
6162
6163 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6164
6165 * docs/grub.texi (Device syntax): Clarify description of network
6166 drives.
6167
6168 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6171 for vasprintf presence.
6172
6173 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * util/grub-install.in: Handle efibootmgr presence check.
6176 Reported by: Leif Lindholm.
6177
6178 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6181 new strings to translate.
6182
6183 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6186 yet another string (pun intended) to translate.
6187
6188 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * po/POTFILES-shell.in: Autogenerate it.
6191
6192 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6195
6196 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6199 misnomer.
6200
6201 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6202
6203 * docs/grub.texi (Network): Add description of net_default_interface,
6204 net_default_ip and net_default_mac. Rewrite variables description
6205 to emphasize that they are per-interface.
6206
6207 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 New test: cmdline and cat.
6210
6211 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 * grub-core/commands/cat.c: Show UTF-8 characters.
6214
6215 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * conf/Makefile.common: Poison float and double on non-emu.
6218
6219 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 * configure.ac: Don't disable extended registers on emu.
6222
6223 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * configure.ac: Don't use extended registers on x86_64.
6226 Reported by: Peter Jones.
6227
6228 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * grub-core/term/efi/console.c: Fix compile error.
6231
6232 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 Compressed HFS+ support.
6235
6236 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6237
6238 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6239 pixel".
6240
6241 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 Menu color test.
6244
6245 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6246
6247 * grub-core/tests/setjmp_test.c: New test.
6248
6249 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 New variables 'net_default_*' to determine MAC/IP of default interface.
6252
6253 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * tests/gettext_strings_test.in: A test to check for strings not
6256 marked for translation.
6257
6258 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * autogen.sh: Exclude unused libgcrypt files from translation.
6261
6262 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 Simplify few strings.
6265
6266 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 Mark few forgotten strings for translation.
6269
6270 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6273 rather than printf.
6274
6275 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6278 rather than printf.
6279 * grub-core/video/readers/tga.c: Likewise.
6280
6281 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * tests/priority_queue_unit_test.cc: New test.
6284
6285 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6288 than printf.
6289
6290 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6291
6292 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6293 variable for one time boot menu entry.
6294
6295 2013-05-05 Bean <bean123ch@gmail.com>
6296
6297 * grub-core/commands/testspeed.c: New command testspeed.
6298
6299 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 Factor-out human-size printing.
6302
6303 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 Agglomerate more mallocs to speed-up gfxterm.
6306
6307 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 Speed-up gfxterm by slightly agglomerating mallocs.
6310
6311 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 More video checks.
6314
6315 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6316
6317 Speed-up gfxterm by saving intermediate results in index+alpha
6318 format.
6319
6320 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6321
6322 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6323 test.
6324
6325 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6328 line of timeout as it may contain the rest of long line.
6329
6330 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 * grub-core/normal/main.c: Fix freed memory dereference.
6333
6334 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 Fix several memory leaks.
6337
6338 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6341
6342 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6345
6346 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 Fix test -a and -o precedence.
6349 Reported by: adrian15.
6350
6351 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6354
6355 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6356
6357 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6358 and add it as source to functional_test module.
6359
6360 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6363
6364 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 New series of tests for gfxterm and gfxmenu.
6367
6368 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6371 the theme path relative to $prefix/themes.
6372
6373 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6376 Fix order bug.
6377 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6378
6379 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6382 descriptor.
6383
6384 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6387 grub_gfxmenu_timeout_notifications.
6388 (grub_gfxmenu_view_destroy): Likewise.
6389
6390 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6391
6392 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6393
6394 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 Several fixes to ieee1275 and big-endian video.
6397
6398 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 Add missing exports on mips.
6401
6402 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6405 if no unifont is found.
6406 Restore original keyboard.
6407
6408 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6411 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6412
6413 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 First automated video test (running videotest and comparing results)
6416
6417 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6420 instead of 2 to have full RGB/CMY test pattern.
6421
6422 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 Add few more tests.
6425
6426 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6429 ARCS. All users updated.
6430
6431 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6434
6435 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6438
6439 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6442 Reported by: qwertial.
6443
6444 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6445
6446 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6447 with syntax "XXX deg"/"XXX °".
6448
6449 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 Make PCI init in i386-qemu port more robust.
6452
6453 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6454
6455 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6456 cached view is reused.
6457 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6458 open boot menus.
6459
6460 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 Unify more code in grub-install_header.
6463
6464 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 Add few new tests.
6467
6468 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 Enforce disabling of firmware disk drivers when native drivers kick in.
6471
6472 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * grub-core/commands/nativedisk.c: Customize the list of modules on
6475 platform. Don't try to search for disks already using native drivers.
6476
6477 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6480 platforms.
6481
6482 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6485 handling of variables containing backslash.
6486
6487 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6490 dereference.
6491 Reported by: qwertial.
6492
6493 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6496
6497 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6500 dereference.
6501 Reported by: qwertial.
6502
6503 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6506
6507 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6510
6511 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 New command `nativedisk'.
6514
6515 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6518 * grub-core/loader/i386/bsd.c: Likewise.
6519
6520 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6523
6524 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6527 grub_get_unaligned16 rather than shifts.
6528
6529 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * grub-core/kern/file.c: Use const char * rather than casting to
6532 non-const.
6533
6534 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6535
6536 * grub-core/commands/probe.c: Add missing grub_device_close.
6537
6538 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * INSTALL: Document linguas.sh.
6541
6542 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 Remove POTFILES.in and regenerate it in autogen.sh.
6545
6546 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 Move --directory/--override-directorry to grub-install_header and unify.
6549
6550 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6551
6552 * grub-core/term/morse.c: Macroify dih and dah.
6553
6554 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6555
6556 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6557
6558 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 * grub-core/term/ns8250.c: Systematically probe ports by writing
6561 to SR before using them.
6562
6563 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6564
6565 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6566 disks.
6567 (check_sas): Get sas_adress info.
6568
6569 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6572 ports.
6573
6574 2013-04-27 Leon Drugi <eyak>
6575
6576 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6577 BSS clearing.
6578
6579 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 Core compression test.
6582
6583 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 Implement grub_machine_get_bootlocation for ARC.
6586
6587 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 Improve AHCI detection and command issuing.
6590
6591 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 Fix pseries test.
6594
6595 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6596
6597 Make 'make check' work on emu.
6598
6599 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 Replace libcurses with our own vt100 handling for the ease of testing
6602 and decreasing prerequisites.
6603
6604 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6607
6608 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6611 compile when not needed.
6612
6613 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 * tests/pseries_test.in: New test.
6616
6617 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 Add test to check that different boot mediums work.
6620
6621 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6624 ofw limited ISO support.
6625
6626 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * configure.ac: Fix loongson conditional.
6629
6630 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 Enable mipsel-arc.
6633
6634 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 Add serial on ARC platform.
6637
6638 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6641 commit.
6642
6643 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * tests/partmap_test.in: Add missing double semicolon.
6646
6647 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * util/grub-mkrescue.in: Fix loongson filename.
6650
6651 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * util/grub-mkrescue.in: Move all files that don't have a location
6654 set in stone under /boot/grub. Use ISO hard links rather than copies
6655 to save some space.
6656
6657 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6660 bogus SLOF values.
6661
6662 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 Make check work on mips-arc.
6665
6666 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6667
6668 * util/grub-mkrescue.in: Alias sashARCS as sash.
6669
6670 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6673 it's serial.
6674
6675 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * util/grub-install.in: Fix target fo qemu_mips.
6678 Fix extension on EFI.
6679
6680 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6683 in front of chosen entry to mark it even if highlighting is lost.
6684
6685 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6688 gfxpayload=keep if cbfb is active.
6689
6690 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6693
6694 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 Add missing video ids to coreboot and ieee1275 video.
6697
6698 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * util/grub-mkrescue.in: Add mips-arc support.
6701
6702 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6705
6706 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 Move mips-arc link address. Previous link address was chosen
6709 in belief that RAM on SGI platforms grows down while in fact it
6710 grows up from an unusual base.
6711
6712 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6715 Fix a type which prevented CD-ROM and floppy boot.
6716
6717 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 Support coreboot framebuffer.
6720
6721 * grub-core/video/i386/coreboot/cbfb.c: New file.
6722
6723 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6726 detecting too small regions.
6727
6728 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6731
6732 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6735 Remove dprintf.
6736 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6737
6738 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6741 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6742 * grub-core/loader/powerpc/ieee1275/linux.c
6743 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6744
6745 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6748 Look for /boot-rom as well as /rom/boot-rom.
6749
6750 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6753 handling when creating text_layer failed.
6754 * grub-core/video/video.c (grub_video_create_render_target):
6755 Set result to 0 on error.
6756 (grub_video_delete_render_target): Do not dereference NULL.
6757
6758 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6761 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6762 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6763 (grub_linux_load64): Mask out 2 high bits.
6764
6765 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6766
6767 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6768 more place.
6769
6770 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 Add support for pseries and other bootinfo machines to grub-mkrescue.
6773
6774 Tested by: Paulo Flabiano Smorigo.
6775
6776 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 * util/grub-mkrescue.in: Add GPT for EFI boot.
6779
6780 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6783 It improves performance in qemu.
6784
6785 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * build-aux/snippet: Add missing gnulib files.
6788
6789 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6790
6791 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6792
6793 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6794
6795 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6796
6797 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6798 2013-04-15 Peter Jones <pjones@redhat.com>
6799
6800 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6801 sectors.
6802 Based on patch by Peter Jones.
6803
6804 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 Fix DMRAID partition handling.
6807
6808 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * tests/grub_cmd_date.in: Skip on sparc64.
6811
6812 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6815 firmware error messages.
6816
6817 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6820 source and destination differ.
6821
6822 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6825 detection.
6826
6827 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6830 match config-util.h to avoid warnings and increase compatibility.
6831
6832 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6833 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6834
6835 Add option to compress files on install/image creation.
6836
6837 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * docs/grub-dev.texi: Rearrange menu to match the section order.
6840 Reported by: Bryan Hundven.
6841
6842 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6845
6846 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 Move GRUB out of system area when using xorriso 1.2.9 or later.
6849
6850 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 * tests/grub_cmd_date.in: Add missing exit 1.
6853
6854 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * tests/partmap_test.in: Skip on sparc64.
6857
6858 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6859
6860 Support grub-shell on sparc64.
6861
6862 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 Support mkrescue on sparc64.
6865
6866 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6869 Needed on OpenBIOS due to incomplete device tree.
6870
6871 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6874 would be otherwise excluded.
6875
6876 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6879 Inline name defines used only once.
6880
6881 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 Fix memory leaks in ofnet.
6884 Reported by: Francesco Lavra.
6885
6886 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * docs/man/grub-glue-efi.h2m: Add missing file.
6889
6890 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6893
6894 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 Better support Apple Intel Macs on CD.
6897
6898 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 Replace stpcpy with grub_stpcpy in tools.
6901
6902 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6903
6904 Handle Japanese special keys.
6905 Reported by: Hiroyuki YAMAMORI.
6906 Codes supplied by: Hiroyuki YAMAMORI.
6907
6908 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * util/grub-mkimage.c: Document memdisk implying --prefix.
6911
6912 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6915 much we can do about it anyway.
6916
6917 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6918
6919 Fix handling of split transfers.
6920
6921 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 * grub-core/net/http.c: Fix bad free.
6924
6925 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6928 than buffer size.
6929
6930 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6933
6934 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 * tests/util/grub-shell.in: Fix it on powerpc.
6937
6938 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 Turn off QEMU ACPI-way since new releases don't have shutdown port
6941 anymore.
6942
6943 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * docs/grub.texi: Update coreboot status info.
6946
6947 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * tests/grub_cmd_date.in: New test for datetime.
6950
6951 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * tests/partmap_test.in: Fix missing qemudisk setting.
6954
6955 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 Support i386-ieee1275 grub-mkrescue and make check on it.
6958
6959 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6962 feature for it.
6963
6964 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6967 GRUB_CMDLINE_XEN_DEFAULT.
6968 Reported by: Marc Warne (GigaTux) <gigatux>
6969
6970 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Import new gnulib.
6973
6974 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 Use ACPI shutdown intests as traditional port was removed.
6977
6978 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6979
6980 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6981 distinction.
6982
6983 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
6986 Fix few warining messages and leaks while on it.
6987
6988 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
6989
6990 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
6991 links under grub-core/lib/libgcrypt-grub/mpi.
6992
6993 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6994
6995 Fix ia64-efi image generation on big-endian machines. Deduplicate
6996 some code while on it.
6997 Reported by: Leif Lindholm.
6998
6999 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7000
7001 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7002 as extra_dist.
7003
7004 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7005
7006 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7007
7008 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7009
7010 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7011 texinfo-5.1.
7012
7013 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/normal/term.c: Few more fixes for menu entry editor
7016 rendering.
7017 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7018
7019 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * grub-core/normal/term.c: Few more fixes for menu entry editor
7022 rendering.
7023 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7024
7025 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7026
7027 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7028 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7029
7030 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7031
7032 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7033 instead of hardcoding grub.mo.
7034
7035 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7036
7037 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7038
7039 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7042 grub-core/disk/geli.c.
7043
7044 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 * util/grub-mkfont.c: Prefer enum to #define.
7047
7048 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7051
7052 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7055
7056 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7059
7060 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7063
7064 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * include/grub/bsdlabel.h: Use enums.
7067
7068 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 Move GRUB_CHAR_BIT to types.h.
7071
7072 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7073
7074 * docs/grub.texi: Document more user commands.
7075
7076 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7077
7078 * docs/grub.texi: Document menuentry --id option.
7079
7080 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7081
7082 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7083
7084 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Unify file copying setup across different install scripts. Add
7087 options for performing partial install.
7088
7089 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7090 2013-04-04 Peter Jones <pjones@redhat.com>
7091
7092 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7093
7094 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7095
7096 Use TSC as a possible time source on i386-ieee1275.
7097
7098 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7099
7100 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7101 Init err.
7102
7103 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * util/grub-setup.c (setup): Handle some corner cases.
7106
7107 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7110
7111 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * grub-core/commands/verify.c: Save verified file to avoid it being
7114 tampered with after verification was done.
7115
7116 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7119 reported width by one to compensate for curesor algorithm problem.
7120
7121 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7122
7123 Fix screen corruption in menu entry editor and simplify the code
7124 flow while on it.
7125
7126 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7127
7128 * util/grub-mount.c (fuse_init): Return error if fuse_main
7129 failed.
7130
7131 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7132
7133 * include/grub/elf.h: Add missing ARM relocation codes and fix
7134 existing ones.
7135
7136 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7137
7138 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7139
7140 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7141 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7142
7143 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7144 into account when calculating radius.
7145
7146 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7147
7148 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7149
7150 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7151
7152 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7153
7154 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7155
7156 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7157 missing closing bracket.
7158
7159 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7160
7161 * INSTALL: Mention xorriso requirement.
7162
7163 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7164
7165 * grub-core/commands/verify.c: Fix hash algorithms values for
7166 the first three hashes - they start with 1, not with 0.
7167
7168 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7171 Try terminating EFI services several times due to quirks in some
7172 implementations.
7173
7174 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7175
7176 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7177 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7178 BankField extended opcodes.
7179 (get_sleep_type): Add minimal scope handling (just enough to
7180 handle setting the scope to the root path).
7181 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7182 * include/grub/acpi.h: Add enumeration values for Event, Device,
7183 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7184
7185 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7186
7187 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7188 memory leak.
7189
7190 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 * grub-core/disk/ahci.c: Give more time for AHCI request.
7193
7194 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7197 command.
7198
7199 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 Replace the region at 0 from coreboot tables to available in BSD
7202 memory map.
7203
7204 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7207 non-BIOS platforms.
7208
7209 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7210
7211 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7212 platforms.
7213
7214 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7217 handling of multi-device filesystems.
7218
7219 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7222 platforms.
7223
7224 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 Add new 'proc' filesystem framework and put luks_script into it.
7227
7228 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7231 and qemu.
7232
7233 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7236
7237 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 Add ability to generate newc additions on runtime.
7240
7241 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7244 description.
7245
7246 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 * po/POTFILES.in: Regenerate.
7249
7250 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 * grub-core/commands/verify.c (hashes): Add several hashes
7253 from the spec.
7254
7255 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 Slight improve in USB-related boot-time checkpoints.
7258
7259 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * grub-core/commands/boottime.c: Fix copyright header.
7262
7263 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7266 coreboot tables content. Support for cbmemc.
7267
7268 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 Fix a conflict between ports structures with 2 controllers of
7271 same kind.
7272
7273 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * include/grub/boottime.h: Add missing file.
7276
7277 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 Initialize USB ports in parallel to speed-up boot.
7280
7281 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Fix USB devices not being detected when requested
7284 due to delayed attach.
7285
7286 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 Implement boot time analysis framework.
7289
7290 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 Remove get_endpoint_descriptor and change all functions needing
7293 descriptor to just receive it as argument rather than endpoint
7294 address.
7295
7296 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7297
7298 Better estimate the maximum USB transfer size.
7299
7300 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 Resend a packet if we got the wrong buffer in status.
7303
7304 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7307 multiplication rather than division.
7308
7309 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7312 than divisions.
7313
7314 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7315
7316 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7317 operations to have intended shifts and not divisions.
7318
7319 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7322 intended shifts rather than division.
7323
7324 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7327 computation for some years before epoch. Avode confusing division
7328 while on it.
7329
7330 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/video/i386/pc/vbe.c
7333 (grub_video_vbe_print_adapter_specific_info): Replace division by
7334 shifts.
7335
7336 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7337
7338 Adjust types in gdb module to have intended unsigned shifts rather than
7339 signed divisions.
7340
7341 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7344 maximum size is 4G - 1 on hfs
7345
7346 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7347
7348 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7349
7350 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7353 function.
7354
7355 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7356
7357 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7358 causing gcc error with gcc 4.7.1.
7359
7360 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7361
7362 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7363 dereference null pointer. While the code is technically correct, gcc
7364 may eliminate a null check if pointer is already dereferenced.
7365
7366 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7367
7368 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7369 OOM check.
7370 * grub-core/normal/term.c (read_terminal_list): Likewise.
7371
7372 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7373
7374 Lift up core size limits on some platforms. Fix potential memory
7375 corruption with big core on small memory systems. Document remaining
7376 limits.
7377
7378 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7381 gotoxy to 0,0.
7382
7383 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 Remove all trampoline support. Add -Wtrampolines when
7386 present. Remove symbols used for trampolines to make
7387 link fail if trampolines are present.
7388
7389 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7392 append out of its parent.
7393
7394 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7397 parent.
7398
7399 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7400
7401 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7402 all vars to a macro. All users updated.
7403
7404 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7407 i386-ieee1275.
7408
7409 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7412
7413 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7416
7417 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 Move to more hookless approach in IEEE1275 devices handling.
7420
7421 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7422
7423 * grub-core/kern/term.c (grub_term_normal_color),
7424 (grub_term_highlight_color): Add back lost defaults.
7425
7426 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 Make elfload not use hooks. Opt for flags and iterators instead.
7429
7430 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7433 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7434
7435 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7438
7439 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7442 hook pass-through parameter. All users updated and unnested.
7443
7444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7447 out of its parent.
7448
7449 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 * grub-core/fs/hfs.c: Remove nested functions.
7452
7453 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7456 the context through.
7457 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7458
7459 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * util/grub-editenv.c (list_variables): Move print_var out of its
7462 parent.
7463
7464 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7467 function.
7468
7469 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/gentrigtables.c: Make tables const.
7472
7473 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 Remove nested functions from videoinfo iterators.
7476
7477 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7480 for 64-bit platforms.
7481
7482 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7485 a FOR_CHILDREN macro.
7486
7487 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7490 platform from firmware path.
7491
7492 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 Enable linux16 on non-BIOS systems for i.a. memtest.
7495
7496 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7497 correctly.
7498 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7499
7500 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7503 Fix end of table condition.
7504
7505 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7508 out of its parent.
7509
7510 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/fs/jfs.c: Remove nested functions.
7513
7514 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 * grub-core/fs/minix.c: Remove nested functions.
7517
7518 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/fs/iso9660.c: Remove nested functions.
7521
7522 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7525 of parent function.
7526
7527 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 * util/grub-fstest.c: Remove nested functions.
7530
7531 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * grub-core/loader/machoXX.c: Remove nested functions.
7534
7535 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7536
7537 Remove nested functions from disk and file read hooks.
7538
7539 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7540 (struct grub_disk): Add read_hook_data member.
7541 * include/grub/file.h (struct grub_file): Likewise.
7542 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7543 argument.
7544
7545 Update all callers.
7546
7547 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7548
7549 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7550 Fix off by one error in enumerating extended partitions.
7551
7552 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7553
7554 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7555 memory leak if device name is not found.
7556
7557 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7558
7559 * grub-core/normal/menu_entry.c (update_screen): remove
7560 unused variable `off' which caused scroll down arrow to be always shown.
7561
7562 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7563
7564 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7565 access to unallocated memory.
7566
7567 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7568
7569 * Makefile.util.def: Add partmap/msdos.c to common library.
7570 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7571 * grub-core/disk/ldm.c: Check for existence of
7572 GRUB_PC_PARTITION_TYPE_LDM.
7573
7574 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7577 sizes and display sector size.
7578
7579 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 Implement new command cmosdump.
7582
7583 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7584
7585 Support Openfirmware disks with non-512B sectors.
7586
7587 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7588 size of the disk.
7589 * (grub_ofdisk_get_block_size): New function.
7590 * (grub_ofdisk_prepare): Use the correct block size.
7591 * (grub_ofdisk_read): Likewise.
7592 * (grub_ofdisk_write): Likewise.
7593 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7594 New proto.
7595
7596 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7599
7600 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7603 on first error.
7604
7605 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7606
7607 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7608 freeing it.
7609
7610 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 Implement USBDebug (full USB stack variant).
7613
7614 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7617 unless they have unexpected values.
7618
7619 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7622 grub_print_error.
7623
7624 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7627 zero-out of port structure.
7628
7629 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7630
7631 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7632 of extended attributes.
7633
7634 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7635
7636 * util/grub-install.in: change misleading comment about
7637 device.map creation
7638
7639 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7640
7641 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7642 when menu highlight color isn't set.
7643
7644 2013-01-27 C. Masloch <pushbx@38.de>
7645
7646 Improve FreeDOS direct loading support compatibility.
7647
7648 * include/grub/i386/relocator.h (grub_relocator16_state):
7649 New member ebp.
7650 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7651 variable.
7652 (grub_relocator16_boot): Handle %ebp.
7653 * grub-core/lib/i386/relocator16.S: Likewise.
7654 * grub-core/loader/i386/pc/freedos.c:
7655 Load BPB to pass kernel which partition to load from.
7656 Check that kernel file is not too large.
7657 Set register dl to BIOS unit number as well.
7658
7659 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7660
7661 * util/grub-reboot.in (usage): Document the need for
7662 GRUB_DEFAULT=saved.
7663 * util/grub-set-default.in (usage): Likewise.
7664 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7665
7666 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7667
7668 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7669 than defining WORDS_BIGENDIAN manually.
7670
7671 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7674 invariants.
7675
7676 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7677
7678 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7679 nested.
7680 (blit_comb: add_device_width): Likewise.
7681
7682 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7683
7684 Remove nested functions from USB iterators.
7685
7686 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7687 (grub_usb_controller_iterate_hook_t): Likewise.
7688 (grub_usb_iterate): Add hook_data argument.
7689 (grub_usb_controller_iterate): Likewise.
7690 (struct grub_usb_controller_dev.iterate): Likewise.
7691
7692 Update all implementations and callers.
7693
7694 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7697 margin when not needed.
7698
7699 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 Make color variables global instead of it being per-terminal.
7702
7703 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7706 asterisk.
7707
7708 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7709
7710 Fix powerpc and sparc64 build failures caused by un-nesting memory
7711 map iterators.
7712
7713 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7714
7715 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7716 parameter declarations.
7717
7718 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7721
7722 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 Improve spkmomdem reliability by adding a separator between bytes.
7725
7726 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7727
7728 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7729 an Acer registration utility with several sightings in the wild.
7730 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7731
7732 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7733
7734 Remove nested functions from filesystem directory iterators.
7735
7736 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7737 (struct grub_fs.dir): Add hook_data argument.
7738
7739 Update all implementations and callers.
7740
7741 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7742
7743 * docs/grub.texi (Multi-boot manual config): Fix typo for
7744 "recommended".
7745
7746 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7747
7748 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7749 until after its use in generate_image.
7750
7751 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7752
7753 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7754 initrd size to addr_min, since the initrd will be allocated after
7755 this address.
7756
7757 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7758
7759 * conf/Makefile.common: Fix autogen rules to pass definition
7760 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7761
7762 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7763
7764 * include/grub/elf.h: Update ARM definitions based on binutils.
7765
7766 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7767
7768 Split long USB transfers into short ones.
7769
7770 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7771
7772 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7773 is interrupted by ESC.
7774
7775 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * util/grub-script-check.c (main): Uniform the error message.
7778
7779 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7780
7781 Remove nested functions from ELF iterators.
7782
7783 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7784
7785 Remove nested functions from device iterators.
7786
7787 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7788 (grub_arc_iterate_devs): Add hook_data argument.
7789 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7790 (struct grub_ata_dev.iterate): Add hook_data argument.
7791 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7792 (grub_device_iterate): Add hook_data argument.
7793 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7794 (struct grub_disk_dev.iterate): Add hook_data argument.
7795 (grub_disk_dev_iterate): Likewise.
7796 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7797 Likewise.
7798 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7799 Likewise.
7800 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7801 type.
7802 (struct grub_partition_map.iterate): Add hook_data argument.
7803 (grub_partition_iterate): Likewise.
7804 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7805 (struct grub_scsi_dev.iterate): Add hook_data argument.
7806
7807 Update all callers.
7808
7809 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7810
7811 Fix typos for "developer" and "development".
7812
7813 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 Add license header to spkmodem-recv.c.
7816
7817 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 Rewrite spkmodem to use PIT for timing. Double the speed.
7820
7821 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7822
7823 Add new command pcidump.
7824
7825 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 New terminal outputs using serial: morse and spkmodem.
7828
7829 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 Improve bidi handling in entry editor.
7832
7833 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7836 argument to prevent name collision.
7837
7838 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7839
7840 Remove nested functions from script reading and parsing.
7841
7842 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7843 getline_data argument, passed to getline.
7844 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7845 getline_data argument, passed to grub_parser_split_cmdline.
7846 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7847 lexerstate->getline_data to lexerstate->getline.
7848 (grub_script_lexer_init): Add getline_data argument, saved in
7849 lexerstate->getline_data.
7850 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7851 argument, passed to grub_script_parse.
7852 * grub-core/script/script.c (grub_script_parse): Add getline_data
7853 argument, passed to grub_script_lexer_init.
7854 * include/grub/parser.h (grub_parser_split_cmdline): Update
7855 prototype. Update all callers to pass appropriate getline data.
7856 (struct grub_parser.parse_line): Likewise.
7857 (grub_rescue_parse_line): Likewise.
7858 * include/grub/reader.h (grub_reader_getline_t): Add void *
7859 argument.
7860 * include/grub/script_sh.h (struct grub_lexer_param): Add
7861 getline_data member.
7862 (grub_script_parse): Update prototype. Update all callers to pass
7863 appropriate getline data.
7864 (grub_script_lexer_init): Likewise.
7865 (grub_normal_parse_line): Likewise.
7866
7867 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7868 data argument.
7869 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7870 static instead of nested. Rename to ...
7871 (grub_parser_execute_getline): ... this.
7872 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7873 data argument.
7874 * grub-core/normal/main.c (read_config_file: getline): Make static
7875 instead of nested. Rename to ...
7876 (read_config_file_getline): ... this.
7877 (grub_normal_read_line): Add unused data argument.
7878 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7879 getline): Make static instead of nested. Rename to ...
7880 (grub_script_execute_sourcecode_getline): ... this.
7881 * util/grub-script-check.c (main: get_config_line): Make static
7882 instead of nested.
7883
7884 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7885
7886 Remove nested functions from memory map iterators.
7887
7888 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7889 argument, passed to hook.
7890 * grub-core/kern/i386/coreboot/mmap.c
7891 (grub_linuxbios_table_iterate): Likewise.
7892 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7893 instead of nested.
7894 (grub_machine_mmap_iterate): Add hook_data argument.
7895 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7896 Add hook_data argument, passed to hook.
7897 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7898 Likewise.
7899 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7900 Likewise.
7901 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7902 Likewise.
7903 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7904 Likewise.
7905 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7906 Likewise.
7907 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7908 Likewise.
7909 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7910 (grub_machine_mmap_iterate): Likewise.
7911 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7912 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7913 prototype.
7914 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7915 Remove NESTED_FUNC_ATTR from here and from all users.
7916 (grub_mmap_iterate): Update prototype.
7917 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7918 pass appropriate hook data.
7919 (grub_machine_mmap_iterate): Likewise.
7920
7921 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7922 static instead of nested.
7923 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7924 Rename to ...
7925 (lsmmap_hook): ... this.
7926 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7927 Likewise.
7928 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7929 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7930 heap_init): Likewise.
7931 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7932 Rename to ...
7933 (mmap_iterate_hook): ... this.
7934 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7935 Likewise.
7936 * grub-core/lib/ieee1275/relocator.c
7937 (grub_relocator_firmware_get_max_events: count): Likewise.
7938 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7939 to ...
7940 (grub_relocator_firmware_fill_events_iter): ... this.
7941 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7942 hook): Likewise. Rename to ...
7943 (grub_relocator_alloc_chunk_align_iter): ... this.
7944 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7945 Rename to ...
7946 (generate_e820_mmap_iter): ... this.
7947 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7948 Rename to ...
7949 (count_hook): ... this.
7950 (grub_linux_boot: hook): Likewise. Rename to ...
7951 (grub_linux_boot_mmap_find): ... this.
7952 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7953 (grub_linux_boot_mmap_fill): ... this.
7954 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7955 hook): Likewise. Rename to ...
7956 (grub_fill_multiboot_mmap_iter): ... this.
7957 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7958 hook): Likewise. Rename to ...
7959 (count_hook): ... this.
7960 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7961 hook): Likewise. Rename to ...
7962 (grub_fill_multiboot_mmap_iter): ... this.
7963 * grub-core/loader/powerpc/ieee1275/linux.c
7964 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7965 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7966 Likewise. Rename to ...
7967 (alloc_phys_choose): ... this.
7968 (determine_phys_base: get_physbase): Likewise.
7969 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7970 find_hook): Likewise.
7971 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7972 (malloc_hook: count_hook): Likewise.
7973 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7974 Likewise. Rename to ...
7975 (lower_hook): ... this.
7976 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7977 (upper_hook): ... this.
7978 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7979 (post64_hook): ... this.
7980 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7981 Likewise. Rename to ...
7982 (lower_hook): ... this.
7983 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7984 (upper_hook): ... this.
7985 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
7986 (grub_mmap_iterate: fill_hook): Likewise.
7987 (fill_mask): Pass addr and mask within a single struct.
7988 (grub_cmd_badram: hook): Make static instead of nested. Rename
7989 to ...
7990 (badram_iter): ... this.
7991 (grub_cmd_cutmem: hook): Likewise. Rename to ...
7992 (cutmem_iter): ... this.
7993
7994 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7995
7996 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
7997 delimit path in strings using quotes.
7998 * util/getroot.c (grub_guess_root_devices): Likewise.
7999 (grub_make_system_path_relative_to_its_root): Likewise.
8000 * util/grub-probe.c (probe): Likewise.
8001 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8002 (xrealpath): Likewise.
8003
8004 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 Fix compilation with older compilers.
8007
8008 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8009 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8010 declarations.
8011 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8012 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8013 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8014 identifier with b.
8015 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8016 * include/grub/crypto.h: Add type defines.
8017 * util/import_gcrypth.sed: Remove duplicate type defines.
8018
8019 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 New command list_trusted.
8022
8023 * grub-core/commands/verify.c (grub_cmd_list): New function.
8024
8025 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8026
8027 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8028 info message.
8029
8030 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8031
8032 Remove nested functions from PCI iterators.
8033
8034 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8035 passed to hook. Update all callers to pass appropriate hook data.
8036 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8037 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8038 Remove NESTED_FUNC_ATTR from here and from all users.
8039 (grub_pci_iterate): Update prototype.
8040 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8041 instead of nested. Rename to ...
8042 (grub_cs5536_find_iter): ... this.
8043 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8044 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8045 Likewise.
8046 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8047 Likewise.
8048 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8049 Likewise.
8050 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8051 Likewise.
8052 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8053 * grub-core/video/radeon_fuloong2e.c
8054 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8055 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8056 find_card): Likewise.
8057 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8058 Likewise.
8059
8060 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8061
8062 * grub-core/commands/verify.c: Mark messages for translating.
8063
8064 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8067 fatal.
8068
8069 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8072 fatal.
8073
8074 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8075
8076 * autogen.sh: Do not try to delete nonexistant files.
8077 * util/import_gcrypth.sed: Add some missing header removals.
8078
8079 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8080
8081 Clean up dangling references to grub-setup.
8082 Fixes Ubuntu bug #1082045.
8083
8084 * docs/grub.texi (Images): Refer generally to grub-install rather
8085 than directly to grub-setup.
8086 (Installing GRUB using grub-install): Remove direct reference to
8087 grub-setup.
8088 (Device map) Likewise.
8089 (Invoking grub-install): Likewise.
8090 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8091 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8092 * util/grub-install.in (usage): Likewise.
8093
8094 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8095 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8096 grub-setup.
8097 * configure.ac: Remove grub_setup output variable.
8098
8099 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8100 to grub-bios-setup.
8101 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8102 grub-setup to grub-sparc64-setup.
8103
8104 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 Import gcrypt public-key cryptography and implement signature checking.
8107
8108 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/fs/ntfs.c: Ue more appropriate types.
8111 * grub-core/fs/ntfscomp.c: Likewise.
8112 * include/grub/ntfs.h: Likewise.
8113
8114 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8115
8116 Support Apple FAT binaries on non-Apple platforms.
8117
8118 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8119 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8120 Likewise.
8121 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8122 Apple FAT binaries.
8123
8124 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8127 sector devices.
8128
8129 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8130
8131 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8132 explicitly zeroing elements.
8133 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8134 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8135 of elements in a structure already allocated using grub_zalloc.
8136 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8137
8138 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8139
8140 * docs/grub.texi (grub_cpu): New subsection.
8141 (grub_platform): Likewise.
8142
8143 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8146
8147 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8148
8149 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8150 divisions.
8151
8152 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8153
8154 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8155 * grub-core/fs/ntfscomp.c: Likewise.
8156 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8157 (grub_ntfs_comp): Likewise.
8158
8159 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8160
8161 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8162 Rename to ...
8163 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8164 of groups_per_block. All users updated.
8165
8166 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8167
8168 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8169 grub_error properly.
8170 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8171 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8172
8173 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8176 always in /boot/zfs.
8177 Reported by: Yuta Satoh.
8178
8179 2013-01-03 Yuta Satoh <nigoro>
8180
8181 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8182 ${grub_probe}
8183
8184 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * configure.ac: Extend -Wno-trampolines to host.
8187
8188 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8191 entry->len = 0.
8192
8193 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8194
8195 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8196 (Invoking grub-script-check): Likewise.
8197
8198 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8199
8200 * docs/grub.texi (Invoking grub-mount): New section.
8201 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8202
8203 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8204
8205 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8206 test failures, so that a failing unit test correctly causes 'make
8207 check' to fail.
8208
8209 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8210
8211 Fix failing printf test.
8212
8213 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8214 '$' in the correct order when collecting type information.
8215
8216 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8217
8218 * docs/grub.texi (configfile): Explain environment variable
8219 handling.
8220 (source): New section.
8221 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8222
8223 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8224
8225 Remove several trivially-unnecessary uses of nested functions.
8226
8227 * grub-core/commands/i386/pc/sendkey.c
8228 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8229 instead of nested.
8230 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8231 Rename to ...
8232 (legacy_file_getline): ... this.
8233 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8234 Likewise.
8235 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8236 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8237 to ...
8238 (probe_dummy_iter): ... this.
8239 * grub-core/kern/i386/coreboot/mmap.c
8240 (grub_linuxbios_table_iterate: check_signature): Likewise.
8241 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8242 check_varstate): Likewise. Mark inline.
8243 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8244 an additional parameter.
8245 (find_long: fnd_long): Likewise. Pass two additional parameters.
8246 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8247 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8248 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8249 Likewise. Rename to ...
8250 (grub_cmos_find_port_iter): ... this.
8251 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8252 Rename to ...
8253 (find_rtc_iter): ... this.
8254
8255 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8256 function directly into the function body, since it is only called
8257 once.
8258
8259 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8260
8261 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8262 __attribute__ ((unused)).
8263 * grub-core/video/bochs.c (find_card): Likewise.
8264 * grub-core/video/cirrus.c (find_card): Likewise.
8265 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8266 * grub-core/video/sis315pro.c (find_card): Likewise.
8267 * grub-core/video/sm712.c (find_card): Likewise.
8268
8269 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8270
8271 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8272 Fixes Savannah bug #37821.
8273
8274 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8275
8276 Apply program name transformations at build-time rather than at
8277 run-time. Fixes Debian bug #696465.
8278
8279 * acinclude.m4 (grub_TRANSFORM): New macro.
8280 * configure.ac: Create output variables with transformed names for
8281 most programs.
8282 * util/bash-completion.d/grub-completion.bash.in: Use
8283 pre-transformed variables for program names.
8284 * util/grub-install.in: Likewise.
8285 * util/grub-kbdcomp.in: Likewise.
8286 * util/grub-mkconfig.in: Likewise.
8287 * util/grub-mkconfig_lib.in: Likewise.
8288 * util/grub-mknetdir.in: Likewise.
8289 * util/grub-mkrescue.in: Likewise.
8290 * util/grub-mkstandalone.in: Likewise.
8291 * util/grub-reboot.in: Likewise.
8292 * util/grub-set-default.in: Likewise.
8293 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8294 * tests/util/grub-shell-tester.in: Remove unused assignment.
8295 * tests/util/grub-shell.in: Likewise.
8296 * util/grub.d/00_header.in: Likewise.
8297
8298 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8299
8300 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8301
8302 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8303 HAVE_RAW_DECL_GETS.
8304 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8305
8306 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8309 Reported by: Eriks Latosheks <foresterlv>.
8310
8311 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8312
8313 * docs/grub.texi (Network): Update instructions on generating netboot
8314 image.
8315
8316 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8317
8318 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8319 around device name if necessarry.
8320
8321 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8322
8323 * util/grub-install.in: Follow the symbolic link parameter added
8324 to the file command.
8325
8326 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8327
8328 * util/grub-install.in: Remove stale TODO.
8329
8330 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8331
8332 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8333 dynamic allocation for the bootpath buffer.
8334
8335 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8336
8337 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8338 window too small.
8339
8340 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8343 argument rather than font name. All users updated.
8344 (grub_gfxterm_set_window): Likewise.
8345
8346 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8347
8348 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8349 from working.
8350
8351 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * util/getroot.c (convert_system_partition_to_system_disk): Support
8354 nbd disks.
8355
8356 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8357
8358 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8359 infinite loop on corrupted FS.
8360
8361 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8362
8363 Fix big-endian mtime.
8364
8365 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8366 together sec and usec.
8367 (grub_ufs_dir): Use correct byteswapping for UFS time.
8368
8369 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 Support big-endian UFS1.
8372
8373 * Makefile.util.def (libgrubmods): Add ufs_be.c
8374 * grub-core/Makefile.core.def (ufs1_be): New module.
8375 * grub-core/fs/ufs_be.c: New file.
8376 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8377 the file.
8378
8379 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8380
8381 * include/grub/types.h: Fix functionality unaffecting typo in
8382 GRUB_TARGET_WORDSIZE conditional macro.
8383
8384 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8385
8386 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8387
8388 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8389
8390 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8391 that /netbsd appears first (when it exists).
8392
8393 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8394
8395 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8396 Fixes Savannah bug #37558.
8397
8398 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8399
8400 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8401 description of extract_entries_configfile.
8402
8403 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8404
8405 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8406 preferred_address.
8407 (grub_cmd_linux): Likewise.
8408 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8409 preferred_lifetime. Update all users.
8410
8411 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8412
8413 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8414 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8415
8416 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8417
8418 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8419 errors from grub-probe to /dev/null, not stdout.
8420
8421 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8424 sector 1.
8425
8426 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8427
8428 * util/grub-install.in: Make the error message if $source_dir
8429 doesn't exist more useful.
8430
8431 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8432
8433 Fix grub-emu build on FreeBSD.
8434
8435 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8436 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8437 headers on Linux.
8438 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8439 implementation is currently Linux-specific.
8440 * util/getroot.c (exec_pipe): Define only on Linux or when either
8441 libzfs or libnvpair is unavailable.
8442 (find_root_devices_from_poolname): Remove unused path variable.
8443
8444 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8445
8446 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8447 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8448 should fit before end == 63.
8449
8450 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8451
8452 * util/grub-setup.c (write_rootdev): Remove unused core_img
8453 parameter. Update all callers.
8454 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8455 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8456 GRUB_SETUP_BIOS.
8457
8458 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8461 (grub_add_tab): New function.
8462 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8463 * util/grub.d/10_illumos.in: Likewise.
8464 * util/grub.d/10_kfreebsd.in: Likewise.
8465 * util/grub.d/10_linux.in: Likewise.
8466 * util/grub.d/10_netbsd.in: Likewise.
8467 * util/grub.d/10_windows.in: Likewise.
8468 * util/grub.d/10_xnu.in: Likewise.
8469 * util/grub.d/20_linux_xen.in: Likewise.
8470 * util/grub.d/30_os-prober.in: Likewise.
8471
8472 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8475 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8476 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8477 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8478 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8479 ieee1275-nocursor.
8480 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8481 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8482
8483 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8486 le-conversion.
8487 Reported by: BURETTE, Bernard.
8488
8489 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8490
8491 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8492 from comment.
8493
8494 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8495
8496 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8497 IEEE1275 machines. Fixes powerpc-emu compilation.
8498 * include/grub/terminfo.h: Likewise.
8499
8500 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8501
8502 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8503 a const pointer.
8504 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8505 const pointer.
8506 (efiemu_set_variable): Make vendor_guid a const pointer.
8507
8508 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 Don't require grub-mkconfig_lib to generate manpages for programs.
8511
8512 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8513 dependencies, don't add grub-mkconfig_lib.
8514 (program): Pass empty adddeps.
8515 (script): Pass grub-mkconfig_lib as adddeps.
8516
8517 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8520 * util/getroot.c (grub_find_device): Likewise.
8521 (get_mdadm_uuid): Likewise.
8522 (grub_util_is_imsm): Likewise.
8523 (grub_util_pull_device): Likewise.
8524 * util/grub-probe.c (probe): Likewise.
8525
8526 2012-09-10 Benoit Gschwind <gschwind>
8527
8528 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8529 (devs): Add devpath_8.
8530
8531 2012-09-08 Peter Jones <pjones@redhat.com>
8532
8533 * grub-core/Makefile.core.def (efifwsetup): New module.
8534 * grub-core/commands/efi/efifwsetup.c: New file.
8535 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8536 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8537 New define.
8538 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8539
8540 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8541
8542 * configure.ac: Add SuSe path.
8543
8544 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8545
8546 * NEWS: Fix typo.
8547
8548 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8549
8550 * util/import_gcry.py: Sort cipher_files, to make build system
8551 generation more deterministic.
8552
8553 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8556 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8557 (grub_set_datetime): Likewise.
8558
8559 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8562 warnings.
8563
8564 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8565
8566 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8567
8568 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8571
8572 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8573
8574 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8575 required for checkouts from bzr, but it may be useful for users or
8576 distributors wishing to update translations against a tarball
8577 distribution, and it can be helpful for the tarball to be a superset
8578 of what's in bzr.
8579
8580 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8581
8582 * Makefile.am (EXTRA_DIST): Add
8583 grub-core/tests/boot/linux.init-mips.S,
8584 grub-core/tests/boot/linux.init-ppc.S, and
8585 grub-core/tests/boot/linux-ppc.cfg.
8586
8587 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8588
8589 * grub-core/mmap/mips/loongson: Remove empty directory.
8590
8591 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8592
8593 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8594 gone.
8595
8596 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8597
8598 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8599 grub-sparc64-setup.
8600
8601 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8602
8603 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8604
8605 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8606
8607 * po/POTFILES.in: Regenerated.
8608
8609 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8610
8611 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8612 (NetBSD): New subsection.
8613
8614 2012-07-22 Ales Nesrsta <starous@volny.cz>
8615
8616 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8617 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8618
8619 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8620
8621 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8622 * util/grub.d/10_hurd.in: Add missing quoting.
8623 * util/grub.d/10_illumos.in: Likewise.
8624 * util/grub.d/10_kfreebsd.in: Likewise.
8625 * util/grub.d/10_linux.in: Likewise.
8626 * util/grub.d/20_linux_xen.in: Likewise.
8627
8628 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 New command `lsefi'.
8631
8632 * grub-core/Makefile.core.def (lsefi): New module.
8633 * grub-core/commands/efi/lsefi.c: New file.
8634 * include/grub/efi/api.h: Add more GUIDs.
8635
8636 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8637
8638 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8639 (grub_bsd_elf32_hook): Likewise.
8640 (grub_bsd_elf64_size_hook): Likewise.
8641 (grub_bsd_elf64_hook): Likewise.
8642 (grub_bsd_load_elf): Likewise.
8643
8644 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8647 if hash function is unavailable.
8648 (dec_stream_header): Likewise.
8649
8650 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8651
8652 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8653 filter state.
8654
8655 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 Fix coreboot compilation.
8658
8659 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8660 (grub_vga_text_init_real): ... this.
8661 (grub_vga_text_fini): Rename to ...
8662 (grub_vga_text_fini_real): ... this.
8663
8664 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8665
8666 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8667
8668 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * grub-core/lib/legacy_parse.c: Support clear and testload.
8671
8672 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8673
8674 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8675
8676 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8679
8680 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/net/tftp.c (ack): Fix endianness problem.
8683 (tftp_receive): Likewise.
8684 Reported by: Michael Davidsaver.
8685
8686 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8689
8690 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8693 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8694 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8695
8696 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8699 efi_mmap_size.
8700 Reported by: Stuart Hayes.
8701
8702 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8705
8706 * grub-core/Makefile.core.def (mda_text): New module.
8707 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8708 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8709 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8710 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8711 here.
8712 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8713 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8714 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8715 here.
8716 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8717 to ..
8718 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8719 ... here
8720 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8721 here.
8722 * grub-core/term/i386/vga_common.c: Removed.
8723 * include/grub/i386/vga_common.h: Likewise.
8724 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8725 (grub_vga_cr_bw_read): Likewise.
8726 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8727 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8728 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8729 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8730 grub_vga_cr_read/grub_vga_cr_write.
8731 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8732
8733 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * configure.ac: Bump version to 2.00.
8736 * grub-core/normal/main.c (features): Add feature_200_final.
8737
8738 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8739 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8740
8741 * NEWS: Fix unclarity and language mistakes.
8742
8743 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8744
8745 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8746 additional size to 3 pages.
8747 Reported by: Stuart Hayes.
8748
8749 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * NEWS: Add 2.00 entry.
8752
8753 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8756 put explicit "/" for empty path.
8757 (wildcard_expand): Improve dprintf.
8758
8759 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8762 it's equal to currnode. This can happen with "" symlink.
8763
8764 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8765
8766 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8767 echo shell command by printf command.
8768
8769 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8772 the value returned by firmware is the maximal position, not diumension.
8773 (grub_terminfo_output_state): Use a more sane fallback.
8774
8775 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8778
8779 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8782 frequency to 150 MHz.
8783
8784 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 Apple fixes.
8787
8788 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8789 __APPLE_
8790 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8791 definition.
8792 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8793
8794 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 Handle slash in HFS label.
8797
8798 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8799 (grub_hfs_dir): Tanslate slash.
8800 (grub_hfs_label): Don't translate slash.
8801
8802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8805 network protocol listing since it introduces problematic dependency on
8806 net module.
8807
8808 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8811
8812 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 Init video early on yeeloong to avoid being rebooted by watchdog.
8815
8816 * grub-core/Makefile.am (gensm712): New target.
8817 (sm712_start.S): Likewise.
8818 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8819 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8820 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8821 description.
8822 * include/grub/vga.h: Move registry definitions to...
8823 * include/grub/vgaregs.h: ... here.
8824
8825 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8828 signedness.
8829
8830 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8831
8832 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8833 platforms with firmware disk drivers in the core.
8834
8835 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8838 informative verbose message.
8839 (read_lv): Handle 64-bit segment size.
8840
8841 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8844
8845 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8848 character but still remove trainling spaces.
8849 (grub_fat_label): Ignore archive flag.
8850
8851 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8852
8853 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8854 cast between linux_kernel_header and linux_kernel_params.
8855
8856 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8859 type for size.
8860 (grub_raid6_recover_func_t): Likewise.
8861 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8862 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8863
8864 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8867
8868 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8869
8870 Fix overflow.
8871
8872 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8873 [__NetBSD__]: Add explicit cast before bitshift.
8874
8875 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 * configure.ac: Bump to 2.00~rc1.
8878
8879 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8880
8881 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8882 half of $a0.
8883
8884 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8885 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8886
8887 * docs/grub.texi: Fix search syntax.
8888 (Multi-boot manual config): Put msdos rather than GPT example.
8889 Grammar corrections.
8890
8891 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8894
8895 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8898
8899 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8902 message on double free. Put the value of magic in case of mismatch.
8903
8904 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 Speed-up video on yeeloong.
8907
8908 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8909 add cached_ptr.
8910 (grub_video_sm712_video_fini): Unmap cached_ptr.
8911 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8912 (grub_video_sm712_set_active_render_target): Removed.
8913 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8914 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8915 sync caches.
8916
8917 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 Avoid flushing the same line multiple times on loongson.
8920
8921 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8922 Step in 32 bytes and not 1 byte.
8923 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8924 Likewise.
8925
8926 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8929 subvolumes.
8930
8931 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 Implement flow control for http.
8934
8935 * grub-core/net/http.c (parse_line): Handle response 206.
8936 (http_receive): Stall if too many packets are in the queue.
8937 (http_establish): Fix range header.
8938 (http_seek): Fix double free.
8939 (http_close): Likewise.
8940 (http_packets_pulled): New function.
8941 (grub_http_protocol): Set http_seek
8942 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8943 (ack_real): Set window depending on i_stall.
8944 (grub_net_send_tcp_packet): Likewise.
8945 (grub_net_tcp_stall): New function.
8946 (grub_net_tcp_unstall): Likewise.
8947 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8948 (grub_net_tcp_unstall): Likewise.
8949
8950 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8953
8954 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8955
8956 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8957
8958 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * tests/util/grub-shell.in: Fix a typo.
8961
8962 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 Implement flow control for tftp.
8965
8966 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8967 packets but stop only if stop condition is satisfied.
8968 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8969 `stall' instead of `eof' as stop condition.
8970 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8971 (http_err): Likewise.
8972 * grub-core/net/tftp.c (ack): Replace the first argument with data
8973 instead of socket.
8974 (tftp_receive): Stall if too many packets are in wait queue.
8975 (tftp_packets_pulled): New function.
8976 (grub_tftp_protocol): Set packets_pulled.
8977 * include/grub/net.h (grub_net_packets): New field count.
8978 (grub_net_put_packet): Increment count.
8979 (grub_net_remove_packet): Likewise.
8980 (grub_net_app_protocol): New field `packets_pulled'.
8981 (grub_net): New field `stall'.
8982
8983 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
8986 sync part to handle them.
8987
8988 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
8991 * grub-core/net/drivers/ieee1275/ofnet.c
8992 (grub_ieee1275_net_config_real): Likewise.
8993
8994 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
8997 the direct route for server/gateway.
8998
8999 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9002 IP address to server name since we may not hame the DNS.
9003
9004 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9007 freeing random buffer on failure.
9008 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9009
9010 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9011
9012 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9013
9014 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9017 reserved bytes.
9018 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9019 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9020 Handle malloc error correctly.
9021
9022 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9025 blocks.
9026
9027 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9028
9029 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9030 increment.
9031
9032 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9035 none is explicitly specified.
9036
9037 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9038
9039 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9040 while reallocating.
9041
9042 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 Respect netmask from bootp/dhcp.
9045
9046 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9047 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9048 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9049 into ...
9050 (grub_net_add_ipv4_local): ... this.
9051 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9052 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9053 (grub_net_add_ipv4_local): New proto.
9054
9055 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9058 determining EFI memory map size.
9059
9060 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9063
9064 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9067 when looking for partition separator.
9068
9069 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9070
9071 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9072 Escape commas.
9073
9074 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 Restructure FAT driver to avoid hook in label reading as it hits a
9077 GCC bug.
9078
9079 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9080 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9081 (grub_fat_iterate_dir): Split into ...
9082 (grub_fat_iterate_init): ... this, ...
9083 (grub_fat_iterate_fini): ... this, ...
9084 (grub_fat_iterate_dir_next): ... and this. All users updated.
9085
9086 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9089 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9090 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9091 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9092 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9093 New fields last_key and last_key_time.
9094 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9095 extended key-esc into extended key-extended key.
9096
9097 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 Avoid unnecessary memcpy of whole video buffer.
9100
9101 * grub-core/video/fb/video_fb.c (dirty): New struct.
9102 (framebuffer): Add members current_dirty and previous_dirty.
9103 (dirty): New function.
9104 (grub_video_fb_fill_rect): Update dirty.
9105 (common_blitter): Likewise.
9106 (grub_video_fb_scroll): Likewise.
9107 (doublebuf_blit_update_screen): Copy only dirty part.
9108 (doublebuf_pageflipping_update_screen): Likewise.
9109 (grub_video_fb_doublebuf_blit_init): Init dirty.
9110 (doublebuf_pageflipping_init): Likewise.
9111 (grub_video_fb_setup): Likewise.
9112
9113 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9116 poll rate.
9117
9118 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 Fix wildcard regexp dot and other special characters handling.
9121 Reported by: Robert Mabee.
9122
9123 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9124 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9125 (split_path): Trigger expansion on '?'.
9126 (unescape): New function.
9127 (wildcard_expand): Unescape parts copied without globbing.
9128 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9129 (grub_script_arglist_to_argv): Don't unescape expansions.
9130
9131 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 * include/grub/net.h (grub_net_card): New member txbufsize.
9134 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9135 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9136 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9137 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9138 txbufsize.
9139 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9140 compatible property to check for macs. Set
9141 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9142 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9143 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9144 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9145 (send_card_buffer): Use txbuf.
9146 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9147 nested function out of the parent while on it.
9148
9149 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9152 presence check.
9153 (grub_ieee1275_net_config_real): Fix config pointer.
9154
9155 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9158 filename parsing to non-block devices.
9159
9160 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9163
9164 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9167 All users updated.
9168
9169 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9172 UUID search command even if hints probing failed.
9173
9174 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * po/POTFILES.in: Regenerated.
9177
9178 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 Speed-up video on fuloong.
9181
9182 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9183 New function.
9184 (grub_pci_device_unmap_range): Handle non-cached address.
9185 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9186 add direct_ptr.
9187 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9188 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9189 (grub_video_sis315pro_set_active_render_target): Removed.
9190 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9191 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9192 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9193 sync caches.
9194 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9195 New proto.
9196
9197 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9198
9199 * docs/grub.texi (Multi-boot manual config): New section.
9200
9201 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 Avoid slow read-back from VRAM.
9204
9205 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9206 Move from here ...
9207 * grub-core/video/fb/video_fb.c
9208 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9209 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9210 (front_target): Remove front_target. Add pages.
9211 (grub_video_fb_init): Skip setting front_pages.
9212 (grub_video_fb_fini): Likewise.
9213 (doublebuf_blit_update_screen): Use pages.
9214 (grub_video_fb_doublebuf_blit_init): Likewise.
9215 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9216 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9217 (grub_video_fb_setup): Prefer doublebuffing.
9218
9219 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9222 gzio.
9223
9224 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 Add loongson tests.
9227
9228 * tests/util/grub-shell.in: Handle loongson.
9229 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9230 drivers.
9231 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9232 Reboot instead of shutdown if REBOOT is defined.
9233
9234 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9235
9236 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9237 sized ports since unlike on real hardware qemu supports only 32-bit
9238 regs.
9239
9240 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9243 * util/grub-mkrescue.in: Handle loongson.
9244
9245 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9248 Set is_part appropriately.
9249 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9250 names. Canonicalize partition without full disk.
9251
9252 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 Revert usb-quiesce since it's wrong.
9255
9256 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9257 (grub_ofdisk_init): Don't do quiesce.
9258
9259 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9260
9261 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9262 PowerMac workaround to Xserves as well.
9263 Information supplied by: Benjamin Herrenschmidt.
9264
9265 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9266
9267 Don't assume that beginning address is also the entry point on ppc.
9268
9269 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9270 (grub_linux_boot): Use linux_entry.
9271 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9272 (grub_linux_load64): Likewise.
9273
9274 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9277
9278 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9281 needlessly lose the console.
9282
9283 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9286 space.
9287
9288 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9291 than current grub_get_rtc() not implemented when booted with
9292 coreboot without TSC.
9293
9294 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9295 Add machine/time.h to kernel headers on loongson.
9296 * grub-core/Makefile.core.def (kernel): Remove
9297 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9298 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9299 (grub_get_rtc): Likewise.
9300 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9301 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9302 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9303 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9304 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9305 rather than installing known non-working time source.
9306 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9307 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9308 * include/grub/time.h: Don't include machine/time.h.
9309 * include/grub/efi/time.h: Removed.
9310 * include/grub/i386/efi/time.h: Likewise.
9311 * include/grub/i386/ieee1275/time.h: Likewise.
9312 * include/grub/powerpc/ieee1275/time.h: Likewise.
9313 * include/grub/sparc64/ieee1275/time.h: Likewise.
9314 * include/grub/x86_64/efi/time.h: Likewise.
9315
9316 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 Remove dot on i and j when combining with above diacritics.
9319
9320 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9321 value.
9322 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9323 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9324 with dotless variants when any combining above is present.
9325
9326 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9327
9328 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9329 text and not binary.
9330
9331 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9332
9333 Stop polling as soon as we have the packet we were waiting for.
9334
9335 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9336 All users updated.
9337 * grub-core/net/arp.c (have_pending): New var.
9338 (pending_req): Likewise.
9339 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9340 stop indicator.
9341 (grub_net_arp_receive): Set have_pending.
9342 * grub-core/net/dns.c (recv_data): New field stop.
9343 (recv_hook): Set stop.
9344 (grub_net_dns_lookup): Init stop and use as stop condition.
9345 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9346 condition.
9347 * grub-core/net/net.c (grub_net_poll_cards): New argument
9348 stop_condition. Stop when it goes true.
9349 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9350 indicator.
9351 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9352
9353 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 Keep TX and RX buffers on EFI rather than always allocate new ones.
9356
9357 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9358 card. All users updated.
9359 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9360 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9361 (get_card_packet): Likewise.
9362 (grub_efinet_findcards): Init new fields.
9363
9364 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9365
9366 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9367 compilation error on sparc64.
9368
9369 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Use ITC on IA64 rather than broken routine based on daytime.
9372
9373 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9374 ia64.
9375 (grub_get_rtc) [__ia64__]: Likewise.
9376 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9377 (get_itc): New function.
9378 (grub_rtc_get_time_ms): Likewise.
9379 (grub_machine_init): Calibrate ITC.
9380 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9381 Keep only on non-ia64. Don't export since it's broken and used only
9382 if TSC is unavailable.
9383
9384 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9385
9386 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9387 even if it's used.
9388 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9389 Skip if parent is unused.
9390
9391 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9394
9395 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9396
9397 Fix wildcard escaping.
9398
9399 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9400 * grub-core/script/execute.c (wildcard_escape): .. to here.
9401 Don't escape dot.
9402 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9403 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9404 Don't escape dot.
9405 * grub-core/script/execute.c (gettext_append): Always escape.
9406 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9407 * grub-core/script/yylex.l: Don't cut away the escaping.
9408 * tests/grub_script_echo1.in: Add tests with wildcard.
9409
9410 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9413 (ftdi_hw_configure): Likewise.
9414 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9415 define.
9416 (real_config): Handle 1.5 stop bits.
9417 (pl2303_hw_configure): Likewise.
9418
9419 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 * Makefile.am: Add ppc linux bootcheck.
9422 * grub-core/tests/boot/linux-ppc.cfg: New file.
9423 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9424
9425 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * tests/grub_script_expansion.in: Skip network protocols.
9428
9429 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9432
9433 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9434
9435 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9436 --rom-directory.
9437 Add -graft-points.
9438
9439 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 ESCC serial driver for conducting sautomated tests in qemu.
9442 Not tested on real hardware.
9443
9444 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9445 * grub-core/term/ieee1275/escc.c: New file.
9446 * grub-core/Makefile.core.def (escc): New module.
9447
9448 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9451 invalid on error.
9452 (serial_hw_fetch): Don't read invalid handle.
9453 (serial_hw_put): Don't write into invalid handle.
9454
9455 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 Add a 1.5 stop bits value.
9458
9459 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9460 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9461 GRUB_SERIAL_STOP_BITS_1_5.
9462
9463 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9466 value rather than let it uninited.
9467
9468 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9469
9470 * grub-core/commands/wildcard.c (+check_file): New function.
9471 (wildcard_expand): Don't expand to non-existing files, expand with
9472 suffix and not attempt to expand if not needed.
9473
9474 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9477 out of partitions containing other partitions.
9478
9479 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9482 on some qemu versions with GRUB.
9483
9484 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9485 define.
9486 (grub_openbsd_bootarg_pcibios): New struct.
9487 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9488 Add PCIINFO.
9489
9490 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 * tests/util/grub-shell.in: Trim firmware output on EFI.
9493
9494 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9497 and coreboot since it's already in kernel.
9498
9499 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9502 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9503 to here. New return value start. All users updated.
9504 Recursively scan linear mappings.
9505 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9506 proto.
9507 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9508 Use grub_util_get_dm_node_linear_info.
9509 * util/getroot.c (convert_system_partition_to_system_disk): Use
9510 grub_util_info rather than grub_dprintf.
9511 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9512
9513 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9516
9517 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9518 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9519
9520 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 * include/grub/types.h (grub_set_unaligned64): New function.
9523 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9524 (setup): Likewise.
9525
9526 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9529 (grub_ofdisk_fini): Quiesce USB devices.
9530
9531 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9534 caches.
9535
9536 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9539
9540 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * grub-core/disk/pata.c (grub_pata_pio_read)
9543 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9544 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9545
9546 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 Extend automated tests to qemu-mips.
9549
9550 * Makefile.am: reorganise tests and enable qemu-mips.
9551 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9552 * grub-core/tests/boot/linux.init-mips.S: New file.
9553 * tests/partmap_test.in: Handle ata0 disks.
9554 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9555 non-pc i386.
9556
9557 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9560 ia64.
9561 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9562 quotes while on it.
9563
9564 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9567 (grub_halt): Likewise.
9568 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9569
9570 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 * grub-core/term/serial.c (grub_serial_register)
9573 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9574 the behaviour in line with x86 platforms.
9575
9576 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9579 (grub_ata_strncpy): Likewise.
9580 (grub_ata_identify): Add missing byteswaps.
9581
9582 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9585 byte-swap.
9586 (screen_read_char): Likewise.
9587 (grub_vga_text_cls): Likewise.
9588
9589 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9592 filenames.
9593 (make_file_path): Likewise.
9594
9595 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9598 machines.
9599 Tested by: Paulo Flabiano Smorigo.
9600 Crucial information about API supplied by: Coleen <Last name unknown>.
9601 Reviewed by: Coleen <Last name unknown>.
9602
9603 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * util/grub-mkimage.c: Disable -Wcast-align.
9606
9607 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9610 as they are fatal.
9611
9612 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9615
9616 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * util/grub-probe.c (escape_of_path): Fix double free.
9619
9620 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * grub-core/commands/videoinfo.c (hook): Show pitch.
9623
9624 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9627
9628 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9631 (probe): Add ieee1275 to OFW devices.
9632
9633 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9636
9637 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9638
9639 Handle IBM OFW path.
9640
9641 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9642 available.
9643 (of_path_of_scsi): Handle vdevice.
9644
9645 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9646
9647 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9648 Allocate in multiples of 16 to avoid adding a few bytes free region the
9649 windows bugs upon.
9650
9651 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9654 Allocate in multiples of 16 to avoid adding a few bytes free region the
9655 windows bugs upon.
9656 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9657
9658 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9661 resolutions.
9662 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9663 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9664
9665 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9666
9667 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9668
9669 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9672 resulted in \\ at the end of the line.
9673
9674 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9677 (grub_parser_cmdline_state): Likewise.
9678 (grub_parser_split_cmdline): Likewise.
9679
9680 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9683 /dev/root and /dev/dm-*.
9684
9685 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9688 fix partially stale display.
9689
9690 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9693 substraction.
9694
9695 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9698 Fix MBR remapping workaround.
9699 (grub_util_biosdisk_read) [__linux__]: Likewise.
9700
9701 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9704
9705 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * configure.ac: Bump to beta6.
9708
9709 2012-05-31 Christer Weinigel <christer@weinigel.se>
9710
9711 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9712
9713 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9716 (grub_cmd_linux): Likewise.
9717
9718 2012-05-31 Christer Weinigel <christer@weinigel.se>
9719
9720 Fix EHCI low-speed.
9721
9722 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9723 (GRUB_EHCI_MULT_TWO): Likewise.
9724 (GRUB_EHCI_MULT_THREE): Likewise.
9725 (GRUB_EHCI_CMASK_MASK): New enum value.
9726 (GRUB_EHCI_SMASK_MASK): Likewise.
9727 (GRUB_EHCI_CMASK_OFF): Likewise.
9728 (GRUB_EHCI_SMASK_OFF): Likewise.
9729 (grub_ehci_pci_iter): Enable periodic schedule.
9730 (grub_ehci_parse_notrun): Likewise.
9731 (grub_ehci_restore_hw): Likewise.
9732 (grub_ehci_setup_qh): Set flags for low speed transfers.
9733 (grub_ehci_find_qh): Use periodic list for low speed.
9734 (grub_ehci_setup_transfer): Check periodic queue as well.
9735 (grub_ehci_check_transfer): Likewise.
9736 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9737
9738 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9739
9740 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9741 parameter is used.
9742
9743 2012-05-31 Peter Jones <pjones@redhat.com>
9744
9745 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9746 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9747 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9748
9749 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9750
9751 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9752 uninited variable. Allocate at least setup_sects.
9753
9754 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9755
9756 Fix handling of EFI with big memory maps.
9757
9758 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9759 (real_mode_mem): Likewise.
9760 (real_mode_target): Likewise.
9761 (real_mode_pages): Likewise.
9762 (prot_mode_pages): Likewise.
9763 (linux_params): New var.
9764 (linux_cmdline): Likewise.
9765 (free_pages): Don't set real mode variables.
9766 (allocate_pages): Don't allocate real mode memory.
9767 (grub_e820_add_region): Remove the limit.
9768 (grub_linux_boot): Allocate and copy real mode memory.
9769 (grub_linux_unload): Free linux_cmdline.
9770 (grub_cmd_linux): Use temporary storage for parameters.
9771 (grub_cmd_initrd): Likewise.
9772 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9773 (linux_kernel_params): Make it 1K big.
9774
9775 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9776
9777 * Makefile.util.def: Remove -Wno-format.
9778 * grub-core/Makefile.core.def: Likewise.
9779
9780 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 * tests/cmp_unit_test.c: Add missing failure message.
9783 * tests/example_unit_test.c: Likewise.
9784 * tests/printf_unit_test.c: Likewise.
9785
9786 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9789 relaxation of protective MBR requirements.
9790
9791 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9792
9793 * configure.ac: Add condition for COND_HOST_XNU.
9794 * Makefile.util.def (10_xnu): New script.
9795 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9796
9797 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9800 objconv bug.
9801
9802 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9805 Binary on other platforms stays identical.
9806
9807 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9810 Apple.
9811
9812 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9815
9816 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9819 rather than defining size_t ourselves to avoid conflict.
9820
9821 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9822
9823 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9824 initialisation to avoid __bzero reference.
9825
9826 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9829 version.
9830 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9831 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9832 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9833 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9834 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9835
9836 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9839 * grub-core/kern/misc.c: Likewise.
9840 * grub-core/loader/i386/xnu.c: Likewise.
9841 * include/grub/i386/tsc.h: Likewise.
9842 * include/grub/symbol.h: Likewise.
9843
9844 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9847 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9848 on older compiler.
9849
9850 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9851
9852 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9853 Implement Apple flavour.
9854 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9855
9856 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9859 (memmove) [__APPLE__]: Likewise.
9860 (memcpy) [__APPLE__]: Likewise.
9861 (memset) [__APPLE__]: Likewise.
9862 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9863 (memmove) [__APPLE__]: Likewise.
9864 (memcpy) [__APPLE__]: Likewise.
9865 (memset) [__APPLE__]: Likewise.
9866
9867 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9870 dependency discard.
9871
9872 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 * grub-core/normal/main.c (read_config_file): Provide config_file and
9875 config_directory.
9876 * util/grub.d/41_custom.in: Use config_directoy when available.
9877
9878 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9881 (grub_bfs_dir): Likewise.
9882
9883 2012-05-27 Peter Jones <pjones@redhat.com>
9884
9885 The old code gives arguments to a printf function which can't work
9886 correctly, and the compiler complains.
9887
9888 * grub-core/tests/example_functional_test.c (example_test): Add
9889 missing text.
9890 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9891 * include/grub/test.h (grub_test_assert_helper): New declaration.
9892 (grub_test_assert): Use grub_test_assert_helper.
9893
9894 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9897 (exfctest): ... this to avoid overlong filenames.
9898 All users updated.
9899
9900 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 Handle "." and ".." on squashfs.
9903
9904 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9905 Make inode numbers into stack.
9906 (grub_squash_read_symlink): Use stack.
9907 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9908 (make_root_node): Fill stack.
9909 (grub_squash_open): Use stack.
9910
9911 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9914 freeing.
9915
9916 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9919 stderr on test calls.
9920
9921 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9924
9925 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9928
9929 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9932 "..".
9933
9934 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9937 (grub_hfsplus_iterate_dir): Add "." and "..".
9938
9939 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9942 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9943
9944 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9947 (find_path): Handle "." and "..".
9948
9949 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9952 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9953 (grub_affs_iterate_dir): Handle hardlinks.
9954
9955 2012-05-26 Matthew Garrett <mjg@redhat.com>
9956
9957 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9958 (grub_efi_console_fini): Likewise.
9959 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9960 (grub_video_gop_fill_mode_info): Rename to ...
9961 (grub_video_gop_fill_real_mode_info): ... this.
9962 (grub_video_gop_fill_mode_info): New function.
9963 (grub_video_gop_setup): Setup double framebuffer.
9964 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9965 Free offscreen.
9966 (grub_video_gop_swap_buffers): Copy framebuffer.
9967 (grub_video_gop_fini): Free offscreen buffer.
9968 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9969 New enum.
9970 (grub_efi_gop_blt_pixel): New struct.
9971
9972 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9973
9974 * gentpl.py: Remove error disabling for objconv.
9975
9976 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 * configure.ac: Remove -Wunitialized as it's not available on older
9979 compilers.
9980
9981 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 Fix extent overflow comparator.
9984
9985 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
9986 (grub_hfsplus_read_block): Set type.
9987 (grub_hfsplus_cmp_extkey): Compare type.
9988
9989 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
9992
9993 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
9996 than 0.
9997
9998 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10001 (dejavu_bold_14.pf2): New target.
10002
10003 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * configure.ac: Fix djvu font detection.
10006
10007 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10010 ext* instead of ext2.
10011
10012 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10015 name with \0.
10016
10017 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10018
10019 * docs/grub-dev.texi: Remove dot from .png.
10020
10021 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10024 protective entry in any slot.
10025 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10026 if protective entry is found in any slot.
10027
10028 Protective entry in non-first slot make no sense but is a widespread
10029 brain damage.
10030
10031 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10034
10035 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10038 with old reiserfs.
10039 (grub_reiserfs_open): Don't free root.
10040
10041 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10044 after freeing for safety.
10045
10046 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10049 Reported by: Jordan Uggla.
10050
10051 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10052
10053 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10054 actual implementation. Specifically, clarify that the grub menu will
10055 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10056 passed.
10057
10058 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10059
10060 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10061 of r0.
10062
10063 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 Remove unjustified hard dependency of normal.mod on gfxterm.
10066
10067 * include/grub/term.h (grub_term_output): New member fullscreen.
10068 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10069 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10070 (grub_gfxterm): Set .fullscreen.
10071 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10072 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10073
10074 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10077 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10078 Mention case-insensitive AFFS, SFS and JFS.
10079
10080 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10081
10082 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10083
10084 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10087 a bad FS.
10088
10089 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10092 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10093
10094 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10097 (grub_jfs_mount): Fill caseins.
10098 (grub_jfs_find_file): Respect caseins.
10099
10100 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10103 through UTF-16.
10104
10105 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10106
10107 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10108 New argument origpath. All users updated.
10109
10110 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10113 (read_attr): Ensure that we read start of possibly compressed block.
10114
10115 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10118 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10119 All users updated.
10120
10121 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10124 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10125 (dejavu.pf2): Replace with ...
10126 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10127 this.
10128
10129 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10130
10131 * util/grub.d/20_linux_xen.in: Add missing line.
10132
10133 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10136 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10137 (grub_utf16_to_utf8): Likewise.
10138
10139 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10142 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10143 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10144 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10145 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10146 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10147
10148 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10151 a bad FS.
10152
10153 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10156 (grub_udf_read_symlink): Handle read_string failure.
10157
10158 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10161 comment.
10162
10163 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 Fix handling of UDF symlinks.
10166
10167 * grub-core/fs/udf.c (read_string): New argument outbuf.
10168 All users updated.
10169 (grub_ufs_read_symlink): Rename to ...
10170 (grub_udf_read_symlink): ... this. All users updated.
10171 Handle symlinks with more than one component.
10172
10173 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10176 symlinks. Replace leading colon with a slash.
10177
10178 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10181 filename.
10182
10183 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10186 match in inner node.
10187
10188 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10191 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10192 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10193 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10194 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10195 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10196 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10197 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10198 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10199
10200 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 Use grub-probe and not cmp to check that disk is empty.
10203
10204 * util/grub-install.in: Use grub-probe for zero-check.
10205 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10206 (probe): Handle PRINT_ZERO_CHECK.
10207 (argp_parser): Handle -t zero_check.
10208
10209 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 Flush block cache on adding disk to device map.
10212
10213 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10214 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10215 adding.
10216 (read_device_map): Likewise.
10217 (open_device): Flush on opening.
10218
10219 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10222 (handle_symlink): Fix off-by-one error.
10223 Canonicalize the target.
10224 (grub_cpio_dir): Canonicalize the name.
10225 Fix memory leak.
10226 Set directory.
10227 (grub_cpio_open): Canonicalize the name.
10228
10229 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10232 handling.
10233
10234 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10235
10236 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10237 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10238
10239 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10240
10241 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10242 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10243 All users updated.
10244
10245 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10248 counterpart.
10249
10250 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10251
10252 Fix UFS1 big file support.
10253
10254 * grub-core/fs/ufs.c (INODE): Removed.
10255 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10256 64-bit.
10257 (INODE_MODE): Simplify.
10258 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10259 (grub_ufs_lookup_symlink): Don't use INODE.
10260
10261 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10264
10265 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10266 (grub_minix_data): Replace log_block_size with block_size.
10267 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10268 (grub_minix_mount): Fill block_size.
10269
10270 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10271
10272 * configure.ac: Bump to beta5.
10273
10274 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 Fix wrapped HFS+ handling.
10277
10278 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10279 blocks_start. All users updated.
10280 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10281 wrapping offset.
10282 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10283
10284 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10285
10286 Fix long symlinks on reiserfs.
10287
10288 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10289 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10290 (grub_reiserfs_iterate_dir): Save size for non-directories.
10291 (grub_reiserfs_open): Don't reread stat block as we already know the
10292 size.
10293 (grub_reiserfs_read): Split into...
10294 (grub_reiserfs_read_real): ... and ...
10295 (grub_reiserfs_read): ...this.
10296
10297 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10298
10299 Fix non-indexed JFS.
10300
10301 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10302 (grub_jfs_data): New field namecomponentlen.
10303 (grub_jfs_mount): Fill namecomponentlen.
10304 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10305
10306 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10309 * tests/grub_script_echo1.in: Add tests.
10310
10311 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 * util/grub-install.in: Ignore empty devicetree directory.
10314
10315 2012-05-08 Bean <bean123ch@gmail.com>
10316
10317 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10318 All users updated.
10319 (free_rsm): Free header as well.
10320 (free_old_fragments): Fix memory leak.
10321 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10322 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10323 (destroy_pq): Likewise.
10324 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10325
10326 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10329 resulting hash as a precaution.
10330
10331 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10334 '_' in variable names.
10335 * grub-core/net/net.c (grub_net_network_level_interface_register):
10336 Likewise.
10337
10338 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10339
10340 Fix AFFS with non-512B blocks.
10341
10342 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10343 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10344 (grub_affs_data): Replace blocksize with log_blocksize.
10345 (grub_affs_read_block): Fix non-512B blocks.
10346 (grub_affs_read_symlink): Likewise.
10347 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10348 (grub_affs_read): Fix non-512B blocks.
10349 (grub_affs_label): Likewise.
10350 (grub_affs_mtime): Likewise.
10351 (grub_affs_mount): Fix block detection routine.
10352
10353 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10354
10355 Add filesystem mtime to AFFS.
10356
10357 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10358 (aftime2ctime): New function.
10359 (grub_affs_dir): Use aftime2ctime.
10360 (grub_affs_label): Fix return value.
10361 (grub_affs_mtime): New function.
10362 (grub_affs_fs): Add mtime.
10363
10364 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10367 UTF-8.
10368
10369 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10372 UTF-8.
10373
10374 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10377
10378 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10379
10380 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10381 flags.
10382 (FLAGS_CASE_SENSITIVE): New enum value.
10383 (cache_entry): New struct.
10384 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10385 cache_size and cache.
10386 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10387 Add log_blocksize and fshelp_flags.
10388 (grub_sfs_read_extent): Handle non-512 blocks.
10389 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10390 (grub_sfs_read_file): Handle non-512 blocks.
10391 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10392 fshelp_flags.
10393 (grub_sfs_read_symlink): Handle non-512 blocks.
10394 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10395 (grub_sfs_dir): Free cache.
10396 (grub_sfs_close): Likewise.
10397
10398 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10401 filesystems.
10402
10403 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10404
10405 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10406
10407 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10410
10411 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10414 (grub_sfs_read_extent): Likewise.
10415 (grub_sfs_read_block): Likewise.
10416 (grub_sfs_mount): Likewise.
10417 (grub_sfs_iterate_dir): Likewise.
10418 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10419 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10420
10421 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 Fix errors on compressed NTFS with 512B clusters.
10424
10425 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10426 types.
10427 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10428 not 0.
10429 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10430 Relax check for inline extents.
10431 (ntfscomp): Return correct -1 on error and not 0.
10432
10433 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 * util/grub-install.in: Fix handling of prefix containing spaces.
10436
10437 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10438
10439 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10440 (grub_squash_read_data): Fix offset byte-swapping.
10441
10442 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10445 per common usage and preffered in several parts of code.
10446 (grub_memcmp): Likewise.
10447 (grub_strncmp): Likewise.
10448 * include/grub/misc.h (grub_strcasecmp): Likewise.
10449 (grub_strncasecmp): Likewise.
10450 * Makefile.util.def (cmp_test): New test.
10451 (grub_script_strcmp): Likewise.
10452 * tests/cmp_unit_test.c: New file.
10453 * tests/grub_script_strcmp.in: Likewise.
10454 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10455
10456 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 * include/grub/pci.h: Move enums into no-asm part.
10459
10460 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10463
10464 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10465
10466 * util/getroot.c (find_hurd_root_device): Try to make error message
10467 and comments to translators clearer.
10468
10469 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10472
10473 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10474
10475 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10476 btrfs.
10477
10478 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * docs/grub.cfg: Update.
10481
10482 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * docs/grub.texi (PXE): Remove not present variables.
10485
10486 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10487
10488 * grub-core/net/net.c (defserver_set_env): New function.
10489 (defserver_get_env): Likewise.
10490 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10491
10492 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10495 entries.
10496
10497 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10500 * grub-core/kern/emu/hostdisk.c: Likewise.
10501
10502 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10503
10504 Handle hurd userspace partitions.
10505
10506 * util/getroot.c (find_hurd_root_device): New function.
10507 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10508
10509 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10512 names.
10513 Reported by: Bastian Blank.
10514
10515 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10518 crossing page boundary.
10519
10520 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 Fix B-tree search in BFS, especially in presence of non-ASCII
10523 characters.
10524
10525 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10526 (find_in_b_tree): Use standard bsearch + btree algorithm.
10527
10528 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10529
10530 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10531 and so on.
10532
10533 2012-05-03 Matthew Garrett <mjg@redhat.com>
10534 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10535
10536 Suspend broadcom cards in order to stop their DMA.
10537
10538 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10539 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10540 (pci): Don't build on x86 EFI.
10541 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10542 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10543 New function.
10544 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10545 stop_broadcom if running on EFI.
10546 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10547 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10548 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10549 (grub_pci_find_capability): New proto.
10550
10551 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * docs/grub.texi: Remove dot from the extension as it apparently
10554 doesn't work with some makeinfo versions.
10555
10556 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10559 with GRUB expectance.
10560
10561 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10562
10563 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10564
10565 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10566
10567 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10568 zero after directory block since last entry may be not 0-terminated if
10569 it ends on block boundary. Use continue instead of if spanning whole
10570 loop.
10571
10572 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 Support 4K sectors UDF inline files.
10575
10576 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10577 (grub_udf_extended_file_entry): Likewise.
10578 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10579 All users updated.
10580 (get_fshelp_size): New function.
10581 (grub_udf_read_icb): Read whole block.
10582 (grub_udf_iterate_dir): Likewise.
10583 (grub_udf_dir): Likewise.
10584 (grub_udf_open): Likewise.
10585
10586 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10589
10590 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10593 inline symlinks in addition to workaround.
10594
10595 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10596
10597 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10598
10599 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10602
10603 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10604
10605 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10606
10607 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 Fix reiserfs big seek times.
10610
10611 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10612 exact. All users updated.
10613 (grub_reiserfs_read): Use nearest btree search for seeking.
10614 Fix return value on error.
10615
10616 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10619 entries.
10620 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10621 * docs/grub.texi: Update menuentry description.
10622
10623 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10626 crash when embedding onto filesystem.
10627
10628 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10631 name.
10632
10633 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10636
10637 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10640 commit.
10641
10642 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10643 2012-05-01 Bean <bean123ch@gmail.com>
10644
10645 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10646
10647 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10648
10649 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10650 Special behaviour for len = 0 to read whole file isn't used anywhere and
10651 can cause buffer ovewrflows in several places.
10652
10653 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10656
10657 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10658
10659 Handle RAIDZ on non-512B sectors.
10660
10661 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10662 max_children_ashift.
10663 (fill_vdev_info_real): Fill max_children_ashift.
10664 (read_device): Use max_children_ashift.
10665
10666 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10669
10670 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10673 disk names.
10674 * docs/grub.texi: Update device.map parts.
10675
10676 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 Don't scan into non-diskfilter devices having diskfilter names.
10679
10680 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10681 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10682 handling.
10683 (scan_disk_hook): New function.
10684
10685 2012-04-29 Bean <bean123ch@gmail.com>
10686
10687 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10688 allocation.
10689
10690 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10691
10692 * configure.ac: Detect starfield theme font path
10693 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10694
10695 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10698 geometry on serial consoles.
10699
10700 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10703 because of network consoles.
10704
10705 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10708 handling.
10709
10710 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10711
10712 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10713 falls on Q syndrom.
10714
10715 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10718 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10719
10720 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10721
10722 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10723 Allocate at lest 8192 for temporary buffer as required for lzo.
10724
10725 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10728 to cluster_bits, since it's already added in.
10729 (grub_fat_read_data): Likewise.
10730
10731 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10734 as long as cluster size is multiple of 512 bytes.
10735
10736 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 * util/grub-mkrescue.in: Fix locale directory.
10739
10740 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10741
10742 * grub-core/kern/emu/hostdisk.c (map): Make static.
10743
10744 2012-04-23 Bean <bean123ch@gmail.com>
10745
10746 * util/grub-fstest.c (fstest): Add missing break.
10747
10748 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10749
10750 Fix hurd build.
10751
10752 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10753 not define nr variable.
10754 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10755 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10756 grub_find_device): Do not define.
10757
10758 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 Fix kfreebsd compile and behaviour.
10761
10762 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10763 format-security.
10764 * util/getroot.c: Fix wait.h include.
10765 (grub_guess_root_devices): Error if grub_find_device fails.
10766 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10767 (grub_util_get_dev_abstraction): Likewise.
10768 (grub_util_pull_device): Likewise.
10769 (grub_util_get_grub_dev): Likewise.
10770 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10771
10772 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 Fix and unify wholedisk detection.
10775
10776 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10777 is_part. All users updated.
10778 (device_is_wholedisk): Removed.
10779 (grub_util_biosdisk_get_grub_dev): Use is_part.
10780
10781 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10784 mode.
10785
10786 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * configure.ac: Bump to beta4.
10789
10790 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10793 --fs-uuid --set UUID syntax.
10794
10795 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10796
10797 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10798 disunification.
10799
10800 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10803
10804 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10805
10806 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10807
10808 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10809
10810 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10811
10812 2012-04-18 Bean <bean123ch@gmail.com>
10813
10814 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10815 place.
10816
10817 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10820 users updated.
10821 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10822 corresponding to GRUB partitions.
10823 (grub_util_biosdisk_write): Likewise.
10824
10825 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 Scan mdraid before LVM.
10828
10829 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10830 (grub_diskfilter_register_front): ... this.
10831 (grub_diskfilter_register_back): New function.
10832 All users of grub_diskfilter_register updated.
10833
10834 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 * util/grub-install.in: Fix an automatic target detection bug.
10837
10838 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 * util/grub-install.in: New option --efi-directory.
10841
10842 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10843
10844 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10845 boot services if we have no other choice.
10846
10847 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10850 document it.
10851 * tests/util/grub-shell.in: Update to --directory.
10852
10853 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10854
10855 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10856
10857 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10860 (grub_minix_read_file): Likewise.
10861 (grub_minix_read_inode): Likewise.
10862 (grub_minix_find_file): Likewise.
10863 (grub_minix_dir): Likewise.
10864
10865 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * util/grub-setup.c (setup): Fix partition handling and blocklist
10868 check.
10869
10870 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10873 redundant buggy overlap check.
10874
10875 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10878 and grub-mknetdir.
10879
10880 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10883 kh.loadflags on pre-2.00 kernels.
10884
10885 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10886
10887 Terminate UNDI and PXE before launching the payload to avoid problems
10888 with DMA.
10889
10890 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10891 (grub_loader_flags): ... this. All users updated.
10892 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10893 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10894 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10895 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10896 function.
10897 (grub_pxe_restore): Likewise.
10898 (fini_hnd): New var.
10899 (GRUB_MOD_INIT): Register shutdown hook.
10900 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10901 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10902 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10903 (grub_loader_set): Rename second argument to flags.
10904
10905 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10908 written bytes.
10909 (grub_get_num_of_utf8_bytes): New function.
10910 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10911 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10912 executing it.
10913 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10914 (grub_ucs4_to_utf8): Change return type.
10915
10916 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10919 warning.
10920 * grub-core/fs/bfs.c (hop_level): Likewise.
10921 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10922
10923 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * grub-core/lib/adler32.c: Recode due to license unclearness.
10926
10927 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10930 (test_header): Likewise.
10931
10932 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10933
10934 Fix --help formatting.
10935
10936 * util/grub-mkconfig_lib.in (print_option_help): New function.
10937 (grub_fmt): Likewise.
10938 * util/grub-install.in: Use print_option_help and grub_fmt.
10939 * util/grub-kbdcomp.in: Likewise.
10940 * util/grub-mkconfig.in: Likewise.
10941 * util/grub-mknetdir.in: Likewise.
10942 * util/grub-mkrescue.in: Likewise.
10943 * util/grub-mkstandalone.in: Likewise.
10944 * util/grub-reboot.in: Likewise.
10945 * util/grub-set-default.in: Likewise.
10946 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10947
10948 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 * linguas.sh: Remove autogenerated *.po.
10951
10952 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * po/README: Move language fetcing to ...
10955 * linguas.sh: ... here.
10956 * po/README: Point to linguas.sh.
10957
10958 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 * po/README: Exclude ko.po due to disclaimer problems.
10961
10962 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10965 len = 0.
10966 (grub_gettext_translate_real): Handle 0th string.
10967 (grub_gettext_translate): Ensure that "" isn't translated.
10968
10969 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10972 TRANSLATORS comment.
10973 (grub_diskfilter_print_partmap): Propagate changing of error into
10974 warning.
10975
10976 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10979 to uint64_t to prevent overflow.
10980 (grub_diskfilter_lv): Increase start_extent and extent_count
10981 to uint64_t to prevent overflow.
10982
10983 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * configure.ac: Increase version.
10986
10987 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
10990
10991 * po/Rules-translit: New file.
10992 * po/arabic.sed: Likewise.
10993 * po/cyrillic.sed: Likewise.
10994 * po/greek.sed: Likewise.
10995 * po/hebrew.sed: Likewise.
10996 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
10997 * po/Makefile.in.in: Add extra_dist4.
10998
10999 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11002
11003 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11004 modify names. Introduce MODE_BIGENDIAN.
11005 * grub-core/fs/minix_be.c: New file.
11006 * grub-core/fs/minix2_be.c: Likewise
11007 * grub-core/fs/minix3_be.c: Likewise.
11008 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11009 minix3_be.
11010 * grub-core/Makefile.core.def (minix_be): New module.
11011 (minix2_be): Likewise.
11012 (minix3_be): Likewise.
11013
11014 2012-04-01 Felix <email@hamburg.de>
11015
11016 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11017 (devs): Add MBP 2011.
11018
11019 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11022
11023 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * grub-core/normal/cmdline.c (print_completion): New field
11026 prompt_len.
11027 (grub_cmdline_get): Handle width properly.
11028
11029 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11030
11031 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11032
11033 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11034
11035 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11036 after 29th of February.
11037
11038 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 Fix exfat endianness handling.
11041
11042 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11043 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11044 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11045 Byte-swap utf16 when necessary.
11046 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11047
11048 2012-03-31 Anton Blanchard <anton@samba.org>
11049 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 Fix btrfs endianness handling.
11052
11053 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11054 (lower_bound): Make root uint64_t. Use root in le.
11055 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11056 (find_path): Fix template key init.
11057 (grub_btrfs_dir): Fix mtime byteswap.
11058 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11059
11060 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11063 recursion_depth. Break infinite resursions. All users updated.
11064
11065 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11068 after free.
11069 Reported by: Peter Jones.
11070
11071 2012-03-31 Anton Blanchard <anton@samba.org>
11072
11073 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11074 8 bit values.
11075
11076 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * util/grub-install.in: Fix nvram call for PreP.
11079
11080 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11083 the error when some elements are missing into a warning.
11084
11085 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11088
11089 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11090
11091 * docs/grub.texi (Invoking grub-probe): New section.
11092 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11093
11094 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 Fix tab and wide character handling in editor and menu.
11097
11098 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11099 agglomerate control characters with combining marks.
11100 (bidi_line_wrap): Allow break on tab.
11101 (grub_unicode_get_comb_start): New function.
11102 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11103 and tab correctly.
11104 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11105 with a space.
11106 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11107 fixed_tab_size. All users updated.
11108 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11109 (grub_term_getcharwidth): Handle \t.
11110 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11111 and copy.
11112
11113 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Handle big-endian mdraid.
11116
11117 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11118 * grub-core/Makefile.core.def (mdraid09_be): New module.
11119 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11120 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11121 * grub-core/disk/mdraid_linux_be.c: New file.
11122
11123 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11124
11125 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11126
11127 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11130 missing quotes which caused confusion among translators.
11131
11132 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 * util/grub-mkconfig_lib.in: Fix typo.
11135
11136 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11137
11138 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11139 spaces.
11140 * tests/grub_script_leading_whitespace.in: New file.
11141 * Makefile.util.def (grub_script_leading_whitespace): New test.
11142
11143 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11146 to work.
11147
11148 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11149
11150 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11151 starts with control character.
11152
11153 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11156 overflow.
11157 (grub_gdb_outbuf): Likewise.
11158
11159 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11162 zero terminator. Fixes a crash.
11163
11164 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11167 beyond 4 GiB.
11168 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11169 images independently of preffered adderss field.
11170
11171 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11174 * grub-core/commands/regexp.c: Likewise.
11175 * grub-core/loader/i386/linux.c: Likewise.
11176 * grub-core/partmap/msdos.c: Likewise.
11177 * grub-core/script/execute.c: Likewise.
11178 * grub-core/term/gfxterm.c: Likewise.
11179
11180 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 Add variable parsing in $"..." and fix several mismatches with bash.
11183
11184 * Makefile.util.def (grub_script_gettext): New test.
11185 * grub-core/script/execute.c (parse_string): New function.
11186 (gettext_append): Likewise.
11187 (grub_script_arglist_to_argv): Use gettext_append.
11188 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11189 * tests/grub_script_gettext.in: New file.
11190
11191 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 Fix handling of leading spaces in scripts.
11194
11195 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11196 spaces.
11197 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11198 other than skipping \r. All users updated.
11199 * tests/grub_script_echo1.in: Add space-related tests.
11200 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11201
11202 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11205
11206 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * configure.ac: Bump up the version to beta2.
11209
11210 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 Fix gettext reload bugs (e.g. inability to disable gettext
11213 once enabled).
11214
11215 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11216 main_context and secondary_context. All functions updated.
11217 (grub_gettext_translate): Rename to ...
11218 (grub_gettext_translate_real): ... this. Return NULL on failed
11219 translate.
11220 (grub_gettext_translate): Handle secondary context.
11221 (grub_gettext_delete_list): Close file and zero-out the context.
11222 (grub_mofile_open): Don't call grub_gettext_delete_list.
11223 Don't close file.
11224 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11225 if locale="" to avoid pointless error message.
11226 (grub_gettext_env_write_lang): Update lang even if load fails.
11227 Handle secondary context.
11228 (grub_gettext_reread_prefix): New function.
11229 (read_main): Likewise.
11230 (read_secondary): Likewise.
11231 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11232 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11233 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11234 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11235
11236 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 * configure.ac: Decrease warning level to avoid spurious warnings and
11239 to be able to compile with GCC 4.2.
11240 * Makefile.util.def: Remove -Wno-error=logical-op.
11241
11242 2012-03-10 William Bittner <william.bittner@gmail.com>
11243
11244 * util/import_unicode.py: Add missing brackets around string for
11245 python 3 support.
11246
11247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 Fix efi chainloader on network root.
11250
11251 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11252 network devices.
11253 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11254 New function.
11255
11256 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11259 unused show_text member.
11260 * docs/grub.texi: Document "text" property.
11261
11262 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11265 in dprintf.
11266
11267 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 Fix IMSM handling on Fedora.
11270
11271 * util/getroot.c (grub_util_is_imsm): New function.
11272 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11273
11274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * Makefile.am: Strip gold section.
11277 * conf/Makefile.common: Likewise.
11278 * gentpl.py: Likewise.
11279 * grub-core/Makefile.core.def: Likewise.
11280 * grub-core/genmod.sh.in: Likewise.
11281
11282 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11285 * util/grub.d/20_linux_xen.in: Likewise.
11286 Based on Debian patch.
11287
11288 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11289
11290 * util/grub.d/10_linux.in: Fix syntax error resulting in
11291 Richard Laager's patch.
11292 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11293
11294 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11297 dependencies.
11298
11299 2012-03-10 Richard Laager <rlaager@wiktel.com>
11300
11301 * util/grub.d/10_linux.in: Fix ZFS root passing.
11302
11303 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11304
11305 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11306 * grub-core/commands/xnu_uuid.c: Likewise.
11307 * grub-core/loader/efi/appleloader.c: Likewise.
11308 * grub-core/script/execute.c: Likewise.
11309 * grub-core/script/main.c: Likewise.
11310 * util/grub-mkfont.c: Likewise.
11311
11312 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * util/grub-mkfont.c (options): Use more appropriate "select" that
11315 "set" for face index.
11316
11317 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * util/grub-editenv.c (options): Gettextize command summaries.
11320
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11324 "out of memory" error messagge.
11325
11326 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11329 of diskfilter for diskfilter on diskfilter support.
11330
11331 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11334
11335 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11336
11337 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11338 themes/starfield.
11339
11340 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11341
11342 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11343
11344 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11347
11348 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11351 of error message.
11352
11353 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11356
11357 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11358
11359 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11360 message.
11361 * util/grub-install.in: Fix and gettextize error message.
11362
11363 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11366 Gettextize.
11367 * util/grub-mount.c (options): Likewise.
11368
11369 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11372 gettextize.
11373 * grub-core/commands/search_wrap.c (options): Likewise.
11374
11375 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11378
11379 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11380
11381 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11382 size calculation.
11383 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11384 none is known.
11385
11386 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11389 "temporary" since it's used in identifier and is limited in space.
11390
11391 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11392
11393 * po/POTFILES.in: Regenerate. Include *.h since they contain
11394 translatable strings as well.
11395
11396 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11397
11398 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11399 byte-swap on big-endian.
11400 Reported by: Lennart Sorensen
11401
11402 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11405 (allocate_pages): Improve dprintf.
11406 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11407 code32_start. Fill code32_start and kernel_alignment in params.
11408 (grub_cmd_initrd): Use prot_init_space.
11409
11410 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11413
11414 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * util/grub-install.in: Add missing dot at the end of sentence.
11417
11418 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11419
11420 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11421 * grub-core/commands/videotest.c: Likewise.
11422 * grub-core/loader/i386/linux.c: Likewise.
11423
11424 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11425
11426 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11427 sentence.
11428 Reported by: Milo Casagrande.
11429
11430 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11431
11432 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11433 * grub-core/commands/gptsync.c: Likewise.
11434 * grub-core/commands/hashsum.c: Likewise.
11435 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11436 * grub-core/commands/legacycfg.c: Likewise.
11437 * grub-core/io/gzio.c: Likewise.
11438 * grub-core/net/net.c: Likewise.
11439 * grub-core/term/gfxterm.c: Likewise.
11440 * grub-core/term/terminfo.c: Likewise.
11441 * grub-core/tests/test_blockarg.c: Likewise.
11442 * grub-core/video/video.c: Likewise.
11443 * util/grub-install.in: Likewise.
11444 * util/grub-mkfont.c: Likewise.
11445
11446 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11449
11450 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 * grub-core/commands/search_wrap.c (options): Fix a typo.
11453 Reported by: David Prévot.
11454
11455 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11456
11457 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11458 description.
11459
11460 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11461
11462 * util/grub-script-check.c (main): Fix a syntax error message which was
11463 unclear.
11464
11465 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11468
11469 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11470
11471 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11472 messages.
11473
11474 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11477 without argument.
11478 * util/grub-mount.c (options): Likewise.
11479
11480 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11483
11484 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * grub-core/net/http.c: Add TRANSLATORS comments.
11487 * grub-core/normal/cmdline.c: Likewise.
11488 * grub-core/normal/misc.c: Likewise.
11489 * grub-core/partmap/msdos.c: Likewise.
11490 * grub-core/parttool/msdospart.c: Likewise.
11491 * grub-core/script/execute.c: Likewise.
11492 * grub-core/script/main.c: Likewise.
11493 * grub-core/term/terminfo.c: Likewise.
11494 * grub-core/video/bitmap.c: Likewise.
11495 * util/grub-install.in: Likewise.
11496 * util/grub-mkimage.c: Likewise.
11497 * util/grub-mklayout.c: Likewise.
11498 * util/grub-setup.c: Likewise.
11499
11500 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11503 with similar messages in grub-fstest.
11504
11505 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11506
11507 * util/grub-install.in: Unify "option requires an argument" message
11508 with similar messages in other files.
11509 * util/grub-mkconfig.in: Likewise.
11510
11511 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11512
11513 * util/grub-set-default.in: Replace printf with gettext_printf (the
11514 string in in question is already translated from grub-reboot)
11515
11516 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * configure.ac: Bump up the version to beta1.
11519
11520 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11521
11522 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11523 case when min_align = 0.
11524
11525 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11528 and fix a case when line_start overflows.
11529
11530 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11531
11532 * util/grub-reboot.in (usage): Mention id posibility.
11533 * util/grub-set-default.in (usage): Likewise.
11534
11535 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11538 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11539 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11540 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11541 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11542 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11543 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11544
11545 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * grub-core/commands/menuentry.c (options): Remove
11548 GRUB_ARG_OPTION_REPEATABLE.
11549 Reported by: Andreas Vogel
11550
11551 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11552
11553 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11554
11555 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11556
11557 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11558 error.
11559
11560 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 Use sort -V by the idea of Georgi Georgiev.
11563
11564 * util/grub-mkconfig_lib.in (version_sort): New function.
11565 (version_test_numeric): Use version_sort.
11566
11567 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 Use submenus in grub-mkconfig.
11570
11571 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11572 * util/grub-mkconfig_lib.in (grub_quote): New function.
11573 (gettext_printf): Use gettext and not gettext_quoted to fix several
11574 messages.
11575 * util/grub.d/10_hurd.in: Use submenus.
11576 * util/grub.d/10_kfreebsd.in: Likewise.
11577 * util/grub.d/10_linux.in: Likewise.
11578 * util/grub.d/10_netbsd.in: Likewise.
11579 * util/grub.d/20_linux_xen.in: Likewise.
11580 * util/grub.d/30_os-prober.in: Likewise.
11581 * util/grub.d/10_illumos.in: Add missing quoting.
11582 * util/grub.d/10_windows.in: Likewise.
11583
11584 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11585
11586 Fix menu title instability bug.
11587
11588 * grub-core/commands/menuentry.c (options): New option --id.
11589 (grub_normal_add_menu_entry): New argument id. All users updated.
11590 (grub_cmd_menuentry): Handle --id.
11591 (grub_menu_init): Accept unknown arguments.
11592 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11593 feature_menuentry_options.
11594 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11595 saved_entry.
11596 (get_entry_number): Match with id as well.
11597 * include/grub/menu.h (grub_menu_entry): New member id.
11598 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11599 * util/grub.d/00_header.in: Define menuentry_id_option.
11600 * util/grub.d/10_hurd.in: Define id.
11601 * util/grub.d/10_illumos.in: Likewise.
11602 * util/grub.d/10_kfreebsd.in: Likewise.
11603 * util/grub.d/10_linux.in: Likewise.
11604 * util/grub.d/10_netbsd.in: Likewise.
11605 * util/grub.d/10_windows.in: Likewise.
11606 * util/grub.d/20_linux_xen.in: Likewise.
11607 * util/grub.d/30_os-prober.in: Likewise.
11608
11609 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11612 "scope" with "body".
11613
11614 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11617 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11618 prot_size and prot_file_size.
11619
11620 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11621
11622 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11623 All users updated. If easily=1 require raid-5/-6 to be full.
11624 (is_node_readable): Likewise.
11625 (scan_devices): Scan incomplete but readable LVs at the end.
11626 (grub_diskfilter_memberlist): Pull missing devices.
11627 (insert_array): Skip scanning until device is complete or scan is
11628 done otherwise.
11629 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11630 check.
11631 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11632 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11633
11634 2012-03-03 Matthew Garrett <mjg@redhat.com>
11635 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 Avoid EFI boot services when loading Linux.
11638
11639 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11640 avoid_efi_bootservices. All users updated.
11641 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11642 argument avoid_efi_bootservices. All users updated.
11643 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11644 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11645 align, min_align, relocatable, prefered_address. All users updated.
11646 Allocate avoiding boot services if kernel is relocatable.
11647 (grub_cmd_linux): Check if kernel is relocatable.
11648 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11649 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11650 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11651 avoid_efi_boot_services.
11652 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11653 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11654 (linux_kernel_params): Likewise.
11655
11656 2012-03-03 Matthew Garrett <mjg@redhat.com>
11657 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11658
11659 Use EDID on EFI.
11660
11661 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11662 datasize_out.
11663 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11664 modes. Set gop_handle.
11665 (grub_video_gop_get_edid): New function.
11666 (grub_gop_get_preferred_mode): Likewise.
11667 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11668 (grub_video_efi_gop_adapter): Set .get_edid.
11669 * include/grub/efi/edid.h: New file.
11670 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11671
11672 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11673
11674 * util/grub-install.in: Load efivars unconditionally.
11675
11676 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11677
11678 * po/Rules-piglatin: Change suffix from .po-update-en to
11679 .po-update-en-piglatin.
11680
11681 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 Add a pig farm.
11684
11685 * po/piglatin.sed: New file.
11686 * po/en@piglatin.header: Likewise.
11687 * po/Rules-piglatin: Likewise.
11688 * po/README: Add en@piglatin to autogenerated languages.
11689
11690 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11693 "Command for ...".
11694 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11695 "Check" since we don't check anything.
11696 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11697 is 64-bit one.
11698 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11699 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11700 (grub_md_sha512_real): Likewise.
11701
11702 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11703
11704 * grub-core/commands/gptsync.c: Fix typographic quoting.
11705 * grub-core/commands/ieee1275/suspend.c: Likewise.
11706 * grub-core/commands/parttool.c: Likewise.
11707 * grub-core/commands/search_wrap.c: Likewise.
11708 * grub-core/commands/videoinfo.c: Likewise.
11709 * grub-core/gfxmenu/gui_label.c: Likewise.
11710 * grub-core/hello/hello.c: Likewise.
11711 * grub-core/kern/emu/main.c: Likewise.
11712 * grub-core/net/net.c: Likewise.
11713 * grub-core/normal/menu.c: Likewise.
11714 * grub-core/normal/menu_text.c: Likewise.
11715 * grub-core/normal/misc.c: Likewise.
11716 * util/grub-editenv.c: Likewise.
11717 * util/grub-install.in: Likewise.
11718 * util/grub-kbdcomp.in: Likewise.
11719 * util/grub-mkconfig.in: Likewise.
11720 * util/grub-mknetdir.in: Likewise.
11721 * util/grub-mkrescue.in: Likewise.
11722 * util/grub-mkstandalone.in: Likewise.
11723 * util/grub-reboot.in: Likewise.
11724 * util/grub-set-default.in: Likewise.
11725 * util/grub-setup.c: Likewise.
11726 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11727
11728 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11731 * grub-core/commands/keystatus.c: Likewise.
11732 * grub-core/commands/loadenv.c: Likewise.
11733 * grub-core/commands/probe.c: Likewise.
11734 * grub-core/commands/regexp.c: Likewise.
11735 * grub-core/commands/true.c: Likewise.
11736 * grub-core/commands/videoinfo.c: Likewise.
11737 * grub-core/disk/cryptodisk.c: Likewise.
11738 * grub-core/disk/ldm.c: Likewise.
11739 * grub-core/disk/loopback.c: Likewise.
11740 * grub-core/disk/luks.c: Likewise.
11741 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11742 * grub-core/kern/disk.c: Likewise.
11743 * grub-core/kern/emu/hostdisk.c: Likewise.
11744
11745 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11748 * util/grub-install.in: Add missing quote in the comment.
11749
11750 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11751
11752 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11753 * grub-core/commands/lsmmap.c: Likewise.
11754 * grub-core/commands/minicmd.c: Likewise.
11755 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11756 * grub-core/commands/regexp.c: Likewise.
11757 * grub-core/gdb/gdb.c: Likewise.
11758 * grub-core/term/gfxterm.c: Likewise.
11759 * util/grub-mkconfig.in: Likewise.
11760 * util/grub-mkfont.c: Likewise.
11761 * util/grub-mklayout.c: Likewise.
11762 * util/grub-mknetdir.in: Likewise.
11763 * util/grub-mkrescue.in: Likewise.
11764 * util/grub.d/30_os-prober.in: Likewise.
11765
11766 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11769 with "Direct color" and "Packed" with "Packed pixel".
11770 (grub_cmd_videoinfo): Simplify legend.
11771
11772 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11773
11774 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11775 absolutely unclear error message.
11776
11777 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11778
11779 * util/grub-mkstandalone.in: Remove confusing leftover print.
11780
11781 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11782
11783 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11784 comments.
11785 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11786 (GRUB_MOD_INIT): Likewise.
11787 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11788 VGA mode.
11789 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11790 comments.
11791 * util/grub-install.in (usage): Likewise.
11792 Spell ID in whole letters.
11793 Add missing ending dot.
11794 Quote variables.
11795 * util/grub-reboot.in: Fix capitalisation.
11796 * util/grub-set-default.in: Likewise.
11797
11798 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11799
11800 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11801 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11802 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11803 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11804 Disable -Werror for -Wdeprecated-declarations.
11805 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11806 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11807 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11808 (grub_util_get_grub_dev): Make luks handling dependent on
11809 HAVE_DEVICE_MAPPER and not __linux__.
11810 (get_win32_path): Fix format security.
11811 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11812 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11813 Don't try grub_find_zpool_from_dir.
11814 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11815 #ifdef-out paresdir.
11816
11817 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * util/grub-pe2elf.c (usage): Add missing noreturn.
11820 (write_section_data): Rename name to shname to avoid shadowing.
11821 (write_symbol_table): Rename name to symname to avoid shadowing.
11822 Fix write_reloc_section call.
11823
11824 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11827 to ensure that it's after the last byte of .text.
11828
11829 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11830
11831 * util/ieee1275/ofpath.c (my_isdigit): New function.
11832 (trailing_digits): Use my_isdigit.
11833 (strip_trailing_digits): Likewise.
11834
11835 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11836
11837 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11838 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11839
11840 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11841
11842 * grub-core/kern/i386/pc/startup.S: Define __start.
11843
11844 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11845
11846 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11847 strip already transforms he format.
11848
11849 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11850
11851 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11852
11853 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * util/grub-install.in: Add missing gettext init.
11856 * util/grub-kbdcomp.in: Likewise.
11857 * util/grub-mkconfig.in: Likewise.
11858 * util/grub-mknetdir.in: Likewise.
11859 * util/grub-mkrescue.in: Likewise.
11860 * util/grub-mkstandalone.in: Likewise.
11861 * util/grub-reboot.in: Likewise.
11862 * util/grub-set-default.in: Likewise.
11863 * util/grub.d/00_header.in: Likewise.
11864 * util/grub.d/10_hurd.in: Likewise.
11865 * util/grub.d/10_windows.in: Likewise.
11866 * util/grub.d/30_os-prober.in: Likewise.
11867 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11868
11869 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11870
11871 * po/Rules-swiss: Fix header comment.
11872
11873 2012-02-29 Andreas Vogel <anvoit>
11874
11875 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11876 resulted in leak of arguments.
11877
11878 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11881 reed_solomon_size const definition instead of computing it since
11882 Apple assembler doesn't support the later.
11883
11884 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * gentpl.py (kernel): Rewrite Apple part.
11887
11888 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11891
11892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11895 ELF section gap.
11896 (load_image): Likewise.
11897
11898 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 * configure.ac: Fix a typo in previous commit.
11901
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 Don't add -Wl,-N on Apple platform.
11905
11906 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11907 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11908
11909 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11910
11911 * grub-core/Makefile.core.def (lzma_decompress): Use
11912 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11913
11914 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11915
11916 * grub-core/genmod.sh.in: Rewrite the Apple part.
11917
11918 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11921 comparison.
11922
11923 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11924
11925 * acinclude.m4 (grub_CHECK_PIC): New test.
11926 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11927
11928 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11929
11930 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11931 to avoid the warning.
11932
11933 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11936 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11937 after. All users updated.
11938
11939 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 Use the common size routine in hostfs so we can read disks as well.
11942
11943 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11944 (grub_util_get_fd_size): ... this. Return size in bytes.
11945 All users updated.
11946 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11947 grub_util_get_fd_size.
11948
11949 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11952 Add blocksize retrieval.
11953
11954 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * configure.ac: Restore CFLAGS after efiemu check.
11957
11958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11961 Apple bug.
11962
11963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11966
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11970 (grub_cmd_halt): Likewise.
11971
11972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11975 for local arithmetics.
11976 Break %sp init into 2 instructions.
11977 Add 0 byte at the end.
11978
11979 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11980
11981 * grub-core/disk/diskfilter.c (read_segment): Initialise err
11982 before loops.
11983
11984 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11985
11986 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
11987 for context.
11988
11989 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11990
11991 * grub-core/disk/ldm.c (make_vg): Init part.name.
11992 (grub_ldm_detect): Silence spurious warning.
11993 (grub_util_is_ldm): Likewise.
11994
11995 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
11998 sane value to avoid a spurious warning.
11999
12000 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12003 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12004
12005 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12008 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12009
12010 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12011
12012 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12013 hardcoding the relevant info.
12014
12015 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12018 missing const qualifiers.
12019 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12020
12021 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12022
12023 * util/getroot.c [__APPLE__]: Add missing includes.
12024 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12025
12026 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12029
12030 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12033 avoid conflicts.
12034
12035 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12038
12039 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12042 and grub_file_close call.
12043
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 Add LZSS Mach-O support (needed for new xnu kernelcache).
12047
12048 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12049 * grub-core/loader/lzss.c: New file.
12050 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12051 on Mach-O open failure.
12052 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12053 Don't free cmdsXX in uncompressedXX is set.
12054 (grub_macho_file): Init new fields.
12055 New argument is_64bit. All users updated.
12056 Handle compressed. Error out if no suitable architecture is found.
12057 Don't close file.
12058 (grub_macho_open): New argument is_64bit. All users updated.
12059 * grub-core/loader/macho32.c: Add defines for new fields.
12060 * grub-core/loader/macho64.c: Likewise.
12061 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12062 (grub_macho_parse): Handle compressed.
12063 Defer actual processing if compressed.
12064 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12065 "filename". All users updated.
12066 (grub_macho_size): New argument "filename". All users updated.
12067 (grub_macho_get_entry_point): Likewise.
12068 (grub_macho_load): Handle compressed.
12069 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12070 (GRUB_MACHO_LZSS_OFFSET): New define.
12071 (grub_decompress_lzss): New proto.
12072 * include/grub/machoload.h (grub_macho_file): New fields to handle
12073 compressed.
12074 (grub_macho_contains_macho64): Remove proto.
12075 (grub_macho_contains_macho32): Likewise.
12076 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12077
12078 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12079
12080 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12081
12082 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12083
12084 Fix make dist.
12085
12086 * Makefile.am (starfield_theme_files): New var.
12087 (starfield_DATA): Use starfield_theme_files.
12088 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12089 Add bootcheck-related files.
12090 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12091 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12092 and font_char_metrics.txt.
12093 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12094 (setjmp): Add lib/ia64/longjmp.S.
12095 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12096 * po/POTFILES.in: Regenerate.
12097 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12098 DISTFILES.common.extra1.
12099 * util/devicemap.c: Removed.
12100 * grub-core/lib/i386/relocator_backward.S: Likewise.
12101 * util/import_gcry.py: Remove unused files. Add extra_dist for
12102 ChangeLog.
12103
12104 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12107 grub_gettext_delete_list before changing grub_gettext_max to avoid
12108 running out of array bounds.
12109
12110 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12113 grub_vga_text_init/grub_vga_text_fini.
12114
12115 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12118
12119 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * configure.ac: Bump to 2.00~beta0.
12122
12123 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12126 missing initialisation.
12127
12128 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12131
12132 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 Support v2 xnu boot arguments.
12135
12136 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12137 New argument fsbfreq_out.
12138 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12139 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12140 be used.
12141 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12142 darwin_version.
12143 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12144 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12145 (grub_xnu_boot_params): Rename to ...
12146 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12147 (grub_xnu_boot_params_v2): New struct.
12148
12149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12152 zeroing of CRC field before computing CRC.
12153
12154 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12155
12156 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12157 Change order of allocations to decrease fragmentation.
12158
12159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12162
12163 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12164
12165 Use write-combining MTRR to speed up video with buggy BIOSes.
12166
12167 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12168 (cpuid): New define.
12169 (rdmsr): Likewise.
12170 (wrmsr): Likewise.
12171 (mtrr_base): Likewise.
12172 (mtrr_mask): Likewise.
12173 (grub_vbe_enable_mtrr_entry): New function.
12174 (grub_vbe_enable_mtrr): Likewise.
12175 (grub_vbe_disable_mtrr): Likewise.
12176 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12177 control off to BIOS.
12178 (grub_video_vbe_init): Fill mtrr.
12179 (grub_video_vbe_fini): Disable mtrr.
12180 (grub_video_vbe_get_info_and_fini): Likewise.
12181 (grub_video_vbe_setup): Enable mtrr.
12182
12183 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12184
12185 * include/grub/partition.h (grub_partition_map): Change prototype of
12186 embed to take a maximum value for nsectors.
12187 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12188 * include/grub/fs.h (grub_fs): Likewise.
12189 * grub-core/partmap/msdos.c (embed_signatures): New array.
12190 (pc_partition_map_embed): Check for and avoid sectors matching any
12191 of the signatures in embed_signatures, up to max_nsectors.
12192 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12193 returned sector map to max_nsectors.
12194 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12195 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12196 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12197 * util/grub-setup.c (setup): Allow for the embedding area being
12198 split into multiple blocklists. Tell dest_partmap->embed the
12199 maximum number of sectors we care about.
12200
12201 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12202
12203 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12204 Specify blocklist_install and reserver_first_sector for all fs.
12205 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12206 blocklists.
12207
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * util/grub-install.in: Clarify strings.
12211 Fix source dir check.
12212
12213 2012-02-27 Richard Laager <rlaager@wiktel.com>
12214
12215 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12216 "zfs" and "fuse.zfs" as synonyms.
12217
12218 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12219
12220 * configure.ac: Put platform and target_cpu substitutions back since
12221 they are used for directories.
12222
12223 2012-02-27 Richard Laager <rlaager@wiktel.com>
12224 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12227 * util/grub.d/20_linux_xen.in: Likewise.
12228
12229 2012-02-27 Richard Laager <rlaager@wiktel.com>
12230
12231 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12232 with full paths.
12233
12234 2012-02-27 Richard Laager <rlaager@wiktel.com>
12235
12236 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12237 unescape.
12238
12239 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12240
12241 Don't use insecure popen in getroot.
12242
12243 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12244 (exec_pipe): ... here.
12245 (find_root_devices_from_poolname): Use exec_pipe.
12246
12247 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12248
12249 Remove platform and target_cpu replacement.
12250
12251 * configure.ac: Remove platform and target_cpu substitutions.
12252 * tests/util/grub-shell.in: Use modinfo.
12253 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12254 explicitly.
12255
12256 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12257
12258 Autodetect platform in grub-install but allow override.
12259
12260 * util/grub-install.in: Autodetect platform. Support --target and
12261 --directory. Read platform from modinfo.sh.
12262
12263 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 Support btrfs multi-volume probe.
12266
12267 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12268 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12269 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12270 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12271 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12272 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12273 grub_find_root_devices_from_btrfs if on btrfs.
12274
12275 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 Remove any awareness of *.c util files about target.
12278
12279 * Makefile.util.def (grub-setup): Split to ...
12280 (grub-bios-setup): ... and this.
12281 (grub-sparc64-setup): ... and this.
12282 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12283 * docs/man/grub-setup.h2m: Split into ...
12284 * docs/man/grub-sparc64-setup.h2m: ... this.
12285 * docs/man/grub-bios-setup.h2m: ... and this.
12286 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12287 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12288 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12289 (grub_target_addr_t): Remove.
12290 (grub_target_size_t): Remove.
12291 (grub_target_ssize_t): Remove.
12292 * util/grub-install.in: Use new grub-*-setup.
12293 * util/grub-mkimagexx.c (Elf_Word): New define.
12294 (Elf_Half): Likewise.
12295 (Elf_Section): Likewise.
12296 (ELF_ST_TYPE): Likewise.
12297 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12298 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12299
12300 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 Replace grub_target_addr with more appropriate types.
12303
12304 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12305 grub_target_addr with grub_addr.
12306 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12307 grub_target_addr with grub_port.
12308 (grub_cmd_write): Likewise.
12309 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12310 grub_target_addr with grub_addr.
12311 (grub_cmd_write): Likewise.
12312 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12313
12314 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12315
12316 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12317 const qualifier for vendor_guid.
12318
12319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12322 const qualifier.
12323 (efiemu_memequal): Likewise.
12324 (find_variable): Likewise.
12325
12326 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 Fix missing console prototype on qemu-mips.
12329
12330 * include/grub/mips/qemu_mips/console.h: New file.
12331
12332 2012-02-27 Matthew Garrett <mjg@redhat.com>
12333 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12336 * include/grub/efi/efi.h: Likewise.
12337 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12338 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12339 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12340 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12341 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12342 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12343
12344 2012-02-27 Matthew Garrett <mjg@redhat.com>
12345
12346 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12347
12348 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12349
12350 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12351 error.
12352
12353 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 * configure.ac: Remove inappropriate use of program_transform_name
12356 on grubdir and bootdir but allow explicit specification of those
12357 variables.
12358
12359 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12360
12361 * util/grub-mknetdir.in (grub_prefix): Removed.
12362 (subdir): Use @bootdirname@ and @grubdirname@.
12363
12364 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12365
12366 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12367
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * po/POTFILES.in: Regenerated.
12371
12372 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 Remove improper use of program_transform_name on pkglibrootdir.
12375
12376 * configure.ac (pkglibrootdir): Removed.
12377 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12378 * util/grub-mkimage.c: Likewise.
12379
12380 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12381
12382 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12383 warning.
12384
12385 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12386
12387 * util/grub-install.in: Use file identifier if no UUID is available
12388 or user explicitly prompted for it.
12389
12390 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12391
12392 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12393 (freebsd_get_zfs): New function.
12394 (grub_freebsd_boot): Pass zfs UUID.
12395 (grub_cmd_freebsd): Set zfs UUID.
12396
12397 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12398
12399 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12400 pkglibrootdir.
12401
12402 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12403
12404 Add configure flag to control libzfs integration.
12405
12406 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12407
12408 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12409
12410 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12411 device.
12412 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12413 small devices.
12414
12415 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12418 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12419 be used on non-modules.
12420
12421 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12422 Rename to grub_boot_init.
12423 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12424 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12425 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12426 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12427 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12428 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12429 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12430 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12431 includes.
12432 (grub_machine_init): Remove empty inits.
12433 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12434 includes.
12435 (grub_machine_init): Remove empty inits.
12436 * grub-core/term/arc/console.c: Remove explicit proto.
12437 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12438 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12439 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12440 grub_at_keyboard_fini.
12441 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12442 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12443 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12444 grub_gfxterm_fini.
12445 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12446 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12447 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12448 grub_vgatext_fini.
12449 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12450 * grub-core/term/serial.c (GRUB_MOD_INIT)
12451 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12452 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12453 grub_serial_fini.
12454 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12455 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12456 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12457 grub_terminfo_fini.
12458 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12459 (GRUB_MOD_FINI): Likewise.
12460 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12461 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12462 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12463 grub_video_radeon_fuloong2e_fini.
12464 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12465 [LOONGSON]: Rename to grub_video_sis315pro_init.
12466 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12467 grub_video_sis315pro_fini.
12468 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12469 [LOONGSON]: Rename to grub_video_sm712_init.
12470 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12471 grub_video_sm712_fini.
12472 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12473 (grub_at_keyboard_fini): Likewise.
12474 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12475 Don't declare grub_{modname}_init.
12476 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12477 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12478 New proto.
12479 (grub_keylayouts_fini) [!EMU]: Likewise.
12480 * include/grub/serial.h (grub_serial_init) [!EMU]:
12481 New proto.
12482 (grub_serial_fini) [!EMU]: Likewise.
12483 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12484 New proto.
12485 (grub_terminfo_fini) [!EMU]: Likewise.
12486 * include/grub/video.h (grub_font_init) [!EMU]:
12487 New proto.
12488 (grub_font_fini) [!EMU]: Likewise.
12489 (grub_gfxterm_init) [!EMU]: Likewise.
12490 (grub_gfxterm_fini) [!EMU]: Likewise.
12491 (grub_video_sm712_init) [!EMU]: Likewise.
12492 (grub_video_sm712_fini) [!EMU]: Likewise.
12493 (grub_video_sis315pro_init) [!EMU]: Likewise.
12494 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12495 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12496 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12497
12498 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12499
12500 Make nand a prefix for nand devices.
12501
12502 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12503
12504 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12507 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12508
12509 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12510
12511 * include/grub/env.h (grub_env_find): Remove prototype.
12512 * grub-core/kern/env.c (grub_env_find): Make static.
12513 (grub_env_set): Remove useless set.
12514
12515 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12516
12517 * grub-core/kern/i386/realmode.S: Remove useless align.
12518
12519 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 * include/grub/dl.h (grub_dl_load_file): Don't export.
12522
12523 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12526 grub_dprintf.
12527
12528 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12529
12530 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12531 grub_errors.
12532 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12533 not reloading whole superblock but only the part which is really needed.
12534 Remove useless grub_errors.
12535 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12536 grub_errors.
12537
12538 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 Don't export grub_get_rtc.
12541
12542 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12543 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12544
12545 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12548
12549 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12550
12551 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12552 argument since it can be deduced from diskfilter. All users updated.
12553
12554 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 Remove prio_list.
12557
12558 * include/grub/list.h (grub_prio_list): Removed.
12559 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12560 GRUB_COMMAND_PRIO_MASK.
12561 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12562 GRUB_COMMAND_FLAG_ACTIVE.
12563 (grub_prio_list_insert): Removed.
12564 (grub_prio_list_remove): Likewise.
12565 (GRUB_AS_PRIO_LIST): Likewise.
12566 (GRUB_AS_PRIO_LIST_P): Likewise.
12567 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12568 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12569 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12570 * grub-core/kern/command.c (grub_register_command_prio): Inline
12571 the prio_list code.
12572 (grub_unregister_command): Likewise.
12573
12574 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 Fix interrupt mixup from previous commit.
12577
12578 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12579 (grub_realidt): New var.
12580 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12581 Load idt.
12582 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12583 New declaration.
12584 (grub_relocator16_boot): Set grub_relocator16_idt.
12585 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12586 (LOCAL(realidt)): ... this.
12587 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12588 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12589 (grub_realidt): New variable.
12590
12591 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12594 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12595 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12596 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12597 Gettextize.
12598 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12599 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12600 * po/POTFILES.in: Regenerate.
12601
12602 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12603
12604 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12605 errors.
12606
12607 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12610 \0.
12611 (add_length): Likewise.
12612
12613 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12614 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12615
12616 GDB serial and backtrace support.
12617
12618 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12619 (prot_to_real): Likewise.
12620 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12621 * grub-core/Makefile.core.def (backtrace): New module.
12622 (gdb): Likewise.
12623 * grub-core/gdb/cstub.c: New file.
12624 * grub-core/gdb/gdb.c: Likewise.
12625 * grub-core/gdb/i386/idt.c: Likewise.
12626 * grub-core/gdb/i386/machdep.S: Likewise.
12627 * grub-core/gdb/i386/signal.c: Likewise.
12628 * grub-core/lib/i386/backtrace.c: Likewise.
12629 * grub-core/lib/backtrace.c: Likewise.
12630 * include/grub/backtrace.h: Likewise.
12631 * include/grub/gdb.h: Likewise.
12632 * include/grub/i386/gdb.h: Likewise.
12633
12634 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12637 New function.
12638 (add_length): Likewise.
12639 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12640 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12641 proto.
12642 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12643 __argp_get_display_len.
12644
12645 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 $"..." support in scripts.
12648
12649 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12650 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12651 * grub-core/script/yylex.l: Likewise.
12652 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12653 value.
12654
12655 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656
12657 * gentpl.py: Remove obsolete pkglib_DATA handling.
12658
12659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12662 mailing list.
12663
12664 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12665 * util/grub-kbdcomp.in: Likewise.
12666 * util/grub-mkconfig.in: Likewise.
12667 * util/grub-mkconfig_lib.in: Likewise.
12668 * util/grub-mknetdir.in: Likewise.
12669 * util/grub-mkrescue.in: Likewise.
12670 * util/grub-mkstandalone.in: Likewise.
12671 * util/grub-reboot.in: Likewise.
12672 * util/grub-set-default.in: Likewise.
12673 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12674
12675 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12676
12677 Remove GRUB_PREFIX.
12678
12679 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12680 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12681 used for backward compatibility.
12682
12683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 Add new all_video module.
12686
12687 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12688 * grub-core/Makefile.core.def (all_video): New module.
12689 * grub-core/genmoddep.awk: Generate dependency of all_video from
12690 video.lst.
12691 * grub-core/lib/fake_module.c: New file.
12692 * grub-core/normal/main.c (features): Add feature_all_video_module.
12693 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12694 don't do explicit search again.
12695 insmod all_video in load_video if available.
12696
12697 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12698
12699 Another round of string clarification and adding TRANSLATORS comments.
12700
12701 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12702
12703 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12704
12705 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12708 to grub_ssize_t.
12709 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12710 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12711
12712 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12713
12714 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12715 trailing newline implicitly. All users updated.
12716
12717 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 Implement serial on IEEE1275 and EFI.
12720
12721 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12722 on emu. Mention arc and emu as the only platforms without serial
12723 support.
12724 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12725 ieee1275 platforms.
12726 * grub-core/term/efi/serial.c: New file.
12727 * grub-core/term/ieee1275/serial.c: Likewise.
12728 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12729 specification if no ns8250 driver is available.
12730 (grub_cmd_serial): Likewise.
12731 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12732 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12733 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12734 (grub_efi_parity_type_t): New type.
12735 (grub_efi_stop_bits_t): Likewise.
12736 (grub_efi_serial_io_interface): New struct.
12737 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12738 available for all interfaces.
12739 Add EFI and IEEE1275 fields.
12740 (grub_ofserial_init): New proto.
12741 (grub_efiserial_init): Likeiwse.
12742 * util/grub.d/00_header.in: Don't check for the presence of serial
12743 module.
12744
12745 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12748 name as if it was an alias.
12749
12750 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12751
12752 * grub-core/commands/lsacpi.c (options): Fix typo.
12753
12754 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12755
12756 Convert grub-emu to argp.
12757
12758 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12759 emu.
12760 * util/argp_common.c: Rename to ...
12761 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12762 Add missing includes.
12763 * grub-core/kern/emu/main.c: Convert to argp.
12764 * po/POTFILES.in: Regenerate.
12765 * util/grub-install.in (usage): Make first letter lowcase in messages
12766 for uniformity.
12767 * util/grub-setup.c (options): Likewise.
12768
12769 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12770
12771 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12772 Put back accidently commented-out code.
12773
12774 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12775
12776 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12777 loop check using Brent algorithm.
12778 (grub_hfsplus_btree_search): Likewise.
12779
12780 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 * util/grub-install.in: Fix usage of wrong device for PreP install.
12783
12784 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * conf/Makefile.common (CFLAGS_GNULIB): Add
12787 -Wno-unsafe-loop-optimizations.
12788 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12789 on tools.
12790 * grub-core/commands/legacycfg.c: Add pragma to skip
12791 -Wunsafe-loop-optimizations.
12792 (check_password_md5_real): Fix loop counter type.
12793 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12794 reading.
12795 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12796 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12797 loop condition.
12798 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12799 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12800 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12801 condition.
12802 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12803 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12804 avoid possible infinite loops.
12805 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12806 and -Wunsafe-loop-optimizations.
12807 * grub-core/script/yylex.l: Likewise.
12808 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12809 (print_glyphs): Avoid infinite loops.
12810 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12811
12812 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12813
12814 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12815 to avoid infinite loop.
12816 (disp_acpi_rsdt_table): Likewise.
12817
12818 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * grub-core/font/font.c (grub_font_load): Add support for default
12821 path for fonts ($prefix/fonts).
12822 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12823 for checking if string is a path.
12824 * grub-core/normal/main.c (features): Add feature_default_font_path.
12825 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12826 * util/grub.d/00_header.in: Use default directory if possible.
12827 * util/grub-install.in: Install unicode.pf2.
12828
12829 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12830
12831 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12832 * po/Rules-swiss: New file.
12833 * po/swiss.sed: Likewise.
12834
12835 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 * grub-core/fs/btrfs.c (find_device): Fix typos.
12838 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12839 * util/grub-mkrelpath.c (argp_parser): Likewise.
12840 Reported by: Yuri Chornoivan.
12841
12842 2012-02-23 Dalet Omega <daletomega@gmail.com>
12843
12844 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12845 for usual informative messages.
12846
12847 2012-02-23 Dalet Omega <daletomega@gmail.com>
12848
12849 Starfield theme.
12850
12851 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12852 * conf/Makefile.common: Define starfielddir.
12853 * configure.ac: Configure starfield.
12854 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12855 * themes/starfield/README: Likewise.
12856 * themes/starfield/blob_w.png: Likewise.
12857 * themes/starfield/boot_menu_c.png: Likewise.
12858 * themes/starfield/boot_menu_e.png: Likewise.
12859 * themes/starfield/boot_menu_n.png: Likewise.
12860 * themes/starfield/boot_menu_ne.png: Likewise.
12861 * themes/starfield/boot_menu_nw.png: Likewise.
12862 * themes/starfield/boot_menu_s.png: Likewise.
12863 * themes/starfield/boot_menu_se.png: Likewise.
12864 * themes/starfield/boot_menu_sw.png: Likewise.
12865 * themes/starfield/boot_menu_w.png: Likewise.
12866 * themes/starfield/slider_c.png: Likewise.
12867 * themes/starfield/slider_n.png: Likewise.
12868 * themes/starfield/slider_s.png: Likewise.
12869 * themes/starfield/src/blob_nw.xcf: Likewise.
12870 * themes/starfield/src/bootmenu/: Likewise.
12871 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12872 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12873 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12874 * themes/starfield/src/slider_c.xcf: Likewise.
12875 * themes/starfield/src/slider_n.xcf: Likewise.
12876 * themes/starfield/src/slider_s.xcf: Likewise.
12877 * themes/starfield/src/terminalbox/: Likewise.
12878 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12879 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12880 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12881 * themes/starfield/starfield.png: Likewise.
12882 * themes/starfield/terminal_box_c.png: Likewise.
12883 * themes/starfield/terminal_box_e.png: Likewise.
12884 * themes/starfield/terminal_box_n.png: Likewise.
12885 * themes/starfield/terminal_box_ne.png: Likewise.
12886 * themes/starfield/terminal_box_nw.png: Likewise.
12887 * themes/starfield/terminal_box_s.png: Likewise.
12888 * themes/starfield/terminal_box_se.png: Likewise.
12889 * themes/starfield/terminal_box_sw.png: Likewise.
12890 * themes/starfield/terminal_box_w.png: Likewise.
12891 * themes/starfield/theme.txt: Likewise.
12892
12893 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * util/grub.d/00_header.in: Add missing export theme.
12896
12897 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12900 already included.
12901 Reported by: Eren D.
12902
12903 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * conf/Makefile.common (grubdatadir): Removed.
12906 (Makefile.am): Move eveything grubdata to pkgdata.
12907
12908 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12909
12910 * grub-core/commands/acpihalt.c (get_sleep_type):
12911 Remove unused variable.
12912
12913 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12916 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12917 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12918 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12919 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12920 i18n with gettext no-op.
12921 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12922 GRUB_ACPI_OPCODE_STRING_CONST.
12923 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12924 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12925
12926 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12927
12928 * po/POTFILES.in: Regenerate.
12929
12930 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12931
12932 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12933 -Wno-error=missing-noreturn.
12934
12935 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12938 condition to avoid possibly infinite loops.
12939 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12940 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12941
12942 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12943
12944 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12945 condition to avoid possibly infinite loops.
12946
12947 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12950 on show_error.
12951
12952 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12955
12956 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12959
12960 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * util/bin2h.c (usage): Add missing attribute noreturn.
12963
12964 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12967 if the size isn't divisible by 512.
12968
12969 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 Make list_push and list_remove functions rather than inline functions
12972 to decrease size and avoid aliasing violations.
12973
12974 * include/grub/list.h (grub_list_push): Move to ...
12975 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12976 * include/grub/list.h (grub_list_remove): Move to ...
12977 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12978
12979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
12982 and -Wunused-result.
12983
12984 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
12987 Reported by: Seth Goldberg
12988
12989 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
12992
12993 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12994
12995 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
12996 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
12997 command line.
12998 * docs/grub.texi (Simple configuration): Document
12999 GRUB_CMDLINE_GNUMACH.
13000
13001 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * conf/Makefile.common (platform_SCRIPTS): New variable.
13004 (platform_PROGRAMS): Likewise.
13005 * gentpl.py: Mark *,module and *.image for install.
13006 * grub-core/gdb_grub.in: Add a notice of expected environment.
13007 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13008 (gmodule.pl): Likewise.
13009
13010 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13011
13012 Replace grub_checkkey with grub_getkey_noblock.
13013
13014 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13015 (grub_getkey_noblock): ... this. All users updated.
13016
13017 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13018
13019 * grub-core/kern/emu/console.c: Move to ...
13020 * grub-core/term/emu/console.c: ...here.
13021 (grub_ncurses_getkey): Fix return value if no key is detected.
13022
13023 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13026 (grub_unit_test_fini): Likewise.
13027 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13028
13029 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13030
13031 * include/grub/test.h (GRUB_UNIT_TEST)
13032
13033 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13036 Better error handling.
13037 (grub_script_return): Likewise.
13038 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13039
13040 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13043 rimplicit redifinition.
13044
13045 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13048 GRUB.
13049
13050 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13053 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13054 prompt here.
13055
13056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13059 as GRUB_ERR_BUG. Don't malloc if no device is available.
13060
13061 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13064 Mark calling with invalid term as GRUB_ERR_BUG.
13065
13066 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13069 packets rather than raising an error.
13070
13071 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13074 in if.
13075
13076 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13077
13078 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13079 diagnostic to dprintf.
13080 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13081
13082 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13083
13084 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13085 device name.
13086
13087 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13090 (grub_ntfs_iterate_dir): Likewise.
13091
13092 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13093
13094 Efiemu stylistic fixes and gettext.
13095
13096 * grub-core/efiemu/i386/loadcore32.c
13097 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13098 * grub-core/efiemu/i386/loadcore64.c
13099 (grub_arch_efiemu_relocate_symbols64): Likewise.
13100 * grub-core/efiemu/i386/pc/cfgtables.c
13101 (grub_machine_efiemu_init_tables): Likewise.
13102 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13103 (grub_efiemu_loadcore_initXX): Add a filename argument.
13104 All users updated.
13105 Improved error message.
13106 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13107 Add a filename argument.
13108 All users updated.
13109 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13110 Reclassify double relocation as GRUB_ERR_BUG.
13111
13112 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13115 handling.
13116
13117 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13120 on partition.
13121
13122 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13123
13124 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13125
13126 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 Improve string. Gettextize.
13129
13130 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13133 utils.
13134 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13135
13136 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13139 [GRUB_UTIL]: New function.
13140 (insert_array) [GRUB_UTIL]: Store partmaps.
13141 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13142 partmaps.
13143 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13144 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13145 (probe_abstraction): Print diskfilter and not raid.
13146 Reported by: Lennart Sorensen
13147
13148 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13151 * util/grub-mkimagexx.c (MASK3): New define.
13152 (add_value_to_slot_20b): Use MASK3.
13153 (add_value_to_slot_21): Likewise.
13154 (relocate_addresses): Fix format specification.
13155 (load_image): Explicitly init symtab_section.
13156
13157 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13160 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13161
13162 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13163
13164 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13165 on powerpc.
13166 Reported by: Lennart Sorensen
13167
13168 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13169
13170 * gentpl.py: Add missing license header.
13171 * docs/grub.texi: Update copyright year.
13172
13173 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13174
13175 Source grub-mkconfig_lib from the build directory at build time.
13176 Suggested by: Vladimir Serbinenko.
13177
13178 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13179 * util/grub-install.in: Define pkgdatadir if not already set, and source
13180 grub-mkconfig_lib from there.
13181 * util/grub-kbdcomp.in: Likewise.
13182 * util/grub-mkconfig.in: Likewise.
13183 * util/grub-mknetdir.in: Likewise.
13184 * util/grub-mkrescue.in: Likewise.
13185 * util/grub-mkstandalone.in: Likewise.
13186 * util/grub-reboot.in: Likewise.
13187 * util/grub-set-default.in: Likewise.
13188 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13189
13190 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 Increase warning level.
13193
13194 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13195 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13196 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13197 (TARGET_CFLAGS): Likewise.
13198 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13199 * grub-core/Makefile.core.def (decompressor_xz): Add
13200 -Wno-unreachable-code.
13201 (normal): Add -Wno-redundant-decls.
13202 (xzio): Add -Wno-unreachable-code.
13203 (lzopio): Add -Wno-redundant-decls -Wno-error.
13204 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13205 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13206 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13207 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13208 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13209 * grub-core/kern/i386/coreboot/init.c: Add exception to
13210 -Wsuggest-attribute=noreturn.
13211 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13212 * grub-core/kern/ia64/dl_helper.c: Likewise.
13213 * grub-core/kern/mips/dl.c: Likewise.
13214 * grub-core/kern/sparc64/dl.c: Likewise.
13215 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13216 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13217 (memcmp): Likewise.
13218 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13219 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13220 * grub-core/loader/mips/linux.c: Likewise.
13221 * grub-core/loader/multiboot_elfxx.c: Likewise.
13222 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13223 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13224 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13225 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13226 fixme.
13227 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13228 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13229 Fix prototype.
13230
13231 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13234 address.
13235
13236 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13239 Avoid improper use of strings.
13240 (grub_cmd_legacy_initrdnounzip): Likewise.
13241
13242 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13245 attribute.
13246 (grub_util_info): Likewise.
13247 (grub_util_error): Likewise.
13248
13249 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13250
13251 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13252 * util/grub-fstest.c (fstest): Likewise.
13253
13254 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13257 (grub_md_sha512_real): Likewise.
13258 (grub_util_get_geli_uuid): Likewise.
13259 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13260 (grub_util_biosdisk_open): Fix format specification.
13261 Respect format security.
13262 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13263 (xrealloc): Likewise.
13264 (xasprintf): Likewise.
13265
13266 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * util/import_gcry.py: Include grub/crypto.h in init.c.
13269
13270 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13273 (generate_image): Make prefix a const char *.
13274 Fix format specifications. Respect format security.
13275 Avoid void * arithmetics.
13276 Avoid shadowing.
13277 (argp_parser): Remove unused variable. Respect format security.
13278 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13279 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13280 (count_funcs): Remove unused variable.
13281 (relocate_addresses): Fix format specification.
13282 Disable x86-64 with elf32. Remove unused variables.
13283 (add_fixup_entry): Avoid shadowing.
13284 (make_reloc_section): Fix format specification.
13285 Use assert.
13286 (locate_sections): Fix format specifications.
13287 (load_image): Avoid shadowing.
13288
13289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13292 Fix format specifications. Respect format security.
13293 Don't translate already translated grub_errmsg.
13294 (argp_parser): Remove unused variable
13295
13296 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13299
13300 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13301
13302 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13303 (main): Likewise. Use xmalloc. Respect format security.
13304
13305 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13306
13307 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13308 a const char *.
13309 (argp_parser): Remove unused variable.
13310
13311 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13312
13313 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13314 (add_pixel): Make static.
13315 (add_font): Likewise.
13316 (write_string_section): Make name and str a const char *.
13317 (write_be16_section): Make name a const char *.
13318 (print_glyphs): Make static.
13319 (write_font_ascii_bitmap): Likewise.
13320 (write_font_width_spec): Likewise.
13321 (write_font_pf2): Likewise.
13322 (argp_parser): Remove unused variable.
13323 Respect format security.
13324 (main): Avoid shadowing. Respect format security.
13325
13326 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13327
13328 * util/grub-editenv.c (argp_parser): Make static.
13329 (create_envblk_file): Use xmalloc.
13330 (open_envblk_file): Likewise.
13331 Resepect format security.
13332 (set_variables): Respect format security.
13333
13334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13335
13336 * util/getroot.c (grub_find_device): Respect format security.
13337 (get_mdadm_uuid): Remove unused variable.
13338 (grub_util_pull_device): Dont call gettext on already translated
13339 grub_errmsg.
13340 (find_system_device): Remove unused variable.
13341 (grub_util_get_grub_dev): Likewise.
13342 (grub_make_system_path_relative_to_its_root): Respect format security.
13343
13344 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 * util/grub-fstest.c (execute_command): Make first argument
13347 a const char *.
13348 (read_file): Avoid shadowing.
13349 Reuse underlying error message if device open fails.
13350 (cmd_cmp): Respect format security.
13351 (root): Make const char *.
13352 (fstest): Remove args argument and use global copy.
13353 Respect format security.
13354 (argp_parser): Make static.
13355 (main): Make default_root const char *.
13356
13357 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13358
13359 * util/grub-mount.c (root): Make const char *.
13360 (execute_command): Make first argument a const char *.
13361 (fuse_init): Respect format security.
13362 (argp_parser): Make static. Remove unused variable.
13363 (main): Make default_root a const char *.
13364 Respect format security.
13365
13366 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 * util/grub-probe.c (probe): Don't call gettext on already translated
13369 grub_errmsg.
13370 Remove unused variables.
13371 (argp_parser): Remove unused variable.
13372
13373 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 * util/grub-script-check.c (argp_parser): Remove unused variable.
13376 (main): Rename read to curread to avoid shadowing.
13377
13378 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 * util/misc.c (grub_util_write_image_at): Fix format specification.
13381 (grub_util_write_image): Likewise.
13382 (grub_script_execute_argument_to_string): Removed (unused).
13383 (grub_script_execute_menuentry): Likewise.
13384 (grub_putchar): Likewise.
13385
13386 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13387
13388 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13389 (FUNCTION) [GRUB_UTIL]: Likewise.
13390 (VARIABLE) [GRUB_UTIL]: Likewise.
13391
13392 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393
13394 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13395 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13396
13397 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13398
13399 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13400 buffer.
13401
13402 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13405 (LzmaEnc_SaveState): Removed (unused).
13406 (LzmaEnc_RestoreState): Likewise.
13407 (LzmaEnc_InitPriceTables): Made static.
13408 (LzmaEnc_Construct): Likewise.
13409 (LzmaEnc_FreeLits): Likewise.
13410 (LzmaEnc_Destruct): Likewise.
13411 (LzmaEnc_Init): Likewise.
13412 (LzmaEnc_InitPrices): Likewise.
13413 (LzmaEnc_Finish): Likewise.
13414 (LzmaEnc_PrepareForLzma2): Removed (unused).
13415 (LzmaEnc_MemPrepare): Likewise.
13416 (LzmaEnc_GetNumAvailableBytes): Likewise.
13417 (LzmaEnc_GetCurBuf): Likewise.
13418 (LzmaEnc_CodeOneMemBlock): Likewise.
13419
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13423 (grub_util_ldm_embed): Likewise.
13424
13425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * util/grub-editenv.c (print_var): Rename name to varname to
13428 avoid shadowing.
13429 (main): Rename index to curindex to avoid shadowing.
13430 Make filename a const char *.
13431
13432 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13433
13434 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13435 to arg_getline to avoid shadowing.
13436
13437 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13440 disk_ to avoid shadowing.
13441
13442 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13445 curindex to avoid shadowing.
13446 Make static.
13447 (MatchFinder_GetNumAvailableBytes): Make static.
13448
13449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13452 avoid shadowing.
13453
13454 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13457 argument from encrypt to do_encrypt to avoid shadowing.
13458
13459 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13462 incorrect nesting of #if's.
13463
13464 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13467 checks which are always false on some platforms.
13468 (grub_cmd_lsacpi): Likewise.
13469 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13470 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13471 Likewise.
13472
13473 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13476 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13477
13478 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13479
13480 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13481 re_dfa_t to avoid breaking alignment invariants.
13482 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13483 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13484
13485 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13488 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13489
13490 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13491
13492 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13493 Fix declaration.
13494
13495 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13498 conserve alignment invariants.
13499 (grub_ehci_ehcc_read16): Likewise.
13500 (grub_ehci_oper_read32): Likewise.
13501 (grub_ehci_oper_write32): Likewise.
13502 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13503 Conserve alignment invariants.
13504
13505 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13506
13507 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13508 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13509 declarations.
13510
13511 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13514 Remove unused variable.
13515
13516 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13519 Remove set in if.
13520
13521 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * include/grub/net.h: Remove double declarations.
13524
13525 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 Remove "payload" command in ia64 Linux loader since I couldn't
13528 find any evidence of it being used for anything.
13529 Replace "relocate" command with an environment variable
13530
13531 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13532 fields.
13533 (ia64_boot_payload): Removed.
13534 (last_payload): Likewise.
13535 (RELOCATE_OFF): Likewise.
13536 (RELOCATE_ON): Likewise.
13537 (RELOCATE_FORCE): Likewise.
13538 (relocate): Likewise.
13539 (free_pages): Don't free payloads.
13540 (grub_load_elf64): Use common error messages.
13541 Use "linux_relocate" variable.
13542 Increase the space after boot_params.
13543 (grub_cmd_payload): Removed.
13544 (grub_cmd_relocate): Likewise.
13545 (grub_cmd_fpswa): Improve messages.
13546 (cmd_payload): Removed.
13547 (cmd_relocate): Likewise.
13548 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13549 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13550
13551 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 Convert UHCI to DMA framework.
13554
13555 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13556 (grub_uhci_pci_iter): Fill new members
13557 (grub_alloc_td): Use P2V and V2P functions.
13558 (grub_free_queue): Likewise.
13559 (grub_alloc_qh): Likewise.
13560 (grub_uhci_setup_transfer): Likewise.
13561 (grub_uhci_check_transfer): Likewise.
13562
13563 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13566 Remove assignment in if while on it.
13567
13568 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 * util/grub-mkstandalone.in: Fix modules directory.
13571
13572 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13575 on i386-pc target.
13576 (argp_parser): Accept "auto" as compression specification.
13577
13578 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 Fix `help' with unloaded modules.
13581
13582 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13583 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13584 (grub_dyncmd_dispatcher): Small stylistic fix.
13585 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13586 explicit help is requested.
13587
13588 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13589
13590 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13591 Explicitly init restart while on it.
13592
13593 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13596 uninited variable.
13597
13598 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * util/grub-mknetdir.in: Use . rather than source for POSIX
13601 compatibility.
13602
13603 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13606
13607 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13610 variable.
13611
13612 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13615 without quotes.
13616
13617 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13620
13621 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13624 iteration of partitions.
13625
13626 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13627
13628 Improve gettext support. Stylistic fixes and error handling fixes while
13629 on it.
13630
13631 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13634 part. Instead setup the correct stack in RM.
13635 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13636 for stack.
13637 * include/grub/i386/relocator_private.h: New file.
13638
13639 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13642 argument.
13643 * util/grub-fstest.c (options): Add missing DEVICE part.
13644
13645 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13646
13647 Clarify and unify messages.
13648
13649 * grub-core/commands/hashsum.c (options): Unify messages.
13650 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13651 literal-only message as translatable.
13652 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13653 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13654 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13655 commands.
13656 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13657 key, not the key used to unlock. Clarify what it's used for.
13658 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13659 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13660 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13661 * util/grub-editenv.c (options): Unify "verbose" message.
13662 * util/grub-fstest.c (read_file): Unify error message.
13663 (fstest): Add quotes around commands.
13664 (options): Unify "verbose" message.
13665 * util/grub-install.in: Add quotes around variable name.
13666 * util/grub-kbdcomp.in: Unify error message.
13667 * util/grub-mkfont.c (main): Likewise.
13668 * util/grub-mkrescue.in: Likewise.
13669 * util/grub-mklayout.c (options): Unify "verbose" message.
13670 * util/grub-mkstandalone.in: Unify help and verbose messages.
13671 * util/grub-mount.c (options): Unify "verbose" message.
13672 * util/grub-probe.c (options): Likewise.
13673 * util/grub-script-check.c (options): Likewise.
13674 * util/grub-setup.c (setup): Unify no-terminator message.
13675 (options): Use DEVICE and not DEV.
13676 Unify "verbose" message.
13677 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13678
13679 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 Improve and unify messages.
13682
13683 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13684 name. All users updated.
13685 Print filename in error.
13686 (read_device_map): Print filename in error.
13687 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13688 (grub_util_get_os_disk): Likewise.
13689 (grub_util_biosdisk_get_grub_dev): Likewise.
13690 (grub_util_check_block_device): Likewise.
13691 (grub_util_check_char_device): Likewise.
13692 (grub_make_system_path_relative_to_its_root): Likewise.
13693 * util/grub-editenv.c (create_envblk_file): Likewise.
13694 (open_envblk_file): Likewise.
13695 (write_envblk): Likewise.
13696 * util/grub-fstest.c (cmd_cp): Likewise.
13697 (cmd_cat): Likewise.
13698 (cmd_cmp): Likewise.
13699 * util/grub-menulst2cfg.c (main): Likewise.
13700 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13701 (write_font_width_spec): Likewise.
13702 (write_font_pf2): Likewise.
13703 * util/grub-mkimage.c (generate_image): New argument outname.
13704 All users updated.
13705 Remove unreacheable message.
13706 (options): Unify messages.
13707 (help_filter): Likewise.
13708 * util/grub-mklayout.c (usage): Removed (unused).
13709 (main): Print filename in error.
13710 * util/grub-mkrescue.in: Fix wrong quoting.
13711 * util/grub-setup.c (setup): Print filename in error.
13712 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13713 (check_sas): Likewise.
13714 * util/misc.c (grub_util_get_fp_size): Removed.
13715 (grub_util_get_image_size): Print filename in error.
13716 (grub_util_read_at): Removed.
13717 (grub_util_read_image): Print filename in error.
13718 (grub_util_load_image): Likewise.
13719 (grub_util_write_image_at): New argument filename. All users updated.
13720 Print filename in error.
13721 (grub_util_write_image): New argument filename. All users updated.
13722 Print filename in error.
13723 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13724 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13725
13726 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/Makefile.core.def (pxechain): New module.
13729 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13730 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13731 function.
13732 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13733 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13734
13735 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13738 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13739 * include/grub/err.h (grub_error_saved): New struct.
13740 (grub_errmsg): Make array size explicit.
13741 * include/grub/misc.h (grub_error_save): New function.
13742 (grub_error_load): Likewise.
13743 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13744 (grub_error_push): Update `errno' member name.
13745 (grub_error_pop): Likewise
13746 * grub-core/net/tftp.c (tftp_data): New member save_err.
13747 (tftp_receive): Save error.
13748 (tftp_open): Restore error.
13749
13750 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13751
13752 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13753 to real mode down to execute A20-related code in protected mode as
13754 intended.
13755
13756 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13757
13758 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13759 NULL when the argument `level' has an unexpected value.
13760
13761 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 Move platform-dependent files from $prefix to $prefix/$platform.
13764
13765 * config.h.in (GRUB_TARGET_CPU): New definition.
13766 (GRUB_PLATFORM): Likewise.
13767 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13768 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13769 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13770 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13771 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13772 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13773 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13774 * grub-core/normal/term.c (read_terminal_list): Likewise.
13775 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13776 $prefix/locale.
13777 (grub_gettext_init_ext): Likewise.
13778 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13779 grub_platform.
13780 * util/grub-install.in: Update directories.
13781 * util/grub-mknetdir.in: Likewise.
13782 * util/grub-mkrescue.in: Likewise.
13783
13784 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13785
13786 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13787 grub_error framework. All users updated.
13788
13789 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13790
13791 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13792 lists (by always binsearching), improve caching (cache strings
13793 used for binsearch, not only results), improve
13794 maintainability (by using more structured binary search) and correct
13795 error handling.
13796
13797 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * grub-core/script/execute.c (grub_script_return): Fix warning.
13800
13801 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 * grub-core/script/execute.c (grub_script_return): Fix potential
13804 NULL-dereference.
13805 Reported by: Jim Meyering.
13806
13807 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13808
13809 * po/POTFILES.in: Regenerate.
13810 * util/grub-install.in: Gettextize the strings missed in first pass.
13811
13812 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * Makefile.util.def (grub-mkdevicemap): Removed.
13815 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13816 * include/grub/util/deviceiter.h: Removed.
13817 * util/deviceiter.c: Likewise.
13818 * util/getroot.c (grub_util_get_os_disk): New function.
13819 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13820 replacement for EFI.
13821 * util/grub-mkdevicemap.c: Removed.
13822 * util/grub-probe.c (probe): Handle PRINT_DISK.
13823 (argp_parser): Handle -t disk.
13824
13825 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * util/grub-mkfont.c: Migrate to argp.
13828 * util/grub-mklayout.c: Likewise.
13829 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13830 * util/grub-mkrelpath.c: Likewise.
13831 * util/grub-probe.c: Likewise.
13832 * util/grub-script-check.c: Likewise.
13833
13834 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13835
13836 * util/grub-reboot.in: Add missing datarootdir.
13837 Add missing newline.
13838 * util/grub-set-default.in: Add missing datarootdir.
13839 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13840 * util/grub-mkrescue.in: Likewise.
13841
13842 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13843
13844 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13845
13846 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13847
13848 * util/grub-kbdcomp.in: Add decent help and gettextize.
13849 * docs/man/grub-kbdcomp.h2m: New file.
13850
13851 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 Migrate grub-mkimage.c to argp.
13854
13855 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13856 (grub-setup): Likewise.
13857 * util/grub-setup.c (print_version): Move to ...
13858 * util/argp_common.c (print_version): ... here.
13859 * util/grub-setup.c (argp_program_version_hook): Move to ...
13860 * util/argp_common.c (argp_program_version_hook): ... here.
13861 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13862 safety.
13863 * util/grub-mkimage.c (main): Migrate to argp.
13864
13865 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13866
13867 * util/grub-mkrescue.in: Use same message as
13868 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13869 for better translations.
13870
13871 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13872
13873 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13874 options with generic grub-mkrescue.in with the goal of future
13875 merge.
13876
13877 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * grub-core/kern/mm.c: Add missing include of i18n.h
13880 * grub-core/lib/relocator.c: Likewise.
13881
13882 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13883
13884 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13885 error.
13886 (allocate_pages): Check return value.
13887 Replace fatal with error.
13888 (grub_linux_boot): Replace printf with dprintf.
13889 Check find_mmap_size return value.
13890 Replace fatal with error.
13891 Don't call grub_machine_fini.
13892 (grub_load_elf64): Replace printf with dprintf.
13893 (grub_cmd_linux): Likewise.
13894 (grub_cmd_initrd): Likewise.
13895 (grub_cmd_payload): Likewise.
13896
13897 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13898
13899 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13900 message.
13901 * grub-core/video/radeon_fuloong2e.c
13902 (grub_video_radeon_fuloong2e_setup): Likewise.
13903 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13904 * grub-core/video/video.c (grub_video_set_mode): Don't override
13905 standard out of memory message.
13906
13907 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13908
13909 NetBSD disk wedge support.
13910
13911 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13912 [__NetBSD__]: Handle NetBSD disk wedges.
13913 * util/getroot.c (convert_system_partition_to_system_disk)
13914 [__NetBSD__]: Likewise.
13915
13916 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13917
13918 * util/grub-mkconfig.in: Use umask rather than chmod to create
13919 grub.cfg.new to avoid insecure grub.cfg.
13920
13921 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 * grub-core/commands/ls.c: Gettextize.
13924 * grub-core/commands/setpci.c: Likewise.
13925 * grub-core/commands/videotest.c: Likewise.
13926 * grub-core/disk/geli.c: Likewise.
13927 * grub-core/kern/mm.c: Likewise.
13928 * grub-core/lib/relocator.c: Likewise.
13929 * grub-core/loader/efi/appleloader.c: Likewise.
13930 * grub-core/loader/i386/xnu.c: Likewise.
13931 * grub-core/loader/ia64/efi/linux.c: Likewise.
13932 * grub-core/loader/xnu.c: Likewise.
13933 * grub-core/net/dns.c: Likewise.
13934 * grub-core/net/net.c: Likewise.
13935 * grub-core/script/lexer.c: Likewise.
13936 * grub-core/script/parser.y: Likewise.
13937 * grub-core/script/yylex.l: Likewise.
13938 * util/getroot.c: Likewise.
13939 * util/grub-setup.c: Likewise.
13940
13941 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13944 number.
13945
13946 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13949
13950 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13953 macro.
13954 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13955 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13956
13957 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13960 * util/grub-install.in: Gettextize.
13961 * util/grub-mkconfig.in: Likewise.
13962 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13963 if not available.
13964 (grub_warn): Gettextize.
13965 * util/grub-mknetdir.in: Gettextize.
13966 * util/grub-mkrescue.in: Likewise.
13967 * util/grub-mkstandalone.in: Likewise.
13968 * util/grub-reboot.in: Likewise.
13969 * util/grub-set-default.in: Likewise.
13970 * util/grub.d/00_header.in: Likewise.
13971 * util/grub.d/10_hurd.in: Likewise.
13972 * util/grub.d/10_kfreebsd.in: Likewise.
13973 * util/grub.d/10_linux.in: Likewise.
13974 * util/grub.d/10_netbsd.in: Likewise.
13975 * util/grub.d/10_windows.in: Likewise.
13976 * util/grub.d/20_linux_xen.in: Likewise.
13977 * util/grub.d/30_os-prober.in: Likewise.
13978 * po/POTFILES-shell.in: Regenerate.
13979
13980 2012-02-03 Richard Laager <rlaager@wiktel.com>
13981
13982 * util/grub-mkimage.c (main): Fix format-security warning.
13983 * util/grub-mkrelpath.c (main): Likewise.
13984 * util/grub-probe.c (main): Likewise.
13985
13986 2012-02-03 Richard Laager <rlaager@wiktel.com>
13987
13988 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
13989 failure.
13990 Put back lost PRINT_DRIVE.
13991
13992 2012-02-03 Richard Laager <rlaager@wiktel.com>
13993
13994 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
13995 (grub_guess_root_devices): Replace strlen with sizeof.
13996 Avoid crash.
13997 (find_root_devices_from_poolname): Remove unused variable.
13998 Handle raidzN.
13999
14000 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 Support install on multi-device filesystems.
14003
14004 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14005 (grub_guess_root_devices): ...this. Return char **. All users updated.
14006 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14007 Removed.
14008 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14009 (find_root_devices_from_poolname): ... here.
14010 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14011 Support zfs-fuse.
14012 (grub_guess_root_device): Rename to ...
14013 (grub_guess_root_devices): ... this. Return char **. All users updated.
14014 * util/grub-install.in: Handle multi-device filesystems.
14015 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14016 argument. All users updated.
14017 Handle multi-device filesystems.
14018 Use 'delim' as separator.
14019 Remove device check to allow filesystems on file.
14020 (main): Support -0 argument. Handle multi-device.
14021 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14022 Fix a cross-device check while on it.
14023 (arguments): Remove root_dev.
14024 (argp_parser): Remove -r.
14025 (main): Remove root_dev.
14026
14027 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14028
14029 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14030
14031 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14032
14033 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14034 symbol.
14035 Reported by: NODA, Kai <nodakai>.
14036
14037 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 Fix ehci on amd64.
14040
14041 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14042 pointers.
14043 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14044 (grub_ehci_setup_qh): Likewise.
14045 (grub_ehci_find_qh): Likewise.
14046 (grub_ehci_transaction): Likewise.
14047 (grub_ehci_setup_transfer): Likewise.
14048 (grub_ehci_check_transfer): Likewise.
14049 (grub_ehci_portstatus): Likewise.
14050 (grub_ehci_detect_dev): Likewise.
14051 (grub_ehci_transfer_controller_data): New field td_last_phys.
14052 (grub_ehci_setup_transfer): Fill td_last_phys.
14053 (grub_ehci_check_transfer): Use td_last_phys.
14054
14055 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14056
14057 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14058 if no submenu is present.
14059
14060 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14061
14062 CBI support.
14063
14064 * include/grub/usb.h (grub_usbms_protocol_t): New values
14065 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14066 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14067 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14068 (grub_usbms_dev): Add subclass, protocol and intrpt.
14069 Remove in_maxsz and out_maxsz.
14070 (grub_usbms_reset): Rename to ...
14071 (grub_usbms_bo_reset): .. this.
14072 (grub_usbms_cbi_cmd): New function.
14073 (grub_usbms_cbi_reset): Likewise.
14074 (grub_usbms_reset): Likewise.
14075 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14076 (grub_usbms_transfer): Rename to ...
14077 (grub_usbms_transfer_bo): ... this.
14078 (grub_usbms_transfer_cbi): Likewise.
14079 (grub_usbms_transfer): Likewise.
14080
14081 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14082 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14085 the support for the CS5536 modification thereos and few bugfixes.
14086
14087 * grub-core/Makefile.core.def (ehci): New module.
14088 * grub-core/bus/usb/ehci.c: New file.
14089 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14090 port and hubaddr. All users updated.
14091 Save port and hubaddr into dev structure.
14092 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14093 define.
14094 * include/grub/pci.h (grub_dma_phys2virt): New function.
14095 (grub_dma_virt2phys): Likewise.
14096 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14097
14098 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14099
14100 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14101 check as some mkfs implementations omit it.
14102
14103 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14106
14107 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14110 Add new member volname2.
14111 (grub_jfs_label): Use volname2 if available.
14112
14113 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14116 over last_mounted as seen in image generated by mkfs.nilfs2.
14117 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14118
14119 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14122 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14123 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14124
14125 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14128 over the sector.
14129
14130 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14133 subvolume name (by removing a bogus and useless check).
14134
14135 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14136
14137 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14138 sizeof while on it.
14139
14140 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14141
14142 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14143 (grub_scsi_read_capacity10): ... this.
14144 (grub_scsi_read_capacity16): New function.
14145 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14146 0xffffffff.
14147 Fix off-by-one error.
14148 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14149 64-bit unsigned.
14150 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14151 (grub_scsi_read_capacity10): ... this.
14152 (grub_scsi_read_capacity_data): Rename to ...
14153 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14154 (grub_scsi_read_capacity16): New struct.
14155 (grub_scsi_read_capacity16_data): Likewise.
14156 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14157 grub_scsi_cmd_read_capacity10.
14158 New command grub_scsi_cmd_read_capacity16.
14159
14160 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 SCSI >2TiB support.
14163
14164 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14165 (grub_scsi_write16): Likewise.
14166 (grub_scsi_read): Use read16 when necessary.
14167 (grub_scsi_write): Likewise.
14168 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14169 (grub_scsi_write16): Likewise.
14170 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14171
14172 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 SCSI write support (for usbms mainly).
14175
14176 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14177 a const pointer.
14178 (grub_scsi_write): Implement.
14179 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14180
14181 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14182
14183 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14184 variable.
14185
14186 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14187
14188 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14189
14190 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * po/POTFILES.in: Regenerate.
14193
14194 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14197 with grub_printf to avoid unnecessary fatal failure.
14198
14199 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14202 (INT_MAX): Likewise.
14203 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14204 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14205 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14206 (strcpy): Likewise.
14207 (strstr): Likewise.
14208 (strchr): Likewise.
14209 (strncpy): Likewise.
14210 (strcat): Likewise.
14211 (strncat): Likewise.
14212 (strcoll): Likewise.
14213 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14214 (GRUB_INT_MAX): Likewise.
14215
14216 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14217
14218 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14219 unexpected error.
14220 (optimize_utf8): Likewise.
14221 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14222
14223 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14224
14225 * grub-core/boot/i386/pc/lnxboot.S: Use
14226 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14227 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14228 location.
14229 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14230 definition.
14231 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14232
14233 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14236 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14237 now to avoid double free.
14238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14239 hostdisk.
14240 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14241 * util/grub-probe.c (escape_of_path): Always return a new copy.
14242 (print_full_name): Escape path.
14243 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14244 Fix hints on abstractions.
14245
14246 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14249 Don't add "root" line if no compatibility hont is available.
14250 Suggested by: Seth Goldberg.
14251
14252 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14253
14254 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14255 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14256 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14257 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14258
14259 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14262
14263 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 * util/grub-pe2elf.c (ehdr): Make static.
14266 (shdr): Likewise.
14267 (num_sections): Likewise.
14268 (offset): Likewise.
14269
14270 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 Eliminate ofpath limits and possible overflows.
14273
14274 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14275 (OF_PATH_MAX): Removed.
14276 (MAX_DISK_CAT): New const.
14277 (find_obppath): Use allocated rather than preallocated buffer.
14278 Return result. Argument of_path removed. All users updated.
14279 Add missing fdstat.
14280 (xrealpath): New function.
14281 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14282 Allocate rather than use preallocated buffer. All users updated.
14283 (__of_path_common): Use allocated rather than preallocatecd buffer.
14284 Return result. Argument of_path removed. All users updated.
14285 (vendor_is_ATA): Read only needed part form the file.
14286 (check_sas): Allocate depending on contents rather than fixed.
14287 (main) [STANDALONE]: Handle NULL result.
14288
14289 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14290
14291 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14292
14293 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14294
14295 Cryptodisk write support.
14296
14297 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14298 (grub_cryptodisk_decrypt): Moved logic to ...
14299 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14300 (grub_cryptodisk_write): Implement.
14301 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14302 (grub_util_fd_write): ... this. Make global.
14303 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14304
14305 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14306
14307 * include/grub/list.h (grub_list_remove): Don't crash if element is
14308 removed twice.
14309
14310 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 Rename ofconsole to console.
14313
14314 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14315 as sysnonym to console.
14316 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14317 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14318 Rename grub_ofconsole_ to grub_console_. All users updated
14319 (grub_console_term_output): Rename "ofconsole" to "console".
14320 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14321 as "console".
14322
14323 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14324
14325 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14326 handling.
14327 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14328 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14329 GRUB_DISK_DEVICE_FILE_ID.
14330
14331 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14334 and improve performance.
14335
14336 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14339 missing ieee1275/ prefix on whole disk.
14340
14341 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14344 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14345
14346 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14349
14350 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 Merge common RAID and LVM logic to an abstract diskfilter.
14353 Add LDM support using the same framework.
14354
14355 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14356 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14357 (libgrubmods): Remove grub-core/disk/raid.c and
14358 grub-core/partmap/gpt.c.
14359 * grub-core/Makefile.core.def (ldm): New module.
14360 (raid): Renamed to diskfilter. All users updated.
14361 * grub-core/disk/raid.c: Moved to ...
14362 * grub-core/disk/diskfilter.c: ... here.
14363 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14364 (lv_num): New var.
14365 (find_array): Renamed to ...
14366 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14367 (grub_is_array_readable): Renamed to ...
14368 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14369 (insert_array): New argument id.
14370 (is_node_readable): New function.
14371 (scan_device): Rename to ...
14372 (scan_disk): .. this. Restrict to one disk.
14373 (scan_devices): New function.
14374 (grub_diskfilter_iterate): Support multi-LV.
14375 Skip invisible and nameless LVs.
14376 (grub_diskfilter_memberlist): Support multi-LV.
14377 (grub_diskfilter_read_node): New function.
14378 (grub_raid_read): Most of logic moved to ...
14379 (read_segment): ... here
14380 (read_lv): New function.
14381 (grub_diskfilter_get_vg_by_uuid): New function.
14382 (grub_diskfilter_make_raid): Likewise.
14383 * grub-core/disk/ldm.c: New file.
14384 * grub-core/disk/lvm.c (vg_list): Removed.
14385 (lv_count): Likewise.
14386 (scan_depth): Likewise.
14387 (is_lv_readable): Likewise.
14388 (grub_lvm_getvalue): Advance pointer past the number.
14389 (find_lv): Removed.
14390 (do_lvm_scan): Refactored into ...
14391 (grub_lvm_detect): ... this. Support raid.
14392 (grub_lvm_iterate): Removed.
14393 (grub_lvm_memberlist): Likewise.
14394 (grub_lvm_open): Likewise.
14395 (grub_lvm_close): Likewise.
14396 (read_lv): Likewise.
14397 (read_node): Likewise.
14398 (is_node_readable): Likewise.
14399 (is_lv_readable): Likewise.
14400 (grub_lvm_read): Likewise.
14401 (grub_lvm_write): Likewise.
14402 (grub_lvm_dev): Use diskfilter
14403 (GRUB_MOD_INIT): Likewise.
14404 (GRUB_MOD_FINI): Likewise.
14405 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14406 new interface.
14407 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14408 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14409 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14410 grub_diskfilter_read_node.
14411 Fix a bug with xor.
14412 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14413 grub_diskfilter_read_node.
14414 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14415 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14416 (grub_disk_dev_iterate): Move from here...
14417 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14418 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14419 Make global.
14420 (grub_hostdisk_find_partition_start): Likewise.
14421 (grub_hostdisk_os_dev_to_grub_drive): New function.
14422 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14423 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14424 * util/getroot.c (make_device_name): ... here.
14425 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14426 Move to ...
14427 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14428 * grub-core/kern/emu/hostdisk.c
14429 (convert_system_partition_to_system_disk): Move to ...
14430 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14431 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14432 * util/getroot.c (device_is_wholedisk): ... here.
14433 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14434 * util/getroot.c (find_system_device): ... here.
14435 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14436 Move to ...
14437 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14438 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14439 Move to ...
14440 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14441 Handle LDM.
14442 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14443 Move to ...
14444 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14445 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14446 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14447 DISKFILTER.
14448 * include/grub/raid.h: Renamed to ...
14449 * include/grub/diskfilter.h: ... this.
14450 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14451 (GRUB_RAID_LAYOUT_*): Make into array.
14452 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14453 (grub_diskfilter_vg): New struct.
14454 (grub_diskfilter_pv_id): Likewise.
14455 (grub_raid_member): Removed.
14456 (grub_raid_array): Likewise.
14457 (grub_diskfilter_pv): New struct.
14458 (grub_diskfilter_lv): Likewise.
14459 (grub_diskfilter_segment): Likewise.
14460 (grub_diskfilter_node): Likewise.
14461 (grub_diskfilter_get_vg_by_uuid): New proto.
14462 (grub_raid_register): Inline.
14463 (grub_diskfilter_unregister): Likewise.
14464 (grub_diskfilter_make_raid): New proto.
14465 (grub_diskfilter_vg_register): Likewise.
14466 (grub_diskfilter_read_node): Likewise.
14467 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14468 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14469 (grub_util_is_ldm): Likewise.
14470 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14471 (grub_hostdisk_find_partition_start): Likewise.
14472 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14473 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14474 New definition.
14475 (grub_gpt_partition_map_iterate): New proto.
14476 * include/grub/lvm.h (grub_lvm_vg): Removed.
14477 (grub_lvm_pv): Likewise.
14478 (grub_lvm_lv): Likewise.
14479 (grub_lvm_segment): Likewise.
14480 (grub_lvm_node): Likewise.
14481 * util/getroot.c [...]
14482 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14483 (probe_abstraction): Likewise.
14484 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14485 (main): Remove dead logic.
14486
14487 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 Simplify root device discover and don't fail when trying to open
14490 incorrect devices.
14491
14492 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14493 function.
14494 (get_diskname_from_path): Likewise.
14495 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14496 of iterating.
14497
14498 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14499
14500 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14501
14502 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14503
14504 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14505 pastthe end.
14506
14507 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14508
14509 * util/grub-install.in: Add missing \.
14510 Reported by: gentoofan
14511
14512 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14513
14514 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14515 (direct_read): Use correct compressed size.
14516 (grub_squash_read_data): Likewise.
14517
14518 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14519
14520 * docs/grub.texi (Platform limitations): New section.
14521 (Platform-specific operations): Likewise.
14522 * docs/grub-dev.texi (Porting): Likewise.
14523
14524 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 IEEE1275 disk write support.
14527
14528 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14529 const void *.
14530 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14531 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14532 and seek loginc to ...
14533 (grub_ofdisk_prepare): ... here.
14534 (grub_ofdisk_write): Implement.
14535
14536 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 ARC disk write support.
14539
14540 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14541 (reopen): New argument writable. All users updated.
14542 Handle required access mode.
14543 (grub_arcdisk_write): Implement.
14544 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14545 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14546
14547 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14550 (read_sblock): Don't attempt to read superblocks outside the disk size.
14551
14552 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14555 first superblock to find the second one when possible.
14556
14557 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * util/grub-install.in: Fix an ARC bug.
14560 Print a warning if no platform-specific setup is available.
14561
14562 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14563
14564 Use static allocation rather than scratch pointer in reed_solomon.
14565 It decreases its size significantly and avoids a variable in .text.
14566
14567 * grub-core/lib/reed_solomon.c (scratch): Removed.
14568 (chosenstat): New const or static array.
14569 (sigma): Likewise.
14570 (errpot): Likewise.
14571 (errpos): Likewise.
14572 (sy): Likewise.
14573 (mstat): Likewise.
14574 (errvals): Likewise.
14575 (eqstat): Likewise.
14576 (pol_evaluate): Replace x with log_x argument. All users updated.
14577 (syndroms): Removed.
14578 (gauss_solve): Use statically allocated arrays.
14579 (rs_recover): Likewise.
14580 Calculate syndroms directly.
14581 (decode_block): Use statically allocated arrays.
14582 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14583 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14584
14585 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 Eliminate fixed limit on reed solomon decoder length.
14588
14589 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14590 rather than hardcoding the address.
14591 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14592 no_reed_solomon_length.
14593 Move gate_a20 to no-reed-solomon part.
14594 Don't force a particular size of no reed-solomon part.
14595 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14596 Removed.
14597 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14598 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14599
14600 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 * grub-core/commands/wildcard.c (match_files): Handle filenames
14603 without explicit device.
14604 (wildcard_expand): Don't add explicit device if not already present.
14605 * tests/grub_script_echo1.in: Add a new expansion test.
14606
14607 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 Replace single-linked with double-linked lists. It results in more
14610 compact and more efficient code.
14611
14612 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14613 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14614 (grub_list_remove): Moved from here ...
14615 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14616 (grub_prio_list_insert): Set prev.
14617 * include/grub/list.h (grub_list): Add prev. All users updated.
14618
14619 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14620
14621 Handle newer autotools. Add some missing quotes while on it.
14622
14623 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14624 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14625 (pkgdata_DATA): ... here.
14626 * Makefile.util.def (update-grub_lib): Removed.
14627 * conf/Makefile.common (pkglib_DATA): Removed.
14628 (pkglib_SCRIPTS): Likewise.
14629 (pkgdata_DATA): New variable.
14630 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14631 needed.
14632 Add missing quotes.
14633 Remove unused variable while on it.
14634 * tests/util/grub-shell.in: Likewise.
14635 * util/grub-install.in: Likewise.
14636 * util/grub-mkconfig.in: Likewise.
14637 * util/grub-mknetdir.in: Likewise.
14638 * util/grub-mkrescue.in: Likewise.
14639 * util/grub-mkstandalone.in: Likewise.
14640 * util/grub.d/00_header.in: Likewise.
14641 * util/grub.d/10_hurd.in: Likewise.
14642 * util/grub.d/10_illumos.in: Likewise.
14643 * util/grub.d/10_kfreebsd.in: Likewise.
14644 * util/grub.d/10_linux.in: Likewise.
14645 * util/grub.d/10_netbsd.in: Likewise.
14646 * util/grub.d/10_windows.in: Likewise.
14647 * util/grub.d/20_linux_xen.in: Likewise.
14648 * util/grub.d/30_os-prober.in: Likewise.
14649 * util/update-grub_lib.in: Removed.
14650
14651 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14652
14653 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14654 a workaround for intel problem.
14655
14656 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14657 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14658 2012-01-23 pfsmorigo
14659
14660 * util/grub-install.in: Support dd'in into PreP partition.
14661 * util/grub-probe.c (probe): Support discovering partition type.
14662 (main): Support -t msdos_parttype.
14663
14664 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14667 infinite recursion using counter.
14668 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14669 init to skip it if the magic check fails.
14670 (dec_stream_header): Init s->crc32.
14671
14672 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14673 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14674 2012-01-22 Richard Laager <rlaager@wiktel.com>
14675
14676 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14677 All users updated.
14678 (find_bestub): Determine correct size.
14679 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14680 (scan_disk): Align the size down.
14681 Call check pool before find_bestub to have ashift.
14682
14683 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14686 dprintf in no-malloc zone.
14687
14688 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14689
14690 * configure.ac: Add back in test for limits.h.
14691
14692 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14693
14694 Support 4K-sector NTFS.
14695
14696 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14697 (grub_ntfs_data): Remove blocksize.
14698 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14699 Remove data argument. All users updated.
14700
14701 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14704 being in .text to avoid dprel references.
14705 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14706 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14707 (grub_arch_highmemsize): Likewise.
14708 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14709 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14710 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14711
14712 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14715
14716 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14717 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14718
14719 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14720
14721 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14722 GRUB_UTIL.
14723 (grub_set_datetime_cmos): Likewise.
14724
14725 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 Make XZ compression parameters dependent on target and not host CPU.
14728
14729 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14730 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14731
14732 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14733
14734 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14735 set but not used variable.
14736
14737 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14738
14739 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14740 created when no uuid support is compiled into mkfs.reiser.
14741
14742 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14745 (utf8_to_macroman): Do the opposite.
14746 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14747
14748 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 * configure.ac: Refise build qemu_mips w/o unifont.
14751
14752 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14753
14754 Eliminate grub_min/grub_max prone to overflow usage.
14755
14756 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14757 (poll_nonroot_hub): Likewise.
14758 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14759 (grub_affs_label): Likewise.
14760 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14761 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14762 (grub_hfs_label): Likewise.
14763 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14764 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14765 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14766 (zap_leaf_array_get): Likewise.
14767 (dnode_get_path): Likewise.
14768 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14769 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14770 * grub-core/script/execute.c (grub_script_break): Likewise.
14771 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14772 grub_max.
14773 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14774 * include/grub/misc.h (grub_min): Removed.
14775 (grub_max): Likewise.
14776
14777 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14778
14779 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14780 direct.inode = 0.
14781
14782 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14783
14784 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14785
14786 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14787
14788 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14789
14790 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14793 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14794
14795 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14798 rather than a hack for grub_strncasemap.
14799
14800 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 Support multiple initrds
14803 Note: part of this was accidently committed in r3739.
14804
14805 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14806 initrd.
14807 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14808 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14809 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14810 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14811 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14812
14813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14816 disks with unknown size.
14817 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14818
14819 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14820
14821 Remove defines pertaining to arbitrary limits not affecting GRUB
14822 anymore.
14823
14824 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14825 (EXT2_MAX_SYMLINKCNT): Likewise.
14826 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14827 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14828 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14829 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14830 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14831 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14832 (DN_MAX_OBJECT_SHIFT): Likewise.
14833 (DN_MAX_OFFSET_SHIFT): Likewise.
14834 (DN_MAX_OBJECT): Likewise.
14835 (DNODES_PER_LEVEL_SHIFT): Likewise.
14836 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14837 (SPA_MAXBLOCKSIZE): Likewise.
14838 (SPA_BLOCKSIZES): Likewise.
14839 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14840 (MZAP_MAX_BLKSZ): Likewise.
14841
14842 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14845 handle NULL appropriately.
14846 Remove MIN.
14847
14848 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14849
14850 Fix efiemu.
14851
14852 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14853 cpu/types.h.
14854 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14855 * configure.ac: Fix efiemu check.
14856
14857 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14858
14859 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14860 grub_probe.
14861 Reported by: adamwill
14862
14863 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14864
14865 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14866
14867 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14868
14869 Fix handling of wide characters in gfxterm.
14870
14871 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14872 (clear_char): Likewise.
14873 (paint_char): Skip code == NULL chars.
14874 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14875
14876 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14877
14878 * grub-core/normal/charset.c: Move comment to right place.
14879
14880 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14881
14882 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14883 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14884 (grub_affs_mount): Revert the correct version checking.
14885
14886 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14887
14888 * docs/grub.texi (Unicode): Mention several other unsupported features.
14889
14890 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14893 case statements as compile-time one.
14894 (direct_read): Prevent spurious warnings.
14895 (grub_squash_read_data): Likewise.
14896
14897 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14898
14899 Various squash4 fixes and LZO and XZ support.
14900
14901 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14902 Add xzembed source files.
14903 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14904 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14905 (grub_squash_inode): New subtype long_dir.
14906 (SQUASH_TYPE_LONG_DIR): New inode type.
14907 (COMPRESSION): New enum.
14908 (XZBUFSIZ): New const.
14909 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14910 (read_chunk): Use data->decompress.
14911 (zlib_decompress): New function.
14912 (lzo_decompress): Likewise.
14913 (xz_decompress): Likewise.
14914 (squash_mount): Set new data fields.
14915 (grub_squash_iterate_dir): Handle long dir.
14916 (squash_unmount): Free xzdec and xzbuf.
14917 (grub_squash_open): Check ino type.
14918 (direct_read): Stylistic fixes. Use data->decompress.
14919 (grub_squash_read_data): Likewise.
14920 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14921 (get_byte): Likewise.
14922 (grub_zlib_disk_read): Removed.
14923 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14924 (GRUB_POSIX_BOOL_DEFINED): New define.
14925 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14926 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14927 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14928 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14929
14930 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14931
14932 Don't override more informative errors.
14933
14934 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14935 * grub-core/font/font.c (open_section): Likewise.
14936 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14937 filename. Don't override errors.
14938 (grub_cmd_openbsd_ramdisk): Don't override errors.
14939 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14940 (grub_cmd_initrd): Likewise.
14941 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14942 (grub_cmd_initrd): Likewise.
14943 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14944 (grub_cmd_linux): Likewise.
14945 (grub_cmd_initrd): Likewise.
14946 (grub_cmd_payload): Likewise.
14947 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14948 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14949 (grub_cmd_module): Likewise.
14950 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14951 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14952 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14953 (grub_cmd_xnu_mkext): Likewise.
14954 (grub_cmd_xnu_ramdisk): Likewise.
14955 (grub_xnu_check_os_bundle_required): Likewise.
14956 (grub_xnu_load_kext_from_dir): Likewise.
14957 (grub_cmd_xnu_kextdir): Likewise.
14958 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14959
14960 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14963 as 1024 in block size field. Found on one of my test images.
14964 Small optimisation while on it.
14965
14966 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14967
14968 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14969 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14970 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14971 performance fixes while on it.
14972 (grub_sfs_close): Fix memory leak while on it.
14973 (grub_sfs_label): Convert Latin1 to UTF-8.
14974
14975 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14978 space to avoid overflows.
14979 (grub_hfs_label): Convert from macroman to UTF-8.
14980
14981 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
14984
14985 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14986
14987 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
14988
14989 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14990
14991 * unicode: Import Unicode 6.0 data.
14992
14993 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
14996 outside of range.
14997
14998 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 Avoid cutting in the middle of UTF-8 character.
15001
15002 * include/grub/charset.h (grub_getend): New function.
15003 * grub-core/script/function.c (grub_script_function_find): Use
15004 grub_getend.
15005 * grub-core/normal/completion.c (add_completion): Likewise.
15006
15007 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15008
15009 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15010 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15011 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15012 (GRUB_UNICODE_TAG_END): Likewise.
15013 (GRUB_UNICODE_LAST_VALID): Likewise.
15014
15015 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15016
15017 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15018 len and make it smaller. All users updated.
15019 * util/import_unicode.py: Put length and not end character.
15020 Check length.
15021
15022 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15023
15024 Make better Unicode-compliant and unify some UTF-8 code pathes.
15025
15026 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15027 valid character.
15028 (grub_is_valid_utf8): Use grub_utf8_process.
15029 Check resulting code range.
15030 (grub_utf8_to_ucs4): Use grub_utf8_process.
15031 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15032 valid character.
15033
15034 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15035
15036 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15037
15038 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 * docs/grub.texi (Filesystems): Mention AFS.
15041
15042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 * docs/grub.texi (Filesystems): Clarify restrictions.
15045 (Regexp): Mention non-Unicode regexp behaviour.
15046 (Other): Mention non-Unicode matching behaviour.
15047
15048 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 Make HFS implementation use MacRoman.
15051
15052 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15053 (macroman): New const array.
15054 (macroman_to_utf8): New function.
15055 (utf8_to_macroman): Likewise.
15056 (grub_hfs_find_dir): Use utf8_to_macroman.
15057 (grub_hfs_dir): Use macroman_to_utf8.
15058 Set case_insensitive.
15059
15060 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15061
15062 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15063
15064 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 Integrate hints into autogeneration scripts.
15067
15068 * docs/grub.texi (Filesystems): Add a hostdisk example.
15069 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15070 (grub-probe): Add ofpath.
15071 * gentpl.py: Remove group nosparc64.
15072 * grub-core/commands/search.c (cache_entry): New struct.
15073 (cache): New var.
15074 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15075 * grub-core/commands/search_wrap.c (options): Add platform-specific
15076 hint options.
15077 (grub_cmd_search): Handle platform-specific hints.
15078 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15079 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15080 (grub_util_biosdisk_data): Likewise.
15081 (grub_util_biosdisk_open): Set device_map.
15082 (read_device_map): Handle "" as indication of no map.
15083 Set device_map.
15084 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15085 (grub_util_biosdisk_get_compatibility_hint): New function.
15086 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15087 * include/grub/emu/hostdisk.h
15088 (grub_util_biosdisk_get_compatibility_hint): New proto.
15089 * util/grub-install.in: Don't call grub-mkdevicemap.
15090 Add platform-specific hint to load.cfg.
15091 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15092 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15093 hints. Set root preliminary to compatibility hint, not to OS name.
15094 * util/grub-probe.c (PRINT_*): Add hints.
15095 (print): Make static.
15096 (escape_of_path): New function.
15097 (guess_bios_drive): Likewise.
15098 (guess_efi_drive): Likewise.
15099 (guess_baremetal_drive): Likewise.
15100 (print_full_name): Likewise.
15101 (probe): Handle hints.
15102 (main): Likewise.
15103 * util/ieee1275/devicemap.c: Removed.
15104 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15105 updated.
15106 (grub_util_devname_to_ofpath): Return NULL on failure.
15107
15108 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15109 resource leak.
15110 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15111
15112 * po/POTFILES.in: Regenerated.
15113
15114 Allow purely long options
15115
15116 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15117 (SHORT_ARG_USAGE): Likewise.
15118 (grub_arg_show_help): Compare opt with help_options.
15119 (parse_option): Receive opt as argument. If makes big simplificatons.
15120 All users updated
15121
15122 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15125 Restructure to avoid warning.
15126
15127 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * util/grub-install.in: Account for possible escaped comma in device
15130 name.
15131
15132 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15133
15134 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15135 channel.
15136
15137 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15140 allocation and zero-setting.
15141 (grub_ieee1275_get_devname): Check that alias is complete.
15142
15143 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15146 unaligned segments.
15147
15148 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15151 prefix.
15152 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15153 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15154 Add ieee1275 prefix.
15155
15156 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 * docs/grub.texi (Filesystems): Update.
15159
15160 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15161
15162 Support odc, newc and bigendian cpio formats.
15163
15164 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15165 * grub-core/Makefile.core.def (newc): New module.
15166 (odc): Likewise.
15167 (cpio_be): Likewise.
15168 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15169 (MAGIC): Likewise.
15170 (MAGIC2): Likewise.
15171 (head) [MODE_ODC]: Adapt for the format.
15172 (head) [MODE_NEWC]: Likewise.
15173 (head) [!MODE_*]: Write fields of interest as arrays.
15174 (MAGIC_USTAR): Removed.
15175 (read_number) [MODE_NEWC]: Change to hex.
15176 (read_number) [!MODE_*]: Parse binary arrays.
15177 (grub_cpio_find_file): Factor out the code for better structure and
15178 always use read_number.
15179 (grub_cpio_mount): Use MAGIC and MAGIC2.
15180 (grub_cpio_dir): Exit on first hook non-0 return.
15181 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15182 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15183 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15184 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15185 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15186 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15187 * grub-core/fs/newc.c: New file.
15188 * grub-core/fs/odc.c: Likewise.
15189 * grub-core/fs/cpio_be.c: Likewise.
15190
15191 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 Fix handling of tar numbers occupying the whole field.
15194
15195 * grub-core/fs/cpio.c (read_number): New function.
15196 (grub_cpio_find_file): Use read_number instead of strtoull.
15197
15198 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15199
15200 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15201 occupying the whole field size.
15202
15203 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15204
15205 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15206
15207 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15208
15209 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15210
15211 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15212
15213 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15214 TARGET_IMG_LDFLAGS.
15215
15216 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15219 (mountinfo_entry): Increase the field size to take escaping into
15220 account.
15221 (find_root_device_from_libzfs): Add one byte to size of strings for
15222 security.
15223
15224 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15227 an assert.
15228 * util/grub-setup.c (setup): Likewise.
15229
15230 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15233 _LzmaDecodeA.
15234
15235 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * docs/grub.texi (Internationalisation): New section.
15238
15239 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 * docs/grub.texi (Loopback booting): New section.
15242
15243 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15244
15245 * util/grub-mkstandalone.in: Fix minor typo errors.
15246
15247 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15248
15249 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15250
15251 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15252 net/icmp.c and net/icmp6.c.
15253 (http): New module.
15254 (priority_queue): Likewise.
15255 * grub-core/io/bufio.c: Rewritten.
15256 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15257 TYPE_WITH_CONFIGFILE_OPTION.
15258 (legacy_commands): Add bootp and dhcp.
15259 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15260 (grub_legacy_parse): Likewise.
15261 * grub-core/lib/priority_queue.c: New file.
15262 * grub-core/net/arp.c: Add missing license header.
15263 (arp_find_entry): Removed.
15264 (arp_find_entry): Likewise.
15265 (grub_net_arp_resolve): Rename to ...
15266 (grub_net_arp_send_request): ...this.
15267 (grub_net_arp_receive): New card argument.
15268 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15269 Set router and DNS server.
15270 (grub_net_configure_by_dhcp_ack): Handle routing information.
15271 (grub_cmd_bootp): Set checksum.
15272 (grub_bootp_init): Remove net_dhcp.
15273 * grub-core/net/dns.c: New file.
15274 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15275 completion.
15276 (get_card_packet): Handle allocation.
15277 (grub_efinet_findcards): Set mtu.
15278 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15279 (get_card_packet): Handle allocation.
15280 (emucard): Set mtu.
15281 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15282 (GRUB_MOD_INIT): Set mtu.
15283 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15284 mtu.
15285 (get_card_packet): Handle allocation.
15286 (grub_ofnet_findcards): Set mtu.
15287 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15288 assert.
15289 (grub_net_recv_ethernet_packet): Handle IPv6.
15290 * grub-core/net/http.c: New file.
15291 * grub-core/net/icmp.c: Likewise.
15292 * grub-core/net/icmp6.c: Likewise.
15293 * grub-core/net/ip.c (ip6addr): New type.
15294 (ip6hdr): Likewise.
15295 (reassemble): Likewise.
15296 (cmp): New function.
15297 (reassembles): New variable.
15298 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15299 (id): New variable.
15300 (send_fragmented): New function.
15301 (grub_net_send_ip_packet): Rename to ...
15302 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15303 Handle non-UDP.
15304 (grub_net_recv_ip_packets): Rename to ...
15305 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15306 (free_rsm): New function.
15307 (free_old_fragments): Likewise.
15308 (grub_net_recv_ip4_packets): New function.
15309 (grub_net_send_ip6_packet): Likewise.
15310 (grub_net_send_ip_packet): Likewise.
15311 (grub_net_recv_ip6_packets): Likewise.
15312 (grub_net_recv_ip_packets): Likewise.
15313 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15314 (LINK_LAYER_CACHE_SIZE): New const.
15315 (link_layer_find_entry): New function.
15316 (grub_net_link_layer_add_address): Likewise.
15317 (grub_net_link_layer_resolve_check): Likewise.
15318 (grub_net_link_layer_resolve): Likewise.
15319 (grub_net_ipv6_get_slaac): Likewise.
15320 (grub_net_ipv6_get_link_local): Likewise.
15321 (grub_cmd_ipv6_autoconf): Likewise.
15322 (parse_ip): Handle one number representation.
15323 (parse_ip6): New functoion.
15324 (match_net): Handle IPv6.
15325 (grub_net_resolve_address): Handle IPv6 and DNS.
15326 (grub_net_resolve_net_address): Handle IPv6.
15327 (route_cmp): New function.
15328 (grub_net_route_address): Find best route.
15329 (grub_net_addr_to_str): Handle IPv6.
15330 (grub_net_addr_cmp): New function.
15331 (grub_net_add_addr): Register local route.
15332 (print_net_address): Handle net address.
15333 (grub_net_poll_cards): Retransmit TCP.
15334 (grub_net_poll_cards_idle_real): Likewise.
15335 (have_ahead): New function.
15336 (grub_net_seek_real): Use underlying seek.
15337 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15338 * grub-core/net/tcp.c: New file.
15339 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15340 (cmp): New function.
15341 (ack): Likewise.
15342 (tftp_receive): Handle unordered input.
15343 (destroy_pq): New function.
15344 (tftp_close): Close pq.
15345 * grub-core/net/udp.c: Put missing license header.
15346 (grub_net_udp_socket): New function.
15347 (udp_socket_register): Likewise.
15348 (grub_net_udp_close): Likewise.
15349 (grub_net_recv_udp_packet): Check checksum.
15350 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15351 * include/grub/misc.h (grub_memchr): New function.
15352 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15353 (grub_net_card_driver): Return buf in recv.
15354 (grub_net_slaac_mac_list): New struct.
15355 (grub_network_level_protocol_id): Add ipv6.
15356 (grub_net_network_level_addr): Likewise.
15357 (grub_net_network_level_net_addr): Likewise.
15358 (grub_net_app_protocol): Add seek.
15359 (grub_net_socket): Removed.
15360 (grub_net_sockets): Likewise.
15361 (grub_net_socket_register): Likewise.
15362 (grub_net_socket_unregister): Likewise.
15363 (FOR_NET_SOCKETS): Likewise.
15364 (grub_net_add_addr): Add const.
15365 (GRUB_NET_BOOTP_*): New enum.
15366 (grub_net_addr_cmp): New proto.
15367 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15368 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15369 (grub_net_hwaddr_to_str): NEw proto.
15370 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15371 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15372 (grub_dns_init): New proto.
15373 (grub_dns_fini): Likewise.
15374 (grub_net_tcp_retransmit): Likewise.
15375 (grub_net_link_layer_add_address): Likewise.
15376 (grub_net_link_layer_resolve_check): Likewise.
15377 (grub_net_link_layer_resolve): Likewise.
15378 (grub_net_dns_lookup): Likewise.
15379 (grub_net_add_dns_server): Likewise.
15380 (grub_net_remove_dns_server): Likewise.
15381 (GRUB_NET_TRIES): New const.
15382 (GRUB_NET_INTERVAL): Likewise.
15383 * include/grub/net/arp.h: Mostly rewritten.
15384 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15385 * include/grub/net/ip.h: Mostly rewritten.
15386 * include/grub/net/netbuff.h: Indent.
15387 * include/grub/net/tcp.h: New file.
15388 * include/grub/net/udp.h: Mostly rewritten.
15389 * include/grub/priority_queue.h: New file.
15390 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15391 (grub_swap_bytes64_compile_time): Likewise.
15392 (grub_cpu_to_be16_compile_time): Likewise.
15393 (grub_cpu_to_be32_compile_time): Likewise.
15394 (grub_cpu_to_be64_compile_time): Likewise.
15395 (grub_be_to_cpu64_compile_time): Likewise.
15396
15397 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15400 UINT_TO_PTR with cast.
15401
15402 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15405 don't use them.
15406
15407 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15410 already there.
15411
15412 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15413
15414 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15415 confusing ipxe.
15416
15417 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15420 Add missing const attribute.
15421 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15422 Likewise.
15423 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15424 Likewise.
15425
15426 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15429 misaligned access.
15430 (serpent_setkey): Likewise.
15431 (serpent_encrypt_internal): Likewise.
15432 (serpent_decrypt_internal): Likewise.
15433 (serpent_encrypt): Don't put an alignment-increasing cast.
15434 (serpent_decrypt): Likewise.
15435 (serpent_test): Likewise.
15436
15437 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15438
15439 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15440
15441 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15442
15443 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15444
15445 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15446 grub_addr_t casts.
15447 (PTR_TO_UINT64): Likewise.
15448 (PTR_TO_UINT32): Likewise.
15449
15450 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15451
15452 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15453 because of stack.
15454 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15455 limit.
15456
15457 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15460 text_width > available width a bit more gracefully.
15461
15462 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15463
15464 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15465 current address calculation.
15466
15467 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15470 stack.
15471 (encode_block): Likewise.
15472
15473 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15474
15475 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15476 certainety.
15477
15478 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15481 non-RS part to avoid RS messing with GDT.
15482 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15483 Increase to suit in realmode routines.
15484
15485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * grub-core/kern/i386/realmode.S: Increase alignment.
15488 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15489
15490 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15491
15492 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15493 be deterministic.
15494 (syndroms): Compute 0 syndrom.
15495 (rs_recover): Use 0 syndrom.
15496
15497 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15498
15499 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15500
15501 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15504 brackets.
15505
15506 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15509 account.
15510 (get_top_pad): Likewise.
15511 (get_right_pad): Likewise.
15512 (get_bottom_pad): Likewise.
15513
15514 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15515
15516 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15517
15518 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15519
15520 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15521 attribute as the structure isn't guaranteed to be properly aligned.
15522 (grub_efi_pci_device_path): Likewise.
15523 (grub_efi_pccard_device_path): Likewise.
15524 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15525 specify the size of `memory_type'.
15526 (grub_efi_vendor_device_path): Likewise.
15527 (grub_efi_controller_device_path): Likewise.
15528 (grub_efi_acpi_device_path): Likewise.
15529 (grub_efi_expanded_acpi_device_path): Likewise.
15530 (grub_efi_atapi_device_path): Likewise.
15531 (grub_efi_scsi_device_path): Likewise.
15532 (grub_efi_fibre_channel_device_path): Likewise.
15533 (grub_efi_1394_device_path): Likewise.
15534 (grub_efi_usb_device_path): Likewise.
15535 (grub_efi_usb_class_device_path): Likewise.
15536 (grub_efi_i2o_device_path): Likewise.
15537 (grub_efi_mac_address_device_path): Likewise.
15538 (grub_efi_ipv4_device_path): Likewise.
15539 (grub_efi_ipv6_device_path): Likewise.
15540 (grub_efi_infiniband_device_path): Likewise.
15541 (grub_efi_uart_device_path): Likewise.
15542 (grub_efi_vendor_messaging_device_path): Likewise.
15543 (grub_efi_hard_drive_device_path): Likewise.
15544 (grub_efi_cdrom_device_path): Likewise.
15545 (grub_efi_vendor_media_device_path): Likewise.
15546 (grub_efi_file_path_device_path): Likewise.
15547 (grub_efi_protocol_device_path): Likewise.
15548 (grub_efi_piwg_device_path): Likewise.
15549 (grub_efi_bios_device_path): Likewise.
15550
15551 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15554 (grub_ucs4_to_utf8_alloc): Likewise.
15555 (grub_ucs4_to_utf8): Likewise.
15556 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15557 (grub_ucs4_to_utf8_alloc): Likewise.
15558
15559 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 AFFS never uses unicode.
15562
15563 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15564 (grub_latin1_to_utf8): New inline function.
15565 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15566
15567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15570 overflow.
15571
15572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15573
15574 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15575 (grub_squash_dirent_header): Likewise.
15576 (read_chunk): Don't double swap.
15577 (grub_squash_iterate_dir): Fix swap sizes.
15578
15579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15582
15583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15584
15585 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15586 (grub_hfs_iterate_dir): Likewise.
15587
15588 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 Fix video on platforms where unaligned access is forbidden.
15591 Make several optimisations while on it.
15592
15593 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15594 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15595 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15596 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15597 Disable.
15598 (grub_video_fbblit_replace_16bit_1bit):
15599 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15600 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15601 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15602 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15603 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15604 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15605 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15606 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15607 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15608 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15609 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15610 (grub_video_fbblit_replace_index_RGB888): Likewise.
15611 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15612 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15613 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15614 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15615 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15616 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15617 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15618 Disable.
15619 (grub_video_fbblit_blend_XXX565_1bit):
15620 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15621 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15622 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15623 void *.
15624 * grub-core/video/fb/video_fb.c (common_blitter)
15625 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15626 (grub_video_fb_create_render_target_from_pointer)
15627 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15628 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15629 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15630 definition.
15631 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15632
15633 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15634
15635 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15636 HH22 and HM10 relocations.
15637
15638 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15639
15640 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15641
15642 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15643
15644 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15645 allocation succeeded.
15646
15647 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15650 argument a u8 pointer. All users updated.
15651 Handle unaligned buffers.
15652
15653 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15656 add_part to workaround compiler bug.
15657
15658 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15661
15662 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15663
15664 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15665 Reserve alignment invariants.
15666 (grub_multiboot_load): Likewise.
15667 (retrieve_video_parameters): Likewise.
15668 (grub_multiboot_make_mbi): Likewise.
15669
15670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15671
15672 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15673 incorrect pointer.
15674
15675 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15676
15677 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15678 (grub_pata_pio_write): Likewise.
15679
15680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15681
15682 Add noreturn attributes and remove unreachable code.
15683
15684 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15685 code.
15686 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15687 code. Mark as noreturn.
15688 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15689 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15690 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15691 unreachable code.
15692 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15693 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15694 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15695 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15696 * include/grub/kernel.h (grub_main): Mark as noreturn.
15697 * include/grub/reader.h (grub_rescue_run): Likewise.
15698
15699 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15700
15701 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15702 redundant declaration.
15703
15704 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15705
15706 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15707 redundant declaration.
15708 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15709
15710 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15713 to ensure alignment.
15714 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15715 alignment. Ensure tmp alignment.
15716 (grub_cmd_hdparm): Ensure buf alignment.
15717 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15718 to ensure alignment.
15719 (grub_ata_dumpinfo): Ensure text alignment.
15720 (grub_atapi_identify): Preserve alignment invariant.
15721 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15722
15723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724
15725 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15726 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15727 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15728 * include/grub/misc.h (grub_reboot)
15729 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15730 (grub_halt) [__mips__]: Likewise.
15731
15732 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15735 Remove redundant declaration.
15736 (grub_mmap_get_post64): Likewise.
15737 (grub_mmap_get_upper): Likewise.
15738 (grub_mmap_get_lower): Likewise.
15739
15740 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15741
15742 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15743 uint32_t * to ensure alignment.
15744 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15745
15746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15747
15748 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15749 uint16_t * to ensure alignment.
15750 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15751 alignment.
15752
15753 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15754
15755 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15756 to ensure alignment.
15757 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15758
15759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15760
15761 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15762 Handle unaligned pointers.
15763 (u32at): Likewise.
15764 (u64at): Likewise.
15765 (fixup): Use byte access instead of v16at.
15766 (find_attr): Fix imporper usage of v32at.
15767 (read_data): Likewise.
15768 (list_file): Handle byte-swapping and unaligned strings.
15769 (grub_ntfs_label): Likewise.
15770
15771 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772
15773 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15774 as it's not necessarily aligned.
15775
15776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15777
15778 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15779 redundant declaration.
15780 (grub_serial_init): Likewise.
15781 (grub_terminfo_init): Likewise.
15782
15783 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15784
15785 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15786 function.
15787 (ZAP_HASH_IDX): Likewise.
15788 (ZAP_LEAF_HASH_SHIFT): Likewise.
15789 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15790 (LEAF_HASH): Likewise.
15791 (ZAP_LEAF_NUMCHUNKS): Likewise.
15792 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15793 alignment invariants. Return pointer. All users updated.
15794 (ZAP_LEAF_ENTRY): Make into inline function.
15795 (NBBY): Removed.
15796 (xor): LIkewise.
15797 (xor_out): Use grub_crypto_xor.
15798 (dnode_get_path): Use grub_get_unaligned.
15799 (nvlist_find_value): Likewise.
15800 (grub_zfs_nvlist_lookup_uint64): Likewise.
15801 (grub_zfs_nvlist_lookup_string): Likewise.
15802 (get_nvlist_size): Likewise.
15803 (grub_zfs_open): Likewise.
15804 (fill_fs_info): Likewise.
15805 (grub_zfs_dir): Likewise.
15806 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15807 alignment invariants.
15808 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15809 necessarily aligned.
15810
15811 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15814
15815 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15816
15817 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15818 arithmetic to conserve alignment invariants.
15819
15820 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15821
15822 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15823 redundant declaration.
15824 (grub_efiemu_mm_obtain_request): Likewise.
15825 (grub_efiemu_prepare): Likewise.
15826
15827 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15828
15829 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15830 to match types.
15831
15832 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15833
15834 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15835 case of aunaligned recptr.
15836 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15837 alignment.
15838 (grub_hfsplus_btree_search): Handle unaligned index.
15839
15840 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15841
15842 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15843 to get freetag and skip.
15844
15845 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15848 array.
15849 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15850 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15851
15852 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15855 name for checksum and fix allocation algorithm.
15856
15857 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15858
15859 * include/grub/types.h (grub_properly_aligned_t): New type.
15860 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15861 (grub_get_unaligned16): Add explicit casts.
15862 (grub_get_unaligned32): Likewise.
15863 (grub_get_unaligned64): Likewise.
15864 (grub_set_unaligned16): New function.
15865 (grub_set_unaligned32): Likewise.
15866
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15870
15871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15874 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15875 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15876
15877 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15880 conditionals.
15881
15882 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15885 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15886
15887 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 Unify and improve RAID and crypto xor.
15890
15891 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15892 changed to grub_crypto_xor
15893 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15894 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15895 Use bigger types when possible.
15896
15897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * grub-core/disk/raid.c (scan_devices): Fix condition.
15900
15901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15902
15903 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15904 Make name a const ptr.
15905
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15909 first argument a const pointer.
15910 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15911 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15912 proto.
15913 (grub_children_iterate): Likewise.
15914 (grub_machine_mmap_iterate): Remove redundant declaration.
15915
15916 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15919 (grub_cmd_acpi) [!x86]: Disable EBDA.
15920
15921 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 Enable UTF8 in gnulib regexp.
15924
15925 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15926 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15927 (isupper): Use grub_isupper.
15928 (isascii): New inline function.
15929 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15930 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15931 * grub-core/normal/charset.c (grub_utf8_process): New function.
15932 (grub_utf8_to_utf16): Use grub_utf8_process.
15933 (grub_encode_utf8_character): New function.
15934 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15935 * include/grub/charset.h (grub_utf8_process): New declaration.
15936 (grub_encode_utf8_character): Likewise.
15937 * include/grub/misc.h (grub_islower): New inline function.
15938 (grub_isupper): Likewise.
15939 (grub_strchrsub): Moved down to fix the definitions.
15940
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15944 specification.
15945
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * include/grub/loader.h (grub_loader_register_preboot_hook):
15949 Use struct preboot * and not void * for handle. All users updated.
15950 (grub_loader_unregister_preboot_hook): Likewise.
15951
15952 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15955 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15956 UTF-16-BE. All users updated.
15957 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15958 (grub_hfsplus_iterate_dir): Likewise.
15959 (grub_hfsplus_label): Likewise.
15960
15961 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15962
15963 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15964
15965 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15966
15967 Add missing const qualifiers.
15968
15969 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15970 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15971 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15972 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15973 (grub_lvm_check_flag): Likewise.
15974 * grub-core/efiemu/i386/coredetect.c
15975 (grub_efiemu_get_default_core_name): Likewise
15976 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15977 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15978 * grub-core/fs/ntfs.c (fixup): Likewise.
15979 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15980 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15981 (fzap_lookup): Likewise.
15982 (zap_lookup): Likewise.
15983 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
15984 * grub-core/lib/legacy_parse.c (check_option): Likewise.
15985 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
15986 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
15987 (grub_freebsd_add_meta_module): Likewise.
15988 (grub_cmd_freebsd_module): Likewise.
15989 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
15990 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
15991 (grub_xnu_writetree_get_size): Likewise.
15992 (grub_xnu_writetree_toheap_real): Likewise.
15993 (grub_xnu_find_key): Likewise.
15994 (grub_xnu_create_key): Likewise.
15995 (grub_xnu_create_value): Likewise.
15996 (grub_xnu_register_memory): Likewise.
15997 (grub_xnu_check_os_bundle_required): Likewise.
15998 (grub_xnu_scan_dir_for_kexts): Likewise.
15999 (grub_xnu_load_kext_from_dir): Likewise.
16000 * grub-core/normal/color.c (color_list): Likewise.
16001 * grub-core/normal/completion.c (current_word): Likewise.
16002 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16003 * grub-core/term/serial.c (grub_serial_find): Likewise.
16004 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16005 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16006 Likewise.
16007 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16008 (grub_freebsd_add_meta_module): Likewise.
16009 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16010 * include/grub/net.h (grub_net_card_driver): Likewise.
16011 (grub_net_card): Likewise.
16012 (grub_net_app_protocol): Likewise.
16013 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16014 * include/grub/serial.h (grub_serial_find): Likewise.
16015 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16016 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16017 (grub_xnu_create_value): Likewise.
16018 (grub_xnu_find_key): Likewise.
16019 (grub_xnu_scan_dir_for_kexts): Likewise.
16020 (grub_xnu_load_kext_from_dir): Likewise.
16021
16022 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16023 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16024 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16025 Moved from here ...
16026 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16027
16028 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16029
16030 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16031
16032 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16033
16034 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16035 (read_device): Fix size calculation.
16036
16037 2011-11-25 Robert Millan <rmh@gnu.org>
16038
16039 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16040 (find_root_device_from_libzfs): Add zpool output parser to be used
16041 as fallback when libzfs isn't available.
16042
16043 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16044
16045 * po/Makefile.in.in: Add missing escape-continuation.
16046
16047 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16048
16049 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16050
16051 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16054
16055 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16058
16059 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16060
16061 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16062
16063 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * grub-core/lib/adler32.c: Add missing license specification.
16066 * grub-core/lib/crc64.c: Likewise.
16067 * grub-core/loader/i386/pc/plan9.c: Likewise.
16068 * grub-core/partmap/plan.c: Likewise.
16069
16070 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16071
16072 Add facility to debug GRUB with gdb under qemu.
16073
16074 * grub-core/gdb_grub.in: New file.
16075 * grub-core/gmodule.pl.in: Likewise.
16076 * grub-core/Makefile.core.def (gmodule.pl): New script.
16077 (gdb_grub): Likewise.
16078
16079 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16080
16081 * util/grub-mount.c (argp_parser): Accept relative pathes.
16082 * util/grub-fstest.c (argp_parser): Likewise.
16083
16084 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16085
16086 Plan9 support.
16087
16088 * Makefile.util.def (libgrubmods): Add
16089 grub-core/partmap/plan.c.
16090 * docs/grub.texi: Notice Plan9 support.
16091 * grub-core/Makefile.core.def (plan9): New module.
16092 (part_plan): Likewise.
16093 * grub-core/loader/i386/pc/plan9.c: New file.
16094 * grub-core/partmap/plan.c: Likewise.
16095 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16096 define.
16097 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16098 * include/grub/mm.h (grub_extend_alloc): New inline function.
16099
16100 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16101
16102 Make Reed-Solomon faster by using power of generator representation of
16103 GF(256)*.
16104
16105 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16106 (gf_double_t): Likewise.
16107 (gf_invert): Removed.
16108 (gf_powx): New array.
16109 (gf_powx_inv): Likewise.
16110 (scratch): Move higher.
16111 (gf_reduce): Removed.
16112 (gf_mul): Use powx.
16113 (gf_invert): Likewise.
16114 (init_inverts): Replaced with ...
16115 (init_powx): ...this. All users updated.
16116 (pol_evaluate): Replace multiplications with additions.
16117 (rs_encode): Likewise.
16118 (gauss_eliminate): Call gf_invert.
16119 (grub_reed_solomon_add_redundancy): Call init_powx.
16120 (grub_reed_solomon_recover): Call init_powx unconditionally.
16121
16122 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16123
16124 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16125
16126 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16129 disk->partiton for safety.
16130
16131 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16132
16133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16134 Fix a memory leak.
16135 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16136
16137 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16138
16139 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16140
16141 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16142
16143 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16144
16145 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 Fix spaces handling in proc/self/mountinfo.
16148
16149 * util/getroot.c (unescape): New function.
16150 (grub_find_root_device_from_mountinfo): Use unescape.
16151
16152 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 Support ZFS embedding.
16155
16156 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16157 (grub_zfs_fs): Register grub_zfs_embed.
16158
16159 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16160
16161 Fix MIPS compilation.
16162
16163 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16164 * include/grub/offsets.h: Rename decompressor fields from
16165 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16166 * util/grub-mkimage.c (image_targets): Use new names.
16167
16168 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16169
16170 Defer multiboot device parsing until we're in compressed part.
16171
16172 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16173 bsd_part. setdevice has fallen into disuse.
16174 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16175 (bsd_part): Likewise.
16176 (boot_dev): New variable.
16177 (multiboot_trampoline): Don't parse multiboot device.
16178 Pass multiboot device in %edx.
16179 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16180 grub_boot_device.
16181 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16182 Likewise.
16183 * grub-core/kern/i386/pc/startup.S: Save edx.
16184 (grub_boot_drive): Removed.
16185 (grub_install_dos_part): Likewise.
16186 (grub_install_bsd_part): Likewise.
16187 (grub_boot_device): New variable.
16188 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16189 (grub_install_bsd_part): Likewise.
16190 (grub_boot_drive): Likewise.
16191 (grub_boot_device): New variable.
16192 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16193 Removed.
16194 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16195 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16196 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16197 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16198 * util/grub-install.in: Remove redundant condition.
16199
16200 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16201
16202 Fix bug introduced by previous commit.
16203
16204 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16205
16206 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16207
16208 Use decompressors framework on i386-pc. It increases core size
16209 by 46 bytes but improves compatibility and maintainability.
16210
16211 * grub-core/Makefile.core.def (lzma_decompress): New image.
16212 (kernel): Add i386_pc_ldflags.
16213 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16214 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16215 to real_to_prot, prot_to_real and device info.
16216 * include/grub/offsets.h: Renamed decompressor offsets.
16217 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16218 (image_target_desc): Remove raw_size and rename decompressor fields.
16219 (compress_kernel): Handle lzma.
16220 (generate_image): Handle decompressors on i386-pc.
16221
16222 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16223
16224 * configure.ac: Add -fno-asynchronous-unwind-tables.
16225
16226 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 Move assembly code to C by using intwrap. It increases core size
16229 by 88 bytes but improves compatibility and maintainability.
16230
16231 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16232 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16233 ... here. Translated to C.
16234 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16235 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16236 ... here. Translated to C.
16237 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16238 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16239 ... here. Translated to C.
16240 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16241 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16242 ... here. Translated to C.
16243 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16244 * grub-core/term/i386/pc/console.c (grub_console_cls):
16245 ... here. Translated to C.
16246 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16247 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16248 ... here. Translated to C.
16249 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16250 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16251 Translated to C.
16252 * grub-core/term/i386/pc/console.c (int10_9): New function.
16253 (grub_console_putchar): Likewise.
16254 * include/grub/i386/pc/console.h: Removed the not anymore shared
16255 functions.
16256
16257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 Move grub_chainloader_real_boot out of the kernel.
16260
16261 * grub-core/Makefile.am: Remove machine/loader.h.
16262 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16263 Removed.
16264 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16265 variable.
16266 (grub_relocator16_keep_a20_enabled): Likewise.
16267 (grub_relocator16_boot): Fill new variables.
16268 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16269 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16270 relocator.
16271 (grub_chainloader_unload): Likewise.
16272 (grub_chainloader_cmd): Likewise.
16273 * include/grub/i386/pc/loader.h: Removed.
16274 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16275 and esi. All initialisers updated.
16276
16277 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16278 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16279
16280 * Makefile.util.def (grub-mount): New util.
16281 * .bzrignore: Add grub-mount.
16282 * configure.ac: Check for fuse and enable grub-mount if available.
16283 * docs/man/grub-mount.h2m: New file.
16284 * util/grub-mount.c: Likewise.
16285
16286 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 * grub-core/commands/efi/fixvideo.c: Gettextize.
16289 * grub-core/commands/hashsum.c: Likewise.
16290 * grub-core/commands/i386/cmostest.c: Likewise.
16291 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16292 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16293 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16294 * grub-core/commands/lsmmap.c: Likewise.
16295 * grub-core/commands/menuentry.c: Likewise.
16296 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16297 * grub-core/commands/setpci.c: Likewise.
16298 * grub-core/loader/i386/bsd.c: Likewise.
16299 * grub-core/loader/i386/linux.c: Likewise.
16300 * util/getroot.c: Likewise.
16301 * util/grub-editenv.c: Likewise.
16302 * util/grub-fstest.c: Likewise.
16303 * util/grub-mkfont.c: Likewise.
16304 * util/grub-mkimage.c: Likewise.
16305 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16306 * util/grub-pe2elf.c: Likewise.
16307 * util/grub-probe.c: Likewise.
16308 * util/grub-setup.c: Likewise.
16309 * util/ieee1275/ofpath.c: Likewise.
16310 * util/misc.c: Likewise.
16311 * util/raid.c: Likewise.
16312
16313 2011-11-11 Robert Millan <rmh@gnu.org>
16314
16315 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16316 __attribute__((unused)) from `os_dev', which *is* being used.
16317
16318 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16321 forgotten define.
16322 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16323 GRUB_IA64_DL_GOT_ALIGN.
16324 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16325 GRUB_IA64_DL_TRAMP_ALIGN.
16326
16327 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16328
16329 Replace grub_fatal with normal errors in i386 linux loader.
16330
16331 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16332 (allocate_pages): Check find_efi_mmap_size return value.
16333 (grub_e820_add_region): Return error.
16334 (grub_linux_boot): Check mmap return value.
16335
16336 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * grub-core/commands/acpihalt.c: Gettextized.
16339 * grub-core/commands/cacheinfo.c: Likewise.
16340 * grub-core/commands/cmp.c: Likewise.
16341 * grub-core/commands/efi/loadbios.c: Likewise.
16342 * grub-core/commands/gptsync.c: Likewise.
16343 * grub-core/commands/ieee1275/suspend.c: Likewise.
16344 * grub-core/commands/legacycfg.c: Likewise.
16345 * grub-core/commands/memrw.c: Likewise.
16346 * grub-core/commands/minicmd.c: Likewise.
16347 * grub-core/commands/parttool.c: Likewise.
16348 * grub-core/commands/time.c: Likewise.
16349 * grub-core/commands/videoinfo.c: Likewise.
16350 * grub-core/disk/geli.c: Likewise.
16351 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16352 * grub-core/disk/luks.c: Likewise.
16353 * grub-core/disk/lvm.c: Likewise.
16354 * grub-core/font/font_cmd.c: Likewise.
16355 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16356 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16357 * grub-core/gfxmenu/view.c: Likewise.
16358 * grub-core/kern/emu/hostdisk.c: Likewise.
16359 * grub-core/kern/emu/main.c: Likewise.
16360 * grub-core/kern/emu/misc.c: Likewise.
16361 * grub-core/kern/emu/mm.c: Likewise.
16362 * grub-core/kern/mips/arc/init.c: Likewise.
16363 * grub-core/kern/mips/loongson/init.c: Likewise.
16364 * grub-core/kern/partition.c: Likewise.
16365 * grub-core/lib/i386/halt.c: Likewise.
16366 * grub-core/lib/mips/arc/reboot.c: Likewise.
16367 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16368 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16369 * grub-core/loader/i386/xnu.c: Likewise.
16370 * grub-core/loader/multiboot.c: Likewise.
16371 * grub-core/net/bootp.c: Likewise.
16372 * grub-core/net/net.c: Likewise.
16373 * grub-core/normal/term.c: Likewise.
16374 * grub-core/partmap/bsdlabel.c: Likewise.
16375 * grub-core/parttool/msdospart.c: Likewise.
16376 * grub-core/term/gfxterm.c: Likewise.
16377 * grub-core/term/terminfo.c: Likewise.
16378 * grub-core/video/i386/pc/vbe.c: Likewise.
16379 * util/grub-menulst2cfg.c: Likewise.
16380 * util/grub-mkdevicemap.c: Likewise.
16381 * util/grub-mklayout.c: Likewise.
16382 * util/grub-mkrelpath.c: Likewise.
16383 * util/grub-script-check.c: Likewise.
16384 * util/ieee1275/grub-ofpathname.c: Likewise.
16385 * util/resolve.c: Likewise.
16386
16387 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16388
16389 Support %1$d syntax.
16390
16391 * tests/printf_unit_test.c: New file.
16392 * Makefile.util.def (printf_test): New test.
16393 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16394
16395 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16396
16397 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16398 fix.
16399
16400 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16401
16402 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16403 dprintf.
16404 * grub-core/font/font.c (grub_font_load): Likewise.
16405
16406 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 * util/grub-macho2img.c: Add comment concerning gettext.
16409 * grub-core/lib/legacy_parse.c: Likewise.
16410
16411 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16414 (grub_xvasprintf): Likewise.
16415
16416 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Add const keyword to grub_env_get and gettextize week days.
16419
16420 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16421 (grub_read_hook_datetime): Return const char *.
16422 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16423 updated.
16424 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16425 Mark for gettext.
16426 (grub_get_weekday_name): Return const char *. Call gettext.
16427 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16428 char * and len as the argument. All users updated.
16429 (grub_script_argv_split_append): Receive const char *.
16430 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16431 * include/grub/env.h (grub_env_get): Likewise.
16432 (grub_env_read_hook_t): Return const char *.
16433 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16434 (grub_script_argv_split_append): Likewise.
16435
16436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16437
16438 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16439
16440 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16441
16442 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16443 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16444
16445 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16446
16447 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16448 Fix prototype.
16449
16450 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 Fix mips compilation.
16453
16454 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16455 normal decoder.
16456 (hashes): Use in embed decoder as well (for sizes).
16457 (dec_stream_header): Fix embed decompressor logic.
16458 (dec_stream_footer): Likewise.
16459
16460 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16463 an error and not a fatal on unrecognised relocation types.
16464
16465 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16468 Issue error rather than printf on unknown arguments.
16469
16470 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16473 Make buf a const.
16474
16475 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16478 Fix module name.
16479
16480 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16481
16482 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16483 leftover debug printf.
16484
16485 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16488
16489 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16492 A stylistic fix.
16493
16494 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16497
16498 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16499
16500 Allow all modules to perform serial IO
16501
16502 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16503 * include/grub/serial.h (grub_serial_port_configure): New inline
16504 function.
16505 (grub_serial_port_fetch): Likewise.
16506 (grub_serial_port_put): Likewise.
16507 (grub_serial_port_fini): Likewise.
16508 (grub_serial_find): New proto.
16509
16510 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 Put symlink at the end of the node and fix a potential
16513 memory corruption.
16514
16515 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16516 Make symlink into an array.
16517 (set_rockridge): Set have_symlink and alloc_dirents.
16518 (grub_iso9660_read_symlink): Use new layout.
16519 (grub_iso9660_iterate_dir): Fix memory corruption.
16520 Use new layout.
16521 (grub_iso9660_dir): Set have_symlink.
16522 (grub_iso9660_open): Likewise.
16523
16524 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 Remove local keyword.
16527
16528 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16529 (version_test_gt): Likewise.
16530 (version_find_latest): Likewise.
16531 (gettext_printf): Likewise.
16532 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16533
16534 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16537
16538 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16539
16540 Fix ZFS memory and resource leaks.
16541
16542 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16543 All users updated.
16544 Free type on exit.
16545 (fill_vdev_info): New parameter inserted. All users updated.
16546 (check_pool_label): Likewise.
16547 (scan_disk): Likewise.
16548 (scan_devices): Close non-inserted disks.
16549 (fzap_iterate): Free l.
16550 (unmount_device): Free children descripto memory.
16551
16552 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16555 argument (access out of bounds).
16556
16557 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16558
16559 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16560 >= 6 drives.
16561
16562 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16565 Fix declaration.
16566
16567 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16568
16569 Fix several memory leaks.
16570
16571 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16572 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16573 (grub_cpio_dir): Likewise.
16574 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16575 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16576 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16577 (grub_romfs_label): Likewise.
16578 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16579 (squash_unmount): New function.
16580 (grub_squash_dir): Fix memory leak.
16581 (grub_squash_open): Likewise.
16582 (grub_squash_read): Likewise.
16583 (grub_squash_mtime): Likewise.
16584 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16585 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16586 * util/grub-fstest.c (fstest): Likewise.
16587
16588 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16589
16590 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16591 avoid accessing beyond the array.
16592
16593 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16596
16597 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 Several AFFS fixes.
16600
16601 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16602 (GRUB_AFFS_FLAG_FFS): Removed.
16603 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16604 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16605 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16606 (grub_fshelp_node): Make block 32-bit.
16607 Add block_cache and last_block_cache.
16608 (grub_affs_read_block): Fill and use block cache.
16609 (grub_affs_read_file): Removed.
16610 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16611 boot block.
16612 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16613 safety.
16614 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16615 space.
16616 (grub_affs_close): Free block cache.
16617 (grub_affs_read): Use grub_fshelp_read_file directly.
16618
16619 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16620
16621 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16622 with no error set.
16623
16624 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16627 used variable.
16628 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16629 Likewise.
16630
16631 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16632
16633 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16634
16635 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16636 byteswap when needed.
16637
16638 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 Fix FreeBSD compilation.
16641
16642 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16643 to avoid circular dependency.
16644 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16645 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16646 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16647
16648 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16649
16650 Fix ZFS crypto error types.
16651
16652 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16653 (grub_gcm_decrypt): Likewise.
16654 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16655 from PBKDF2.
16656
16657 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16658
16659 Illumos support.
16660
16661 * Makefile.util.def (10_illumos): New script.
16662 * configure.ac: Set COND_HOST_ILLUMOS.
16663 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16664 Support Illumos calls.
16665 (find_partition_start) [__sun__]: Likewise.
16666 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16667 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16668 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16669 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16670 device.
16671 * util/grub-probe.c (probe) [__sun__]: Do character check.
16672 * util/grub.d/10_illumos.in: New file.
16673
16674 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16675
16676 Support escaped commas in hostdisk.
16677
16678 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16679 (find_grub_drive): Use unescape_cmp.
16680 (make_device_name): Escape commas.
16681
16682 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16685
16686 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16689 variable.
16690
16691 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 Support trampoline jumps on powerpc.
16694
16695 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16696 __ia64__ path.
16697 (grub_dl_load_segments): Set mod->sz.
16698 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16699 segments.
16700 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16701 (jump): Likewise.
16702 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16703 function.
16704 (trampoline): New struct.
16705 (trampoline_template): New const.
16706 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16707 * include/grub/dl.h (grub_dl): Add sz element.
16708 [__powerpc__]: Follow __ia64__.
16709 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16710 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16711 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16712 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16713
16714 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16715
16716 ZFS crypto support.
16717
16718 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16719 * grub-core/Makefile.core.def (zfscrypt): New module.
16720 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16721 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16722 it. All users updated.
16723 (grub_zfs_decrypt): New var.
16724 (grub_zfs_load_key): Likewise.
16725 (zio_checksum_functions): Add SHA256+MAC.
16726 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16727 (zio_read): Handle encrypted blocks.
16728 (zap_verify): Remove incorrect check.
16729 (fzap_iterate): Handle non-standard fzap.
16730 (zap_iterate): Likewise.
16731 (zap_iterate_u64): New function.
16732 (dnode_get_fullpath): Load keys.
16733 * grub-core/fs/zfs/zfscrypt.c: New file.
16734 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16735 (grub_crypto_ecb_encrypt): Make input const.
16736 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16737 (grub_crypto_ecb_encrypt): Make input const.
16738 (GRUB_CIPHER_AES): New macro.
16739 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16740 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16741 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16742 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16743 prefix. All users updated.
16744 (grub_zfs_add_key): New proto.
16745 (grub_zfs_decrypt): Likewise.
16746 (grub_zfs_load_key): Likewise.
16747 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16748 * util/grub-fstest.c (options): Add -K option.
16749 (argp_parser): Likewise.
16750
16751 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16752
16753 Support zle compression on ZFS.
16754
16755 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16756 (decomp_table): Add zle.
16757 * include/grub/zfs/zio.h (zio_compress): Add zle.
16758
16759 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16760
16761 Support BtrFS embedding.
16762
16763 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16764 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16765 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16766 * util/grub-setup.c (setup): Use fs embedding if available.
16767 Add additional sanity check.
16768
16769 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16770
16771 * util/grub-install.in: Fix condition for config_opt.
16772
16773 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16774
16775 Support third redundancy strip on raidz3.
16776
16777 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16778 Return error on singularity. All users updated.
16779 (read_device): Don't stop on 3rd failure on raidz3.
16780
16781 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16782
16783 Support case-insensitive ZFS subvolumes.
16784
16785 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16786 All users updated.
16787 (zap_hash): Likewise.
16788 (name_cmp): New function.
16789 (zap_leaf_array_equal): New parameter case_insensitive.
16790 All users updated.
16791 (zap_leaf_lookup): Likewise.
16792 (fzap_lookup): Likewise.
16793 (zap_lookup): Likewise.
16794 (dnode_get_path): New parameter case_insensitive. Retrieve case
16795 sensitiviness of a volume. All users updated.
16796 (dnode_get_fullpath): New parameter case_insensitive.
16797 All users updated.
16798 (grub_zfs_dir): Set info.case_insensitiveness.
16799
16800 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 Support second redundancy strip on raidz(2,3).
16803
16804 * grub-core/fs/zfs/zfs.c (powx): New array.
16805 (powx_inv): Likewise.
16806 (poly): New const.
16807 (xor_out): New function.
16808 (gf_mul): Likewise.
16809 (recovery): Likewise.
16810 (read_device): Use second redundancy strip.
16811
16812 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 Use a power of generator representation of GF(256) multiplication group
16815 to save space time and complexity.
16816
16817 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16818 (raid6_table2): Likewise.
16819 (powx): New array.
16820 (powx_inv): Likewise.
16821 (poly): New const.
16822 (grub_raid_block_mul): Replace with ...
16823 (grub_raid_block_mulx): ...this.
16824 (grub_raid6_init_table): Rewritten.
16825 (grub_raid6_recover): Use power of generator representation.
16826
16827 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16830 for the right device.
16831
16832 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16833
16834 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16835 expected by grub-mkimage and it's more clear since there is no implicit
16836 padding.
16837
16838 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16839
16840 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16841 disk.
16842 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16843
16844 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16845
16846 * util/grub-mkrescue.in: Fix handling xorriso option.
16847
16848 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16851 NULL.
16852
16853 2011-11-03 crocket <crockabiscuit@gmail.com>
16854
16855 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16856
16857 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 XZ CRC64 and SHA256 support.
16860
16861 * Makefile.util.def (libgrubmods): Add crc64.c.
16862 * grub-core/Makefile.core.def (crc64): New module.
16863 * grub-core/lib/crc64.c: New file.
16864 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16865 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16866 Fix the type.
16867 (MAX_HASH_SIZE): New define.
16868 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16869 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16870 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16871 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16872 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16873 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16874 Handle non-crc32 hashes.
16875 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16876 (dec_stream_header): Handle non-crc32 hashes.
16877 (dec_stream_footer): Likewise.
16878 (dec_block_header): Likewise.
16879 (dec_main): Likewise.
16880 (xz_dec_init): Likewise.
16881 (xz_dec_reset): Likewise.
16882 (xz_dec_end): Likewise.
16883 * util/import_gcry.py: Add CRC64 line.
16884
16885 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16886
16887 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16888 as well.
16889
16890 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16891
16892 Make reiserfs label retrieval similar to other *_label functions.
16893
16894 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16895 (REISERFS_MAX_LABEL_LENGTH): Removed.
16896 (REISERFS_LABEL_OFFSET): Likewise.
16897 (grub_reiserfs_label): Rewritten.
16898
16899 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16900
16901 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16902 field.
16903
16904 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16905
16906 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16907
16908 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16911 drive failure on both raidz and raidz2.
16912
16913 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16914
16915 Fix RAIDZ(2) for >= 5 devices.
16916
16917 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16918 asize argument. All users updated.
16919
16920 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 Fix RAIDZ(2).
16923
16924 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16925 (fill_vdev_info_real): Set ashift.
16926 (read_device): Rewrite RAIDZ part based on reverse engineering.
16927
16928 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16929
16930 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16931 don't report potentially unavialiable fields in debug output.
16932 (find_path): Fix double-free and memory leak.
16933
16934 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16935
16936 Read label on UFS1.
16937
16938 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16939 (grub_ufs_fs): Always set .label.
16940
16941 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 Use shifts in UFS.
16944
16945 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16946 (grub_ufs_data): New field log2_blksz.
16947 (grub_ufs_read_file): Use shifts.
16948 (grub_ufs_mount): Check block size and logarithm it.
16949
16950 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16953 long symlinks.
16954
16955 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 Handle symlinks and long names on tar and cpio.
16958
16959 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16960 (ATTR_FILE): Likewise.
16961 (ATTR_DIR): Likewise.
16962 (ATTR_LNK): Likewise.
16963 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16964 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16965 L and K entries.
16966 (grub_cpio_mount): Zero-fill data.
16967 (handle_symlink): New function.
16968 (grub_cpio_dir): Handle symlinks.
16969 (grub_cpio_open): Likewise.
16970 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16971
16972 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 Fix iso9660 filename limitations and fix memory leaks.
16975
16976 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16977 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16978
16979 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Fix JFS file name length limitations.
16982
16983 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
16984 (grub_jfs_diropen): Fix maximum filename length.
16985 (grub_jfs_getent): Fix filename length.
16986 (grub_jfs_lookup_symlink): Fix size checks.
16987
16988 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
16991 string.
16992
16993 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 Leverage BFS implementation to read AFS.
16996
16997 * Makefile.util.def (libgrubmods): Add afs.c.
16998 * grub-core/Makefile.core.def (afs): New module
16999 * grub-core/fs/afs.c: New file.
17000 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17001
17002 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17003
17004 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17005
17006 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 * grub-core/fs/bfs.c: Run indent.
17009
17010 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 BFS implementation based on the specification.
17013
17014 * grub-core/fs/bfs.c: New file.
17015 * Makefile.util.def (libgrubmods): Add bfs.c.
17016 * grub-core/Makefile.core.def (bfs): New module.
17017
17018 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * util/grub-fstest.c (cmd_cp): Clarify error message.
17021 (cmd_cmp): Likewise.
17022
17023 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17024
17025 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17026 and befs_be.
17027
17028 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17029
17030 Remove afs and befs because of copyright problem.
17031
17032 * grub-core/fs/afs.c: Removed.
17033 * grub-core/fs/afs_be.c: Removed.
17034 * grub-core/fs/befs.c: Removed.
17035 * grub-core/fs/befs_be.c: Removed.
17036 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17037 * grub-core/Makefile.core.def (afs): Removed.
17038 (afs_be): Likewise.
17039 (befs): Likewise.
17040 (befs_be): Likewise.
17041
17042 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 Prefer rockridge over Joliet.
17045
17046 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17047 to ...
17048 (set_rockridge): ... here.
17049 (grub_iso9660_mount): Check rockridge on the primary label when
17050 discovering. Ignore Joliet if Rockridge is present.
17051
17052 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17053
17054 Use shifts in nilfs2.
17055
17056 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17057 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17058 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17059 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17060 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17061 (grub_nilfs2_entries_per_block): Replaced with ...
17062 (grub_nilfs2_log_entries_per_block_log): ... this.
17063 (grub_nilfs2_blocks_per_group): Replaced with ...
17064 (grub_nilfs2_blocks_per_group_log): ... this.
17065 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17066 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17067 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17068 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17069 (grub_nilfs2_palloc_entry_offset): Replaced ...
17070 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17071 (grub_nilfs2_dat_translate): Use shifts.
17072 (grub_nilfs2_read_inode): Likewise.
17073 (GRUB_MOD_INIT): Ensure that logs are correct.
17074
17075 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17076
17077 Use shifts in minix filesystem.
17078
17079 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17080 (GRUB_MINIX_ZONE2SECT): Likewise.
17081 (grub_minix_data): Replace block_size with log_block_size.
17082 (grub_minix_read_file): Use shifts.
17083 (grub_minix_mount): Check block size and take a logarithm.
17084
17085 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17086
17087 Use shifts in squash4.
17088
17089 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17090 (squash_mount): Check block size and take logarithm.
17091 (direct_read): Use shifts.
17092
17093 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 Correct befs block counting logic.
17096
17097 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17098 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17099 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17100 (grub_afs_read_inode): Use block_shift.
17101 (RANGE_SHIFT): New definition.
17102 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17103 unexpected conditions, use shifts and appropriate types.
17104 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17105
17106 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17107
17108 * grub-core/disk/raid.c (scan_devices): Check partition.
17109 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17110
17111 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17112
17113 Support BFS (befs) UUID.
17114
17115 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17116 (grub_afs_small_data_element_header): New struct.
17117 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17118 (grub_afs_read_attribute) [MODE_BFS]: New function.
17119 (grub_afs_iterate_dir): Allocate for complete inode.
17120 (grub_afs_mount): Likewise.
17121 (grub_afs_uuid) [MODE_BFS]: New function.
17122 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17123
17124 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17125
17126 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17127 (zfs_unmount): Fix memory leak.
17128
17129 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17130
17131 Support NTFS reparse points.
17132
17133 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17134 (symlink_descriptor): New struct.
17135 (grub_ntfs_read_symlink): New function.
17136 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17137 (grub_ntfs_open): Likewise.
17138
17139 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17140
17141 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17142
17143 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17144
17145 fstest xnu_uuid subcommand.
17146
17147 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17148 grub-core/commands/xnu_uuid.c.
17149 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17150 (fstest): Handle xnu_uuid.
17151 (options): Document xnu_uuid.
17152 (argp_parser): Parse xnu_uuid.
17153
17154 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17155
17156 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17157 -l argument. Add newline at the end if printing.
17158 (GRUB_MOD_INIT): Document -l.
17159
17160 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17163
17164 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17165
17166 ZFS multi-device and version 33 support.
17167
17168 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17169 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17170 (grub_zfs_data): Add multidev-ice-related fields.
17171 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17172 (dva_get_offset): Make dva const.
17173 (zfs_fetch_nvlist): New function.
17174 (fill_vdev_info_real): Likewise.
17175 (fill_vdev_info): Likewise.
17176 (check_pool_label): Likewise.
17177 (scan_disk): Likewise.
17178 (scan_devices): Likewise.
17179 (read_device): Likewise.
17180 (read_dva): Likewise.
17181 (zio_read_gang): Use read_dva.
17182 (zio_read_data): Likewise.
17183 (zap_leaf_lookup): Add missing endian conversion.
17184 (zap_verify): Add missing endian conversion. All users updated.
17185 (fzap_lookup): Likewise.
17186 (fzap_iterate): Likewise.
17187 (dnode_get_path): Handle SA bonus.
17188 (nvlist_find_value): Make input const. All users updated.
17189 (unmount_device): New function.
17190 (zfs_unmount): Use unmount_device.
17191 (zfs_mount): Use scan_disk.
17192 (zfs_mtime): New function.
17193 (grub_zfs_open): Handle system attributes.
17194 (fill_fs_info): Likewise.
17195 (grub_zfs_dir): Likewise.
17196 (grub_zfs_fs): Add mtime.
17197 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17198 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17199 (SA_MTIME_OFFSET): Likewise.
17200 (SA_SYMLINK_OFFSET): Likewise.
17201 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17202 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17203 (fstest): Support zfsinfo.
17204 (argp_parser): Likewise.
17205
17206 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17207
17208 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17209 error.
17210
17211 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17212
17213 ZFS fixes.
17214
17215 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17216 sharing the same block. Iterate over correct number of indices.
17217 (dnode_get_path): Handle symlinks correctly.
17218
17219 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17222
17223 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 Read label on HFS+.
17226
17227 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17228 (grub_hfsplus_btree_search): Fix types.
17229 (grub_hfsplus_label): Implement.
17230
17231 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17232
17233 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17234
17235 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17238
17239 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 Fix symlink handling on iso9660.
17242
17243 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17244 All users updated.
17245 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17246 (grub_iso9660_read_symlink): Moved most of code ...
17247 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17248
17249 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17252 Use union to avoid breaking strict-aliasing rules.
17253
17254 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 Support multi-extent iso files.
17257
17258 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17259 Add node.
17260 (grub_fshelp_node): Revamp. All users updated.
17261 (FLAG_*): New enum.
17262 (read_node): New function.
17263 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17264 All users updated.
17265 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17266 (get_node_size): New function.
17267 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17268 entries.
17269 Fix memory leak on . and ..
17270 (grub_iso9660_read): Use read_node.
17271 (grub_iso9660_close): Free node.
17272
17273 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 Fix tar 4G limit and handle paths containing dot.
17276
17277 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17278 (canonicalize): New function.
17279 (grub_cpio_find_file): Use canonicalize. Store offs in
17280 grub_disk_addr_t.
17281 (grub_cpio_dir): Use grub_disk_addr_t.
17282 (grub_cpio_open): Likewise.
17283
17284 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17287
17288 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17289 unused flags.
17290 (grub_squash_inode): Add long_file and block_size.
17291 (grub_squash_cache_inode): New struct.
17292 (grub_squash_dirent): Make types into enum.
17293 (SQUASH_TYPE_LONG_REGULAR): New type.
17294 (grub_squash_frag_desc): Add field size.
17295 (SQUASH_BLOCK_FLAGS): New enum.
17296 (grub_squash_data): Use grub_squash_cache_inode.
17297 (grub_fshelp_node): Make ino_chunk 64-bit.
17298 (read_chunk): Minor argument change. All users updated.
17299 (squash_mount): Use correct le_to_cpu.
17300 (grub_squash_open): Handle LONG_REGULAR.
17301 (direct_read): New function.
17302 (grub_squash_read_data): Handle blocks correctly.
17303
17304 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17307
17308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17311
17312 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 Fix 2G limit on ZFS.
17315
17316 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17317 types.
17318 (uberblock_verify): Likewise.
17319 (dmu_read): Likewise.
17320 (grub_zfs_read): Likewise. Remove invalid cast.
17321
17322 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17323
17324 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17325 (grub_jfs_blkno): Fix incorrect shift.
17326 (grub_jfs_read_file): Use more appropriate types.
17327
17328 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 Support triple indirect on minix2 and minix3.
17331
17332 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17333 Declare triple_indir_zone.
17334 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17335 indirect.
17336
17337 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17338
17339 Minix FS fixes.
17340
17341 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17342 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17343 Rename ctime to mtime. All users updated.
17344 (grub_minix_get_file_block): Fix types and double indirect computations.
17345
17346 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17349 if no label is found.
17350 (grub_fat_iterate_dir): Fix file size type.
17351 (grub_fat_iterate_dir): Likewise.
17352
17353 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17356 save some space.
17357 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17358 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17359
17360 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17361
17362 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17363
17364 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17365
17366 * util/import_gcry.py: Accept space between # and include.
17367
17368 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17369
17370 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17371
17372 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17373
17374 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17375
17376 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17377 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17378 yylex_strncpy.
17379 * grub-core/script/yylex.l: Add fine-grained #pragma.
17380
17381 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17382
17383 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17384 New inline function.
17385 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17386 Likewise.
17387 (memset) [GRUB_UTIL]: Likewise.
17388 (memcmp) [GRUB_UTIL]: Likewise.
17389
17390 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17391
17392 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17393 inline function rather than a define.
17394
17395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17396
17397 * util/grub-setup.c: Add missing include.
17398
17399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 * util/ieee1275/grub-ofpathname.c: Add missing include.
17402
17403 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17404
17405 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17406 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17407 Likewise.
17408
17409 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17410
17411 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17412 grub_memcmp usage.
17413
17414 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * util/grub-install.in: Add datarootdir as per automake manual
17417 suggestion.
17418 * util/grub-mknetdir.in: Likewise.
17419
17420 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17423 suggestion.
17424 * util/grub.d/10_kfreebsd.in: Likewise.
17425 * util/grub.d/10_linux.in: Likewise.
17426 * util/grub.d/10_netbsd.in: Likewise.
17427 * util/grub.d/10_windows.in: Likewise.
17428 * util/grub.d/20_linux_xen.in: Likewise.
17429
17430 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 Remove redundant grub_kernel_image_size.
17433
17434 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17435 _edata and _start.
17436 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17437 the small code. It moves it only by few bytes but simplifies the code.
17438 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17439 _start.
17440 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17441 (grub_kernel_image_size): Removed.
17442 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17443 (grub_kernel_image_size): Removed.
17444 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17445 compiled with Apple toolchain.
17446 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17447 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17448 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17449 (grub_total_module_size): Likewise.
17450 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17451 Removed.
17452 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17453 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17454 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17455 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17456 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17457 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17458 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17459 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17460 Removed.
17461 (grub_total_module_size): Removed.
17462 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17463 (image_targets): Likewise.
17464 Set .compressed_size to no field on sparc.
17465 (generate_image): Remove kernel_image_size handling.
17466
17467 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17468
17469 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17470 NULL pointer dereference.
17471
17472 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17473
17474 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17475 done with a dedicated section.
17476
17477 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17478 Ensure the correct position of boot_path.
17479 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17480 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17481 other fields.
17482 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17483 * include/grub/boot.h: Removed. All references removed.
17484 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17485 Removed.
17486 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17487
17488 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17489
17490 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17491 name.
17492
17493 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17494
17495 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17496
17497 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17498
17499 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17500 Don't add the bogus brackets.
17501
17502 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17503
17504 ExFAT support.
17505
17506 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17507 * grub-core/Makefile.core.def (exfat): New module.
17508 * grub-core/fs/exfat.c: New file.
17509 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17510 (GRUB_FAT_ATTR_*): Make into an enum.
17511 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17512 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17513 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17514 (GRUB_FAT_MAXFILE): Removed.
17515 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17516 (grub_current_fat_bpb_t): New type.
17517 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17518 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17519 (grub_fat_dir_node_t): New type.
17520 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17521 (fat_log2) [MODE_EXFAT]: Removed.
17522 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17523 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17524 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17525 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17526 (grub_fat_label) [MODE_EXFAT]: New function.
17527 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17528 reserved_first_sector to 0.
17529
17530 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 Move grub_reboot out of the kernel.
17533
17534 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17535 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17536 * grub-core/lib/efi/reboot.c: ... here.
17537 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17538 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17539 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17540 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17541 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17542 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17543 * grub-core/lib/ieee1275/reboot.c: ... here.
17544 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17545 * grub-core/lib/mips/arc/reboot.c: ... here.
17546 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17547 * grub-core/lib/mips/loongson/reboot.c: ...here.
17548 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17549 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17550 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17551 * include/grub/i386/reboot.h: New file.
17552 * include/grub/mips/loongson/ec.h: Fix includes.
17553 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17554 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17555 * grub-core/lib/i386/reboot.c: New file.
17556
17557 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17558
17559 Make grub_prefix into module to fix the arbitrary limit and save
17560 some space.
17561
17562 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17563 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17564 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17565 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17566 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17567 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17568 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17569 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17570 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17571 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17572 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17573 * include/grub/ia64/efi/kernel.h: Removed.
17574 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17575 (grub_prefix): Removed.
17576 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17577 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17578 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17579 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17580 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17581 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17582 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17583 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17584 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17585 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17586 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17587 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17588 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17589 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17590 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17591 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17592 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17593 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17594 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17595 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17596 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17597 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17598 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17599 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17600 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17601 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17602 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17603 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17604 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17605 from module.
17606 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17607 prefix_end.
17608 (image_targets): Likewise.
17609 (generate_image): Put prefix as a module.
17610
17611 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 Replace grub_module_iterate with FOR_MODULES.
17614
17615 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17616 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17617 (grub_efi_modules_addr): ...this.
17618 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17619 (grub_efi_init): Set grub_modbase.
17620 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17621 (grub_modbase): New variable.
17622 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17623 (grub_modbase): New variable.
17624 (grub_machine_init): Set grub_modbase.
17625 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17626 (grub_modbase): New variable.
17627 (grub_machine_init): Set grub_modbase.
17628 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17629 (grub_modbase): New variable.
17630 (grub_machine_init): Set grub_modbase.
17631 * grub-core/kern/main.c (grub_module_iterate): Remove.
17632 (grub_modules_get_end): Use grub_modbase.
17633 (grub_load_modules): Use FOR_MODULES.
17634 (grub_load_config): Likewise.
17635 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17636 (grub_modbase): New variable.
17637 (grub_machine_init): Set grub_modbase.
17638 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17639 (grub_modbase): New variable.
17640 (grub_machine_init): Set grub_modbase.
17641 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17642 Removed.
17643 (grub_modbase): New variable.
17644 (grub_machine_init): Set grub_modbase.
17645 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17646 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17647 (grub_module_iterate): Likewise.
17648 (grub_modbase): New variable declaration.
17649 (FOR_MODULES): New macro.
17650
17651 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17652
17653 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17654 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17655
17656 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17657
17658 Fix few obvious type discrepancies.
17659
17660 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17661 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17662 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17663 variable.
17664 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17665 and connected types.
17666 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17667 offset.
17668 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17669 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17670 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17671 and connected types.
17672
17673 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17674
17675 Fix python 3.x incompatibilities.
17676
17677 * gentpl.py: Put brackets around print strings.
17678 * util/import_gcry.py: Open explicitly as utf-8.
17679 Use in instead of has_key.
17680
17681 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17684 (GRUB_XFS_INO_AGBITS): Make into inline function.
17685 (GRUB_XFS_INO_INOINAG): Likewise.
17686 (GRUB_XFS_INO_AG): Likewise.
17687 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17688 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17689 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17690 (GRUB_XFS_EXTENT_SIZE): Likewise.
17691 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17692 (GRUB_XFS_NEXT_DIRENT): Likewise.
17693 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17694 (grub_xfs_read_file): Fix offset type.
17695
17696 2011-10-15 Robert Millan <rmh@gnu.org>
17697
17698 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17699
17700 2011-10-15 Robert Millan <rmh@gnu.org>
17701
17702 Fix build problem on FreeBSD and GNU/kFreeBSD.
17703
17704 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17705
17706 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17707
17708 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17709
17710 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17711 types.
17712 (grub_hfsplus_btree_recoffset): Likewise.
17713 (grub_hfsplus_btree_recptr): Likewise.
17714 (grub_hfsplus_find_block): Likewise.
17715 (grub_hfsplus_btree_search): Likewise.
17716 (grub_hfsplus_read_block): Likewise.
17717 (grub_hfsplus_read_file): Likewise.
17718 (grub_hfsplus_mount): Likewise.
17719 (grub_hfsplus_btree_iterate_node): Likewise.
17720 (grub_hfsplus_btree_search): Likewise.
17721 (grub_hfsplus_iterate_dir): Likewise.
17722 (grub_hfsplus_read): A small code simplification.
17723
17724 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17725
17726 * grub-core/kern/emu/hostdisk.c
17727 (convert_system_partition_to_system_disk): Don't assume that children
17728 of mapper nodes are mapper nodes.
17729
17730 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17731
17732 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17733 * include/grub/misc.h (grub_isxdigit): New function.
17734 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17735 switched to grub_isxdigit.
17736 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17737 number starting with a letter.
17738
17739 2011-10-09 Robert Millan <rmh@gnu.org>
17740
17741 LVM support for FreeBSD and GNU/kFreeBSD.
17742
17743 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17744 GNU/kFreeBSD.
17745 (LVM_DEV_MAPPER_STRING): Move from here ...
17746 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17747 * util/getroot.c: Include `<grub/util/lvm.h>'.
17748 (grub_util_get_dev_abstraction): Enable
17749 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17750 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17751 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17752 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17753 support it.
17754 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17755 GNU/kFreeBSD.
17756 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17757 when LVM abstraction is required for ${GRUB_DEVICE}.
17758
17759 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17760
17761 Add support for LZO compression in GRUB:
17762 - import of minilzo library,
17763 - LZO decompression for btrfs,
17764 - lzop files decompression.
17765
17766 * grub-core/io/lzopio.c: New file.
17767 * grub-core/lib/adler32.c: Likewise.
17768 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17769 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17770 * grub-core/lib/minilzo/minilzo.c: Likewise.
17771 * grub-core/lib/minilzo/minilzo.h: Likewise.
17772 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17773 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17774 grub-core/lib/minilzo/minilzo.c to common.
17775 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17776 cflags in cppflags.
17777 * grub-core/Makefile.core.def (btrfs): Likewise.
17778 * grub-core/Makefile.core.def (lzopio): New module.
17779 (adler32): Likewise.
17780 * grub-core/fs/btrfs.c: Include minilzo.h.
17781 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17782 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17783 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17784 (grub_btrfs_lzo_decompress): New function.
17785 (grub_btrfs_extent_read): Add support for LZO compression type.
17786 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17787 (GRUB_USHRT_MAX): Likewise.
17788 (GRUB_UINT_MAX): Likewise.
17789 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17790 (UINT_MAX): Likewise.
17791 (CHAR_BIT): Likewise.
17792 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17793 grub-core/lib/posix_wrap/limits.h
17794 (UCHAR_MAX): Likewise.
17795 * include/grub/file.h (grub_file_filter_id): New compression filter
17796 GRUB_FILE_FILTER_LZOPIO.
17797 * include/grub/file.h (grub_file_filter_id): Set
17798 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17799 * include/grub/types.h (grub_get_unaligned16): New function.
17800 (grub_get_unaligned32): Likewise.
17801 (grub_get_unaligned64): Likewise.
17802 * util/import_gcry.py (cryptolist): Add adler32.
17803
17804 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17807 in perspective decreases the complexity of build system and fixes
17808 compilation right now.
17809
17810 2011-10-01 Ales Nesrsta <starous@volny.cz>
17811
17812 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17813 (fixed problem related to using UHCI with coreboot).
17814
17815 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17816
17817 * gentpl.py: Use Autogen macros so that the output template file
17818 (Makefile.tpl) size is reduced.
17819
17820 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17821
17822 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17823 extra_dist.
17824
17825 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17826
17827 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17828 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17829
17830 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17831
17832 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17833 _fullpath.
17834
17835 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17836
17837 Remove extra declaration of sleep for mingw32.
17838
17839 * util/misc.c (sleep) [__MINGW32__]: Removed.
17840 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17841
17842 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17843
17844 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17845 type and packname.
17846 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17847 Resurrected.
17848 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17849 (grub_netbsd_btinfo_bootwedge): New struct.
17850 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17851 New function.
17852 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17853
17854 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17855
17856 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17857 loader.
17858
17859 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17860
17861 Fix incorrect identifiers in bash-completion.
17862
17863 * util/bash-completion.d/grub-completion.bash.in
17864 (_grub_mkpasswd-pbkdf2): Rename to ...
17865 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17866 (_grub_script-check): Rename to ...
17867 (_grub_script_check): ... this. All users updated.
17868
17869 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17870
17871 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17872 Return 0 if disk isn't biosdisk.
17873
17874 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17875
17876 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17877 on NetBSD.
17878 * Makefile.util.def (grub-fstest): Likewise.
17879
17880 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17881
17882 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17883 Get sector size from disk label.
17884
17885 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17886
17887 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17888 */README* as well as README*.
17889 Reported by: Axel Beckert.
17890
17891 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17892
17893 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17894 case of less than 256 MiB of RAM.
17895
17896 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17897
17898 * grub-core/commands/wildcard.c (make_regex): Handle @.
17899
17900 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17901
17902 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17903
17904 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17905
17906 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17907 AC_LANG_CONFTEST macros.
17908
17909 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17910
17911 Add grub-fstest option to uncompress data for commands.
17912
17913 * util/grub-fstest.c (uncompress): New var.
17914 (options): New option -u.
17915
17916 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17917
17918 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17919 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17920
17921 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17922
17923 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17924 file type was not recognized correctly (not gzip or corrupted).
17925
17926 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17927
17928 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17929 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17930
17931 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17932
17933 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17934 loongson.
17935 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17936 video_radeon_fuloong2e.
17937 * grub-core/video/radeon_fuloong2e.c: New file.
17938 * include/grub/video.h (grub_video_id_t): Add new ID
17939 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17940
17941 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17942
17943 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17944 define.
17945 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17946 that PRID matches the detected subplatform and reset the subplatform
17947 if it doesn't.
17948
17949 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17950
17951 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17952
17953 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17954
17955 Fix PCI iterating on functions >= 4.
17956
17957 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17958 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17959 Removed.
17960 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17961 (grub_pci_read): Fix bitmask.
17962 (grub_pci_read_word): Likewise.
17963 (grub_pci_read_byte): Likewise.
17964 (grub_pci_write): Likewise.
17965 (grub_pci_write_word): Likewise.
17966 (grub_pci_write_byte): Likewise.
17967
17968 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17971 can still be specified in TARGET_CFLAGS)
17972
17973 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17974
17975 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17976
17977 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17978 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17979 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17980 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17981 (FULOONG): Rename to ...
17982 (FULOONG2F): ... this. All users updated.
17983 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
17984 (machtype_fuloong2f_str): ... this.
17985 (machtype_fuloong2e_str): New string.
17986 Check for machtype_fuloong2e_str.
17987 * grub-core/loader/mips/linux.c (loongson_machtypes)
17988 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
17989 * grub-core/term/serial.c (loongson_defserial)
17990 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
17991 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
17992 loongson_defserial.
17993 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
17994 Rename to ...
17995 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
17996 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
17997 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
17998 to IMAGE_FULOONG2F_FLASH. All users updated.
17999 (image_targets): Rename images.
18000 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18001
18002 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18003
18004 Make enable of disk cache statistics code configurable.
18005
18006 * configure.ac: --enable-cache-stats added.
18007 * config.h.in (DISK_CACHE_STATS): New define.
18008 * grub-core/Makefile.core.def (cacheinfo): New command.
18009 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18010 * grub-core/commands/cacheinfo.c: New file.
18011 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18012 moved to cacheinfo.c.
18013 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18014 debug code.
18015 * include/grub/disk.h: Likewise.
18016
18017 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18018
18019 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18020 * grub-core/Makefile.am: Likewise.
18021
18022 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18025 non-zero pull.
18026
18027 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18030 All users updated.
18031 (grub_jfs_lookup_symlink): Use correct starting inode.
18032
18033 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18034
18035 * util/grub-setup.c (main): Add missing gcry initialisation.
18036
18037 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18038
18039 Don't accept text modes on EFI when booting Linux.
18040
18041 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18042 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18043
18044 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18045 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18046
18047 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18048 use of "/path/.." as in grub-install for EFI as well as handling
18049 symlinks correctly.
18050 Fixes Debian bug #637768.
18051
18052 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18053
18054 * util/grub-probe.c: Remove duplicate #include.
18055
18056 2011-08-10 Robert Millan <rmh@gnu.org>
18057
18058 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18059
18060 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18061 function.
18062 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18063 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18064
18065 2011-08-03 Robert Millan <rmh@gnu.org>
18066
18067 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18068 la_array as packed.
18069 Reported by: Zachary Bedell
18070
18071 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18072
18073 * configure.ac: The Loongson port requires grub-mkfont due to its
18074 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18075 be built.
18076
18077 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18078
18079 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18080 processing arguments (otherwise help2man fails when GRUB has not yet
18081 been installed).
18082
18083 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18084
18085 New script grub-mkstandalone.
18086
18087 * Makefile.util.def (grub-mkstandalone): New script.
18088 * docs/man/grub-mkstandalone.h2m: New file.
18089 * util/grub-mkstandalone.in: Likewise.
18090
18091 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 Support ATA disks with 4K sectors.
18094
18095 * include/grub/ata.h (grub_ata): New member log_sector_size.
18096 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18097 (grub_ata_identify): Read sector size.
18098 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18099
18100 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18101
18102 * util/grub-install.in: Don't use uhci outside of x86.
18103
18104 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18105
18106 * util/grub-mkrescue.in: Add missing quotes.
18107
18108 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18109
18110 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18111 dereference.
18112
18113 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18114
18115 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18116
18117 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18118
18119 * include/grub/video.h: add missing EXPORT_FUND on
18120 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18121
18122 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 * include/grub/mips/kernel.h: Fix define conflict.
18125
18126 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18129 all four ways.
18130
18131 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18132
18133 Preferred resolution detection for VBE.
18134
18135 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18136 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18137 the Flat Panel extension, in line with the X.org VESA driver.
18138 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18139 New function.
18140 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18141 (grub_vbe_bios_read_edid): Likewise.
18142 (grub_vbe_get_preferred_mode): Likewise.
18143 (grub_video_vbe_setup): When the mode is "auto", try to get the
18144 preferred mode from VBE, and use the largest mode that is no larger
18145 than the preferred mode (some BIOSes expose a preferred mode that is
18146 not in their mode list!). If this fails, fall back to 640x480 as a
18147 safe conservative choice.
18148 (grub_video_vbe_get_edid): New function.
18149 (grub_video_vbe_adapter): Add get_edid.
18150 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18151 (struct grub_video_adapter): Add get_edid.
18152 (grub_video_edid_checksum): Add prototype.
18153 (grub_video_edid_preferred_mode): Likewise.
18154 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18155 structure.
18156
18157 * grub-core/commands/videoinfo.c (print_edid): New function.
18158 (grub_cmd_videoinfo): Print EDID if available.
18159
18160 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18161 is more appropriate on a wider range of platforms than 640x480.
18162 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18163 documentation.
18164
18165 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18166
18167 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18168
18169 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18170
18171 * po/POTFILES.in: Regenerate.
18172
18173 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18174
18175 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18176 incorrect memory usage.
18177
18178 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18179
18180 * util/grub-install.in: Source grub-mkconfig_lib.
18181
18182 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18183
18184 Remove getroot.c from core on emu platform.
18185
18186 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18187 kern/emu/raid.c.
18188 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18189 useless.
18190 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18191 * util/getroot.c (get_win32_path): ... here.
18192 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18193 * util/getroot.c (fini_libzfs): ... here.
18194 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18195 * util/getroot.c (grub_get_libzfs_handle): ... here.
18196 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18197 Moved from here...
18198 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18199 * grub-core/kern/emu/misc.c
18200 (grub_make_system_path_relative_to_its_root): Moved from here...
18201 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18202 * grub-core/kern/emu/getroot.c: Moved from here ...
18203 * util/getroot.c: ... here. All users updated.
18204 * grub-core/kern/emu/raid.c: Moved from here ...
18205 * util/raid.c: ... here. All users updated.
18206
18207 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18208
18209 * po/POTFILES.in: Regenerate.
18210
18211 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18212
18213 Fix compilation on GNU/Linux.
18214
18215 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18216 Disable geli.
18217 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18218 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18219 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18220
18221 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18222 2011-07-07 Michael Gorven <michael@gorven.za.net>
18223 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18224
18225 LUKS and GELI support.
18226
18227 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18228 grub-core/disk/luks.c, grub-core/disk/geli.c,
18229 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18230 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18231 grub-core/lib/arg.c.
18232 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18233 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18234 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18235 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18236 (grub-bin2h): Add libgcry.a.
18237 (grub-mkimage): Likewise.
18238 (grub-mkrelpath): Likewise.
18239 (grub-script-check): Likewise.
18240 (grub-editenv): Likewise.
18241 (grub-mkpasswd-pbkdf2): Likewise.
18242 (grub-pe2elf): Likewise.
18243 (grub-fstest): Likewise.
18244 (grub-mkfont): Likewise.
18245 (grub-mkdevicemap): Likewise.
18246 (grub-probe): Likewise.
18247 (grub-ofpath): Likewise.
18248 (grub-mklayout): Likewise.
18249 (example_unit_test): Likewise.
18250 (grub-menulst2cfg): Likewise.
18251 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18252 * grub-core/Makefile.core.def (cryptodisk): New module.
18253 (luks): Likewise.
18254 (geli): Likewise.
18255 * grub-core/disk/AFSplitter.c: New file.
18256 * grub-core/disk/cryptodisk.c: Likewise.
18257 * grub-core/disk/geli.c: Likewise.
18258 * grub-core/disk/luks.c: Likewise.
18259 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18260 grub_util_is_lvm.
18261 (grub_util_get_dm_abstraction): New function.
18262 (grub_util_follow_gpart_up): Likewise.
18263 (grub_util_get_geom_abstraction): Likewise.
18264 (grub_util_get_dev_abstraction): Use new functions.
18265 (grub_util_pull_device): Pull GELI and LUKS.
18266 (grub_util_get_grub_dev): Handle LUKS and GELI.
18267 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18268 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18269 (follow_geom_up): Removed.
18270 (grub_util_fd_seek): New function.
18271 (open_device): Use grub_util_fd_seek.
18272 (nread): Rename to ..
18273 (grub_util_fd_read): ... this. All users updated.
18274 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18275 (grub_crypto_cbc_decrypt): Likewise.
18276 (grub_crypto_hmac_write): Likewise.
18277 (grub_crypto_hmac_buffer): Likewise.
18278 (grub_password_get): Extend to util.
18279 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18280 New member modname.
18281 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18282 * include/grub/cryptodisk.h: New file.
18283 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18284 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18285 LUKS and GELI.
18286 (grub_util_follow_gpart_up): New proto.
18287 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18288 (grub_util_fd_read): Likewise.
18289 (grub_cryptodisk_cheat_mount): Likewise.
18290 (grub_util_cryptodisk_print_uuid): Likewise.
18291 (grub_util_get_fd_sectors): Likewise.
18292 * util/grub-fstest.c (mount_crypt): New var.
18293 (fstest): Mount crypto if requested.
18294 (options): New option -C.
18295 (argp_parser): Parse -C.
18296 (main): Init and fini gcry.
18297 * util/grub-install.in: Support cryptodisk install.
18298 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18299 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18300 cryptodisk.
18301 (prepare_grub_to_access_device): Likewise.
18302 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18303 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18304 (probe_cryptodisk_uuid): New function.
18305 (probe_abstraction): Likewise.
18306 (probe): Use new functions.
18307 * util/import_gcry.py: Create Makefile.utilgcry.def.
18308 Add modname member.
18309
18310 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18311
18312 Lazy device scanning.
18313
18314 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18315 (grub-setup): Remove util/raid.c.
18316 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18317 * grub-core/disk/lvm.c (scan_depth): New variable.
18318 (grub_lvm_iterate): Rescan if necessary.
18319 (find_lv): New function based on grub_lvm_open.
18320 (grub_lvm_open): Use find_lv. Rescan on error.
18321 (is_node_readable): New function.
18322 (is_lv_readable): Likewise.
18323 (grub_lvm_scan_device): Skip already found disks.
18324 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18325 Stop if searched device is found and readable.
18326 * grub-core/disk/raid.c (inscnt): New variable.
18327 (scan_depth): Likewise.
18328 (scan_devices): New function based on grub_raid_register. Abort if
18329 looked for device is found.
18330 (grub_raid_iterate): Rescan if needed.
18331 (find_array): NEw function based on -grub_raid_open.
18332 (grub_raid_open): Use find_array and rescan.
18333 (insert_array): Set became_readable_at.
18334 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18335 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18336 New function.
18337 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18338 (grub_util_pull_device): New function.
18339 (grub_util_get_grub_dev): Call grub_util_pull_device.
18340 * util/raid.c: Moved to ..
18341 * grub-core/kern/emu/raid.c: ... here.
18342 (grub_util_raid_getmembers): New parameter "bootable".
18343 All users updated. Support 1.x.
18344 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18345 All users updated.
18346 * include/grub/disk.h (grub_disk_pull_t): New enum.
18347 (grub_disk_dev): Change iterate prototype.
18348 All users updated.
18349 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18350 New proto.
18351 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18352 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18353 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18354 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18355 All users updated.
18356 * include/grub/util/raid.h: Removed.
18357
18358 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18359
18360 * po/POTFILES.in: Regenerate.
18361
18362 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18363
18364 Unify sparc init with other ieee1275.
18365
18366 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18367 instead of kern/sparc64/ieee1275/init.c.
18368 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18369 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18370 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18371 grub/machine/kernel.h.
18372 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18373 (grub_claim_heap) [__sparc__]: Use sparc version.
18374 (grub_machine_init): Moved args parsing to
18375 (grub_parse_cmdline): ...this.
18376 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18377 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18378 New definition.
18379 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18380
18381 Move BOOTP to separate file.
18382
18383 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18384 * grub-core/net/net.c: Move all BOOTP functions to
18385 * grub-core/net/bootp.c: ... here.
18386
18387 Use frame interface on PXE.
18388
18389 * grub-core/Makefile.core.def (pxecmd): Removed.
18390 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18391 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18392 * grub-core/i386/pc/pxe.c: Moved from here ...
18393 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18394 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18395 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18396
18397 EFI network support.
18398
18399 * grub-core/Makefile.core.def (efinet): New module.
18400 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18401 here...
18402 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18403 All users updated.
18404 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18405 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18406 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18407 * grub-core/net/drivers/efi/efinet.c: New file.
18408 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18409 (grub_efi_net_config): New extern var.
18410
18411 Various cleanups and bugfixes.
18412
18413 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18414 error.
18415 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18416 disk declared as partition.
18417 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18418 leak on failure.
18419 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18420 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18421 (grub_debug_zalloc): Likewise.
18422 (grub_debug_realloc): Likewise.
18423 (grub_debug_memalign): Likewise.
18424 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18425 Check that target is IPv4.
18426 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18427 local-mac-address as fallback.
18428 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18429 memory leak.
18430 * grub-core/net/ip.c (ipchksum): Rename to ...
18431 (grub_net_ip_chksum): ... this. All users updated.
18432 (grub_net_recv_ip_packets): Special handling for DHCP.
18433 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18434
18435 Unify prefix handling
18436
18437 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18438 (grub_machine_get_bootlocation): ... this.
18439 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18440 (grub_machine_get_bootlocation): ... this.
18441 (grub_prefix): New variable.
18442 (prefix): Removed.
18443 (root_dev): New variable.
18444 (dir): Likewise.
18445 (main): Use new variables.
18446 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18447 Revamped into ...
18448 (grub_machine_get_bootlocation): ... this.
18449 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18450 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18451 (grub_machine_get_bootlocation): ... this.
18452 (grub_machine_set_prefix): Removed.
18453 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18454 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18455 Revamped into ...
18456 (grub_machine_get_bootlocation): ... this.
18457 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18458 (grub_set_prefix_and_root): ... this. All users updated.
18459 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18460 Revamped into ...
18461 (grub_machine_get_bootlocation): ... this.
18462 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18463 (grub_machine_get_bootlocation): New proto.
18464 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18465
18466 Less intrusive and more reliable seek on network implementation.
18467
18468 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18469 (grub_file_seek): Don't call grub_file_net_seek.
18470 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18471 (grub_net_fs_read_real): .. this.
18472 (grub_net_seek_real): Use net->offset.
18473 (grub_net_fs_read): Seek if necessary.
18474
18475 Unify IEEE1275 netwotk config with the other platforms.
18476
18477 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18478 New variable.
18479 (grub_machine_get_bootlocation): Support network.
18480 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18481 Support type and device parsing.
18482 (grub_ieee1275_get_device_type): New function.
18483 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18484 into ...
18485 (grub_ieee1275_net_config_real): ... this.
18486 (grub_ofnet_probecards): Removed.
18487 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18488 * include/grub/ieee1275/ofnet.h: Removed.
18489 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18490 extern var.
18491 (grub_ieee1275_get_device_type): New function.
18492
18493 Unify network device closing across platforms and make more robust.
18494
18495 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18496 grub_grubnet_fini.
18497 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18498 already.
18499 * grub-core/net/net.c (grub_net_network_level_interface_register):
18500 Update num_ifaces.
18501 (grub_net_card_unregister): Close all interfaces.
18502 (receive_packets): Don't poll if no iterfaces are registered.
18503 Open if necessary.
18504 (grub_net_fini_hw): New function.
18505 (grub_net_restore_hw): Likewise.
18506 (fini_hnd): New variable.
18507 (GRUB_MOD_INIT): Register preboot hook.
18508 (GRUB_MOD_FINI): Run and unregister preboot hook.
18509
18510 Poll network cards when idle.
18511
18512 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18513 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18514 * grub-core/net/net.c (receive_packets): Save last poll time.
18515 (grub_net_poll_cards_idle_real): New function.
18516 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18517 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18518 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18519
18520 Rename ofnet interfaces.
18521
18522 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18523 (grub_ofnet_findcards): Use ofnet_%s names.
18524
18525 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18526
18527 Cleanup socket opening.
18528
18529 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18530 (grub_net_fs_close): Likewise.
18531 (grub_net_fs_read_real): Use eof member.
18532 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18533 (+grub_net_udp_close): New inline function.
18534
18535 * include/grub/net/tftp.h: Moved to the top of ...
18536 * grub-core/net/tftp.c: ... here.
18537 * include/grub/net/ip.h: Moved mostly to the top of ...
18538 * grub-core/net/ip.c: ... here.
18539 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18540 * grub-core/net/ethernet.c: ... here.
18541
18542 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18543
18544 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18545 FS name.
18546
18547 * include/grub/net/ip.h (ipv4_ini): Removed.
18548 (ipv4_fini): Likewise.
18549
18550 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18551 (grub_net_send_ip_packets): Likewise.
18552
18553 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18556 grub_read_cmos prototype.
18557
18558 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 VGA text support in qemu-mips
18561
18562 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18563 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18564 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18565 text.
18566 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18567 * grub-core/kern/vga_init.c: ... this.
18568 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18569 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18570 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18571 Adjust.
18572 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18573 GRUB_MACHINE_PCI_IO_BASE.
18574
18575 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18576
18577 MIPS qemu flash support.
18578
18579 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18580 magic.
18581 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18582 (grub_machine_init): Probe memory if its size isn't known.
18583 * util/grub-mkimage.c (image_targets): Add flash targets.
18584 (generate_image): Handle flash targets.
18585
18586 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18587
18588 MIPS qemu at_keyboard support.
18589
18590 * gentpl.py (videoinkernel): Add qemu-mips.
18591 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18592 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18593 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18594 modules.
18595 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18596 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18597 * grub-core/term/serial.c (grub_serial_register)
18598 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18599
18600 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18601
18602 CMOS support on sparc.
18603
18604 * gentpl.py (cmos): Add powerpc and sparc.
18605 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18606 powerpc and sparc.
18607 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18608 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18609 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18610 grub_set_datetime_cmos.
18611 * grub-core/lib/ieee1275/cmos.c: New file.
18612 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18613 (find_rtc): Set no_ieee1275_rtc on error.
18614 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18615 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18616 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18617 fail. Move value to argument. All users updated
18618 (grub_cmos_write): Likewise.
18619 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18620 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18621 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18622 grub_get_datetime_cmos and grub_set_datetime_cmos.
18623
18624 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18625
18626 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18627 sourcing grub-mkconfig_lib.
18628 * util/update-grub_lib.in: Likewise.
18629 * util/grub.d/00_header.in: Likewise.
18630 * util/grub.d/10_hurd.in: Likewise.
18631 * util/grub.d/10_kfreebsd.in: Likewise.
18632 * util/grub.d/10_linux.in: Likewise.
18633 * util/grub.d/10_netbsd.in: Likewise.
18634 * util/grub.d/10_windows.in: Likewise.
18635 * util/grub.d/20_linux_xen.in: Likewise.
18636 * util/grub.d/30_os-prober.in: Likewise.
18637
18638 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18639
18640 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18641 default_bg_color rather than black.
18642 (grub_gfxterm_fullscreen): Likewise.
18643 (grub_gfxterm_background_color_cmd): Save new background color in
18644 default_bg_color.
18645
18646 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18647
18648 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18649
18650 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18651
18652 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18653 mismerge.
18654
18655 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18656
18657 Chainloading on coreboot support.
18658
18659 * grub-core/Makefile.core.def (chain): Add coreboot.
18660 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18661
18662 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18663
18664 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18665 if it happens.
18666
18667 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18668
18669 Implement time command.
18670
18671 * grub-core/Makefile.core.def (time): New module.
18672 * grub-core/commands/time.c: New file.
18673 * grub-core/script/parser.y: Remove "time" keyword.
18674 * grub-core/script/yylex.l: Likewise.
18675
18676 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18677
18678 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18679
18680 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18683 when handling leftovers.
18684
18685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18686
18687 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18688 so that help2man doesn't fail.
18689
18690 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18693 type in pointers on sparc64.
18694 (get_card_packet): Likewise.
18695
18696 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18697
18698 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18699 with `*'.
18700 (grub_cmd_videoinfo): Fetch current video mode.
18701
18702 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18703
18704 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18705 because of underlying system restrictions.
18706
18707 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18708
18709 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18710 necessary.
18711
18712 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18713
18714 Coreboot video support.
18715
18716 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18717 (vbe): Likewise.
18718 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18719 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18720 here ...
18721 * grub-core/kern/i386/int.S: ... here.
18722 * grub-core/video/i386/pc/vbe.c: Updated includes.
18723 * grub-core/video/i386/pc/vga.c: Likewise.
18724 * include/grub/i386/coreboot/memory.h
18725 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18726 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18727 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18728 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18729 Disable interrupts.
18730 * include/grub/i386/pc/vga.h: Removed. All users updated.
18731
18732 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18735 definitions for dprintf.
18736 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18737
18738 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18739
18740 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18741 prototype.
18742 (get_card_packet): Likewise.
18743
18744 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18745
18746 Display the path of the file when file is not found
18747
18748 * grub-core/fs/fat.c: Display the filename when file is not found.
18749 * grub-core/fs/fshelp.c: Likewise.
18750 * grub-core/fs/hfs.c: Likewise.
18751 * grub-core/fs/jfs.c: Likewise.
18752 * grub-core/fs/minix.c: Likewise.
18753 * grub-core/fs/ufs.c: Likewise.
18754 * grub-core/fs/btrfs.c: Likewise.
18755 * grub-core/commands/i386/pc/play.c: Likewise.
18756
18757 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18758
18759 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18760 pointer checks before calling grub_free().
18761 * grub-core/commands/wildcard.c (match_devices): Likewise.
18762 * grub-core/commands/wildcard.c (match_files): Likewise.
18763 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18764 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18765 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18766 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18767 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18768 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18769 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18770 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18771 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18772
18773 2011-06-25 Patrick <p55@mailinator.com>
18774
18775 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18776
18777 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18778
18779 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18780 (grub_pxe_send): Likewise.
18781 (GRUB_MOD_INIT): Fix types.
18782
18783 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18784
18785 * grub-core/io/xzio.c: Fix code style issues
18786
18787 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18788 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18789
18790 Network infrastructure.
18791 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18792
18793 * include/grub/net/arp.h: New file.
18794 * include/grub/net/device.h: Likewise.
18795 * include/grub/net/ethernet.h: Likewise.
18796 * include/grub/net/ip.h: Likewise.
18797 * include/grub/net/netbuff.h: Likewise.
18798 * include/grub/net/tftp.h: Likewise.
18799 * include/grub/net/udp.h: Likewise.
18800 * include/grub/ieee1275/ofnet.h: Likewise.
18801 * include/grub/emu/export.h: Likewise.
18802 * include/grub/net.h: Likewise.
18803 * grub-core/net/arp.c: Likewise.
18804 * grub-core/net/ethernet.c: Likewise.
18805 * grub-core/net/ip.c: Likewise.
18806 * grub-core/net/udp.c: Likewise.
18807 * grub-core/net/tftp.c: Likewise.
18808 * grub-core/net/netbuff.c: Likewise.
18809 * grub-core/net/net.c: Likewise.
18810 * grub-core/net/drivers/emu/emunet.c: Likewise.
18811 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18812 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18813 export.h.
18814 * grub-core/Makefile.core.def (net): New module.
18815 (tftp): Likewise.
18816 (ofnet): Likewise.
18817 (emunet): Likewise.
18818 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18819 network protocols.
18820 * grub-core/kern/device.c (grub_net_open) : New variable.
18821 (grub_device_open): Handle network device.
18822 (grub_device_close): Likewise.
18823 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18824 (grub_grubnet_fini): Likewise.
18825 (grub_file_seek): Seek in network device.
18826 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18827 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18828 network root.
18829 (grub_machine_fini): Call grub_grubnet_fini.
18830 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18831 network.
18832 (grub_ieee1275_get_aliasdevname): New function.
18833 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18834 Add unofficial Solaris network info.
18835 (grub_multiboot_make_mbi): Likewise.
18836 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18837 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18838 * include/grub/device.h (grub_fs): Removed.
18839 * include/grub/err.h (grub_err_t): Add network-related values.
18840 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18841 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18842 (grub_ieee1275_get_aliasdevname): New proto.
18843 * include/grub/net.h: Rewritten.
18844
18845 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18846
18847 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18848 names.
18849
18850 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18851
18852 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18853 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18854 it truncates the output.
18855 Reported by: Ximin Luo.
18856
18857 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18858
18859 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18860
18861 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18864 partmap before abstraction.
18865
18866 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18867
18868 * util/grub-mkconfig_lib.in: Add missing quotes.
18869
18870 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18871
18872 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18873 old method if mountinfo would return /dev/root and /dev/root doesn't
18874 exist.
18875
18876 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 ZFS zlib support
18879
18880 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18881 (decomp_table): Add zlib entries.
18882 (zio_read): USe 8 bits for compression function rather than 3.
18883 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18884
18885 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18886
18887 * grub-core/disk/ahci.c: Add missing license statements.
18888 * grub-core/fs/romfs.c: Likewise.
18889 * grub-core/lib/ia64/setjmp.S: Likewise.
18890 * grub-core/loader/i386/pc/freedos.c: Likewise.
18891 * grub-core/loader/ia64/efi/linux.c: Likewise.
18892 * grub-core/video/colors.c: Likewise.
18893 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18894
18895 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18896
18897 AHCI support.
18898
18899 * grub-core/Makefile.core.def (ata_pthru): Removed.
18900 (ahci): New module.
18901 (pata): Likewise.
18902 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18903 on unload.
18904 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18905 readwrite.
18906 (grub_hdparm_do_check_powermode_cmd): Likewise.
18907 (grub_hdparm_do_smart_cmd): Likewise.
18908 (grub_hdparm_set_val_cmd): Likewise.
18909 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18910 * grub-core/disk/ahci.c: New file.
18911 * grub-core/disk/ata.c: Factor out the low-level part into ...
18912 * grub-core/disk/pata.c: ... here.
18913 * grub-core/disk/ata_pthru.c: Contents moved to ...
18914 * grub-core/disk/pata.c: ... here.
18915 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18916 (grub_scsi_iterate): Use grub_scsi_names.
18917 (grub_scsi_open): Likewise.
18918 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18919 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18920 (grub_ata_regs_t): New struct.
18921 (grub_disk_ata_pass_through_parms): Likewise.
18922 (grub_ata_device): Renamed to ...
18923 (grub_ata): ... this.
18924 (grub_ata_dev): New struct.
18925 Removed all low-level inline functions.
18926 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18927 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18928 iterate hooks and open. All users updated.
18929 * util/grub-install.in: Handle AHCI disk module.
18930
18931 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18932
18933 Add support for DRI and RSTn markers in JPEG files.
18934
18935 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18936 (JPEG_MARKER_RST0): Likewise.
18937 (JPEG_MARKER_RST1): Likewise.
18938 (JPEG_MARKER_RST2): Likewise.
18939 (JPEG_MARKER_RST3): Likewise.
18940 (JPEG_MARKER_RST4): Likewise.
18941 (JPEG_MARKER_RST5): Likewise.
18942 (JPEG_MARKER_RST6): Likewise.
18943 (JPEG_MARKER_RST7): Likewise.
18944 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18945 (grub_jpeg_decode_dri): New function.
18946 (grub_jpeg_decode_sos): Move image data related part into
18947 grub_jpeg_decode_data function.
18948 (grub_jpeg_decode_data): New function.
18949 (grub_jpeg_reset): New function.
18950 (grub_jpeg_decode_jpeg): Handle new markers.
18951
18952 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 * util/ieee1275/ofpath.c (check_sas): Close fd.
18955 (main): Free of_path.
18956 Reported by: David Volgyes <dvolgyes>.
18957
18958 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18959
18960 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18961 Reported by: David Volgyes <dvolgyes>.
18962
18963 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18964
18965 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18966 file after stat.
18967 Reported by: David Volgyes <dvolgyes>.
18968
18969 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18970
18971 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18972
18973 Reported by: David Volgyes <dvolgyes>.
18974
18975 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18976
18977 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18978 Prevent memory leak.
18979
18980 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18981
18982 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
18983 (main): Close file.
18984 Reported by: David Volgyes <dvolgyes>.
18985
18986 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18987
18988 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
18989 to continue if allocation is failed.
18990
18991 Reported by: David Volgyes <dvolgyes>.
18992
18993 2011-06-23 David Volgyes <dvolgyes>
18994
18995 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
18996 dereference.
18997
18998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18999
19000 Fix spurious warning.
19001
19002 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19003 (acorn_partition_map_find): Use .bin member.
19004
19005 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19006
19007 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19008 /dev/root as a valid device.
19009
19010 2011-06-23 Jim Meyering <meyering@redhat.com>
19011
19012 Avoid NULL deref in grub_device_open.
19013
19014 * grub-core/kern/device.c (grub_device_open): Don't dereference
19015 a NULL pointer upon failed grub_env_get.
19016
19017 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19018
19019 Support non-512B sectors and agglomerate reads.
19020
19021 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19022 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19023 (disk_io_guid): Removed.
19024 (make_devices): Locate solely by BlockIO.
19025 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19026 (grub_efidisk_read): Use read_blocks.
19027 (grub_efidisk_write): Use write_blocks.
19028 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19029 log_sector_size.
19030 (get_safe_sectors): Handle non-512B sectors.
19031 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19032 sectors.
19033 (grub_biosdisk_write): Handle non-512B sectors.
19034 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19035 (grub_scsi_read): Remove special non-512B block handling (now handled
19036 one level up).
19037 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19038 and do sanity checks.
19039 (grub_disk_adjust_range): Handle non-512B sectors.
19040 (transform_sector): New function.
19041 (grub_disk_read_small): Likewise.
19042 (grub_disk_read): Rewritten.
19043 (grub_disk_write): Handle non-512B sectors.
19044 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19045 log_sector_size.
19046 (open_device): Use log_sector_size.
19047 (grub_util_biosdisk_read): Likewise.
19048 (grub_util_biosdisk_write): Likewise.
19049 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19050 non-512B sectors.
19051 (pc_partition_map_embed): Likewise.
19052 * include/grub/disk.h (grub_disk): New field log_sector_size.
19053 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19054 (GRUB_DISK_CACHE_BITS): Increased to 6.
19055 * util/grub-fstest.c (fstest): New command testload.
19056 (argp_parser): Likewise.
19057
19058 2011-06-16 Robert Millan <rmh@gnu.org>
19059
19060 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19061 `ata' driver on kernel of FreeBSD 9.
19062
19063 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19064 (get_ataraid_disk_name): New functions.
19065 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19066 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19067 get_ataraid_disk_name() and get_ada_disk_name().
19068
19069 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19070
19071 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19072 input format.
19073
19074 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19075
19076 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19077 `ftp.gnu.org' for `alpha.gnu.org'.
19078
19079 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19080
19081 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19082 partitions under /dev/disk/by-id/.
19083
19084 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19085
19086 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19087 after ten consecutive open failures. Scanning all the way up to
19088 10000 is excessive and can cause serious performance problems in
19089 some configurations.
19090 Fixes Ubuntu bug #787461.
19091
19092 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19093
19094 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19095 opening new one.
19096
19097 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19098 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19099
19100 Don't stat devices unless we have to.
19101
19102 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19103 dir == /dev/mapper.
19104 (grub_guess_root_device): Use already known os_dev if possible.
19105 * grub-core/kern/emu/hostdisk.c
19106 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19107 if device is known to be a dm one.
19108
19109 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19110
19111 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19112 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19113 Reported by: Pawel Tecza.
19114
19115 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19116
19117 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19118 (lsefisystab): Likewise.
19119 (lssal): Likewise.
19120 (lsefimmap): Likewise.
19121 (hdparm): Enable on qemu-mips.
19122 (setjmp): Add ia64 nodist.
19123 (serial): Simplify tags.
19124
19125 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19126
19127 * Makefile.util.def (grub-ofpathname): Install manual page.
19128
19129 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19130
19131 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19132
19133 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19134
19135 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19136
19137 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19138
19139 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19140 into dprintf.
19141
19142 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19143
19144 Use full 64-bit division.
19145
19146 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19147 (grub_divmod64): ... this.
19148 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19149 version.
19150
19151 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19152
19153 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19154 `source'.
19155
19156 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19157
19158 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19159 to avoid accidents when debugging with 'sh -x'.
19160 * grub-core/gensyminfo.sh.in: Likewise.
19161 * tests/example_scripted_test.in: Likewise.
19162 * tests/grub_cmd_regexp.in: Likewise.
19163 * tests/grub_script_blanklines.in: Likewise.
19164 * tests/grub_script_dollar.in: Likewise.
19165 * tests/grub_script_expansion.in: Likewise.
19166 * tests/grub_script_final_semicolon.in: Likewise.
19167 * tests/partmap_test.in: Likewise.
19168 * tests/util/grub-shell-tester.in: Likewise.
19169 * tests/util/grub-shell.in: Likewise.
19170
19171 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19172
19173 Move gfxmenu color handling to video, so that gfxterm can use it
19174 too.
19175
19176 * grub-core/gfxmenu/named_colors.c: Move to ...
19177 * grub-core/video/colors.c: ... here. Rename
19178 grub_gui_get_named_color to grub_video_get_named_color.
19179 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19180 * grub-core/video/colors.c (my_isxdigit): ... here.
19181 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19182 Move to ...
19183 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19184 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19185 to ...
19186 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19187
19188 * include/grub/gui.h (grub_gui_color_t): Move to ...
19189 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19190 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19191 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19192 * include/grub/gui.h (grub_gui_map_color): Move to ...
19193 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19194 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19195 to ...
19196 * include/grub/video.h (grub_video_get_named_color): ... here.
19197 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19198 * include/grub/video.h (grub_video_parse_color): ... here.
19199
19200 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19201 video/colors.c.
19202 (gfxmenu): Remove gfxmenu/named_colors.c.
19203 (video) [videomodules]: Add video/colors.c.
19204
19205 Add a background_color command.
19206
19207 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19208 function.
19209 (GRUB_MOD_INIT): Register background_color command.
19210 (GRUB_MOD_FINI): Unregister background_color command.
19211 (redraw_screen_rect): Allow blend/replace of text layer to be
19212 controlled independently from whether there is a background bitmap.
19213 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19214 changing bitmap.
19215
19216 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19217
19218 Patch BPB in ntldr and chainloader --bpb.
19219
19220 * grub-core/fs/fat.c: Include grub/fat.h.
19221 (grub_fat_bpb): Moved to ...
19222 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19223 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19224 grub/ntfs.h.
19225 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19226 Moved from here...
19227 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19228 here.
19229 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19230 New function.
19231 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19232 (GRUB_MOD_INIT): Show --bpb.
19233 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19234 * grub-core/normal/main.c (features): New variable.
19235 (GRUB_MOD_INIT): Set feature_* variables.
19236 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19237 proto.
19238 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19239
19240 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19241
19242 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19243 for cleanness.
19244
19245 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19246
19247 FreeDOS direct loading support.
19248
19249 * docs/grub.texi (Supported OS): Add FreeDOS.
19250 * grub-core/Makefile.core.def (freedos): New module.
19251 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19252 variable.
19253 (grub_relocator16_boot): Handle %ebx.
19254 * grub-core/lib/i386/relocator16.S: Likewise.
19255 * grub-core/loader/i386/pc/freedos.c: New file.
19256
19257 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19258
19259 Long Linux command line support.
19260
19261 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19262 (maximal_cmdline_size): New variable.
19263 (allocate_pages): Use maximal_cmdline_size.
19264 (grub_cmd_linux): Set and use maximal_cmdline_size.
19265 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19266 (allocate_pages): Use maximal_cmdline_size.
19267 (grub_cmd_linux): Set and use maximal_cmdline_size.
19268 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19269 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19270 and cmdline_size.
19271
19272 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19273 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19274
19275 Improve devmapper support
19276
19277 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19278 (grub_util_is_lvm): New function.
19279 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19280 than lvm if not dmraid.
19281 Handle mapped md nodes.
19282 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19283 (grub_util_device_is_mapped): ... this. Make always available. All users
19284 updated.
19285 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19286 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19287 dmraid nodes.
19288 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19289
19290 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19291
19292 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19293
19294 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19295 * grub-core/modinfo.sh.in: New file.
19296 * grub-core/Makefile.core.def (modinfo.sh): New script.
19297 * util/grub-mknetdir.in: Use modinfo.sh.
19298 * util/grub-mkrescue.in: Likewise.
19299
19300 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19301
19302 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19303 Fix potential usage of Elf32 instead of Elf64 when compiling on
19304 32-bit architecture. Add endianness macros while on it.
19305
19306 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 Use mipsel- rather than mips- in directories involving mipsel ports to
19309 allow both endiannesses coexist.
19310
19311 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19312 mips. All conditions adjusted.
19313 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19314 variable.
19315 * util/grub-install.in: Adjust conditions to take renaming into account.
19316 * util/grub-mkimage.c (image_targets): Likewise. New target
19317 mips-qemu_mips-elf for bigendian mips.
19318
19319 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19320
19321 Avoid unnecessary copying on MIPS.
19322
19323 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19324 early if src == dest.
19325 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19326 compression is none.
19327
19328 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19329
19330 Reduce memory footprint on SGI by putting modules before the kernel
19331 as opposed to after.
19332
19333 * grub-core/Makefile.core.def (kernel): Increase linking address.
19334 (none_decompress): Likewise.
19335 (xz_decompress): Likewise.
19336 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19337 address.
19338 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19339 layout change.
19340 (grub_arch_modules_addr): New function.
19341 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19342 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19343 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19344 here.
19345 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19346 (grub_total_modules_size): ... this. Make global.
19347 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19348 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19349 New definition.
19350 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19351 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19352 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19353 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19354 * util/grub-mkimage.c (image_target_desc): New flag
19355 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19356 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19357 (generate_image): Handle images with modules before kernel.
19358
19359 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19360
19361 Prevent potential loss of memory map by overwrite on qemu-mips.
19362
19363 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19364 Save ram size in $s4.
19365 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19366 All users changed to grub_arch_memsize.
19367 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19368 Loongson.
19369 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19370 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19371 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19372 external variable.
19373
19374 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19375
19376 * .bzrignore: Remove grub-dumpbios.
19377
19378 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19379
19380 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19381 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19382 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19383 existing options which append).
19384 * docs/grub.texi (Simple configuration): Document new options.
19385 Reported by: Ian Jackson. Fixes Debian bug #617538.
19386
19387 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19388
19389 * util/grub-fstest.c (cmd_cat): New function.
19390 (fstest): Handle CMD_CAT.
19391 (options): Add cat.
19392 (argp_parser): Handle cat.
19393
19394 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19395
19396 * Makefile.util.def (grub-bin2h): Don't install.
19397 * docs/man/grub-bin2h.h2m: Remove.
19398
19399 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19400
19401 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19402 place.
19403
19404 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 Reenable qemu-mips port.
19407
19408 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19409 Fix small arc bug while on it.
19410 * gentpl.py: Handle qemu_mips.
19411 * grub-core/Makefile.am: Likewise.
19412 * grub-core/Makefile.core.def: Likewise.
19413 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19414 inappropriate includes.
19415 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19416 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19417 * grub-core/kern/main.c (grub_modules_get_end)
19418 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19419 * grub-core/kern/mips/qemu-mips: Moved to ..
19420 * grub-core/kern/mips/qemu_mips: ... this.
19421 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19422 (grub_machine_init): Call terminfo_init and serial_init.
19423 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19424 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19425 New variable.
19426 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19427 parameter passing.
19428 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19429 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19430 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19431 * include/grub/mips/qemu_mips/cmos.h: New file.
19432 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19433 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19434 Removed.
19435 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19436 Use correct mips-style address.
19437 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19438 (GRUB_TICKS_PER_SECOND): Removed.
19439 (grub_get_rtc): Likewise.
19440 (grub_cpu_idle): Likewise.
19441 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19442 New definition.
19443 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19444 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19445 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19446 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19447 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19448 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19449 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19450 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19451
19452 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19453
19454 SGI ARCS port.
19455
19456 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19457 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19458 platforms.
19459 * configure.ac: New target mips-arc.
19460 * gentpl.py: Likewise.
19461 * grub-core/Makefile.am: Likewise.
19462 * grub-core/Makefile.core.def: Likewise.
19463 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19464 (none_decompress): Likewise.
19465 (lsdev): New module.
19466 (datetime): Use lib/arc/datetime.c on ARC.
19467 (part_dvh): New module.
19468 * grub-core/commands/arc/lsdev.c: New file.
19469 * grub-core/disk/arc/arcdisk.c: Likewise.
19470 * grub-core/kern/mips/arc/init.c: Likewise.
19471 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19472 aligned addresses.
19473 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19474 support.
19475 (grub_arch_dl_relocate_symbols): Likewise.
19476 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19477 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19478 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19479 platforms.
19480 * grub-core/lib/arc/datetime.c: New file.
19481 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19482 pci.h on non-loongson.
19483 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19484 (grub_linux_boot): Set unused registers to 0.
19485 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19486 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19487 * grub-core/mmap/mips/uppermem.c: ...here.
19488 * grub-core/partmap/dvh.c: New file.
19489 * grub-core/term/arc/console.c: Likewise.
19490 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19491 (grub_terminfo_set_current): Add terminal "arc".
19492 (grub_terminfo_readkey): Support ARC sequences.
19493 * include/grub/arc/arc.h: New file.
19494 * include/grub/arc/console.h: Likewise.
19495 * include/grub/disk.h (grub_disk_dev_id): Add
19496 GRUB_DISK_DEVICE_ARCDISK_ID.
19497 * include/grub/mips/arc/kernel.h: New file.
19498 * include/grub/mips/arc/memory.h: Likewise.
19499 * include/grub/mips/arc/time.h: Likewise.
19500 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19501 * include/grub/mips/kernel.h (grub_halt): ... here.
19502 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19503 here...
19504 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19505 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19506 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19507 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19508 proto.
19509 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19510 from here ...
19511 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19512 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19513 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19514 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19515 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19516 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19517 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19518 (grub_phys_addr_t): Moved from here ...
19519 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19520 (grub_vtop): Moved from here ...
19521 * include/grub/mips/memory.h (grub_vtop): ... here.
19522 (grub_map_memory): Moved from here ...
19523 * include/grub/mips/memory.h (grub_map_memory): ... here.
19524 (grub_unmap_memory): Moved from here ...
19525 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19526 (grub_machine_mmap_iterate): Moved from here ...
19527 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19528 (grub_mmap_get_lower): Moved from here ...
19529 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19530 (grub_mmap_get_upper): Moved from here ...
19531 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19532 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19533 here ...
19534 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19535 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19536 here ...
19537 * include/grub/mips/time.h (grub_get_rtc): ... here.
19538 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19539 here ...
19540 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19541 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19542 here ...
19543 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19544 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19545 definition.
19546 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19547 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19548 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19549 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19550 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19551 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19552 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19553 (GRUB_MACHINE_LINK_ADDR): Likewise.
19554 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19555 to 6.
19556 * util/grub-install.in: Run dvhtool on ARC.
19557 * util/grub-mkimage.c (image_targets): Add mips-arc.
19558 (generate_image): Handle ECOFF output for mips-arc.
19559
19560 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19561
19562 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19563 blocks.
19564
19565 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19566
19567 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19568 after enabling port.
19569
19570 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19571
19572 Skip incorrect USB devices.
19573
19574 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19575 configcnt == 0.
19576 * include/grub/usb.h (grub_usb_err_t): New enum value
19577 GRUB_USB_ERR_BADDEVICE.
19578
19579 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19580
19581 Fuloong video init support.
19582
19583 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19584 well.
19585 (grub_vga_read_arx): New function.
19586 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19587 definition.
19588 (framebuffer): New members io, mmioptr and mmiobase.
19589 (read_sis_cmd): New function.
19590 (write_sis_cmd): Likewise.
19591 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19592 rather than 640x400.
19593 * grub-core/video/sis315_init.c: New file.
19594
19595 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19598 non-loongson.
19599 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19600 to grub_dl_register_symbol.
19601
19602 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19603
19604 Fix compilation errors.
19605
19606 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19607 potentially unused.
19608 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19609 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19610 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19611 to loongson machines.
19612
19613 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19614
19615 Several FS mtime support.
19616
19617 * grub-core/fs/affs.c (grub_affs_time): New struct.
19618 (grub_affs_file): New field mtime.
19619 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19620 type. Removed 'size'. New field 'di'. All users updated.
19621 (grub_affs_mount): Simplify checsum checking.
19622 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19623 (grub_affs_dir): Handle mtime.
19624 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19625 (grub_cpio_dir): Likewise.
19626 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19627 (grub_hfs_filerec): New field mtime.
19628 (grub_hfs_dir): Handle mtime.
19629 (grub_hfs_mtime): New function.
19630 (grub_hfs_fs): Register grub_hfs_mtime.
19631 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19632 (grub_iso9660_dir): New field mtime.
19633 (grub_fshelp_node): New field dirent.
19634 (iso9660_to_unixtime): New function.
19635 (iso9660_to_unixtime2): Likewise.
19636 (grub_iso9660_read_symlink): Use node->dirent.
19637 (grub_iso9660_iterate_dir): Likewise.
19638 (grub_iso9660_dir): Set mtime.
19639 (grub_iso9660_mtime): New function.
19640 (grub_iso9660_fs): Register grub_iso9660_mtime.
19641 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19642 (grub_jfs_inode): New fields atime, ctime and mtime.
19643 (grub_jfs_dir): Set mtime.
19644 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19645 * grub-core/fs/ntfs.c (list_file): Set mtime.
19646 (grub_ntfs_dir): Likewise.
19647 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19648 (grub_reiserfs_iterate_dir): Set mtime.
19649 (grub_reiserfs_dir): Likewise.
19650 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19651 (grub_fshelp_node): Likewise.
19652 (grub_sfs_iterate_dir): Set mtime.
19653 (grub_sfs_dir): Likewise.
19654 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19655 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19656 (grub_xfs_inode): New fields atime, mtime, ctime.
19657 (grub_xfs_dir): Set mtime.
19658 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19659 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19660 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19661
19662 Support UDF symlinks.
19663
19664 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19665 (grub_ufs_read_symlink): New function. All users updated.
19666
19667 Check amiga partmap checksum.
19668
19669 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19670 (grub_amiga_partition): Likewise.
19671 (amiga_partition_map_checksum): New function.
19672 (amiga_partition_map_iterate): Check checksum.
19673
19674 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19675
19676 ROMFS support.
19677
19678 * Makefile.util.def (libgrubmods.a): Add romfs.
19679 * grub-core/Makefile.core.def (romfs): New module.
19680 * grub-core/fs/romfs.c: New file.
19681
19682 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19683
19684 Squashfs v4 support.
19685
19686 * Makefile.util.def (libgrubmods.a): Add squash4.
19687 * grub-core/Makefile.core.def (squash4): New module.
19688 * grub-core/fs/squash4.c: New file.
19689 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19690 disk_input_start, disk_input.
19691 (get_byte): Handle disk_input.
19692 (grub_zlib_disk_read): New function.
19693 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19694
19695 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19696 2011-05-15 Feiran Zheng <famcool@gmail.com>
19697
19698 * Makefile.util.def (libgrubmods.a): Add minix3.
19699 * grub-core/Makefile.core.def (minix3): New module.
19700 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19701 (GRUB_MINIX_BSIZE): Removed.
19702 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19703 (grub_minix_ino_t): New type.
19704 (grub_minix_le_to_cpu_ino): New macro.
19705 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19706 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19707 (grub_minix_data): New field block_size.
19708 (grub_minix_read_file): Handle 64-bit correctly.
19709 * grub-core/fs/minix3.c: New file.
19710
19711 2011-05-15 Tristan Gingold <gingold@free.fr>
19712 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19713 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19714
19715 IA64 support.
19716
19717 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19718 * configure.ac: Add ia64-efi target.
19719 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19720 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19721 * gentpl.py: Add ia64_efi platform.
19722 Rename x86_efi to efi and Add ia64-efi. All users updated.
19723 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19724 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19725 Remove kern/generic/rtc_get_time_ms.c on EFI.
19726 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19727 kern/ia64/dl_helper.c on ia64-efi.
19728 Add kern/emu/cache.c on emu.
19729 (linux): Use on loader/ia64/efi/linux.c on ia64.
19730 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19731 whether symbol is a function.
19732 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19733 (grub_symbol): New field 'isfunc'.
19734 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19735 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19736 (grub_dl_load_segments): Place all sections into the same region.
19737 [__ia64__]: Create trampolines and got.
19738 [GRUB_MACHINE_EMU]: Call mprotect.
19739 (grub_dl_resolve_symbols): Resolve symbol type as well.
19740 [__ia64__]: Create function descriptors.
19741 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19742 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19743 (grub_get_rtc): New function.
19744 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19745 * grub-core/kern/emu/cache.S: Renamed to ...
19746 * grub-core/kern/emu/cache_s.S: ... this.
19747 [__ia64__]: Add a nop.
19748 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19749 [__ia64__]: New function.
19750 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19751 * grub-core/kern/ia64/dl.c: New file.
19752 * grub-core/kern/ia64/dl_helper.c: Likewise.
19753 * grub-core/kern/ia64/efi/init.c: New file.
19754 * grub-core/kern/ia64/efi/startup.S: Likewise.
19755 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19756 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19757 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19758 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19759 * grub-core/loader/ia64/efi/linux.c: New file.
19760 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19761 (GRUB_MOD_DEP): Likewise.
19762 (grub_dl) [__ia64__]: New fields got and tramp.
19763 (grub_dl): New field 'base'.
19764 (grub_dl_register_symbol): New argument isfunc. All users updated.
19765 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19766 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19767 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19768 (grub_ia64_dl_get_tramp_got_size): New proto.
19769 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19770 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19771 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19772 * include/grub/efi/api.h: Skip call wrappers on ia64.
19773 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19774 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19775 * include/grub/elf.h (ELF_ST_INFO): New definition.
19776 * include/grub/ia64/efi/kernel.h: New file.
19777 * include/grub/ia64/efi/memory.h: Likewise.
19778 * include/grub/ia64/efi/time.h: Likewise.
19779 * include/grub/ia64/kernel.h: Likewise.
19780 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19781 * include/grub/ia64/time.h: New file.
19782 * include/grub/ia64/types.h: Likewise.
19783 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19784 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19785 New protos.
19786 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19787 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19788 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19789 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19790 All users updated.
19791 (EFI64_HEADER_SIZE): New definition. All users updated.
19792 (image_targets): Add ia64-efi.
19793 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19794 jumpers_addr. All users updated.
19795 Create function descriptors.
19796 (count_funcs): New function.
19797 (unaligned_uint32): New struct.
19798 (MASK20): New definition.
19799 (MASK19): Likewise.
19800 (MASKF21): Likewise.
19801 (add_value_to_slot_20b): New function.
19802 (add_value_to_slot_21_real): Likewise.
19803 (add_value_to_slot_21): Likewise.
19804 (ia64_kernel_trampoline): New struct.
19805 (nopm): New variable.
19806 (jump): Likewise.
19807 (make_trampoline): New function.
19808 (relocate_addresses): Handle ia64.
19809 (make_reloc_section): Likewise.
19810 (load_image): Likewise.
19811
19812 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19815 warning. Move variables before code while on it.
19816
19817 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19818
19819 Fuloong support.
19820
19821 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19822 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19823 * grub-core/boot/mips/loongson/fuloong.S: New file.
19824 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19825 Explicitly init CS5536.
19826 [FULOONG]: Don't use serial until CS5536 is available.
19827 Set GPIO based on dumps.
19828 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19829 [FULOONG]: Handle GPIO and memory controller differences.
19830 Parse machine type in $a2.
19831 * grub-core/boot/mips/startup_raw.S: Determine and save the
19832 architecture.
19833 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19834 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19835 init on architecture type.
19836 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19837 SIS315E. Don't init at_keyboard on fuloong.
19838 (grub_halt): Support Fuloong.
19839 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19840 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19841 (loongson_machtypes): New array.
19842 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19843 type.
19844 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19845 config. All users updated. Handle CS5536 serial.
19846 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19847 default port on machine type. Register serial as inactive.
19848 * grub-core/video/sis315pro.c: New file.
19849 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19850 definition.
19851 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19852 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19853 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19854 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19855 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19856 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19857 to ...
19858 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19859 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19860 definition.
19861 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19862 (grub_arch_machine): New extern var.
19863 * include/grub/mips/loongson/serial.h
19864 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19865 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19866 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19867 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19868 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19869 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19870 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19871 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19872 * include/grub/term.h (grub_term_register_input_inactive): New inline
19873 function.
19874 (grub_term_register_output_inactive): Likewise.
19875 * include/grub/video.h (grub_video_driver_id): New value
19876 GRUB_VIDEO_DRIVER_SIS315PRO.
19877 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19878 New field "names". All users updated.
19879 New field value IMAGE_FULOONG_FLASH.
19880 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19881
19882 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19883
19884 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19885 and add some clarification.
19886
19887 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19890 platforms if kernel is compressed.
19891
19892 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19893
19894 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19895 unused modules since currently referrence counter isn't reliable and
19896 there isn't much memory to recover there anyway.
19897
19898 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19899
19900 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19901 rather than resetting it to allow modules to reference themselves
19902 in init.
19903
19904 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19905
19906 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19907 counter on dependencies since grub_dl_unref already handles this.
19908
19909 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19910
19911 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19912 on error if not already done.
19913
19914 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19915
19916 Fix few potential memory misusage.
19917
19918 * grub-core/font/font.c (load_font_index): Don't free char_index to
19919 avoid double free.
19920 (grub_font_load): Zero-fill font at alloc for safety.
19921 Close file on error.
19922 (free_font): Free bmp_idx.
19923
19924 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * docs/grub.texi (Installation): Fix several outdated claims.
19927
19928 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19929
19930 Handle module_license on windows.
19931
19932 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19933 sections shifted.
19934 (insert_string): Make argument const char * instead of char *.
19935 (write_section_data): Handle long section names.
19936 Handle module_license.
19937
19938 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19939
19940 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19941 handle class-free menuentries.
19942 (grub_normal_add_menu_entry): Add a check to be sure.
19943
19944 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19945
19946 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19947 PgUp and PgDown.
19948
19949 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19950
19951 * configure.ac: Bump version to 1.99.
19952
19953 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19954
19955 Give ATA device a bit more time on first try in order to allow disks
19956 to spin up.
19957
19958 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19959 if dev->present is 1. Reset dev->present on failure.
19960 (grub_ata_device_initialize): Set dev->present to 1.
19961 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19962 (grub_ata_device): New member 'present'.
19963
19964 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19965
19966 * util/grub-mkimage.c (generate_image): Update hash.
19967
19968 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 Flush caches on DMA memory.
19971
19972 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19973 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19974 (grub_dma_free): Likewise.
19975 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19976
19977 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19978
19979 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19980 to avoid asm treating ld and sd as macros.
19981
19982 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
19985 decompressor.
19986
19987 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19988
19989 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
19990 grub_decompress_core since later would fail if grub_decompress_core
19991 is too far.
19992
19993 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
19996 R_MIPS_JALR since it's used by newer compiler.
19997
19998 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20001
20002 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20003
20004 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20005 file_path to 0 for surety.
20006 (grub_chainloader_boot): Set exit_data to NULL.
20007 Unset the loader once done.
20008 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20009
20010 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20011
20012 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20013 unknown key into a dprintf.
20014
20015 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20016
20017 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20018 on first non-existant partition.
20019
20020 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20023 openning fails.
20024 Reported by: Mark Korenberg.
20025
20026 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20027
20028 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20029 overflow.
20030
20031 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20032
20033 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20034 before closing to ensure that it will be readable by grub-setup.
20035
20036 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20037
20038 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20039 (devpath_1): Use MAKE_PIWG_PATH.
20040 (devpath_2): Likewise.
20041 (devpath_3): Likewise.
20042 (devpath_4): Likewise.
20043 (devpath_5): Likewise.
20044 (devpath_6): Likewise.
20045
20046 The appleldr.mod was checked that to be binary identical to previous
20047 version.
20048
20049 2011-05-05 Zach <mikezackles>
20050
20051 Support 2010 Macbooks.
20052
20053 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20054 (devs): Add devpath_6.
20055
20056 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20057
20058 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20059 /dev/random. /dev/urandom is good enough for our purposes (salting).
20060
20061 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20062
20063 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20064
20065 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20066
20067 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20068 hexadecimal.
20069
20070 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20071
20072 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20073 and not 0 on failure.
20074
20075 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20076
20077 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20078 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20079 disk; otherwise grub_fs_probe will not fall back to the next
20080 filesystem.
20081 (grub_pxefs_open): Likewise, for consistency.
20082 Reported and tested by: Ezekiel Grave.
20083
20084 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20085
20086 * tests/partmap_test.in: Don't hardcode path to parted.
20087 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20088
20089 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20090
20091 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20092 of `ls' to find out which devices are available.
20093
20094 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20095
20096 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20097 than source address for efi mmap buffer.
20098
20099 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20100
20101 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20102 wrong action on non-detecting the magic.
20103
20104 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20105
20106 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20107 already supplied by another part of the module (fixes compilation on
20108 FreeBSD).
20109
20110 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20113 match the one used by mdadm.
20114
20115 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20116
20117 * po/README: Add instructions for creating po/LINGUAS.
20118
20119 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20120
20121 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20122 #551428.
20123
20124 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20125 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20126 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20127 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20128 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20129 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20130 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20131 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20132 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20133 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20134 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20135 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20136 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20137 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20138 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20139 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20140 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20141 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20142 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20143 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20144 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20145 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20146
20147 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20148
20149 * grub-core/kern/emu/getroot.c
20150 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20151 test that was incorrectly reintroduced in r3214.
20152 Reported by: Ian Dall. Fixes Savannah bug #33133.
20153
20154 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20155
20156 Fix stack pointer handling in 16-bit relocator.
20157
20158 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20159 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20160 Fixes Ubuntu bug #683904.
20161
20162 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20163
20164 * configure.ac: Bump version to 1.99~rc2.
20165
20166 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20167
20168 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20169 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20170 * grub-core/lib/x86_64/setjmp.S: Likewise.
20171 * grub-core/lib/mips/setjmp.S: Likewise.
20172 * grub-core/lib/powerpc/setjmp.S: Likewise.
20173 * grub-core/lib/sparc64/setjmp.S: Likewise.
20174
20175 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20176
20177 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20178 * grub-core/lib/efi/datetime.c: Likewise.
20179
20180 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20181
20182 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20183 New function.
20184 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20185 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20186 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20187
20188 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20189
20190 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20191 bitmap.
20192 (grub_gfxterm_term_init): Likewise.
20193
20194 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20195
20196 Take into account the decorations the computing menu entry width.
20197
20198 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20199 (grub_gfxmenu_create_box): Register get_border_width.
20200 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20201 if available.
20202 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20203 get_border_width.
20204
20205 2011-04-18 Endres Puschner <code@e7p.de>
20206
20207 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20208 Don't skip first class.
20209
20210 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20211
20212 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20213 chunks.
20214 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20215
20216 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 Complete 64-bit division support.
20219
20220 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20221 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20222 * include/grub/misc.h (grub_divmod64): Rename to ...
20223 (grub_divmod64_full): ... this.
20224 (grub_divmod64): New inline function.
20225
20226 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20227
20228 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20229
20230 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20233 performing the necessary test.
20234
20235 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20236
20237 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20238 (kfreebsd.elf): Likewise.
20239 (pc-chainloader.elf): Likewise.
20240 (ntldr.elf): Likewise.
20241
20242 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 Identify RAID by its UUID rather than (guessed) name.
20245
20246 * grub-core/disk/raid.c (ascii2hex): New function.
20247 (grub_raid_open): Accept mduuid/%s specification.
20248 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20249 (get_mdadm_uuid): ... this.
20250 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20251
20252 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20253
20254 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20255 to negative size.
20256
20257 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20258
20259 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20260 btrfs subvolume.
20261 * util/grub.d/20_linux_xen.in: Likewise.
20262
20263 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20264
20265 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20266 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20267
20268 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20269 Build a list of relevant visible mounts using the mnt_id and
20270 parent_mnt_id fields, and then scan that list at the end.
20271
20272 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20273
20274 * docs/grub.texi (normal): New section.
20275 (normal_exit): New section.
20276 (Embedded configuration): Add reference to normal.
20277 (GRUB only offers a rescue shell): Likewise.
20278 * docs/grub-dev.texi (Error Handling): Fix typo.
20279
20280 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20281
20282 * NEWS: Drop obsolete entry about probe-only btrfs support.
20283
20284 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20285
20286 * util/import_gcry.py: Fix typo.
20287
20288 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20289
20290 * NEWS: Add btrfs support.
20291
20292 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20293 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20294
20295 BtrFS support. Written by me (Vladimir) with important bugfixes and
20296 even more important testing by Colin.
20297
20298 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20299 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20300 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20301 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20302 mem_input_off and mem_input. All users updated to accept in-RAM input.
20303 (gzio_seek): New function.
20304 (test_zlib_header): Likewise.
20305 (grub_gzio_read): Likewise.
20306 (grub_zlib_decompress): Likewise.
20307 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20308 Accept partial and non-virtual mounts.
20309 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20310 avoid receiving /dev/dm-X as device.
20311 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20312 Handle bind and partial mounts.
20313 * grub-core/lib/crc.c: New file.
20314 * include/grub/deflate.h: Likewise.
20315 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20316 proto.
20317 * include/grub/lib/crc.h: New file.
20318
20319 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 Implement automatic module license checking according to new GNU
20322 guidelines.
20323
20324 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20325 (grub_dl_load_core): Use grub_dl_check_license.
20326 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20327 (GRUB_MOD_LICENSE): Likewise.
20328 (GRUB_MOD_DUAL_LICENSE): Likewise.
20329 All modules updated.
20330
20331 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20332
20333 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20334 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20335 loaders.
20336 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20337
20338 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20339
20340 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20341
20342 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20343
20344 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20345 failed.
20346
20347 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20348
20349 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20350 parenthesis in the middle of the filename.
20351
20352 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20353
20354 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20355 rather than trying to put initrd way too high.
20356 Reported by: Ryan Lortie <desrt@desrt.ca>
20357
20358 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20359
20360 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20361 improperly removed string.
20362
20363 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20364
20365 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20366 is_disk.
20367 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20368 (open_device) Likewise.
20369 (grub_util_biosdisk_close): Likewise.
20370 Reported by: Mark Korenberg.
20371
20372 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20373
20374 * util/grub-mkconfig_lib.in: Add missing quotes.
20375
20376 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20377
20378 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20379 is NULL.
20380
20381 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20382
20383 Dynamically count the number of lines for the lower banner.
20384
20385 * grub-core/normal/menu_entry.c (per_term_screen): New member
20386 num_entries.
20387 (print_down): Use num_entries.
20388 (update_screen): Likewise.
20389 (grub_menu_entry_run): Set num_entries.
20390 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20391 num_entries.
20392 (grub_print_message_indented): Move real part to ...
20393 (grub_print_message_indented_real): ... here. Additional argument
20394 dry_run.
20395 (draw_border): Additional argument num_entries.
20396 (print_message): Additional argument dry_run.
20397 (print_entries): Receive menu viewer data.
20398 (grub_menu_init_page): New argment num_entries.
20399 (menu_text_set_chosen_entry): Use num_entries.
20400 (grub_menu_try_text): Likewise.
20401 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20402 All users updated.
20403 (grub_ucs4_count_lines): New function.
20404 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20405 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20406 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20407 (grub_term_border_height): Likewise.
20408 (grub_term_num_entries): Likewise.
20409
20410 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20411
20412 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20413 Remove now unused string.
20414
20415 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20416
20417 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20418 build system.
20419 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20420
20421 (Comment): Fix typo.
20422 (Getting started): General copy-editing.
20423 (Typical Development Experience): Likewise.
20424 (Error Handling): Likewise.
20425 (Video API): Likewise.
20426
20427 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20428
20429 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20430 throughout.
20431
20432 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20433
20434 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20435 directory.
20436
20437 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20438
20439 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20440 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20441 "development".
20442
20443 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20446 grub_strcpy since the lines aren't necessarily 0-terminated.
20447
20448 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20451 root on legacy.
20452
20453 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20454
20455 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20456 (GRUB_MOD_INIT): DEVICE isn't optional.
20457
20458 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20459
20460 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20461 word on new line if it's too long anyway. Fixes a hang.
20462
20463 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20464
20465 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20466 const.
20467 * util/grub-setup.c (main): Reuse md device name if available.
20468 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20469 not GRUB name as argument.
20470 Based on patch by: Florian Wagner <fwagner>.
20471
20472 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20475 Place mbi on low memory for better compatibility.
20476
20477 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20478
20479 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20480
20481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20482 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20483
20484 * autogen.sh: Ensure that collate and ctype locale is C.
20485 * conf/Makefile.common: Likewise.
20486
20487 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20488
20489 * grub-core/normal/menu.c: Add missing include.
20490
20491 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20492
20493 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20494
20495 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20496
20497 * util/grub-mkconfig.in: Ignore emacsen backup.
20498
20499 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20500
20501 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20502 on open.
20503 (grub_util_biosdisk_close): Likewise.
20504
20505 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20506
20507 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20508 const attribute and use grub_isdigit.
20509
20510 2011-04-06 Andrey <dev_null@ukr.net>
20511
20512 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20513 gcc warning.
20514
20515 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20516
20517 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20518 useful grub_dprintf's.
20519
20520 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20521
20522 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20523
20524 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20525
20526 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20527
20528 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20529
20530 Output errors if theme loading failed.
20531
20532 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20533 grub_gfxterm_fullscreen on error paths to ...
20534 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20535 theme loading error.
20536
20537 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20538
20539 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20540 space for older compilers.
20541 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20542
20543 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20544
20545 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20546 and report them as not RAID members since they are useless for GRUB.
20547 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20548
20549 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20550
20551 Increase LVM implementation robustness in order not to crash on
20552 configurations like pvmove. Previously code assumed that in some places
20553 only lvs or only pvs are used whereas it seems that they are used
20554 interchangeably.
20555
20556 * grub-core/disk/lvm.c (read_node): New function.
20557 (read_lv): Use read_node.
20558 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20559 Match volumes only at the end when all lvs are found. Take both
20560 pvs (first) and lvs (second) into account.
20561 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20562 mirror_* into node_*. All users updated.
20563 (grub_lvm_stripe): Merge this ...
20564 (grub_lvm_mirror): ... and this ...
20565 (grub_lvm_node): ... into this. All users updated.
20566
20567 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20570 of function to allow further scanning for LVMs.
20571
20572 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20575 on failed seek as it breaks open fd reusage.
20576
20577 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 * util/grub-install.in: Add a recommendation to use --recheck before
20580 reporting bugs.
20581
20582 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20583
20584 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20585 are obtained.
20586
20587 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20588
20589 GRUB developper manual based on existing Internals section and
20590 contributions by the various authors with active copyright assignment.
20591
20592 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20593 * docs/font_char_metrics.png: New file.
20594 * docs/font_char_metrics.txt: Likewise.
20595 * docs/grub-dev.texi: Likewise.
20596 * docs/grub.texi (Internals): Move from here ...
20597 * docs/grub-dev.texi: ... here.
20598
20599 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20600
20601 Store the loopback device as data on loopback grub_disk structures,
20602 rather than the file it points to. This fixes use of freed memory
20603 if an existing loopback device is replaced.
20604
20605 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20606 disk->data, not dev->file.
20607 (grub_loopback_read): Adjust file assignment to match.
20608 Fixes Ubuntu bug #742967.
20609
20610 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20611
20612 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20613 when replacing an existing device.
20614
20615 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20616
20617 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20618 memory corruptions.
20619
20620 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20621 unsigned.
20622 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20623 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20624 (grub_jfs_read_inode): Likewise.
20625 (grub_jfs_opendir): Likewise. Remove now useless casts.
20626 (grub_jfs_getent): Likewise.
20627 Make ino a grub_uint32_t rather than int.
20628 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20629 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20630 division and module with bit operations.
20631 (grub_jfs_find_file): Make ino a grub_uint32_t.
20632 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20633
20634 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20635
20636 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20637 warning. (This was in fact always initialised before use, but GCC
20638 wasn't smart enough to prove that.)
20639 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20640
20641 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20642
20643 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20644 stack alignment.
20645 (efi_wrap_1): Likewise.
20646 (efi_wrap_2): Likewise.
20647 (efi_wrap_3): Likewise.
20648 (efi_wrap_4): Likewise.
20649 (efi_wrap_5): Likewise.
20650 (efi_wrap_6): Likewise.
20651 (efi_wrap_10): Likewise.
20652 Based on information by: Red Hat/Peter Jones.
20653
20654 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20655
20656 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20657 set-but-not-used variable.
20658
20659 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20660
20661 * docs/grub.texi (Simple configuration): Be more explicit about
20662 GRUB_DEFAULT, and add an example.
20663 Reported by: Leslie Rhorer.
20664
20665 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20666
20667 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20668 shell".
20669
20670 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20671
20672 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20673 * util/grub.d/20_linux_xen.in: Likewise.
20674
20675 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20676
20677 * util/grub.d/10_linux.in: Try alternative config filenames where
20678 we parse config file.
20679 * util/grub.d/20_linux_xen.in: Likewise.
20680
20681 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20682
20683 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20684 * util/grub.d/20_linux_xen.in: Likewise.
20685
20686 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20687
20688 * grub-core/disk/raid.c (insert_array): Add few potentially
20689 useful grub_util_info.
20690 (grub_raid_register): Likewise.
20691
20692 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20693
20694 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20695 Preserve partition number in mdadm code path.
20696
20697 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20698
20699 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20700 few potentially useful grub_util_info.
20701
20702 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20703
20704 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20705
20706 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20707
20708 * docs/grub.texi (default): Use @example rather than nested
20709 itemized lists to avoid breaking gendocs.
20710
20711 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20712
20713 * docs/grub.texi (Future): Update.
20714
20715 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20716
20717 * docs/grub.texi (Environment): New chapter.
20718 (Changes from GRUB Legacy): Link to "Environment block" section for
20719 details of limitations.
20720 (Simple configuration): Likewise. Link to documentation of gfxmode
20721 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20722 respectively.
20723 (Shell-like scripting): Note that normal variables are stored in the
20724 environment.
20725 (gettext): Link to documentation of lang and locale_dir.
20726 (list_env): New section.
20727 (load_env): New section.
20728 (save_env): New section.
20729
20730 (Reporting bugs): Fix typo.
20731
20732 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20735 the example.
20736
20737 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * grub-core/term/at_keyboard.c (set_scancodes)
20740 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20741
20742 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20743
20744 * docs/grub.texi (Menu-specific commands): Remove some semantics
20745 that were true in GRUB Legacy but not in GRUB 2.
20746 (submenu): New section.
20747 (false): New section.
20748 (read): New section.
20749 (true): New section.
20750
20751 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20752
20753 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20754
20755 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20756
20757 * docs/grub.texi (Simple configuration): Explain some of the
20758 current limitations of grub-mkconfig.
20759 Reported by: Leslie Rhorer.
20760
20761 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20762
20763 Old macs search for boot.efi rather than for bootia32.efi.
20764
20765 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20766 * util/grub-mkrescue.in: Likewise.
20767 Suggested by: Peter Jones.
20768
20769 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20770
20771 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20772
20773 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20776 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20777 (grub_lvm_mirror): New struct.
20778 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20779 (grub_lvm_iterate): Iterate only visible volumes.
20780 (grub_lvm_read): Factor out to ..
20781 (read_lv): ... this. Support mirrors.
20782 (grub_lvm_read): New wrapper function.
20783 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20784 stripped or mirrored.
20785
20786 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20787
20788 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20789
20790 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20791
20792 * docs/grub.texi (loopback): New section.
20793
20794 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20795
20796 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20797 removed -p option.
20798
20799 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20800
20801 * docs/grub.texi (BIOS installation): New section, partly based on
20802 previous text in other sections.
20803 (Installing GRUB using grub-install): Replace BIOS discussion with a
20804 cross-reference.
20805 (Images): Likewise.
20806
20807 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20808
20809 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20810 [HAVE_DIOCGDINFO]: Add safety checks.
20811
20812 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20813
20814 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20815 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20816
20817 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20818
20819 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20820 real_sb->size is zero (e.g. RAID-0), get the disk size from
20821 real_sb->data_size instead.
20822 Fixes Ubuntu bug #743136.
20823
20824 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20825
20826 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20827 printf clauses for printing size and start.
20828
20829 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20830
20831 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20832 Reported and tested by: Timothy Nikkel.
20833
20834 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20837 (dirty_region_add_real): ... this.
20838 (dirty_region_add): Don't discard margin refresh when performing
20839 scheduled repaint.
20840
20841 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20842
20843 * grub-core/lib/relocator.c (allocate_regstart)
20844 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20845 terminals are capabple of malloc-free operation.
20846 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20847 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20848
20849 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20850
20851 * util/grub-setup.c: Copy the partition table zone if floppy support
20852 is disabled, even if no partition table is found.
20853
20854 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20855 during POST if an invalid partition table is contained in the PBR
20856 of the active partition when GRUB is installed to a partition.
20857
20858 2011-03-28 Colin Watson <cjwatson@debian.org>
20859
20860 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20861 comment.
20862
20863 2011-03-28 Colin Watson <cjwatson@debian.org>
20864
20865 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20866 to be specific about what kind of RAID device we're scanning for.
20867
20868 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20869
20870 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20871 return freed string.
20872
20873 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20876
20877 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20878
20879 Use libgeom on FreeBSD to detect partitions.
20880
20881 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20882 (grub-mkrelpath): Likewise.
20883 (grub-script-check): Likewise.
20884 (grub-editenv): Likewise.
20885 (grub-mkpasswd-pbkdf2): Likewise.
20886 (grub-fstest): Likewise.
20887 (grub-mkfont): Likewise.
20888 (grub-mkdevicemap): Likewise.
20889 (grub-probe): Likewise.
20890 (grub-setup): Likewise.
20891 (grub-ofpathname): Likewise.
20892 (grub-mklayout): Likewise.
20893 (example_unit_test): Likewise.
20894 (grub-menulst2cfg): Likewise.
20895 * grub-core/Makefile.core.def (grub-emu): Likewise.
20896 (grub-emu-lite): Likewise.
20897 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20898 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20899 define HAVE_DIOCGDINFO.
20900 (follow_geom_up) [FreeBSD]: New function.
20901 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20902 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20903 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20904 unconditionally of HAVE_DIOCGDINFO.
20905
20906 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20907
20908 Fix FreeBSD compilation problem.
20909
20910 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20911 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20912
20913 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20916 Switch back to page zero before loading a kernel, since some kernel
20917 drivers expect that.
20918 Thanks to: Felix Kuehling.
20919
20920 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20921
20922 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20923 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20924 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20925
20926 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20927
20928 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20929 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20930
20931 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20932
20933 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20934 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20935 malloc is disabled.
20936
20937 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20938
20939 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20940 for modules headers when counting the needed allocation size.
20941
20942 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20945 if no ASCII character is found to prevent crash.
20946
20947 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20948
20949 * grub-core/video/bitmap.c (match_extension): Ignore case.
20950
20951 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20952
20953 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20954
20955 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20956
20957 * grub-core/script/parser.y: Declare "time" as valid argument.
20958
20959 2011-03-23 Peter Jones <pjones@redhat.com>
20960
20961 Fix incorrect assert failure reporting.
20962
20963 * grub-core/tests/example_functional_test.c (example_test): Add
20964 a failure comment.
20965 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20966 (failure_start): ...this. Check that malloc succeeded.
20967 Don't call xvasprintf. Return failure struct.
20968 (failure_append_vtext): New function.
20969 (failure_append_text): Likewise.
20970 (add_failure): Likewise.
20971 (grub_test_assert_helper): Likewise.
20972 * include/grub/test.h (grub_test_assert_helper): New declaration.
20973 (grub_test_assert): Macro rewritten.
20974
20975 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20978
20979 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20980
20981 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
20982
20983 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
20986 into GRUB-style one.
20987
20988 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20989
20990 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
20991 error and not grub_errno.
20992 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
20993
20994 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
20997 GRUB_USB_SPEED_NONE in case of failure and not the error code.
20998
20999 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21000
21001 * grub-core/efiemu/i386/pc/cfgtables.c
21002 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21003 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21004 (grub_xnu_unlock): Likewise.
21005 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21006
21007 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21008
21009 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21010 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21011 * grub-core/commands/hashsum.c (aliases): Likewise.
21012 * grub-core/commands/setpci.c (pci_registers): Likewise.
21013 * grub-core/disk/usbms.c (attach_hook): Likewise.
21014 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21015 (zio_checksum_table): Likewise.
21016 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21017 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21018 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21019 * grub-core/lib/relocator.c (leftovers): Likewise.
21020 (extra_blocks): Likewise.
21021 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21022 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21023 (modules_last): Likewise.
21024 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21025 (devices): Likewise.
21026 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21027 (modules_last): Likewise.
21028 * grub-core/normal/auth.c (users): Likewise.
21029 * grub-core/normal/context.c (initial_menu): Likewise.
21030 (current_menu): Likewise.
21031 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21032 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21033 (grub_serial_terminfo_input_template): Likewise.
21034 (grub_serial_terminfo_output_template): Likewise.
21035 (grub_serial_terminfo_input): Likewise.
21036 (grub_serial_terminfo_output): Likewise.
21037 (registered): Likewise.
21038 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21039
21040 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21041
21042 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21043 grub_video_mode_type_t.
21044 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21045 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21046 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21047
21048 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21049
21050 * util/grub-install.in: Correct the x86-64 name as x86_64.
21051
21052 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21053
21054 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21055 initial chunk read from the kernel always includes GRUB's multiboot
21056 header, which is now outside the first sector.
21057
21058 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21059
21060 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21061 cached mmap_size, so that this works correctly when called multiple
21062 times.
21063 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21064
21065 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21066
21067 * docs/grub.texi (Simple configuration): Tidy up formatting.
21068
21069 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21070
21071 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21072 Set-but-not-used variable removed.
21073
21074 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21075
21076 Workaround yet another IEEE1275 bug.
21077
21078 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21079 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21080 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21081 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21082 is set.
21083 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21084 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21085
21086 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21089 error.
21090
21091 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21092
21093 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21094 empty, since in that case we can only generate either nothing or a
21095 syntactically invalid configuration file.
21096 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21097
21098 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21099
21100 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21101 (Making a GRUB bootable CD-ROM): Likewise.
21102 (Invoking grub-mkrescue): New section.
21103 Reported by: Yann Dirson. Fixes Debian bug #612585.
21104
21105 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21106
21107 * util/grub-install.in: Remove unnecessary brackets from tr
21108 arguments.
21109 * util/grub.d/10_hurd.in: Likewise.
21110 * util/grub.d/10_kfreebsd.in: Likewise.
21111 * util/grub.d/10_linux.in: Likewise.
21112 * util/grub.d/20_linux_xen.in: Likewise.
21113 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21114
21115 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21116
21117 * include/grub/file.h (not_easly_seekable): Rename to ...
21118 (not_easily_seekable): ... this. Update all users.
21119
21120 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21121
21122 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21123 grub-mkrescue.
21124
21125 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21126
21127 * util/grub-mkimage.c (generate_image): Refuse to create the images
21128 bigger than the actual flash (512K) in Loongson machines. 512K is also
21129 the biggest chip supported by them.
21130
21131 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21132
21133 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21134
21135 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21136
21137 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21138 super_offset field.
21139
21140 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21141
21142 * util/grub-install.in: Ignore install device on platforms
21143 where it doesn't make sense. Always use UUIDs except on pc, efi and
21144 sparc64.
21145 Reported by: Daniel Kahn Gillmor.
21146
21147 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21148
21149 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21150
21151 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21152
21153 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21154 (iterate_real): Don't rely on partition being non-NULL.
21155
21156 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21159 supported platforms. Put a compile time assert for this rather than
21160 generate a warning with 32-bit shift.
21161
21162 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21165 logical expression more readable.
21166
21167 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21168
21169 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21170 even if some elements have a name.
21171 Reported by: Alexander GQ Gerasiov.
21172
21173 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21174
21175 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21176 path unreadable if `grub-probe -t abstraction' fails, for example if
21177 memberlist fails on an LVM volume group.
21178 Reported by: Darius Jahandarie.
21179
21180 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21181
21182 * docs/grub.texi (Simple configuration): Document
21183 GRUB_PRELOAD_MODULES.
21184
21185 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21186
21187 * .bzrignore: Remove nonexistent grub-pbkdf2.
21188
21189 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21190
21191 * configure.ac: Bump version to 1.99~rc1.
21192
21193 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21194
21195 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21196 for safety.
21197
21198 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21201 module.
21202
21203 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21204
21205 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21206
21207 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21208
21209 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21210 diskdevid.
21211
21212 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21213
21214 Fix compilation on cygwin.
21215
21216 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21217 -R .drectve on cygwin.
21218 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21219 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21220 (COND_CYGWIN): New condition.
21221 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21222 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21223 not @TARGET_OBJ2ELF@.
21224 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21225 type to determine whether aux is to be used.
21226
21227 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21228
21229 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21230 realpath'ed device string.
21231 Handle floppy (somewhat).
21232 Issue error in unknown case rather than garbage.
21233 Reported by: Axel Beckert.
21234
21235 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21236
21237 * util/grub.d/00_header.in (load_video): Handle the case when no video
21238 drivers available.
21239 Thanks to: Axel Beckert.
21240
21241 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21242
21243 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21244 variable. Fixes problem on big endian platforms.
21245
21246 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21247
21248 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21249 It doesn't work well there.
21250
21251 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21252
21253 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21254 warning.
21255 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21256 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21257 counter.
21258
21259 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21260
21261 Use alias->path rather than buggy "canon".
21262
21263 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21264 (ofdisk_hash_add): New argument curcan. All users updated.
21265
21266 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21267
21268 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21269
21270 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21271
21272 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21273 loadmask before doing any calculations. Use correct type for offset.
21274 (grub_linux_load64): Likewise.
21275
21276 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21277
21278 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21279 with NULL.
21280 (console_grub_equivalences_unshift): Likewise.
21281 Reported by: Daniel Dehennin.
21282
21283 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21284
21285 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21286 (set_env_limn_ro): Likewise.
21287 (GRUB_MOD_INIT): Likewise.
21288 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21289 ARRAY_SIZE while on it.
21290 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21291 * grub-core/normal/context.c (grub_env_export): Move from here ...
21292 * grub-core/kern/env.c (grub_env_export): ... here.
21293 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21294 prefix.
21295 * grub-core/kern/main.c (grub_main): Export root and prefix.
21296 * include/grub/env.h (grub_env_export): Export.
21297 Reported by: Seth Goldberg.
21298
21299 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21300
21301 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21302 Take into account space used by ELF sections and multiboot palette.
21303 Reported by: Grégoire Sutre.
21304
21305 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 * BUGS: New file.
21308
21309 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21310
21311 Pass more appropriate video id to Linux.
21312
21313 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21314 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21315 fill have_vga.
21316 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21317 shift params->lfb_size.
21318 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21319
21320 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21321
21322 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21323
21324 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21325
21326 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21327 separator and pass bootpath/devid even if only one of them is available.
21328 Reported by: Seth Goldberg.
21329
21330 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21331
21332 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21333 implementations bug on them.
21334
21335 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21336 memory.
21337 (filter_memory_map): Likewise.
21338
21339 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21340
21341 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21342 Reported by: nebuchadnezzar.
21343
21344 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21345
21346 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21347 Reported by: nebuchadnezzar.
21348
21349 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 Submenu default support.
21352
21353 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21354 auto_boot. All users updated.
21355 Declared static.
21356 Handle chosen and default with submenus.
21357 (grub_menu_execute_with_fallback): Declared static.
21358 Don't notify failure if autobooted. Upper level does it.
21359 (menuentry_eq): New function.
21360 (get_entry_number): Use menuentry_eq.
21361 (show_menu): New parameter "autobooted". All users updated.
21362 (grub_show_menu): Likewise.
21363 * include/grub/normal.h (grub_show_menu): Likewise.
21364 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21365 (grub_menu_execute_with_fallback): Likewise.
21366
21367 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21368
21369 * util/grub-mklayout.c (usage): Update help text.
21370
21371 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21372
21373 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21374
21375 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21376
21377 * util/grub-menulst2cfg.c (main): Trim the line.
21378
21379 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21380
21381 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21382 (grub_machine_init): Don't check amount of low memory as reportedly
21383 INT 12h can be broken and if low memory is too low we wouldn't have
21384 gotten into grub_machine_init anyway.
21385
21386 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21387
21388 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21389 (grub_machine_mmap_iterate): Take low memory into account
21390
21391 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21392
21393 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21394 badfs.
21395 Reported by: TiCPU.
21396
21397 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21398
21399 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21400 members errors.
21401
21402 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21403
21404 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21405 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21406
21407 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21408
21409 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21410 openbsd and netbsd types being in part_bsd module.
21411
21412 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21413
21414 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21415 (_FILE_OFFSET_BITS): Likewise.
21416 Reported by: Seth Goldberg.
21417
21418 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21419
21420 * configure.ac: Check for libdevmapper header.
21421
21422 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21425 avoid aliasing.
21426 (fzap_lookup): Likewise.
21427 (dnode_get): Likewise.
21428 (make_mdn): Likewise.
21429 (zfs_mount): Likewise.
21430 (fzap_iterate): Use temporary pointer to avoid aliasing.
21431 (grub_zfs_read): Likewise.
21432 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21433 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21434 pointers to avoid aliasing.
21435 (grub_cmd_xnu_kernel64): Likewise.
21436 (grub_xnu_load_driver): Likewise.
21437
21438 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21439
21440 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21441 aliasing warning.
21442 (grub_cmd_terminal_output): Likewise.
21443 Reported and tested by: Grégoire Sutre.
21444
21445 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21448 warning.
21449 Reported and tested by: Grégoire Sutre.
21450
21451 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * configure.ac: Do CPU substitution even if it's specified explicitly.
21454 Reported and tested by: Alain Greppin.
21455
21456 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21459 Reported and tested by: Alain Greppin.
21460
21461 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21462
21463 Satisfy some bison versions need for inttypes.h.
21464
21465 * grub-core/lib/posix_wrap/inttypes.h: New file.
21466 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21467 (int16_t): Likewise.
21468 (int32_t): Likewise.
21469 (int64_t): Likewise.
21470 Reported and tested by: Alain Greppin.
21471
21472 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21473
21474 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21475 Silence spurious warning.
21476 Reported and tested by: Alain Greppin.
21477
21478 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21479
21480 * docs/grub.texi (Support automatic decompression): Update with xz
21481 decompression support.
21482
21483 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21484
21485 Improve loaders' kernel command line handling.
21486
21487 * grub-core/lib/cmdline.c: New file.
21488 * include/grub/lib/cmdline.h: Likewise.
21489 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21490 grub_create_loader_cmdline to create kernel command line.
21491 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21492 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21493 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21494 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21495 (linux): Add lib/cmdline.c on common.
21496
21497 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21498
21499 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21500 inopos might be unaligned.
21501
21502 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21503
21504 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21505 endian transformations.
21506 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21507 Based on report by: Doug Nazar.
21508
21509 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21510
21511 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21512 array->members[i].start_sector.
21513 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21514
21515 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21518 Reported and tested by: Grégoire Sutre.
21519
21520 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21521
21522 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21523 avoid causing test failures by clearing the screen.
21524
21525 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21526
21527 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21528 Fix prefix check to handle the case where dir ends with a slash
21529 (most significantly, "/" itself).
21530 Reported by: Michael Vogt.
21531
21532 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21533
21534 Run terminfo_cls on initing terminfo output to clear the screen and
21535 move the cursor to (0,0).
21536
21537 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21538 Call grub_terminfo_output_init.
21539 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21540 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21541 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21542
21543 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21544
21545 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21546 only when needed.
21547
21548 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21549
21550 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21551 CTRL.
21552
21553 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21554
21555 The E820 type 5 is BADRAM, not EXEC_CODE.
21556
21557 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21558 (GRUB_E820_BADRAM): New define.
21559 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21560 into reserved. Propagate BADRAM.
21561 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21562 (GRUB_E820_BADRAM): New define.
21563
21564 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21565
21566 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21567 Ignore the memory post-4G.
21568 (grub_relocator_firmware_alloc_region): Additional debug statement.
21569
21570 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21573 names.
21574 Reported by: David Pravec.
21575
21576 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21577
21578 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21579 BIOSes.
21580
21581 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21582
21583 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21584 Prevent overflow.
21585 (grub_reed_solomon_recover): Likewise.
21586
21587 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21588
21589 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21590
21591 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21592
21593 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21594 variable.
21595
21596 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21597
21598 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21599 descriptions of extract_legacy_entries_source and
21600 extract_legacy_entries_configfile.
21601 Reported by: Seung Soo, Ha.
21602
21603 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21604
21605 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21606 on devices that do not implement function 0.
21607
21608 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21609
21610 * grub-core/fs/hfsplus.c: Make parent unsigned.
21611 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21612 overflows.
21613 (grub_hfsplus_cmp_extkey): Likewise
21614
21615 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21616
21617 * util/grub-install.in: Correctly use bootloader_id and not
21618 GRUB_DISTRIBUTOR on efibootmgr line.
21619
21620 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21621
21622 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21623
21624 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21625
21626 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21627 Xen and reorder menu item wording to make it clearer that this entry
21628 will launch Xen. Print separate messages when loading Xen and
21629 Linux.
21630
21631 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21632
21633 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21634 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21635 loop in case of incorrect amiga partmap.
21636
21637 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21640 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21641 Reported by:EHeM.
21642
21643 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21644
21645 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21646 spurious warning.
21647 Reported by: crocket
21648
21649 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21652 Preload EFIemu.
21653 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21654
21655 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21658 is loaded
21659 (grub_cmd_xnu_kextdir): Likewise.
21660 (grub_cmd_xnu_splash): Likewise.
21661
21662 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 Avoid using Reed-Solomon with 0 redundancy.
21665
21666 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21667 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21668 or 0 redundancy.
21669 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21670 (grub_reed_solomon_recover): Likewise.
21671
21672 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 Don't use disk subsystem in freebsd_boot.
21675
21676 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21677 (freebsd_biosdev): Likewise.
21678 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21679 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21680
21681 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21682
21683 Handling of files of unknown size is currently limited. They can't be
21684 used e.g. for initrd or modules. Moreover gzip handling of not
21685 easily seekable files is buggy. Disable unknown file size for now. May
21686 be inefficient but works.
21687
21688 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21689 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21690
21691 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21692
21693 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21694 floppy probe.
21695
21696 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21697
21698 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21699
21700 2010-12-25 Shea Levy <shlevy>
21701
21702 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21703
21704 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21705
21706 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21707 Windows Server 2008.
21708 Reported by: Devin Giddings.
21709
21710 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21711
21712 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21713 writing an error message because of async power management.
21714 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21715 (grub_reboot): Likewise.
21716
21717 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21718
21719 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21720 keep unit tests from failing when they shouldn't.
21721
21722 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21723
21724 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21725 previous patch increased the size of the RS code by 20 bytes (at
21726 least with gcc-4.4), so increase this by 20 bytes to match.
21727 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21728
21729 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21730
21731 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21732 scratch area. Make sure to initialise chosen in standalone mode as
21733 well as non-standalone.
21734 Reported by: Robert Hooker and Andy Whitcroft.
21735 Tested by: Andy Whitcroft.
21736
21737 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21738
21739 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21740 constructing a new unescaped string and passing it to grub_xputs in
21741 one go, rather than passing characters to grub_printf one at a time.
21742
21743 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21744
21745 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21746 initialising utf16.
21747
21748 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21749
21750 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21751 comment. Add an extra layer of quotation, requiring the output of
21752 this function to be used in a printf format string.
21753 (gettext_printf): New function.
21754 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21755 Extract translatable strings from here-documents and use a temporary
21756 variable instead, so that xgettext can find them.
21757 * util/grub.d/10_kfreebsd.in: Likewise.
21758 * util/grub.d/10_linux.in: Likewise.
21759 * util/grub.d/20_linux_xen.in: Likewise.
21760
21761 * po/grub.d.sed: New file.
21762 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21763 arguments. Set c-format flags on all strings extracted from
21764 util/grub.d/ (xgettext refuses to include these itself for strings
21765 it extracted from a shell file, but these really are c-format).
21766
21767 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21768
21769 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21770 Avoid next pointing to nowhere.
21771
21772 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21773
21774 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21775 rather than assuming than rootblock is exactly in the middle.
21776 (grub_affs_label): Likewise.
21777
21778 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21779
21780 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21781 reserved_first_sector to 0.
21782 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21783 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21784 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21785
21786 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21787
21788 Fix handling of UTF-16 UDF labels.
21789
21790 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21791 (read_string): .. here.
21792 (grub_udf_label): Use read_string.
21793
21794 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21795
21796 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21797 editor under argument scope.
21798 Reported by: Jordan Uggla
21799
21800 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21801
21802 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21803
21804 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21805
21806 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21807 line, and other keys scroll an entire page (previous handling was
21808 for \r and \n to scroll a page and other keys to scroll two lines).
21809
21810 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21811
21812 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21813 Set ptrdest to correct get_physical_target_address rather than
21814 incorrect get_virtual_current_address.
21815
21816 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21817
21818 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21819 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21820
21821 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21822
21823 * .bzrignore: Ignore grub-core/rs_decoder.S.
21824
21825 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21826
21827 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21828 .mo/.mo.gz opening sequence to ...
21829 (grub_mofile_open_lang): ... here.
21830 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21831 * util/grub.d/00_header.in (grub_lang): Include country part of
21832 locale.
21833 Reported by: Mario Limonciello.
21834
21835 2010-12-09 Robert Millan <rmh@gnu.org>
21836
21837 * NEWS: Document addition of ZFS support.
21838
21839 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21840
21841 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21842 rather than `/ 2', as the latter requires -Wa,--divide which would
21843 require bumping our minimum binutils version.
21844
21845 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21846
21847 * util/grub-script-check.c (main): Print script line number on
21848 error.
21849
21850 2010-12-01 Robert Millan <rmh@gnu.org>
21851
21852 * grub-core/fs/zfs/zfs.c: New file.
21853 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21854 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21855 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21856 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21857
21858 * include/grub/zfs/dmu.h: Likewise.
21859 * include/grub/zfs/dmu_objset.h: Likewise.
21860 * include/grub/zfs/dnode.h: Likewise.
21861 * include/grub/zfs/dsl_dataset.h: Likewise.
21862 * include/grub/zfs/dsl_dir.h: Likewise.
21863 * include/grub/zfs/sa_impl.h: Likewise.
21864 * include/grub/zfs/spa.h: Likewise.
21865 * include/grub/zfs/uberblock_impl.h: Likewise.
21866 * include/grub/zfs/vdev_impl.h: Likewise.
21867 * include/grub/zfs/zap_impl.h: Likewise.
21868 * include/grub/zfs/zap_leaf.h: Likewise.
21869 * include/grub/zfs/zfs.h: Likewise.
21870 * include/grub/zfs/zfs_acl.h: Likewise.
21871 * include/grub/zfs/zfs_znode.h: Likewise.
21872 * include/grub/zfs/zil.h: Likewise.
21873 * include/grub/zfs/zio.h: Likewise.
21874 * include/grub/zfs/zio_checksum.h: Likewise.
21875
21876 * Makefile.util.def: Build ZFS into libgrubmods.
21877 * grub-core/Makefile.core.def: Build zfs.mod.
21878
21879 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21880
21881 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21882 variable.
21883 * grub-core/commands/wildcard.c (match_files): Likewise.
21884
21885 2010-11-30 Robert Millan <rmh@gnu.org>
21886
21887 * grub-core/loader/i386/bsd.c
21888 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21889 whether kernel is loaded using grub_loader_is_loaded(), rather
21890 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21891 certain error conditions.
21892
21893 2010-11-30 Robert Millan <rmh@gnu.org>
21894
21895 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21896 (grub_cmd_echo): Call grub_refresh() after printing a message.
21897
21898 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21899
21900 Avoid using tricks for initialising endian variables.
21901
21902 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21903 Make const.
21904 (GRUB_MOD_INIT): Don't byte-swap.
21905 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21906 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21907 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21908 (grub_swap_bytes32_compile_time): Likewise.
21909 (grub_cpu_to_le32_compile_time): Likewise.
21910 (grub_cpu_to_le16_compile_time): Likewise.
21911
21912 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21913
21914 * util/grub-setup.c (setup): Stop recommending --force. People who
21915 understand the dangers of blocklists are able to find this option
21916 anyway and the ones who don't shouldn't use it anyway.
21917
21918 2010-11-26 Robert Millan <rmh@gnu.org>
21919
21920 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21921 Update all users.
21922
21923 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21924
21925 Fix LVM-on-RAID probing.
21926
21927 * util/grub-probe.c (probe): Remember which disk was detected as
21928 RAID (perhaps an LVM physical volume). Use that disk's raidname
21929 rather than that of the top-level disk.
21930
21931 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21932
21933 Fix cmdline argument quotes for setparams command of menuentry
21934 definitions.
21935
21936 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21937 quotes for arguments.
21938 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21939 grub_strchrsub function instead.
21940
21941 * include/grub/misc.h (grub_strchrsub): New function.
21942
21943 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21944
21945 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21946 effort by skipping "." and ".." entries up-front.
21947 Suggested by: Michael Lazarev.
21948
21949 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21950
21951 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21952 ldflags to ldadd, to fix link line ordering.
21953 (none_decompress): Likewise.
21954
21955 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21956
21957 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21958 platforms.
21959 (grub-emu-lite): Remove kern/emu/cache.S.
21960
21961 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21962
21963 * util/deviceiter.c (compare_devices): If the by-id link for a
21964 device couldn't be resolved, fall back to sorting by the by-id link
21965 rather than segfaulting.
21966 Reported and tested by: Daniel Mierswa.
21967
21968 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21969
21970 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21971 ldflags, to fix link line ordering.
21972
21973 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21974
21975 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21976 linkers are picky about this.
21977
21978 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21979
21980 * grub-core/Makefile.am (command.lst): Adjust sed expression
21981 ordering so that extended and priority commands aren't treated as
21982 ordinary commands.
21983
21984 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21985
21986 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21987 Remove byte-swapping function calls, which are not valid in
21988 structure initialisers.
21989 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
21990 non-const.
21991 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
21992 grub_gpt_partition_type_bios_boot.
21993
21994 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
21995
21996 Fix test program build on GNU/kFreeBSD.
21997
21998 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
21999 $(LIBNVPAIR)' library dependencies.
22000
22001 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22002
22003 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22004
22005 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22006
22007 * util/grub-install.in: Remove excessive quoting that broke
22008 installations to RAID devices.
22009
22010 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22013 bootloader version instead of 0.
22014
22015 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22016
22017 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22018 warning.
22019
22020 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22023 retrieve the metadat sector if size isn't known.
22024 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22025
22026 2010-11-18 Robert Millan <rmh@gnu.org>
22027
22028 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22029 with grub_memcmp().
22030
22031 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22032
22033 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22034 arrow.
22035 Reported by: Jordan Uggla.
22036
22037 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22038
22039 Make better UTF compliant.
22040
22041 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22042 sequences as incorrect.
22043 (grub_is_valid_utf8): Likewise.
22044 (grub_utf8_to_ucs4): Likewise.
22045 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22046 (grub_ucs4_to_utf8_alloc): Likewise.
22047 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22048
22049 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22050
22051 Make legacy_source behave like source.
22052
22053 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22054 grub_show_menu.
22055 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22056
22057 2010-11-16 Colin Watson <cjwatson@debian.org>
22058
22059 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22060 (-Wunused implies -Wunused-parameter, but not vice versa).
22061
22062 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22063
22064 * configure.ac: Make error messages less confusing by testing for
22065 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22066 accepted, but produces a diagnostic if something else is wrong).
22067
22068 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22069
22070 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22071 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22072 (now unused).
22073 (grub_keyboard_controller_init)
22074 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22075 read the initial state since controller isn't inited yet.
22076
22077 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22080 allocate_regbeg may need to create new chunk header.
22081
22082 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22083
22084 Fix quoting in legacy parser.
22085
22086 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22087 single quotes.
22088 (grub_legacy_parse): Likewise.
22089 Reported by: Jordan Uggla.
22090 Tested by: Jordan Uggla.
22091
22092 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22093
22094 Don't add -lgcc on i386 and x86_64.
22095
22096 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22097 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22098 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22099
22100 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 * configure.ac: Add -Wno-trampolines when supported.
22103
22104 2010-11-14 Modestas Vainius <modax@debian.org>
22105
22106 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22107 fakeraid.
22108
22109 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22110
22111 Add generic logical block size support for UDF.
22112
22113 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22114 (GRUB_UDF_BLKSZ): Removed.
22115 (struct grub_udf_data): New field "lbshift" to hold the logical block
22116 size of the file system in log2 format. All users updated.
22117 (sblocklist): Change type to unsigned.
22118 (grub_udf_mount): Change type of "sblklist" to unsigned.
22119 Move AVDP search before VRS recognition, because the latter requires
22120 knowledge of the logical block size, which is detected during the
22121 former.
22122 Detect and validate logical block size during AVDP search, adding
22123 support for block sizes 512, 1024 and 4096.
22124 Make VRS recognition independent of block size.
22125
22126 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22127
22128 Properly handle deleted files on UDF.
22129
22130 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22131 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22132 set.
22133
22134 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22135
22136 Support reading files larger than 2 GiB.
22137
22138 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22139 "offset" to grub_off_t.
22140 (grub_udf_read_file): Likewise for parameter "pos".
22141
22142 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22143
22144 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22145 unavailable.
22146 (Simple configuration): Refer to Changes from GRUB Legacy about
22147 save_env availability.
22148
22149 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22150
22151 * util/grub-install.in: Ignore empty partition table detection
22152 instead of trying to include part_ module.
22153
22154 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22155
22156 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22157 LVM on RAID support.
22158
22159 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22160
22161 Properly define WORDS_BIGENDIAN in wrapped environments.
22162
22163 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22164 definition.
22165 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22166
22167 Reported by: Manoel Rebelo Abranches.
22168 Tested by: Manoel Rebelo Abranches.
22169
22170 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22171
22172 * util/grub-mkconfig.in: Fix quoting.
22173
22174 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22175
22176 Support big ext2 files.
22177
22178 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22179 (grub_ext2_read_block): Support triple indirect blocks.
22180 (grub_ext2_read_file): Use 64-bit types and read size_high.
22181 (grub_ext2_open): Read size_high.
22182 Reported by: Ximin Luo.
22183 Tested by: Manoel Rebelo Abranches.
22184
22185 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22186
22187 * util/grub-install.in: Handle filenames containing spaces.
22188 Reported by: Jordan Uggla.
22189 Tested by: Jordan Uggla.
22190
22191 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22192
22193 * util/grub-mkconfig.in (grub_script_check): New variable.
22194 Use grub_script_check instead of grub-script-check.
22195 Reported by: Barry Jackson.
22196
22197 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22198
22199 * docs/grub.texi (menu): Correct the order.
22200 Reported by: D. Hugh Redelmeier.
22201
22202 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22203
22204 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22205 jump.
22206
22207 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22208
22209 * include/grub/elfload.h (grub_elf32_size): New parameter.
22210 All users updated.
22211 Return maximum segments alignment.
22212 (grub_elf64_size): Likewise.
22213 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22214 Return maximum segments alignment.
22215 (grub_elf64_size): Likewise.
22216 * grub-core/loader/powerpc/ieee1275/linux.c:
22217 (grub_linux_claimmap_iterate): New function. Uses the
22218 "available" property in the "memory" node for memory allocation
22219 for kernel in the PowerPC loader.
22220 (grub_linux_load32): Correctly find linux entry point offset.
22221 (grub_linux_load64): Likewise.
22222
22223 2010-11-07 Robert Millan <rmh@gnu.org>
22224
22225 On mips-yeeloong, build with -march=loongson2f when this flag is
22226 available (GCC >= 4.4).
22227 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22228 `-march=mips3'.
22229 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22230 or otherwise add -march=mips3.
22231
22232 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22233
22234 Suppress shell expansion on echo '*' and echo "*" like cases.
22235 Reported by: Jordan Uggla.
22236
22237 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22238 string arguments before shell expansion.
22239 * tests/grub_cmd_echo.in: New testcases.
22240
22241 2010-11-07 Robert Millan <rmh@gnu.org>
22242
22243 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22244 transition.
22245
22246 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22247
22248 * grub-core/kern/emu/hostdisk.c
22249 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22250
22251 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22252
22253 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22254 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22255 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22256
22257 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22258
22259 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22260
22261 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22262
22263 * util/grub-install.in: Replace useless recomendation to pass
22264 --modules with a recomendation to report a bug.
22265
22266 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22267
22268 Properly register serial terminfo.
22269 Reported by: Jordan Uggla
22270
22271 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22272 const.
22273 (grub_serial_terminfo_output_template): Likewise.
22274 (grub_cmd_serial): Register "serial" with terminfo.
22275 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22276 grub_serial_terminfo_output.
22277
22278 2010-11-05 Robert Millan <rmh@gnu.org>
22279
22280 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22281 needed).
22282
22283 2010-11-05 Robert Millan <rmh@gnu.org>
22284
22285 On Yeeloong, pass machine type information to Linux.
22286
22287 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22288 (LOONGSON_MACHTYPE): New macro, set to
22289 "machtype=lemote-yeeloong-2f-8.9inches".
22290 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22291 additional argument to Linux.
22292
22293 2010-11-04 Robert Millan <rmh@gnu.org>
22294
22295 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22296 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22297 (its SATA disks are detected as slaveless IDE master drives on
22298 kFreeBSD).
22299 Reported by Carsten Aulbert.
22300
22301 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22302
22303 * util/bin2h.c (main): Fix spelling error in generated output.
22304
22305 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22306
22307 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22308
22309 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22310
22311 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22312 vga= option is supplied.
22313
22314 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22315
22316 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22317 * util/grub.d/10_kfreebsd.in: Likewise.
22318 * util/grub.d/10_linux.in: Likewise.
22319 * util/grub.d/20_linux_xen.in: Likewise.
22320
22321 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22322
22323 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22324 argument as an argument to no-argument option.
22325
22326 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22327
22328 * util/grub.d/10_linux.in: Add missing load_video with explicit
22329 GRUB_GFXPAYLOAD_LINUX.
22330
22331 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22332
22333 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22334
22335 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22336
22337 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22338 elements with invlid index.
22339 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22340 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22341 members.
22342 * include/grub/raid.h (grub_raid_member): New struct.
22343 (grub_raid_array): Transform devices and start_sector into usage of
22344 grub_raid_member. All users updated
22345 (allocated_devs): New member.
22346
22347 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22348
22349 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22350 is modified
22351
22352 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22353
22354 NetBSD build fix for getline function conflict from gnulib.
22355
22356 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22357 components that depend on gnulib headers.
22358 (libgrubmods.a): Renamed from earlier libgrub.a.
22359 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22360
22361 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22364 install rather than creating a broken install.
22365
22366 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 * util/grub-setup.c (argp): Remove misleading example of installing to
22369 a partition.
22370
22371 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22372
22373 * util/grub-setup.c (setup): Clarify the error message.
22374
22375 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22378
22379 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22380
22381 * grub-core/kern/emu/misc.c
22382 (grub_make_system_path_relative_to_its_root)
22383 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22384
22385 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22386
22387 * grub-core/kern/emu/misc.c
22388 (grub_make_system_path_relative_to_its_root): Revert r2882.
22389
22390 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22391
22392 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22393 useless field head. All users updated.
22394 (free_subchunk): Correct handling of IN_REGION subchunk.
22395
22396 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22397
22398 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22399 (Supported kernels): Likewise.
22400
22401 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22402
22403 Make mktemp invocations portable.
22404
22405 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22406 exit if mktemp fails.
22407 * tests/grub_script_blockarg.in: Likewise.
22408 * tests/partmap_test.in: Likewise.
22409 * tests/util/grub-shell-tester.in: Likewise.
22410 * tests/util/grub-shell.in: Likewise.
22411 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22412 * Makefile.am: Likewise, and chain shell commands with `&&'
22413 instead of ';'.
22414 * util/grub-mkrescue.in: Use the same explicit template as above, and
22415 exit if mktemp fails.
22416
22417 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22418
22419 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22420 Linux kernel, reported by Dennis Schridde.
22421
22422 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22423
22424 * grub-core/normal/auth.c (grub_auth_check_authentication):
22425 Set-but-not-used variable removed.
22426
22427 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22428
22429 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22430 32-bit linux protocol.
22431
22432 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22435 cursor shape for sanity.
22436
22437 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22438
22439 * docs/grub.texi (Installation): Document buggy BIOS install.
22440
22441 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22442
22443 * docs/grub.texi (Installation): Indent.
22444
22445 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 * util/grub-setup.c (setup): New parameter allow_floppy.
22448 (arguments): New member allow_floppy.
22449 (argp_parser): Handle --allow-floppy.
22450 (main): Pass allow_floppy.
22451 * util/grub-install.in: New option --allow-floppy passed though to
22452 grub-setup.
22453
22454 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22455
22456 * util/grub-install.in: Handle partitionless disks.
22457
22458 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22459
22460 * util/grub-setup.c (setup): Don't clean blocklists before readability
22461 verfification.
22462
22463 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * docs/grub.texi (Installation): Document embedding zone. Remove
22466 obsolete grub-install example.
22467
22468 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22469
22470 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22471 Set-but-not-used variable ifdef'ed.
22472 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22473 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22474 variable removed.
22475 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22476 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22477 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22478 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22479 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22480 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22481 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22482 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22483 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22484 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22485 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22486 Likewise.
22487
22488 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22491 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22492 enum value.
22493
22494 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22495
22496 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22497 synonym to _S5_. Needed for some DSDTs.
22498
22499 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 Userspace ACPI parser debugging.
22502
22503 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22504 headers and add relevant defines. Don't include standard headers.
22505 (main) [GRUB_DSDT_TEST]: New function.
22506 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22507 Don't declare functions.
22508
22509 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22510
22511 Remove dead grub_efi_mm_fini.
22512
22513 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22514 (ALLOCATED_PAGES_SIZE): Likewise.
22515 (MAX_ALLOCATED_PAGES): Likewise.
22516 (allocated_pages): Likewise.
22517 (grub_efi_allocate_pages): Don't record allocated pages.
22518 (grub_efi_free_pages): Likewise.
22519 (grub_efi_mm_init): Likewise.
22520 (grub_efi_mm_fini): Removed.
22521
22522 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22523
22524 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22525 (grub_efi_mm_init): Take into account the memory map size increase.
22526
22527 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22530 (serial_hw_put): Wait based on real time rather than port reads. Don't
22531 roken ports.
22532 * include/grub/serial.h (grub_serial_port): New field broken.
22533
22534 2010-10-16 Robert Millan <rmh@gnu.org>
22535
22536 * grub-core/kern/emu/misc.c
22537 (grub_make_system_path_relative_to_its_root): Fix premature return
22538 when processing non-root ZFS filesystems.
22539 Reported by Sergio Talens-Oliag.
22540
22541 2010-10-15 Robert Millan <rmh@gnu.org>
22542
22543 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22544 guarantee compressed ones are processed first.
22545
22546 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22549 grub_efiemu_autocore.
22550
22551 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22552
22553 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22554 rather than 0x1b.
22555 (grub_console_getkey): Use correct jae opcode rather than ja.
22556
22557 2010-10-12 Robert Millan <rmh@gnu.org>
22558
22559 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22560 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22561 variable. All references updated.
22562
22563 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22564
22565 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22566
22567 Correctly distinguish mdraid flavours.
22568
22569 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22570 (insert_array): New argument raid.
22571 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22572 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22573 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22574
22575 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22576
22577 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22578 handling of special keys.
22579
22580 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22581
22582 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22583 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22584
22585 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22586
22587 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22588 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22589 users updated.
22590 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22591 Use right endpoint when querying descriptor.
22592
22593 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22594
22595 Clear out 0x80 color bit on EFI.
22596 Tested by: decoder
22597 Reported by: decoder and meta tech.
22598
22599 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22600 (grub_console_setcolorstate): Clear out 0x80 bit.
22601 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22602 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22603 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22604
22605 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22608 Set to "auto".
22609
22610 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22611
22612 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22613 mo_file after freeing.
22614
22615 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22616
22617 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22618
22619 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22622 flags.
22623
22624 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22625
22626 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22627 usage.
22628
22629 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22630
22631 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22632
22633 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22634 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22635 and terminfo.h when needed.
22636 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22637 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22638 (terminfo): Enable only on terminfokernel.
22639 (extcmd): Likewise.
22640 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22641 * include/grub/lib/arg.h: Likewise.
22642 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22643 incorrect usage of ->.
22644
22645 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22648 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22649
22650 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22651
22652 Fix coreboot compilation.
22653
22654 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22655 Take VBE info into account even if only text is supported.
22656 (fill_vbe_info): Take into account the case when only VGA text
22657 is supported.
22658 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22659 on coreboot, multiboot and qemu.
22660
22661 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22662
22663 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22664 debug messages.
22665 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22666
22667 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22668
22669 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22670 parameters.
22671
22672 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22673
22674 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22675 if they were BSD-style.
22676
22677 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 * grub-core/boot/i386/pc/lnxboot.S: Replace
22680 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22681 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22682
22683 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22684
22685 Write embedding zone using Reed-Solomon.
22686
22687 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22688 * grub-core/Makefile.am (rs_decoder.S): New target.
22689 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22690 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22691 (multiboot): Move to RS part.
22692 (post_reed_solomon): New label.
22693 (grub_boot_drive): Move to non-RS part since it's modified in memory
22694 on boot.
22695 Include rs_decoder.S.
22696 * grub-core/lib/reed_solomon.c: New file.
22697 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22698 New definition.
22699 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22700 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22701 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22702 * include/grub/partition.h (grub_partition_map): Change prototype of
22703 embed to allow returning additional sectors.
22704 * include/grub/reed_solomon.h: New file.
22705 * util/grub-setup.c (setup): Handle Reed-Solomon.
22706
22707 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22708
22709 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22710 i386 and x86-64 definedness tests.
22711
22712 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22713
22714 Fix generation of kernel_syms.lst
22715
22716 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22717 ASM_PREFIX
22718
22719 2010-09-26 Robert Millan <rmh@gnu.org>
22720
22721 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22722
22723 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22724 the pool is an array of devices, iterate through it and return the
22725 first device that passes a stat() test (instead of blindly returning
22726 the first one).
22727
22728 2010-09-26 Robert Millan <rmh@gnu.org>
22729
22730 Build fixes for GNU/kFreeBSD.
22731
22732 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22733 to programs that require ZFS conversion.
22734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22735 kernels that don't have FLOPPY_MAJOR.
22736
22737 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22738
22739 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22740
22741 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22742
22743 Fix grub-emu build.
22744
22745 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22746 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22747 mdraid09 and mdraid1x.
22748
22749 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22750
22751 Re-enable grub-extras.
22752
22753 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22754 avoid confusing Automake. Run autogen only twice, once for the top
22755 level and once for grub-core. Add Makefile.util.def and
22756 Makefile.core.def from extra modules to the appropriate autogen
22757 invocations. If Makefile.common exists in an extra module, include
22758 it in both Makefile.util.am and grub-core/Makefile.core.am;
22759 similarly, include any Makefile.util.common file in Makefile.util.am
22760 and any Makefile.core.common file in grub-core/Makefile.core.am.
22761 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22762 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22763 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22764 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22765
22766 * gentpl.py (gvar_add): Turn GVARS into a set.
22767 (global_variable_initializers): Sort global variables on output.
22768 (vars_init): New function.
22769 (first_time): Likewise.
22770 (library): Ensure that non-global variable initialisations are
22771 emitted before the first time we emit code for a library block.
22772 Append to variables rather than setting them. Only emit
22773 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22774 each conditional path.
22775 (program): installdir() emits an Autogen macro, so must be passed to
22776 var_add rather than gvar_add.
22777 (data): Likewise.
22778 (script): Likewise.
22779 (rules): New function, centralising handling for different target
22780 types. Set up Guile association lists for first_time and vars_init,
22781 and send most output to a diversion so that variable initialisations
22782 can be emitted first.
22783 (module_rules): Use new rules function.
22784 (kernel_rules): Likewise.
22785 (image_rules): Likewise.
22786 (library_rules): Likewise.
22787 (program_rules): Likewise.
22788 (script_rules): Likewise.
22789 (data_rules): Likewise.
22790
22791 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22792
22793 * .bzrignore: Add contrib and grub-core/contrib. Remove
22794 grub-core/Makefile.gcry.am.
22795
22796 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22797
22798 * grub-core/lib/LzFind.c: Add missing include.
22799 * grub-core/lib/LzmaEnc.c: Likewise.
22800 * grub-core/script/lexer.c: Likewise.
22801 * grub-core/script/yylex.l: Likewise.
22802 * util/grub-macho2img.c: Likewise.
22803 * util/grub-menulst2cfg.c: Likewise.
22804 * util/grub-mklayout.c: Likewise.
22805 * util/grub-mkpasswd-pbkdf2.c
22806 * util/grub-mkrelpath.c: Likewise.
22807 * util/resolve.c: Likewise.
22808
22809 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22810
22811 * Makefile.util.def (example_unit_test): Add
22812 grub-core/gnulib/libgnu.a.
22813
22814 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22815
22816 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22817
22818 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22819
22820 Support xz compression on yeeloong.
22821
22822 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22823 * configure.ac: Check for LZMA.
22824 * grub-core/Makefile.core.def (xz_decompress): New target.
22825 (none_decompress): Likewise.
22826 * grub-core/boot/decompressor/minilib.c: New file.
22827 * grub-core/boot/decompressor/none.c: Likewise.
22828 * grub-core/boot/decompressor/xz.c: Likewise.
22829 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22830 * grub-core/kern/mips/cache_flush.S: Likewise.
22831 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22832 * grub-core/kern/mips/startup.S: Move first stage to ...
22833 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22834 nomacro.
22835 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22836 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22837 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22838 Allocate statically.
22839 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22840 Allocate statically or use scratch. Don't check CRC32.
22841 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22842 Allocate statically. Don't check CRC32.
22843 * include/grub/decompressor.h: New file.
22844 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22845 Removed.
22846 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22847 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22848 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22849 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22850 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22851 * util/grub-mkimage.c (grub_compression_t): New type.
22852 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22853 (image_target_desc): New field default_compression.
22854 (image_targets): Adjust yeeloong targets.
22855 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22856 (compress_kernel): New parameter comp.
22857 (generate_image): Likewise. Handle new compression case.
22858 (options): New option --compression
22859 (help): Likewise.
22860 (main): Handle new option.
22861
22862 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22863
22864 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22865
22866 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22867
22868 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22869 typo in __i386__ conditional.
22870
22871 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22872
22873 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22874 include.
22875
22876 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22877
22878 Implement EFI and ACPI multiboot2 extensions.
22879
22880 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22881 new tags as supported.
22882 (acpiv2_size): New function.
22883 (grub_multiboot_get_mbi_size): Take new tags into account.
22884 (grub_multiboot_make_mbi): Add new tags.
22885 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22886
22887 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22888
22889 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22890 Added missing configuration of USB device.
22891
22892 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22893
22894 * grub-core/normal/menu_entry.c (run): Make sure we always return
22895 a value.
22896
22897 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22898
22899 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22900 NumberOfPages is UINT64 according to the UEFI specification, not
22901 UINTN. Fix printf format.
22902
22903 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22904
22905 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22906 `err' to grub_usb_err_t.
22907 Reported and tested by: KESHAV P.R.
22908
22909 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22910
22911 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22912 tpart non-const, so that we can assign to it. (Since this is a
22913 typedef, the constness refers to the pointer rather than what it
22914 points to.)
22915
22916 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22917
22918 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22919 $(top_srcdir)/grub-core/gnulib as well as
22920 $(top_builddir)/grub-core/gnulib.
22921 Reported by: KESHAV P.R.
22922
22923 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22924
22925 * util/grub-install.in: Fix the bootloader ID option to be
22926 consistently --bootloader-id, not --bootloader_id.
22927 Reported by: KESHAV P.R.
22928
22929 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22930
22931 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22932 check hash checksum." consistently translatable.
22933
22934 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22935
22936 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22937 $(top_builddir).
22938
22939 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22940
22941 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22942 (GRUB_MOD_INIT): Register sha1sum command.
22943 (GRUB_MOD_FINI): Unregister sha1sum command.
22944
22945 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22946
22947 Keep boot and grub directory names in sync with utils scripts
22948
22949 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22950 * config.h.in: Add previous macros.
22951 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22952 * util/grub-install.in: Use $bootdir and $grubdir variables.
22953
22954 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22955
22956 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22957 convert partition names to disk names if the new `convert' parameter
22958 is set.
22959 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22960 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22961 disk in its own right. This can happen with Xen disk images.
22962
22963 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22964
22965 * util/grub-editenv.c: Update strings to avoid warnings when generating
22966 grub.pot file.
22967 * util/grub-setup.c: Likewise.
22968
22969 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22970
22971 * configure.ac: Change version to 1.99~beta0.
22972
22973 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22974
22975 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22976 Add BADRAM.
22977 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22978 Likewise.
22979 * include/multiboot.h: Resynced with specification.
22980 * include/multiboot2.h: Likewise.
22981
22982 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22983
22984 Fix po directory handling.
22985
22986 * configure.ac: Create po/Makefile.in rather than po/Makefile.
22987 * grub-core/gnulib/Makefile.am: Import gettext module.
22988 * m4/gnulib-cache.m4: Likewise.
22989 * m4/gnulib-comp.m4: Likewise.
22990 * m4/gettext.m4: New file, from gnulib.
22991 * m4/glibc2.m4: Likewise.
22992 * m4/iconv.m4: Likewise.
22993 * m4/intdiv0.m4: Likewise.
22994 * m4/intl.m4: Likewise.
22995 * m4/intldir.m4: Likewise.
22996 * m4/intlmacosx.m4: Likewise.
22997 * m4/intmax.m4: Likewise.
22998 * m4/inttypes-pri.m4: Likewise.
22999 * m4/lcmessage.m4: Likewise.
23000 * m4/lib-ld.m4: Likewise.
23001 * m4/lib-link.m4: Likewise.
23002 * m4/lib-prefix.m4: Likewise.
23003 * m4/lock.m4: Likewise.
23004 * m4/nls.m4: Likewise.
23005 * m4/po.m4: Likewise.
23006 * m4/printf-posix.m4: Likewise.
23007 * m4/progtest.m4: Likewise.
23008 * m4/threadlib.m4: Likewise.
23009 * m4/uintmax_t.m4: Likewise.
23010 * m4/visibility.m4: Likewise.
23011 * po/Makefile.am: Remove.
23012 * po/Makefile.in.in: New file, from gettext.
23013 ($(DOMAIN).pot-update): Support POTFILES-shell.
23014 * po/Makevars: New file.
23015 * po/POTFILES-shell: Rename to ...
23016 * po/POTFILES-shell.in: ... this. Update.
23017 * po/POTFILES: Rename to ...
23018 * po/POTFILES.in: ... this. Update.
23019 * po/Rules-quot: New file, from gettext.
23020 * po/boldquot.sed: Likewise.
23021 * po/en@boldquot.header: Likewise.
23022 * po/en@quot.header: Likewise.
23023 * po/insert-header.sin: Likewise.
23024 * po/quot.sed: Likewise.
23025 * po/remove-potcdate.sin: Likewise.
23026
23027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23030
23031 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23032
23033 * util/grub.d/20_linux_xen.in: Use submenus.
23034
23035 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23036
23037 Support submenus.
23038
23039 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23040 parameter submenu. All users updated.
23041 * grub-core/normal/main.c (free_menu): Rename to ...
23042 (grub_normal_free_menu): ... this. Made global.
23043 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23044 if requested.
23045 * grub-core/normal/menu_entry.c (screen): New field submenu.
23046 (make_screen): Set submenu.
23047 (run): Open new context if requested.
23048 * include/grub/menu.h (grub_menu_entry): New field submenu.
23049 * include/grub/normal.h (grub_normal_free_menu): New proto.
23050
23051 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23052
23053 Menu entries extractor.
23054
23055 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23056 variants.
23057 (GRUB_MOD_INIT): Register new variants.
23058 (GRUB_MOD_FINI): Unregister new variants.
23059 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23060 into grub_cmd_legacy_source.
23061 (grub_cmd_legacy_source): Implement extractor variants.
23062 (GRUB_MOD_INIT): Register new variants.
23063 (GRUB_MOD_FINI): Unregister new variants.
23064 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23065 as an extractor.
23066 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23067 search as an extractor.
23068 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23069 test as an extractor.
23070 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23071 as an extractor.
23072 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23073 (grub_env_new_context): New function.
23074 (grub_env_context_open): Likewise.
23075 (grub_env_extractor_open): Likewise.
23076 (grub_env_extractor_close): Likewise.
23077 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23078 grub_extractor_level.
23079 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23080 * include/grub/env.h (grub_env_extractor_open): New proto.
23081 (grub_env_extractor_close): Likewise.
23082 * include/grub/normal.h (grub_extractor_level): New external variable.
23083
23084 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23085
23086 Make cutmem accept a region specification.
23087 Suggested by: Samuel Thibault
23088
23089 * grub-core/mmap/mmap.c (parsemem): New function.
23090 (grub_cmd_cutmem): Handle new arguments.
23091
23092 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23093
23094 New command cutmem.
23095
23096 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23097 (GRUB_MOD_INIT): Register new command.
23098 (GRUB_MOD_FINI): Unregister new command.
23099
23100 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23101
23102 Support some annoying BSD and Minix subpartitions.
23103
23104 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23105 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23106 Properly handle concatenation.
23107 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23108 * grub-core/normal/completion.c (iterate_partition): Likewise.
23109 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23110 contain partition. All users updated.
23111 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23112 struct.
23113 (grub_openbsdlabel_partition_map): Likewise.
23114 (bsdlabel_partition_map_iterate): Rename to ..
23115 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23116 (bsdlabel_partition_map_iterate): New function.
23117 (netopenbsdlabel_partition_map_iterate): Likewise.
23118 (netbsdlabel_partition_map_iterate): Likewise.
23119 (openbsdlabel_partition_map_iterate): Likewise.
23120 (GRUB_MOD_INIT): Register new partmaps.
23121 (GRUB_MOD_FINI): Unregister new partmaps.
23122 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23123 (grub_partition_msdos_iterate): ... this. All users updated.
23124 Don't support embedding other than in a minix partition.
23125 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23126 proto.
23127 * include/grub/partition.h (grub_partition): New field msdostype.
23128 * util/grub-install.in: Handle openbsd and netbsd types being in
23129 part_bsd module.
23130
23131 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23132
23133 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23134
23135 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23136 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23137 (mdraid09): ... this.
23138 (mdraid1x): New module.
23139 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23140 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23141
23142 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23143
23144 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23145 vsprintf.
23146
23147 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23148
23149 * grub-core/commands/efi/lsefimmap.c: Correct header.
23150 * NEWS: Update.
23151
23152 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23153
23154 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23155 as printf format strings; the translations might contain '%' which
23156 could cause a crash.
23157 (main): Likewise.
23158 * util/grub-fstest.c (argp_parser): Likewise.
23159 * util/grub-setup.c (argp_parser): Likewise.
23160 (main): Likewise.
23161
23162 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 Use argp in grub-fstest.
23165
23166 * util/grub-fstest.c: Don't include getopt.h.
23167 Include argp.h.
23168 (root): New variable.
23169 (args_count): Likewise.
23170 (nparm): Likewise.
23171 (num_disks): Likewise.
23172 (images): Likewise.
23173 (cmd): Likewise.
23174 (debug_str): Likewise.
23175 (args): Likewise.
23176 (options): Transformed to argp.
23177 (usage): Removed.
23178 (main): Split argument parsing into ...
23179 (argp_parser): ... this. Changed to argp format.
23180 (argp): New variable.
23181 (main): Use argp_parse.
23182
23183 2010-09-20 Tristan Gingold <gingold@free.fr>
23184 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23186
23187 * grub-core/commands/efi/lsefimmap.c: New file.
23188 * grub-core/Makefile.core.def (lsefimmap): New module.
23189 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23190
23191 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23192
23193 Pause the execution (10s max) if any errors are displayed so the user
23194 has a chance to see them.
23195
23196 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23197 (grub_print_error): Increment grub_err_printed_errors.
23198 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23199 execution if any errors were displayed.
23200 (show_menu): Remove old code for pause.
23201 * grub-core/normal/menu_entry.c (run): Likewise.
23202 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23203 users updated.
23204 (grub_normal_get_char_counter): Likewise.
23205 * include/grub/err.h (grub_err_printed_errors): New external variable.
23206 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23207
23208 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 Support multiboot VBE info.
23211
23212 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23213 Take VBE info into account.
23214 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23215 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23216 Call fill_vbe_info when appropriate.
23217 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23218 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23219 as supported.
23220 (grub_multiboot_get_mbi_size): Take new tags into account.
23221 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23222 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23223 Call fill_vbe_tag when appropriate.
23224 (grub_multiboot_make_mbi): Properly align tags.
23225 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23226 function.
23227 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23228 proto.
23229 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23230
23231 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23232
23233 Suport manual terminal geometry specification.
23234
23235 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23236 Save state in grub_ofconsole_terminfo_output.
23237 (grub_ofconsole_term): Use grub_terminfo_getwh.
23238 (grub_ofconsole_getwh): Removed.
23239 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23240 (grub_serial_term): Use grub_terminfo_getwh.
23241 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23242 (options): New struct.
23243 (OPTION_*): New enum.
23244 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23245 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23246 width and height.
23247 (grub_terminfo_getwh): New proto.
23248 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23249
23250 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23251
23252 Handle legacy "terminal" command.
23253
23254 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23255 and FLAG_TERMINAL.
23256 (legacy_commands): Add terminal and title.
23257 (grub_legacy_parse): Handle terminal. Simplify title handling.
23258
23259 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23260
23261 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23262 parameters overflow.
23263
23264 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23265
23266 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23267 widthspec.h.
23268
23269 * docs/grub.texi (Shell-like scripting): Document `!'.
23270 (Network): Simplify using new i386-pc-pxe format. Mention
23271 grub-mknetdir.
23272
23273 * NEWS: Update.
23274
23275 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23276
23277 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23278 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23279 when needed.
23280
23281 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23282
23283 * grub-core/commands/efi/lsefisystab.c: Correct header.
23284 * grub-core/commands/efi/lssal.c: Likewise.
23285 * grub-core/commands/testload.c: Likewise.
23286
23287 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23288
23289 * util/grub-mkrescue.in: Add explicit root argument to --set to
23290 prevent the UUID being interpreted as an argument to --set (matches
23291 previous change to prepare_grub_to_access_device).
23292
23293 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23294
23295 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23296 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23297 the verbosity of later #ifs.
23298 (find_partition_start): Define this function on FreeBSD too.
23299 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23300 function.
23301 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23302 on FreeBSD.
23303
23304 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23305
23306 * util/grub-editenv.c: Use argp instead of getopt.
23307
23308 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23309
23310 * util/grub-setup.c: Use argp instead of getopt.
23311
23312 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23313
23314 Use gnulib-tool to create gnulib source files.
23315
23316 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23317 grub-core/gnulib directories
23318 * .bzignore: Add **/.deps and autogenerated gnulib files
23319 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23320 of gnulib macros, add grub-core/gnulib/Makefile
23321 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23322 include m4 directory to aclocal.
23323 * Makefile.util.def: Remove direct compilation of gnulib source files
23324 and use the new grub-core/gnulib/libgnu.a.
23325 * build-aux/config.rpath: move config.rpath from top directory to
23326 build-aux
23327 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23328 in gnulib headers
23329 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23330 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23331 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23332 header.
23333 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23334 string.
23335
23336 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23337
23338 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23339 grub-core/genmod.sh and grub-core/gensyminfo.sh
23340
23341 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23342
23343 Add a test for echo command options.
23344
23345 * tests/grub_cmd_echo.in: New test.
23346 * Makefile.util.def: Rules for new test.
23347
23348 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23349
23350 Remove crc.mod and move crc command to hashsum.mod.
23351 Remove lib/crc.c - users updated to use gcrypt implementation.
23352
23353 * grub-core/commands/crc.c: Removed.
23354 * grub-core/Makefile.core.def (crc): Module removed.
23355 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23356 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23357 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23358 * grub-core/lib/crc.c: Removed.
23359 * include/grub/lib/crc.h: Removed.
23360 * Makefile.util.def (crc): Remove lib/crc.c
23361 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23362 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23363 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23364 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23365 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23366 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23367
23368 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23369
23370 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23371
23372 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23373
23374 Split config.h for util and core.
23375
23376 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23377 (ADDR32): Likewise.
23378 (DATA32): Likewise.
23379 (BSS_START_SYMBOL): Likewise.
23380 (END_SYMBOL): Likewise.
23381 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23382 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23383 * config.h.in: New file.
23384 * configure.ac: Use config-util.h as config define file.
23385 Rename MACHINE into GRUB_MACHINE. All users updated.
23386 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23387 updated.
23388 (NESTED_FUNC_ATTR): Likewise.
23389 Substitue new variables.
23390 (COND_HAVE_ASM_USCORE): New conditional.
23391 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23392 (kernel_syms.lst): Use ASM_PREFIX.
23393 * grub-core/kern/emu/console.c: Include config-util.h.
23394 * grub-core/kern/emu/misc.c: Likewise.
23395 * grub-core/kern/emu/mm.c: Likewise.
23396 * include/grub/emu/misc.h: Likewise.
23397 * include/grub/libgcc.h: Likewise.
23398
23399 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23400
23401 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23402 constants usage.
23403 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23404 Fix GRUB_TERM_KEY_* constants usage.
23405 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23406
23407 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23408
23409 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23410 print pointer.
23411 * grub-core/bus/usb/uhci.c: Remove empty define.
23412 (grub_uhci_check_transfer): Add missing cast.
23413 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23414 print pointer.
23415 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23416 PRIuGRUB_SIZE.
23417 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23418
23419 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23420
23421 * grub-core/Makefile.core.def (legacycfg): Add
23422 lib/i386/pc/vesa_modes_table.c on emu.
23423
23424 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23425
23426 Reduce number of temporary files generated by build system.
23427
23428 * grub-core/gencmdlist.sh: Removed.
23429 * grub-core/genfslist.sh: Removed.
23430 * grub-core/genhandlerlist.sh: Removed.
23431 * grub-core/genmodsrc.sh: Removed.
23432 * grub-core/genpartmaplist.sh: Removed.
23433 * grub-core/genparttoollist.sh: Removed.
23434 * grub-core/gentermiinallist.sh: Removed.
23435 * grub-core/genvideolist.sh: Removed.
23436
23437 * grub-core/genmod.sh.in: New file.
23438 * grub-core/gensyminfo.sh.in: New file.
23439
23440 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23441 * conf/Makefile.extra-dist: Update with new files.
23442 * gentpl.py: Remove rules related to unnecessary temporary files.
23443 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23444 and und-* files.
23445 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23446 genmod.sh scripts.
23447 * grub-core/bus/usb/uhci.c: Remove empty #define.
23448 * grub-core/genmoddep.awk: Updated with new syminfo format.
23449 * util/bash-completion.d/Makefile.am: Add config.log to
23450 CLEANFILES.
23451
23452 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23453
23454 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23455
23456 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23457
23458 * util/grub-mkconfig.in: Check the config script for syntax errors
23459 before saving.
23460
23461 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23462 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23463
23464 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23465 platforms.
23466 * util/grub-install.in: Add EFI and IEEE1275 support.
23467 * util/i386/efi/grub-install.in: Removed.
23468 * util/ieee1275/grub-install.in: Likewise.
23469
23470 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23471
23472 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23473 (grub_cmd_cmosclean): Likewise.
23474 (GRUB_MOD_INIT): Register command cmosclean.
23475 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23476 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23477
23478 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23479 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23480 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 Add keyboard layouts support.
23483
23484 * Makefile.util.def (grub-mklayout): New file.
23485 (grub-kbdcomp): New script.
23486 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23487 Add keyboard_layouts.h.
23488 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23489 commands/boot.c on yeeloong.
23490 (keylayouts): New module.
23491 * grub-core/bus/usb/ohci.c
23492 * grub-core/bus/usb/uhci.c
23493 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23494 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23495 (attach_root_port): Likewise.
23496 (poll_nonroot_hub): Likewise.
23497 (grub_usb_poll_devices): Likewise.
23498 (detach_device): Close transfer.
23499 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23500 function.
23501 (grub_usb_bulk_setup_readwrite): Likewise.
23502 (grub_usb_bulk_finish_readwrite): Likewise.
23503 * grub-core/commands/keylayouts.c: New file.
23504 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23505 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23506 aliases.
23507 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23508 support scancode 2.
23509 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23510 * include/grub/keyboard_layouts.h: New file.
23511 * util/grub-mklayout.c: New file.
23512 * util/grub-kbdcomp.in: Likewise.
23513
23514 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23515
23516 Unify memory types.
23517
23518 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23519 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23520 types.
23521 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23522 (grub_upper_mem): Likewise.
23523 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23524 * include/grub/memory.h (grub_memory_type_t): New enum.
23525 All users updated.
23526
23527 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 * grub-core/Makefile.core.def (lsapm): New module.
23530 * grub-core/commands/i386/pc/lsapm.c: New file.
23531 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23532 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23533 Likewise.
23534 * include/grub/i386/pc/apm.h: New file.
23535 * include/multiboot.h (multiboot_apm_info): New struct.
23536
23537 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23538
23539 GRUB-legacy configuration file support.
23540
23541 * Makefile.util.def (grub-menulst2cfg): New util.
23542 * docs/man/grub-menulst2cfg.h2m: New file.
23543 * grub-core/Makefile.core.def (legacycfg): New module.
23544 * grub-core/commands/legacycfg.c: New file.
23545 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23546 (grub_normal_add_menu_entry): ... this.
23547 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23548 (grub_normal_set_password): ...this.
23549 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23550 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23551 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23552 * grub-core/lib/legacy_parse.c: New file.
23553 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23554 * include/grub/i386/pc/vesa_modes_table.h: New file.
23555 * include/grub/legacy_parse.h: Likewise.
23556 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23557 * util/grub-menulst2cfg.c: New file.
23558
23559 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23560
23561 * grub-core/kern/emu/hostdisk.c
23562 (convert_system_partition_to_system_disk): Initialise node.
23563
23564 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23565
23566 * grub-core/kern/emu/hostdisk.c
23567 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23568 leak.
23569 Reported and based on patch by: Modestas Vainius.
23570
23571 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23572
23573 Fix DM-RAID probing with recent versions of device-mapper udev
23574 rules.
23575
23576 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23577 canonicalise device paths under /dev/mapper/.
23578 (convert_system_partition_to_system_disk): Compare the
23579 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23580 path, since device nodes under /dev/mapper/ are often symlinks.
23581
23582 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23583
23584 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23585
23586 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23587
23588 * configure.ac: Avoid some annoying error messages if freetype-config
23589 program is not found.
23590
23591 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23592
23593 Support RAID on virtio devices, and others.
23594
23595 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23596 Rename to ...
23597 [__MINGW32__] (grub_find_device): ... this.
23598 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23599 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23600 reasonable default if dir is NULL.
23601 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23602 ...
23603 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23604 (grub_guess_root_device): Update callers.
23605 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23606
23607 * util/raid.c (grub_util_getdiskname): Remove.
23608 (grub_util_raid_getmembers): Use grub_find_device rather than
23609 grub_util_getdiskname.
23610
23611 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23612
23613 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23614 needing to be compiled with serial support.
23615 (ls): Indicate that multiple files are accepted.
23616 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23617 indicate that multiple files are accepted.
23618
23619 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23620
23621 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23622 libgrub_a_init.c, and util/bash-completion.d/grub.
23623
23624 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23625
23626 * util/grub-setup.c (setup): Fix incorrect container semantics.
23627
23628 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23629
23630 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23631 misusage.
23632 Reported by: J. Nick Terry
23633
23634 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23635
23636 Move embedding routines to partmap sources files.
23637
23638 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23639 [GRUB_UTIL]: New variable.
23640 (gpt_partition_map_iterate): Set part.parent.
23641 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23642 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23643 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23644 New function.
23645 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23646 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23647 (grub_partition_map) [GRUB_UTIL]: New field embed.
23648 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23649 (setup): Use ->embed.
23650
23651 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23652
23653 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23654 function.
23655 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23656 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23657
23658 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23659
23660 Add function to get completions from usage.
23661
23662 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23663 completions from usage. Use LC_ALL=C to get options properly.
23664
23665 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23666
23667 * grub-core/gnulib/basename-lgpl.c: Imported.
23668 * grub-core/gnulib/basename.c: Likewise.
23669 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23670 * grub-core/gnulib/dirname.c: Likewise.
23671 * grub-core/gnulib/dirname.h: Likewise.
23672 * grub-core/gnulib/stripslash.c: Likewise.
23673
23674 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23675
23676 * grub-core/gnulib/error.c: Resynced.
23677 * grub-core/gnulib/getopt.c: Likewise.
23678 * grub-core/gnulib/getopt_int.h: Likewise.
23679 * grub-core/gnulib/regex.h: Likewise.
23680 * grub-core/gnulib/regex_internal.c: Likewise.
23681 * grub-core/gnulib/regex_internal.h: Likewise.
23682
23683 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23684
23685 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23686 CRC calculations and validity checks.
23687 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23688 calculations.
23689
23690 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23691
23692 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23693
23694 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23695
23696 Fix incorrect echo options handling.
23697 Reported by: Yves Blusseau.
23698
23699 * include/grub/command.h (grub_command_flags_t): New flags
23700 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23701 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23702 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23703
23704 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23705
23706 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23707 users updated.
23708 (GRUB_COMMAND_FLAG_MENU): Likewise.
23709 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23710 (GRUB_COMMAND_FLAG_TITLE): Removed.
23711 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23712 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23713 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23714 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23715 (grub_command_flags_t): New enum. All users updated.
23716
23717 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23718
23719 Fix solaris compilation.
23720
23721 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23722 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23723 (grub-emu-list): Likewise.
23724
23725 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23726
23727 Remove deprecated root command.
23728
23729 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23730 updated.
23731
23732 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23733
23734 * util/i386/pc/grub-setup.c: Merge this ...
23735 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23736 * util/grub-setup.c: ... into this.
23737 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23738 New struct.
23739
23740 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23743 possible.
23744
23745 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23746
23747 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23748 allocate p.
23749
23750 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23753 explicit root argument to set to prevent UUID to be interpreted as
23754 argument to set.
23755
23756 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23757
23758 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23759
23760 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23761
23762 Don't export grub_gate_a20.
23763
23764 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23765 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23766 to ...
23767 (grub_gate_a20): ... this. All users updated.
23768 * include/grub/i386/pc/init.h: Removed. All users updated.
23769
23770 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23771
23772 Create euro.pf2 which supports most European languages.
23773
23774 * Makefile.am (grubdata_DATA): Add euro.pf2.
23775 (euro.pf2): New target.
23776 (CLEANFILES): Add euro.pf2.
23777
23778 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 * configure.ac: Disable emu-usb by default to prevent inadvertent
23781 device takeover.
23782
23783 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23784
23785 Disable usbserial on grub-emu since our libusb code isn't good enough
23786 yet.
23787
23788 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23789 (usbserial_pl2303): Likewise.
23790 (usbserial_ftdi): Likewise.
23791
23792 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23793
23794 * include/grub/disk.h (grub_disk): Remove has_partitions.
23795 All users updated.
23796 * disk/loopback.c (grub_loopback): Remove has_partitions.
23797 All users updated.
23798 (options): Remove partitions. All users updated.
23799 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23800 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23801 actual partition table is found.
23802
23803 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23804
23805 Remove readability checks (too many false negatives).
23806
23807 * util/grub-install.in: Remove readability checks.
23808 * util/grub-mkconfig.in: Likewise.
23809 * util/grub.d/10_hurd.in: Likewise.
23810 * util/grub.d/10_kfreebsd.in: Likewise.
23811 * util/grub.d/10_linux.in: Likewise.
23812 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23813 way.
23814
23815 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23816
23817 Enable acpi shutdown on all ACPI platforms.
23818
23819 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23820 on coreboo, multiboot and EFI.
23821 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23822 (grub_acpi_halt): Likewise.
23823 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23824 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23825 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23826 * grub-core/lib/i386/halt.c (grub_halt)
23827 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23828
23829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23830
23831 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23832 context.
23833
23834 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23837 * grub-core/video/efi_uga.c: Likewise.
23838
23839 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23840
23841 Filter devaliases and never open same device twice.
23842
23843 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23844 (last_ihandle): Likewise.
23845 (ofdisk_hash_ent): New member shortest.
23846 (ofdisk_hash_add): Add canonical path too.
23847 (scan): New function.
23848 (grub_ofdisk_iterate): Iterate over hashed entries.
23849 (compute_dev_path): Don't add :0.
23850 (grub_ofdisk_open): Don't really open the disk.
23851 (grub_ofdisk_close): Avoid closing unrelated disk.
23852 (grub_ofdisk_read): Implement reopen logic.
23853 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23854 New function.
23855 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23856 New proto.
23857
23858 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23859
23860 Fix sparc64.
23861
23862 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23863 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23864 right address. Add sparc64_ieee1275_ldflags.
23865 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23866 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23867 to grub_host_to_target_addr
23868 (load_image): Likewise.
23869
23870 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23871
23872 * grub-core/normal/completion.c (complete_file): Handle device
23873 containing slash.
23874 Fix based on patch by Doug Nazar.
23875
23876 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23877
23878 grub-mknetdir script.
23879
23880 * Makefile.util.def (grub-mknetdir): New module.
23881 * tests/util/grub-shell.in: Support boot=net
23882 * util/grub-mknetdir.in: New file.
23883
23884 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 videoinfo on non-vbe.
23887
23888 * grub-core/Makefile.core.def (vbeinfo): Removed.
23889 (vbetest): Removed.
23890 (videoinfo): New module.
23891 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23892 * grub-core/commands/i386/pc/vbetest.c: Removed.
23893 * grub-core/commands/videoinfo.c: New file.
23894 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23895 specification.
23896 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23897 as vbetest.
23898 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23899 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23900 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23901 mode_number. New parameter mode. All users updated.
23902 (grub_video_gop_iterate): New function.
23903 (grub_video_efi_gop): New member iterate.
23904 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23905 (grub_vbe_set_video_mode): Remove setting useless fields.
23906 (vbe2videoinfo): New function.
23907 (grub_video_vbe_iterate): Likewise.
23908 (grub_video_vbe_setup): Use vbe2videoinfo.
23909 (grub_video_vbe_print_adapter_specific_info): New function.
23910 (grub_video_vbe_adapter): New fields iterate and
23911 print_adapter_specific_info.
23912 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23913 All users updated.
23914 (grub_video_mode_info): New field mode_number.
23915 (grub_video_adapter): New fields iterate and
23916 print_adapter_specific_info.
23917
23918 2010-09-13 Tristan Gingold <gingold@free.fr>
23919 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23920 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23921
23922 * grub-core/commands/efi/lsefisystab.c: New file.
23923 * grub-core/commands/efi/lssal.c: Likewise.
23924 * grub-core/Makefile.core.def (lsacpi): New module.
23925 (lsefisystab): Likewise.
23926 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23927 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23928 (grub_efi_sal_system_table): New struct.
23929 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23930 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23931 (grub_efi_sal_system_table_platform_features): Likewise.
23932 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23933 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23934 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23935 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23936
23937 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23938
23939 Support explicit user claim that a device is BIOS-visible.
23940
23941 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23942 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23943 * grub-core/kern/emu/hostdisk.c
23944 (convert_system_partition_to_system_disk): Support mdX.
23945 (find_system_device): New parameter add. All users updated.
23946 (grub_util_biosdisk_is_present): New function.
23947 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23948 proto.
23949
23950 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23951
23952 Search hints support.
23953
23954 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23955 All users updated.
23956
23957 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23958
23959 Bash completion script for util commands
23960
23961 * Makefile.am: Add util/bash-completion.d directory
23962 * configure.ac: Likewise.
23963 * util/bash-completion.d/Makefile.am: New file.
23964 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23965
23966 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23967
23968 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23969 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23970 Reported by: Yves Blusseau.
23971
23972 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23973
23974 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23975 partition size and offset.
23976
23977 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23978
23979 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23980
23981 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23982
23983 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
23984
23985 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23986
23987 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
23988 (grub_xvasprintf): Likewise.
23989
23990 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
23993
23994 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23995
23996 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
23997 args ending with NULL.
23998
23999 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24000
24001 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24002 pointer.
24003
24004 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24005
24006 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24007
24008 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24009
24010 Shutdown using ACPI.
24011
24012 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24013 * grub-core/commands/acpihalt.c: New file.
24014 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24015 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24016 (grub_acpi_halt): New proto.
24017 (GRUB_ACPI_SLP_EN): New const.
24018 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24019 (GRUB_ACPI_OPCODE_*): New enum.
24020 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24021
24022 2010-09-11 Tristan Gingold <gingold@free.fr>
24023 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24024 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24025
24026 * commands/lsacpi.c: New file.
24027 * grub-core/Makefile.core.def (lsacpi): New module.
24028 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24029 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24030 (grub_acpi_madt_entry_header): New struct.
24031 (grub_acpi_madt): Likewise.
24032 (grub_acpi_madt_entry_interrupt_override): Likewise.
24033 (grub_acpi_madt_entry_sapic): Likewise.
24034 (grub_acpi_madt_entry_lsapic): Likewise.
24035 (grub_acpi_madt_entry_platform_int_source): Likewise.
24036 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24037 (PRIuGRUB_UINT32_T): Likewise.
24038 (PRIxGRUB_UINT64_T): Likewise.
24039
24040 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24041
24042 Implement loading palette on ieee1275_fb.
24043
24044 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24045 (have_setcolors): Likewise.
24046 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24047 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24048 (grub_video_ieee1275_set_palette): Implement.
24049
24050 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24051 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24052
24053 * util/grub-install.in (grub_partition): New variable.
24054 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24055 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24056 Fixes a bug reported by Yves Blusseau.
24057
24058 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 Fix emu on mipsel.
24061
24062 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24063 =grub_cpu_flush_cache on all mips and not only yeeloong.
24064 * configure.ac (COND_mips): New conditional.
24065 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24066 platforms.
24067 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24068 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24069 [GRUB_LINKER_HAVE_INIT]: New function.
24070 (grub_emu_post_init): Likewise.
24071 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24072 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24073 * include/grub/cache.h (_mips): Include mips/cache.h.
24074 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24075 LVM and RAID prototypes.
24076 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24077 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24078 function.
24079
24080 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24081
24082 * util/grub-install.in: Don't try to verify core.img until after
24083 running grub-mkimage to create it.
24084
24085 2010-09-10 Robert Millan <rmh@gnu.org>
24086
24087 * util/grub.d/10_hurd.in: Add misc readability checks.
24088 * util/grub.d/10_kfreebsd.in: Likewise.
24089 * util/grub.d/10_linux.in: Likewise.
24090
24091 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24092
24093 * util/grub-install.in: ${imgext} won't be defined here until the
24094 install branch is merged. For the meantime, only verify core.img on
24095 i386-pc and sparc64-ieee1275 platforms.
24096
24097 2010-09-10 Robert Millan <rmh@gnu.org>
24098
24099 Solaris support in grub_find_zpool_from_dir(). Thanks
24100 Seth Goldberg for referring to getextmntent() facility.
24101
24102 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24103 `sys/mkdev.h'.
24104 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24105 `<sys/mnttab.h>'.
24106 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24107 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24108 method for finding zpool name.
24109
24110 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24111
24112 grub-fstest needs the host and hostfs modules while other utilities
24113 actively require those modules to be absent, so grub-fstest needs
24114 its own initialisation and finalisation code.
24115
24116 * Makefile.am (grub_fstest.pp): New target.
24117 (grub_fstest_init.lst): Likewise.
24118 (grub_fstest_init.c): Likewise.
24119 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24120
24121 2010-09-10 Robert Millan <rmh@gnu.org>
24122
24123 * configure.ac: Check for `struct statfs.f_fstypename' and
24124 `struct statfs.f_mntfromname'.
24125
24126 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24127 kFreeBSD-specific code.
24128
24129 2010-09-10 Robert Millan <rmh@gnu.org>
24130
24131 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24132 on ZFS. Now non-main filesystems are supported as / too.
24133
24134 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24135
24136 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24137 and grub-core/disk/host.c to ...
24138 (grub-fstest): ... here. Having the host disk implementation
24139 present confuses grub-probe and other utility programs.
24140
24141 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24142 when writing to a file, not when writing to stdout.
24143
24144 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24145
24146 * tests/partmap_test.in: New test for partitions.
24147 * Makefile.util.def: Rules for new test.
24148
24149 2010-09-09 Robert Millan <rmh@gnu.org>
24150
24151 * util/grub-probe.c (probe): Fix a pair of unhandled error
24152 conditions.
24153
24154 2010-09-09 Robert Millan <rmh@gnu.org>
24155
24156 Basic Btrfs support (detection and UUID).
24157
24158 * grub-core/fs/btrfs.c: New file.
24159 * Makefile.util.def (library): Register btrfs.c.
24160 * grub-core/Makefile.core.def: Likewise.
24161
24162 2010-09-08 Robert Millan <rmh@gnu.org>
24163
24164 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24165 with (optional) parameters to specify device and relative path.
24166 * util/grub-install.in: Use is_path_readable_by_grub() to
24167 verify readability of a few critical files.
24168 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24169 verify readability of grub.cfg.new.
24170
24171 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 Split minix.mod into minix.mod and minix2.mod.
24174
24175 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24176 * grub-core/Makefile.core.def (minix2): New module.
24177 * grub-core/fs/minix.c: Use definitions instead of runtime version
24178 checking.
24179 * grub-core/fs/minix2.c: New file.
24180
24181 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24182
24183 Add new --boot-directory option to replace --root-directory
24184
24185 * util/grub-install.in: Add new --boot-directory option
24186 * util/grub-reboot.in: Likewise.
24187 * util/grub-set-default.in: Likewise.
24188
24189 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24190
24191 * util/grub-mkconfig.in: Use new variable.
24192
24193 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24194
24195 * configure.ac: Define some useful variables.
24196
24197 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24198
24199 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24200 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24201 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24202 Use terminfo and don't use cursor-on/cursor-off unless it's known
24203 to work.
24204 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24205 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24206
24207 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24208
24209 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24210 starts with "(,", fill the drive containing the loaded image in
24211 between those two characters, but expect that a full partition
24212 specification including partition map names will follow.
24213
24214 2010-09-08 Robert Millan <rmh@gnu.org>
24215
24216 * configure.ac: Remove `--enable-grub-fstest' option.
24217 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24218
24219 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24220 `grub-fstest' instead of `grub-probe' for readability verification.
24221 * util/grub-probe.c (probe): Remove readability verification kludge.
24222
24223 2010-09-08 Robert Millan <rmh@gnu.org>
24224
24225 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24226 initializing `GRUB_FS'.
24227
24228 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24229
24230 Not command (!) support to GRUB script.
24231
24232 * tests/grub_script_not.in: New test.
24233 * Makefile.util.def: Rules for new test.
24234
24235 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24236 ! command as a special case.
24237 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24238
24239 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24240
24241 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24242 grub_free.
24243
24244 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24245
24246 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24247
24248 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24249
24250 * docs/grub.texi (Shell-like scripting): Documentation for break,
24251 continue, shift and return commands.
24252
24253 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24254
24255 Rename CD-ROM to cd on BIOS.
24256
24257 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24258 "cd".
24259 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24260
24261 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24262
24263 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24264 * util/grub-probe.c (main): Likewise.
24265 * util/i386/pc/grub-setup.c (main): Likewise.
24266 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24267 Reported and debugged by: alexxy
24268
24269 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24270
24271 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24272 diagnostic info.
24273
24274 2010-09-05 Jo Shields <directhex@apebox.org>
24275
24276 * util/grub.d/30_os-prober.in: Add missing classes.
24277
24278 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24279
24280 * docs/grub.texi (Theme file format): Document new position format.
24281
24282 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24283
24284 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24285 a table. Use @code instead of @verbatim.
24286
24287 2010-09-05 Colin D Bennett <colin@gibibit.com>
24288
24289 Gfxmenu documentation.
24290
24291 * docs/grub.texi (Theme file format): New chapter.
24292
24293 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24294
24295 * grub-core/Makefile.core.def (xzio): New module.
24296 * grub-core/io/xzio.c: New file.
24297 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24298 * grub-core/lib/xzembed/xz_config.h: Likewise.
24299 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24300 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24301 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24302 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24303 * grub-core/lib/xzembed/xz_private.h: Likewise.
24304 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24305 * include/grub/file.h (grub_file_filter_id): New compression filter
24306 GRUB_FILE_FILTER_XZIO.
24307
24308 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24309
24310 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24311 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24312 size.
24313
24314 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24315
24316 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24317 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24318
24319 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24320
24321 Uncompressed checksum support.
24322
24323 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24324 (check_list): New parameter uncompress.
24325 (grub_cmd_hashsum): Handle --uncompress.
24326
24327 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24328
24329 Reintroduce testload.
24330
24331 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24332 from here ...
24333 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24334 (GRUB_MOD_INIT): New function.
24335 (GRUB_MOD_FINI): Likewise.
24336 * grub-core/Makefile.core.def (testload): New module.
24337
24338 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24339
24340 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24341 (uint8_t): New type.
24342 (uint16_t): Likewise.
24343 (uint32_t): Likewise.
24344 (uint64_t): Likewise.
24345
24346 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24347
24348 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24349
24350 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24351
24352 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24353 Made static.
24354 (grub_gzfile_open): Removed. All users updated.
24355 (GRUB_MOD_INIT): New function.
24356 (GRUB_MOD_FINI): Likewise.
24357 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24358 (grub_file_filters_enabled): Likewise.
24359 (grub_file_open): Handle filters.
24360 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24361 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24362 * include/grub/file.h (grub_file_filter_id_t): New type.
24363 (grub_file_filter_t): Likewise.
24364 (grub_file_filters_all): New extern variable.
24365 (grub_file_filters_enabled): Likewise.
24366 (grub_file_filter_register): New inline function.
24367 (grub_file_filter_unregister): Likewise.
24368 (grub_file_filter_disable): Likewise.
24369 (grub_file_filter_disable_compression): Likewise.
24370 * include/grub/gzio.h: Removed.
24371
24372 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24373
24374 Filename expansion support for wildcards in GRUB script.
24375
24376 * tests/grub_script_expansion.in: New test.
24377 * Makefile.util.def: Rule for new test.
24378
24379 * grub-core/commands/wildcard.c: New file, implements filename
24380 expansion support for GRUB script.
24381 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24382 * grub-core/script/argv.c: Cosmetic changes.
24383 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24384 Refactored to perform wildcard expansion on arguments.
24385 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24386 struct.
24387
24388 * tests/util/grub-shell.in: Fix quoting for read input.
24389
24390 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24391
24392 Support for updating environment variables with matched substrings
24393 of regexp.
24394
24395 * tests/grub_cmd_regexp.in: New test.
24396 * Makefile.util.def: Rule for new test.
24397
24398 * grub-core/commands/regexp.c: New option -s to update environment
24399 variables with regexp matches.
24400
24401 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24402
24403 * include/grub/file.h (grub_file): New member not_easly_seekable.
24404 (grub_file_seekable): New inline function.
24405 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24406 easily seekable.
24407 (grub_gzio_open): Set not_easly_seekable.
24408 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24409 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24410
24411 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24412
24413 Support for options to appear multiple times on cmdline.
24414
24415 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24416 * grub-core/commands/extcmd.c: Support for repeatable option.
24417 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24418 repeatable option support.
24419
24420 Refactor menuentry into a regular command.
24421
24422 * grub-core/commands/menuentry.c: New file, menuentry command
24423 implementation.
24424 * grub-core/Makefile.core.def: Rule update for normal.mod.
24425 * grub-core/normal/main.c: Moved menuentry creation to
24426 grub-core/commands/menuentry.c.
24427 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24428 (grub_menu_execute_entry_real): Removed.
24429 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24430 function.
24431 (grub_script_execute_menuentry): Removed.
24432 * grub-core/script/parser.y (menuentry): Removed.
24433 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24434 * grub-core/script/yylex.l (menuentry): Removed.
24435 * include/grub/menu.h (grub_menu_init): New prototype.
24436 (grub_menu_fini): New prototype.
24437 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24438 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24439 (grub_script_execute_sourcecode): New prototype.
24440
24441 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24442
24443 "return" command for GRUB script functions.
24444
24445 * tests/grub_script_return.in: New test.
24446 * Makefile.util.def: Rules for new test.
24447
24448 * grub-core/script/execute.c (grub_script_return): New function.
24449 * grub-core/script/main.c: Register/unregister return commaond.
24450 * include/grub/script_sh.h (grub_script_return): New prototype.
24451
24452 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24453
24454 "setparams" command to update positional parameters.
24455
24456 * tests/grub_script_setparams.in: New test.
24457 * Makefile.util.def: Rules for new test.
24458
24459 * grub-core/script/argv.c (grub_script_argv_make): New function.
24460 * grub-core/script/execute.c (replace_scope): New function.
24461 (grub_script_setparams): New function.
24462 * grub-core/script/lexer.c: Remove unused variables.
24463 * grub-core/script/main.c: Register/unregister setparams command.
24464 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24465 (grub_script_setparams): New prototype.
24466
24467 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24468
24469 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24470 grub_free order.
24471
24472 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24473
24474 Support for passing block of commands as an argument to extcmds.
24475
24476 * Makefile.util.def: Rules for new test.
24477 * tests/grub_script_blockarg.in: New test.
24478 * grub-core/tests/test_blockarg.c: New file, block argument
24479 command used in the test.
24480
24481 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24482 (grub_register_extcmd_prio): New function prototype.
24483 (grub_extcmd_dispatcher): New function prototype.
24484 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24485 type.
24486 * include/grub/script_sh.h (struct grub_script): New members
24487 `children', `next_siblings' and `refcnt' for block arguments and
24488 reference counting.
24489 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24490 (grub_script_arg): New member `script' for block argument.
24491 (grub_script_argv): New member `script' for block argument.
24492 (grub_parser_param): New member `scripts' for block argument.
24493 (grub_script_mem_free): New extern function prototype.
24494 (grub_script_ref): New function prototype.
24495 (grub_script_unref): New function prototype.
24496
24497 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24498 extcmd form to support block arguments.
24499 * grub-core/script/argv.c: Block arguments support.
24500 * grub-core/script/execute.c: Likewise.
24501 * grub-core/script/lexer.c: Likewise.
24502 * grub-core/script/main.c: Likewise.
24503 * grub-core/script/script.c: Likewise.
24504 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24505 non-terminals.
24506
24507 * grub-core/commands/acpi.c: Update extcmd implementations with
24508 grub_extcmd_context_t.
24509 * grub-core/commands/cat.c: Likewise.
24510 * grub-core/commands/echo.c: Likewise.
24511 * grub-core/commands/extcmd.c: Likewise.
24512 * grub-core/commands/hashsum.c: Likewise.
24513 * grub-core/commands/hdparm.c: Likewise.
24514 * grub-core/commands/help.c: Likewise.
24515 * grub-core/commands/hexdump.c: Likewise.
24516 * grub-core/commands/i386/cpuid.c: Likewise.
24517 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24518 * grub-core/commands/i386/pc/halt.c: Likewise.
24519 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24520 * grub-core/commands/iorw.c: Likewise.
24521 * grub-core/commands/keystatus.c: Likewise.
24522 * grub-core/commands/loadenv.c: Likewise.
24523 * grub-core/commands/ls.c: Likewise.
24524 * grub-core/commands/lspci.c: Likewise.
24525 * grub-core/commands/memrw.c: Likewise.
24526 * grub-core/commands/probe.c: Likewise.
24527 * grub-core/commands/search_wrap.c: Likewise.
24528 * grub-core/commands/setpci.c: Likewise.
24529 * grub-core/commands/sleep.c: Likewise.
24530 * grub-core/disk/loopback.c: Likewise.
24531 * grub-core/hello/hello.c: Likewise.
24532 * grub-core/loader/i386/bsd.c: Likewise.
24533 * grub-core/loader/xnu.c: Likewise.
24534 * grub-core/term/gfxterm.c: Likewise.
24535 * grub-core/term/serial.c: Likewise.
24536 * grub-core/tests/lib/functional_test.c: Likewise.
24537
24538 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24539
24540 Multi-line quoted strings support.
24541
24542 * grub-core/script/lexer.c (append_newline): Removed.
24543 (grub_script_lexer_yywrap): Refactored.
24544 (grub_script_lexer_init): Refactored.
24545 * grub-core/script/yylex.l (yywrap): New function.
24546 (grub_lexer_resplit): New function.
24547 (grub_lexer_unput): New function.
24548 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24549 and resplit.
24550 * tests/grub_script_echo1.in: Added few more testcases.
24551
24552 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24553
24554 * grub-core/kern/misc.c: Don't add abort alias in utils.
24555 Reported by: echoline.
24556
24557 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24558
24559 Add missing files into "make dist" tarball for other platforms.
24560
24561 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24562 * conf/Makefile.common (dist_noinst_DATA): New variable.
24563 * conf/Makefile.extra-dist: Added missing make dist files.
24564 * grub-core/Makefile.core.def: Likewise.
24565
24566 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24567
24568 Compress grub_prefix.
24569
24570 * grub-core/boot/i386/pc/lnxboot.S: Use
24571 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24572 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24573 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24574 GRUB_MACHINE_PREFIX_END. All users updated.
24575 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24576 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24577 + 0x40.
24578 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24579 * util/grub-mkimage.c (image_target_desc): Change data_end to
24580 prefix_end. All users updated.
24581
24582 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24583
24584 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24585 value.
24586 (grub_openbsd_boot): Likewise.
24587 (grub_netbsd_boot): Likewise.
24588 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24589 (grub_xnu_boot): Likewise.
24590
24591 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24592
24593 * configure.ac: Clean LIBS variable after tests.
24594
24595 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24596
24597 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24598
24599 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24600
24601 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24602 echo if libdevmapper will be used.
24603
24604 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24605
24606 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24607 constant for the same file.
24608
24609 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24610
24611 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24612
24613 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24614
24615 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24616 grub-core/*.pp.
24617
24618 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24619
24620 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24621 required by the boot protocol.
24622
24623 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24624 ebp and edi members.
24625 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24626 state.ebp and state.edi.
24627 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24628 %ebp and %edi according to grub_relocator32_ebp and
24629 grub_relocator32_edi respectively.
24630 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24631 and state.edi.
24632
24633 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24634
24635 Add i386-pc-pxe image target.
24636
24637 * util/grub-mkimage.c (image_target_desc): New enum value
24638 IMAGE_I386_PC_PXE.
24639 (image_targets): New target i386-pc-pxe.
24640 (generate_image): Handle i386-pc-pxe image.
24641
24642 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24643
24644 Fix grub_pxe_scan.
24645
24646 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24647 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24648 All users updated.
24649 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24650 (grub_pxe_pxenv): Correct type.
24651
24652 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24653
24654 * NEWS: Document most of the important changes since 1.98.
24655
24656 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24657
24658 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24659 generated manual page) a little.
24660
24661 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24662
24663 * docs/grub.texi: Add myself as an author.
24664
24665 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24666
24667 * Makefile.util.def (libgrub.a): Add missing sunpc.
24668 Reported by: Seth Goldberg.
24669
24670 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24671
24672 Interrupt wrapping and code simplifications.
24673
24674 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24675 x86_noieee1275 which are functionaly equivalent in this case.
24676 (grub-install): Make source on each platform explicit. Enable on
24677 all noemu.
24678 * gentpl.py (x86_efi_pc): Removed group.
24679 (x86_noefi): Likewise.
24680 (i386_noefi): Likewise.
24681 (x86_noieee1275): Likewise.
24682 (i386_noieee1275): Likewise.
24683 (i386_noefi_noieee1275): Likewise.
24684 (i386_pc_qemu_coreboot): Likewise.
24685 (i386_coreboot_multiboot): Likewise.
24686 (i386_pc_coreboot_multiboot_qemu): Likewise.
24687 (x86_noefi_mips): Likewise.
24688 (noieee1275): Likewise.
24689 (ieee1275_mips): Likewise.
24690 (noemu_noieee1275): Likewise.
24691 (cmos): New group.
24692 (usb): Likewise.
24693 (videoinkernel): Likewise.
24694 (videomodules): Likewise.
24695 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24696 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24697 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24698 include/grub/loader.h, include/grub/msdos_partition.h,
24699 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24700 include/grub/machine/console.h, include/grub/machine/vga.h,
24701 include/grub/machine/vbe.h, include/grub/machine/init.h,
24702 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24703 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24704 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24705 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24706 * grub-core/Makefile.core.def (kernel): Explicit the source for
24707 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24708 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24709 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24710 Use videoinkernel tag.
24711 (usb): Enable on all usb.
24712 (usbserial_common): Likewise.
24713 (usbserial_pl2303): Likewise.
24714 (usbserial_ftdi): Likewise.
24715 (uhci): Enable on all x86.
24716 (ohci): Enable on all pci.
24717 (cmostest): Enable on all CMOS.
24718 (acpi): Include commands/acpi.c on all platforms.
24719 (halt): Add relevant lib/*/halt.c.
24720 (hdparm): Enable on all pci.
24721 (lspci): Likewise.
24722 (usbtest): Enable on all usb.
24723 (ata): Enable on all pci.
24724 (ata_pthru): Likewise.
24725 (usbms): Enable on all usb.
24726 (usb_keyboard): Likewise.
24727 (font): Use tag videomodules.
24728 (bufio): Likewise.
24729 (datetime): Use tag cmos. Enable on all noemu.
24730 (mmap): Use tags common and x86.
24731 (gfxterm): Use tag videomodules.
24732 (bitmap): Likewise.
24733 (bitmap_scale): Likewise.
24734 (video_fb): Likewise.
24735 (video): Likewise.
24736 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24737 adjust padding accordingly. All users updated.
24738 (grub_ohci_transaction): Fix bad format specification.
24739 (GRUB_MOD_INIT): Add asserts for struct size.
24740 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24741 (grub_alloc_td): Likewise.
24742 (grub_free_queue): Likewise.
24743 (grub_uhci_transfer): Likewise.
24744 (grub_uhci_transaction): Fix bad format specification.
24745 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24746 (grub_usb_bulk_readwrite): Likewise.
24747 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24748 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24749 Made static.
24750 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24751 Made static.
24752 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24753 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24754 Transformed into C.
24755 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24756 Moved from here ...
24757 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24758 ... here. Transformed into C. Made static.
24759 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24760 Moved from here ...
24761 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24762 ... here. Transformed into C. Made static.
24763 * grub-core/kern/i386/pc/startup.S
24764 (grub_biosdisk_check_int13_extensions): Moved from here ...
24765 * grub-core/disk/i386/pc/biosdisk.c
24766 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24767 Made static.
24768 * grub-core/kern/i386/pc/startup.S
24769 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24770 * grub-core/disk/i386/pc/biosdisk.c
24771 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24772 Transformed into C. Made static.
24773 * grub-core/kern/i386/pc/startup.S
24774 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24775 * grub-core/disk/i386/pc/biosdisk.c
24776 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24777 Transformed into C. Made static.
24778 * grub-core/kern/i386/pc/startup.S
24779 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24780 * grub-core/disk/i386/pc/biosdisk.c
24781 (grub_biosdisk_get_diskinfo_standard): ... here.
24782 Transformed into C. Made static.
24783 * grub-core/kern/i386/pc/startup.S
24784 (grub_biosdisk_get_num_floppies): Moved from here ...
24785 * grub-core/disk/i386/pc/biosdisk.c
24786 (grub_biosdisk_get_num_floppies): ... here.
24787 Transformed into C. Made static.
24788 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24789 New function.
24790 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24791 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24792 Transformed into C. Made static.
24793 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24794 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24795 Transformed into C. Made static.
24796 * grub-core/kern/i386/ieee1275/init.c: Removed.
24797 * grub-core/kern/i386/misc.S: Likewise.
24798 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24799 Splitted from here ...
24800 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24801 Transformed into C. Made static. All users updated.
24802 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24803 Transformed into C. Made static. All users updated.
24804 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24805 Moved from here...
24806 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24807 Transformed into C. Made static. All users updated.
24808 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24809 Moved from here...
24810 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24811 Transformed into C. Made static. All users updated.
24812 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24813 Removed (replaced by C version).
24814 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24815 Moved from here...
24816 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24817 Transformed into C. Made static.
24818 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24819 Moved from here...
24820 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24821 ... here. Transformed into C.
24822 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24823 Moved from here...
24824 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24825 ... here. Transformed into C.
24826 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24827 Moved from here...
24828 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24829 ... here. Transformed into C. Made static.
24830 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24831 Moved from here...
24832 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24833 ... here. Transformed into C.
24834 * grub-core/kern/i386/pc/startup.S
24835 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24836 * grub-core/video/i386/pc/vbe.c
24837 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24838 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24839 Moved from here...
24840 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24841 ... here. Transformed into C.
24842 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24843 Moved from here...
24844 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24845 ... here. Transformed into C.
24846 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24847 Moved from here...
24848 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24849 ... here. Transformed into C.
24850 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24851 Moved from here...
24852 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24853 ... here. Transformed into C.
24854 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24855 Moved from here...
24856 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24857 ... here. Transformed into C. Made static.
24858 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24859 Moved from here...
24860 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24861 ... here. Transformed into C. Made static.
24862 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24863 Moved from here...
24864 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24865 ... here. Transformed into C. Made static.
24866 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24867 pxe_rm_entry as third argument.
24868 (grub_bios_interrupt): New function.
24869 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24870 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24871 of calling grub_stop.
24872 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24873 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24874 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24875 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24876 * grub-core/lib/i386/halt.c: Moved from here ...
24877 * grub-core/lib/i386/halt.c: ... here.
24878 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24879 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24880 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24881 grub_stop_floppy.
24882 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24883 * include/grub/i386/coreboot/init.h: Removed.
24884 * include/grub/i386/multiboot/init.h: Likewise.
24885 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24886 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24887 * include/grub/i386/pc/int.h: New file.
24888 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24889 (grub_pxe_scan): Removed.
24890 (grub_pxe_call): Update prototype.
24891 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24892 prototypes.
24893 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24894 * include/grub/i386/qemu/init.h: Removed.
24895 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24896 noreturn.
24897 (grub_halt): Likewise.
24898 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24899 (grub_reboot): Likewise.
24900 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24901 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24902 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24903
24904 2010-08-30 Robert Millan <rmh@gnu.org>
24905
24906 * NEWS: Document addition of ZFS support in `grub-install' and
24907 `grub-mkconfig'.
24908
24909 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24910
24911 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24912 dprintf output.
24913
24914 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24915
24916 Remove leftover embedding of font objects.
24917
24918 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24919 * util/grub-install.in (font): Removed.
24920 * util/grub-mkimage.c (generate_image): Remove font support. All users
24921 updated.
24922
24923 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24924
24925 Remove leftover embedding of font objects.
24926
24927 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24928 * util/grub-install.in (font): Removed.
24929 * util/grub-mkimage.c (generate_image): Remove font support. All users
24930 updated.
24931
24932 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24935 Reported by: Ian Turner
24936
24937 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24938
24939 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24940 timeout to avoid indefinite boot stalling.
24941
24942 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24943
24944 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24945 (grub_env_write_color_highlight): Likewise.
24946
24947 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24948
24949 * grub-core/normal/term.c (print_more): Return to normal and not
24950 to standard state after printing "---MORE---".
24951
24952 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24953
24954 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24955 Mask out the bit 0x80 since it has other meaning that specifiing color.
24956
24957 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24958
24959 New relocator. Allows for more kernel support and more straightforward
24960 loader writing.
24961
24962 * Makefile.am (BOOTTARGET): New variable.
24963 (QEMU32): Likewise.
24964 (linux.init.x86_64): New target.
24965 (linux.init.i386): Likewise.
24966 (multiboot.elf): Likewise.
24967 (kfreebsd.elf): Likewise.
24968 (kfreebsd.aout): Likewise.
24969 (pc-chainloader.elf): Likewise.
24970 (pc-chainloader.bin): Likewise.
24971 (ntldr.elf): Likewise.
24972 (ntldr.bin): Likewise.
24973 (multiboot2.elf): Likewise.
24974 (kfreebsd.init.x86_64): Likewise.
24975 (kfreebsd.init.i386): Likewise.
24976 (knetbsd.init.i386): Likewise.
24977 (kopenbsd.init.i386): Likewise.
24978 (knetbsd.init.x86_64): Likewise.
24979 (kopenbsd.init.x86_64): Likewise.
24980 (linux-initramfs.i386): Likewise.
24981 (linux-initramfs.x86_64): Likewise.
24982 (kfreebsd-mfsroot.i386.img): Likewise.
24983 (knetbsd.image.i386): Likewise.
24984 (kopenbsd.image.i386): Likewise.
24985 (kopenbsd.image.x86_64): Likewise.
24986 (knetbsd.miniroot-image.i386.img): Likewise.
24987 (kfreebsd-mfsroot.x86_64.img): Likewise.
24988 (knetbsd.image.x86_64): Likewise.
24989 (knetbsd.miniroot-image.x86_64.img): Likewise.
24990 (kfreebsd-mfsroot.i386.gz): Likewise.
24991 (bootcheck-kfreebsd-i386): Likewise.
24992 (kfreebsd-mfsroot.x86_64.gz): Likewise.
24993 (bootcheck-kfreebsd-x86_64): Likewise.
24994 (knetbsd.miniroot-image.i386.gz): Likewise.
24995 (bootcheck-knetbsd-i386): Likewise.
24996 (bootcheck-kopenbsd-i386): Likewise.
24997 (bootcheck-kopenbsd-x86_64): Likewise.
24998 (knetbsd.miniroot-image.x86_64.gz): Likewise.
24999 (bootcheck-knetbsd-x86_64): Likewise.
25000 (bootcheck-linux-i386): Likewise.
25001 (bootcheck-linux-x86_64): Likewise.
25002 (bootcheck-linux16-i386): Likewise.
25003 (bootcheck-linux16-x86_64): Likewise.
25004 (bootcheck-multiboot): Likewise.
25005 (bootcheck-multiboot2): Likewise.
25006 (bootcheck-kfreebsd-aout): Likewise.
25007 (bootcheck-pc-chainloader): Likewise.
25008 (bootcheck-ntldr): Likewise.
25009 (CLEANFILES): Add new targets.
25010 (BOOTCHECKS): New variable.
25011 (.PHONY): Add bootchecks.
25012 (SUCCESSFUL_BOOT_STRING): New variable.
25013 (BOOTCHECK_TIMEOUT): Likewise.
25014 (bootcheck): New target
25015 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25016 * configure.ac: Correct efiemu excuse.
25017 * docs/grub.texi (Supported kernels): New chapter.
25018 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25019 include/grub/mm_private.h. Simplify inclusion of
25020 include/grub/boot.h, include/grub/loader.h
25021 and include/grub/msdos_partition.h
25022 (KERNEL_HEADER_FILES) [i386_coreboot]:
25023 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25024 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25025 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25026 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25027 include/grub/machine/loader.h.
25028 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25029 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25030 extra_dist.
25031 (pci.mod): Enable on i386-multiboot.
25032 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25033 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25034 i386-qemu.
25035 (relocator.mod): Rewritten.
25036 (aout.mod): Enable on all x86.
25037 (bsd.mod): Likewise.
25038 (ntldr.mod): New module.
25039 (linux.mod): Use loader/i386/linux.c on all x86.
25040 (xnu.mod): Enable on all x86.
25041 (vga_text.mod): disable on EFI and QEMU.
25042 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25043 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25044 * grub-core/efiemu/loadcore.c: Likewise.
25045 * grub-core/efiemu/main.c: Likewise.
25046 (grub_efiemu_exit_boot_services): Removed.
25047 (grub_efiemu_finish_boot_services): Likewise.
25048 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25049 function.
25050 * grub-core/efiemu/i386/nocfgtables.c: New file.
25051 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25052 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25053 (grub_efi_finish_boot_services): Moved from here ...
25054 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25055 Fille finish memory map and related data.
25056 (finish_mmap_buf): New variable.
25057 (grub_efi_uintn_t finish_mmap_size): Likewise.
25058 (grub_efi_uintn_t finish_key): Likewise.
25059 (grub_efi_uintn_t finish_desc_size): Likewise.
25060 (grub_efi_uint32_t finish_desc_version): Likewise.
25061 (grub_efi_is_finished): Likewise.
25062 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25063 finished.
25064 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25065 (grub_elf64_phdr_iterate): Likewise.
25066 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25067 (grub_os_area_size): Likewise.
25068 (grub_machine_init): Don't reserve os area.
25069 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25070 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25071 * grub-core/kern/i386/loader.S: Removed.
25072 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25073 (grub_os_area_size): Likewise.
25074 (grub_machine_init): Don't reserve os area.
25075 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25076 Don't call grub_dl_unload_all.
25077 Don't include loader.S.
25078 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25079 Declare the memory after _end as available.
25080 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25081 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25082 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25083 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25084 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25085 * include/grub/mm_private.h (grub_mm_header): ... here.
25086 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25087 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25088 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25089 (grub_mm_region): ..here. Removed addr. Added pre_size.
25090 All users updated.
25091 * grub-core/kern/mm.c (base): Renamed to ...
25092 (grub_mm_base): ... this. Made global.
25093 (grub_real_malloc): Alloc from end of region.
25094 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25095 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25096 * grub-core/kern/powerpc/cache_flush.S: ... here.
25097 * grub-core/lib/efi/relocator.c: New file.
25098 * grub-core/lib/i386/relocator.c: Rewritten.
25099 * grub-core/lib/i386/relocator16.S: New file.
25100 * grub-core/lib/i386/relocator32.S: Likewise.
25101 * grub-core/lib/i386/relocator64.S: Likewise.
25102 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25103 * grub-core/lib/i386/relocator_common.S: New file.
25104 * grub-core/lib/ieee1275/relocator.c: Likewise.
25105 * grub-core/lib/mips/relocator.c: Rewritten.
25106 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25107 stylistic adjustments.
25108 * grub-core/lib/powerpc/relocator.c: New file.
25109 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25110 * grub-core/lib/relocator.c: Rewritten.
25111 * grub-core/lib/x86_64/relocator_asm.S: New file.
25112 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25113 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25114 (bsd_tag): New struct.
25115 (tags): New variable.
25116 (tags_last): Likewise.
25117 (netbsd_module): New struct.
25118 (netbsd_mods): New variable.
25119 (netbsd_mods_last): Likewise.
25120 (openbsd_opts): New parameter "serial".
25121 (OPENBSD_SERIAL_ARG): New definition.
25122 (netbsd_opts): New parameter "serial".
25123 (NETBSD_SERIAL_ARG): New definition.
25124 (grub_freebsd_add_meta): Reorganised into ...
25125 (grub_bsd_add_meta): ...this. All users updated.
25126 (grub_freebsd_add_mmap): Reorganised into ...
25127 (generate_e820_mmap): ...this...
25128 (grub_bsd_add_mmap): ...and this. All users updated.
25129 (grub_freebsd_list_modules): Use tags.
25130 (grub_netbsd_add_meta_module): New function.
25131 (grub_netbsd_list_modules): Likewise.
25132 (grub_freebsd_boot): Use relocator and finish EFI.
25133 (grub_openbsd_boot): Likewise.
25134 (grub_netbsd_setup_video): New function.
25135 (grub_netbsd_add_modules): Likewise.
25136 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25137 and finish EFI.
25138 (grub_bsd_unload): Unload tags.
25139 (grub_bsd_load_aout): Use relocator.
25140 (grub_bsd_elf32_size_hook): New function.
25141 (grub_bsd_elf32_hook): Use relocator.
25142 (grub_bsd_elf64_size_hook): New function.
25143 (grub_bsd_elf64_hook): Use relocator.
25144 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25145 (grub_bsd_load): Zero-out openbsd_ramdisk.
25146 (grub_bsd_load): Use relocator.
25147 (grub_cmd_openbsd): Support serial.
25148 (grub_cmd_netbsd): Support modules.
25149 (grub_cmd_freebsd_module): Use relocator.
25150 (grub_netbsd_module_load): New function.
25151 (grub_cmd_netbsd_module): Likewise.
25152 (grub_cmd_openbsd_ramdisk): Likewise.
25153 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25154 kopenbsd_ramdisk.
25155 (GRUB_MOD_FINI): Unregister new commands.
25156 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25157 (grub_freebsd_load_elfmodule_obj): Use relocator.
25158 (grub_freebsd_load_elfmodule): Likewise.
25159 (grub_freebsd_load_elf_meta): Likewise.
25160 (grub_netbsd_load_elf_meta): New function.
25161 (grub_openbsd_find_ramdisk): Likewise.
25162 * grub-core/loader/i386/bsd_helper.S: Removed.
25163 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25164 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25165 * grub-core/loader/i386/efi/linux.c: Likewise.
25166 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25167 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25168 (DEFAULT_VIDEO_MODE): Likewise.
25169 (real_mode_target): New variable.
25170 (prot_mode_target): Likewise.
25171 (initrd_mem_target): Likewise.
25172 (relocator): Likewise.
25173 (efi_mmap_buf): Likewise.
25174 (efi_mmap_size): Likewise.
25175 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25176 (free_pages): Use relocator.
25177 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25178 (grub_linux_setup_video): Return error.
25179 (grub_linux_trampoline_start): Removed.
25180 (grub_linux_trampoline_end): Likewise.
25181 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25182 andd video parameters depending on firmware.
25183 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25184 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25185 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25186 (grub_cmd_initrd): Use relocator.
25187 * grub-core/loader/i386/linux_trampoline.S: Removed.
25188 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25189 (elf_sec_entsize): Likewise.
25190 (elf_sec_shstrndx): Likewise.
25191 (elf_sections): Likewise.
25192 (grub_multiboot_load): Use relocator.
25193 (grub_multiboot_get_mbi_size): Account for sections.
25194 (grub_multiboot_make_mbi): Use relocator and support sections.
25195 (grub_multiboot_add_elfsyms): New function.
25196 (grub_multiboot_free_mbi): Free sections.
25197 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25198 (grub_linux_real_target): Likewise.
25199 (grub_linux_real_chunk): Likewise.
25200 (grub_linux16_prot_size): Likewise.
25201 (grub_linux16_boot): Use relocator.
25202 (grub_linux_unload): Unload relocator.
25203 (grub_cmd_linux): Use relocator.
25204 (grub_cmd_initrd): Likewise.
25205 * grub-core/loader/i386/pc/ntldr.c: New file.
25206 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25207 Don't try to guess CPU frequency.
25208 (grub_xnu_set_video): Stretch bitmap.
25209 (grub_xnu_boot): Use relocator.
25210 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25211 (grub_linux_unload): Free relocator.
25212 (grub_linux_load32): Use relocator.
25213 (grub_linux_load64): Likewise.
25214 (grub_cmd_initrd): Likewise.
25215 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25216 (grub_multiboot_unload): Unload relocator.
25217 (grub_cmd_multiboot): Use relocator.
25218 (grub_cmd_module): Likewise.
25219 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25220 Use relocator and support sections.
25221 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25222 (elf_sec_entsize): Likewise.
25223 (elf_sec_shstrndx): Likewise.
25224 (elf_sections): Likewise.
25225 (grub_multiboot_load): Use relocator.
25226 (grub_multiboot_get_mbi_size): Account for sections.
25227 (grub_multiboot_make_mbi): Use relocator and support sections.
25228 (grub_multiboot_add_elfsyms): New function.
25229 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25230 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25231 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25232 Prototype changed. All users updated.
25233 (grub_xnu_align_heap): Simplified.
25234 (grub_xnu_writetree_toheap): Likewise.
25235 (grub_xnu_unload): Unload relocator.
25236 (grub_cmd_xnu_kernel): Use relocator.
25237 (grub_cmd_xnu_kernel64): Likewise.
25238 (grub_xnu_register_memory): Simplified.
25239 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25240 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25241 EFI is finished.
25242 (grub_console_checkkey): Likewise.
25243 (grub_console_getkey): Likewise.
25244 (grub_console_getwh): Likewise.
25245 (grub_console_getxy): Likewise.
25246 (grub_console_gotoxy): Likewise.
25247 (grub_console_cls): Likewise.
25248 (grub_console_setcolorstate): Likewise.
25249 (grub_console_setcursor): Likewise.
25250 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25251 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25252 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25253 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25254 * grub-core/tests/boot/kernel-8086.S: Likewise.
25255 * grub-core/tests/boot/kernel-i386.S: Likewise.
25256 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25257 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25258 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25259 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25260 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25261 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25262 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25263 * grub-core/tests/boot/linux.cfg: Likewise.
25264 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25265 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25266 * grub-core/tests/boot/linux16.cfg: Likewise.
25267 * grub-core/tests/boot/multiboot.cfg: Likewise.
25268 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25269 * grub-core/tests/boot/ntldr.cfg: Likewise.
25270 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25271 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25272 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25273 New definition.
25274 * include/grub/dl.h (grub_dl_unload_all): Removed.
25275 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25276 (grub_efi_finish_boot_services): Change prototype.
25277 (grub_efi_is_finished): New variable.
25278 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25279 Changed prototype.
25280 (grub_efiemu_finish_boot_services): Removed.
25281 (grub_machine_efiemu_init_tables): New prototype.
25282 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25283 (grub_elf64_phdr_iterate): Likewise.
25284 * include/grub/i386/bsd.h: Include relocator.h.
25285 (freebsd_tag_header): New struct.
25286 (grub_openbsd_bios_mmap): Removed.
25287 (grub_unix_real_boot): Removed.
25288 (grub_freebsd_load_elfmodule32): Changed prototype.
25289 (grub_freebsd_load_elfmodule_obj64): Likewise.
25290 (grub_freebsd_load_elf_meta32): Likewise.
25291 (grub_freebsd_load_elf_meta64): Likewise.
25292 (grub_freebsd_add_meta): Removed.
25293 (grub_netbsd_load_elf_meta32): New prototype.
25294 (grub_netbsd_load_elf_meta64): Likewise.
25295 (grub_bsd_add_meta): Likewise.
25296 (grub_openbsd_ramdisk_descriptor): New struct.
25297 (grub_openbsd_find_ramdisk32): New prototype.
25298 (grub_openbsd_find_ramdisk64): Likewise.
25299 * include/grub/i386/coreboot/loader.h: Removed.
25300 * include/grub/i386/efi/loader.h: Likewise.
25301 * include/grub/i386/ieee1275/loader.h: Likewise.
25302 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25303 to grub_uint32_t.
25304 * include/grub/i386/loader.h: Removed.
25305 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25306 value.
25307 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25308 (grub_phys_addr_t): New type.
25309 (grub_vtop): New inline function.
25310 (grub_map_memory): Likewise.
25311 (grub_unmap_memory): Likewise.
25312 * include/grub/i386/multiboot/loader.h: Removed.
25313 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25314 (NETBSD_BTINFO_CONSOLE): New definition.
25315 (NETBSD_BTINFO_SYMTAB): Likewise.
25316 (NETBSD_BTINFO_MODULES): Likewise.
25317 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25318 (grub_netbsd_bootinfo): New struct.
25319 (grub_netbsd_btinfo_common): Use explicit bitsize.
25320 (grub_netbsd_btinfo_mmap_entry): Removed.
25321 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25322 (grub_netbsd_btinfo_bootdisk): New struct.
25323 (grub_netbsd_btinfo_symtab): Likewise.
25324 (grub_netbsd_btinfo_serial): Likewise.
25325 (grub_netbsd_btinfo_modules): Likewise.
25326 (grub_netbsd_btinfo_framebuf): Likewise.
25327 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25328 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25329 Likewise.
25330 (grub_openbsd_bootargs): Use explicit bitsize.
25331 (grub_openbsd_bootarg_console): New struct.
25332 (GRUB_OPENBSD_COM_MAJOR): New definition.
25333 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25334 * include/grub/i386/pc/efiemu.h: Removed.
25335 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25336 * include/grub/i386/qemu/loader.h: Removed.
25337 * include/grub/i386/relocator.h: Rewritten.
25338 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25339 * include/grub/mips/memory.h: New file.
25340 * include/grub/mips/multiboot.h: Rewritten.
25341 * include/grub/mips/relocator.h: Rewritten.
25342 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25343 (grub_vtop): New function.
25344 (grub_map_memory): Likewise.
25345 (grub_unmap_memory): Likewise.
25346 * include/grub/misc.h (ALIGN_DOWN): New definition.
25347 * include/grub/mm.h (grub_mm_check_real): New proto.
25348 (GRUB_MM_CHECK): New definition.
25349 * include/grub/mm_private.h: New file.
25350 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25351 (grub_multiboot_get_mbi_size): Removed.
25352 (grub_multiboot_make_mbi): Change prottype.
25353 (grub_multiboot_set_accepts_video): New proto.
25354 (grub_multiboot_add_elfsyms): Likewise.
25355 (grub_multiboot_payload_eip): New variable.
25356 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25357 New prototype.
25358 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25359 New definition.
25360 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25361 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25362 * include/grub/powerpc/ieee1275/loader.h: Removed.
25363 * include/grub/powerpc/memory.h: New file.
25364 * include/grub/powerpc/relocator.h: Likewise.
25365 * include/grub/relocator.h: Likewise.
25366 * include/grub/relocator_private.h: Likewise.
25367 * include/grub/sparc64/ieee1275/loader.h: Removed.
25368 * include/grub/x86_64/memory.h: New file.
25369 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25370 (grub_xnu_heap_malloc): Likewise.
25371 (grub_xnu_heap_real_start): Removed.
25372 (grub_xnu_heap_start): Likewise.
25373 (grub_xnu_relocator): New variable.
25374 (grub_xnu_heap_target_start): Likewise.
25375 * tests/util/grub-shell.in: Support non-pc.
25376 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25377
25378 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25379
25380 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25381 on malloc error.
25382 (grub_bidi_logical_to_visual): Check that malloc succeded.
25383 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25384 puts.
25385 (grub_xputs_normal): Likewise.
25386
25387 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25388
25389 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25390 extra_dist.
25391
25392 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25393
25394 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25395
25396 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25397
25398 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25399
25400 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25401
25402 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25403 dprintf.
25404
25405 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25406
25407 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25408
25409 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25410
25411 * grub-core/normal/term.c (print_more): Fix a memory leak.
25412 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25413 (grub_xputs_normal): Likewise.
25414
25415 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25416
25417 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25418 the begining of the string
25419
25420 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25421
25422 * grub-core/script/script.c (grub_script_parse): Free parsed on
25423 failure.
25424
25425 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25428 on failure.
25429
25430 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25431
25432 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25433 return.
25434
25435 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25436
25437 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25438 (scroll_up): Fix a memory leak.
25439
25440 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25441
25442 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25443 errors.
25444
25445 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25446
25447 Handle USB pendrives exposed as floppies.
25448
25449 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25450 floppy.
25451 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25452 Check for partitions on all devices.
25453
25454 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25455
25456 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25457 (readkey): Likewise.
25458
25459 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25460
25461 Multiple variable names support to "export" command.
25462
25463 * normal/context.c (grub_cmd_export): "export" command supports
25464 multiple variable names.
25465
25466 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25467
25468 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25469 --target=drive output to Mach device name.
25470
25471 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25472
25473 New Automake based build system for GRUB.
25474
25475 * ABOUT-NLS: New file.
25476 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25477 in Makefile.util.def file.
25478 * Makefile.util.def: New file. Autogen build definitions file for
25479 GRUB host utils.
25480 * conf/Makefile.common: New file. Common variables for GRUB host
25481 utils and target modules.
25482 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25483 * docs/Makefile.am: New file. Automake file for docs.
25484 * gentpl.py: New file. Python script to generate Autogen
25485 template.
25486 * grub-core/Makefile.am: New file. GRUB target modules' rules
25487 that doesn't fit in Makefile.core.def file.
25488 * grub-core/Makefile.core.def: New file. Autogen build
25489 definitions file for GRUB target modules.
25490 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25491 specific setjmp.S file.
25492 * po/Makefile.am: New file.
25493
25494 * .bzrignore: New ignores.
25495 * INSTALL: New requirements, without Ruby.
25496 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25497 * autogen.sh: Updated to invoke autogen as necessary.
25498 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25499 and defines for Automake conditionals.
25500 * geninit.sh: Refactoring.
25501
25502 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25503 necessary.
25504 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25505 New prototype.
25506
25507 * include/grub/test.h: Fix functional test modules' naming.
25508 * grub-core/tests/example_functional_test.c: Fix test module name.
25509
25510 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25511 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25512 * util/grub-editenv.c: Likewise.
25513 * util/grub-fstest.c: Likewise.
25514 * util/grub-mkdevicemap.c: Likewise.
25515 * util/grub-mkfont.c: Likewise.
25516 * util/grub-mkimage.c: Likewise.
25517 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25518 * util/grub-probe.c: Likewise.
25519 * util/grub-script-check.c: Likewise.
25520 * util/i386/pc/grub-setup.c: Likewise.
25521 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25522
25523 * tests/util/grub-shell.in: Fix override directory path.
25524 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25525 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25526
25527 * util/lvm.c: Update #includes.
25528 * util/raid.c: Likewise.
25529 * util/resolve.c: Likewise.
25530 * grub-core/bus/emu/pci.c: Likewise.
25531 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25532 * grub-core/lib/posix_wrap/string.h: Likewise.
25533 * grub-core/kern/emu/main.c: Likewise.
25534
25535 * grub-core/gensymlist.sh: New file. Script for generating kernel
25536 symbols file.
25537 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25538
25539 * grub-core/gentrigtables.c: Fix unused variable warnings.
25540
25541 * Makefile.in: Removed.
25542 * conf/any-emu.rmk: Removed.
25543 * conf/common.rmk: Removed.
25544 * conf/i386-coreboot.rmk: Removed.
25545 * conf/i386-efi.rmk: Removed.
25546 * conf/i386-ieee1275.rmk: Removed.
25547 * conf/i386-multiboot.rmk: Removed.
25548 * conf/i386-pc.rmk: Removed.
25549 * conf/i386-qemu.rmk: Removed.
25550 * conf/i386.rmk: Removed.
25551 * conf/mips-yeeloong.rmk: Removed.
25552 * conf/mips.rmk: Removed.
25553 * conf/powerpc-ieee1275.rmk: Removed.
25554 * conf/sparc64-ieee1275.rmk: Removed.
25555 * conf/tests.rmk: Removed.
25556 * conf/x86-efi.rmk: Removed.
25557 * conf/x86_64-efi.rmk: Removed.
25558 * gendistlist.sh: Removed.
25559 * geninitheader.sh: Removed.
25560 * genkernsyms.sh.in: Removed.
25561 * genmk.rb: Removed.
25562 * gensymlist.sh.in: Removed.
25563 * mkinstalldirs: Removed.
25564 * boot: Moved ...
25565 * grub-core/boot: ... to here.
25566 * bus: Moved ...
25567 * grub-core/bus: ... to here.
25568 * commands: Moved ...
25569 * grub-core/commands: ... to here.
25570 * disk: Moved ...
25571 * grub-core/disk: ... to here.
25572 * efiemu: Moved ...
25573 * grub-core/efiemu: ... to here.
25574 * font: Moved ...
25575 * grub-core/font: ... to here.
25576 * fs: Moved ...
25577 * grub-core/fs: ... to here.
25578 * gencmdlist.sh: Moved ...
25579 * grub-core/gencmdlist.sh: ... to here.
25580 * genemuinit.sh: Moved ...
25581 * grub-core/genemuinit.sh: ... to here.
25582 * genemuinitheader.sh: Moved ...
25583 * grub-core/genemuinitheader.sh: ... to here.
25584 * genfslist.sh: Moved ...
25585 * grub-core/genfslist.sh: ... to here.
25586 * genhandlerlist.sh: Moved ...
25587 * grub-core/genhandlerlist.sh: ... to here.
25588 * genmoddep.awk: Moved ...
25589 * grub-core/genmoddep.awk: ... to here.
25590 * genmodsrc.sh: Moved ...
25591 * grub-core/genmodsrc.sh: ... to here.
25592 * genpartmaplist.sh: Moved ...
25593 * grub-core/genpartmaplist.sh: ... to here.
25594 * genparttoollist.sh: Moved ...
25595 * grub-core/genparttoollist.sh: ... to here.
25596 * genterminallist.sh: Moved ...
25597 * grub-core/genterminallist.sh: ... to here.
25598 * gentrigtables.c: Moved ...
25599 * grub-core/gentrigtables.c: ... to here.
25600 * genvideolist.sh: Moved ...
25601 * grub-core/genvideolist.sh: ... to here.
25602 * gettext: Moved ...
25603 * grub-core/gettext: ... to here.
25604 * gfxmenu: Moved ...
25605 * grub-core/gfxmenu: ... to here.
25606 * gnulib: Moved ...
25607 * grub-core/gnulib: ... to here.
25608 * hello: Moved ...
25609 * grub-core/hello: ... to here.
25610 * hook: Moved ...
25611 * grub-core/hook: ... to here.
25612 * io: Moved ...
25613 * grub-core/io: ... to here.
25614 * kern: Moved ...
25615 * grub-core/kern: ... to here.
25616 * lib: Moved ...
25617 * grub-core/lib: ... to here.
25618 * loader: Moved ...
25619 * grub-core/loader: ... to here.
25620 * mmap: Moved ...
25621 * grub-core/mmap: ... to here.
25622 * normal: Moved ...
25623 * grub-core/normal: ... to here.
25624 * partmap: Moved ...
25625 * grub-core/partmap: ... to here.
25626 * parttool: Moved ...
25627 * grub-core/parttool: ... to here.
25628 * script: Moved ...
25629 * grub-core/script: ... to here.
25630 * term: Moved ...
25631 * grub-core/term: ... to here
25632 * tests/example_functional_test.c: Moved ...
25633 * grub-core/tests/example_functional_test.c: ... to here.
25634 * tests/lib/functional_test.c: Moved ...
25635 * grub-core/tests/lib/functional_test.c: ... to here.
25636 * tests/lib/test.c: Moved ...
25637 * grub-core/tests/lib/test.c: ... to here.
25638 * video: Moved ...
25639 * grub-core/video: ... to here.
25640
25641 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25642
25643 Replace --enable-grub-emu-modules with grub-emu-lite.
25644
25645 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25646 cache.S.
25647
25648 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25649 * kern/emu/full.c: New file. For grub-emu specific initialization.
25650 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25651 * kern/emu/main.c: Call initialization function grub_emu_init.
25652
25653 * Makefile.in: Include grub-emu-lite in install.
25654 * commands/parttool.c: Use grub_no_autoload to differentiate
25655 between grub-emu and grub-emu-lite.
25656 * include/grub/misc.h: New variable grub_no_autoload.
25657
25658 * conf/any-emu.rmk: New rules for grub-emu-lite.
25659 * configure.ac: Remove --enable-grub-emu-modules.
25660 * genmk.rb: Cleanup unnecessary rules.
25661 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25662
25663 * normal/main.c: Don't load list files on grub-emu-lite.
25664 * util/misc.c (grub_arch_sync_caches): Removed.
25665
25666 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25667
25668 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25669 grub-mkimage rather than grub-mkelfimage.
25670 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25671
25672 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25673
25674 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25675 a key after CapsLock or NumLock. It's just a qemu bug.
25676
25677 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25678
25679 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25680 needed by libusb wrapper.
25681
25682 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25683
25684 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25685
25686 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25687
25688 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25689 --nounzip is passed.
25690
25691 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25692
25693 USB hotunplugging and USB serial support.
25694
25695 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25696 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25697 (grub_uhci_transfer): Respect timeout and set *actual.
25698 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25699 non-standard length.
25700 (grub_usb_device_attach): Autoload modules.
25701 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25702 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25703 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25704 users updated.
25705 (grub_usb_add_hub): Fill nports and children.
25706 (attach_root_port): Receive hub instead of controller.
25707 All users updated. Fill hub->devices.
25708 (grub_usb_root_hub): Allocate hub->devices.
25709 (detach_device): New function.
25710 (poll_nonroot_hub): Fill children and detach devices.
25711 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25712 actual arguments. All users updated.
25713 (grub_usb_bulk_read_extended): New function.
25714 * bus/usb/serial/common.c: New file.
25715 * bus/usb/serial/ftdi.c: Likewise.
25716 * bus/usb/serial/pl2303.c: Likewise.
25717 * commands/terminal.c (handle_command): Support wildcard.
25718 * commands/usbtest.c: Output "Unknown" instead of empty string.
25719 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25720 (usbserial_common_mod_SOURCES): New variable.
25721 (usbserial_common_mod_CFLAGS): Likewise.
25722 (usbserial_common_mod_LDFLAGS): Likewise.
25723 (pkglib_MODULES): Add usbserial_pl2303.mod.
25724 (usbserial_pl2303_mod_SOURCES): New variable.
25725 (usbserial_pl2303_mod_CFLAGS): Likewise.
25726 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25727 (pkglib_MODULES): Add usbserial_ftdi.mod.
25728 (usbserial_ftdi_mod_SOURCES): New variable.
25729 (usbserial_ftdi_mod_CFLAGS): Likewise.
25730 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25731 (pkglib_MODULES): Add serial.mod.
25732 (serial_mod_SOURCES): New variable.
25733 (serial_mod_CFLAGS): Likewise.
25734 (serial_mod_LDFLAGS): Likewise.
25735 * conf/i386-pc.rmk: Likewise.
25736 * conf/mips-yeeloong.rmk: Likewise.
25737 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25738 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25739 * disk/usbms.c (first_available_slot): New variable.
25740 (grub_usbms_attach): Don't reuse free slots due to potential cache
25741 problems.
25742 * include/grub/serial.h: Moved to ..
25743 * include/grub/ns8250.h: ...this.
25744 * include/grub/serial.h: New file.
25745 * include/grub/term.h (grub_term_poll_usb): New variable.
25746 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25747 readkey. All users updated.
25748 (grub_terminfo_output_state): Pass term to put.
25749 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25750 (grub_usb_controller_dev): Add timeout and actual arguments to
25751 transfer. All users updated.
25752 (grub_usb_interface): New field detach_data.
25753 (grub_usb_device): New fields children and nports.
25754 (grub_usb_ep_type_t): New type.
25755 (grub_usb_get_ep_type): New function.
25756 (grub_usb_bulk_read_extended): Likewise.
25757 * include/grub/usbdesc.h (grub_usb_desc): New type.
25758 * include/grub/usbserial.h: New file.
25759 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25760 * kern/term.c (grub_term_poll_usb): New variable.
25761 (grub_getkey): Call grub_term_poll_usb if set.
25762 (grub_checkkey): Likewise.
25763 (grub_getkeystatus): Likewise.
25764 * term/serial.c: Moved controller-specific parts to ...
25765 * term/ns8250.c: ... here.
25766 * term/serial.c: Mostly rewritten.
25767 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25768 according to spec.
25769
25770 2010-08-20 Robert Millan <rmh@gnu.org>
25771
25772 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25773 a separate module and maybe other interesting combinations.
25774
25775 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25776 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25777 (kfreebsd_entry): Add generic filesystem module load routine.
25778 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25779
25780 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25781
25782 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25783 "numcenter" (I misunderstood the purpose of this entry).
25784 * docs/grub.texi (sendkey): Likewise.
25785
25786 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25787
25788 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25789 status flag options; simply omitting the option is equivalent and
25790 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25791 (keysym_table): Rename "num5numlock" to "numlock".
25792 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25793 can uniformly say that only the last of multiple `sendkey'
25794 invocations has any effect.
25795 * docs/grub.texi (sendkey): New section.
25796
25797 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25798
25799 * commands/i386/pc/sendkey.c (options): Fix three typos.
25800
25801 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25802
25803 Implement sendkey support.
25804
25805 * commands/i386/pc/sendkey.c: New file.
25806 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25807 (sendkey_mod_SOURCES): New variable.
25808 (sendkey_mod_CFLAGS): Likewise.
25809 (sendkey_mod_LDFLAGS): Likewise.
25810
25811 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25812
25813 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25814 fix warnings from Autoconf.
25815
25816 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25817
25818 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25819 to avoid false positives with some assemblers that output things
25820 like "someprefix_func" as part of their output.
25821
25822 2010-08-15 Robert Millan <rmh@gnu.org>
25823
25824 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25825 errors.
25826 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25827 grub_get_libzfs_handle() errors.
25828
25829 2010-08-14 Robert Millan <rmh@gnu.org>
25830
25831 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25832 filesystem is not ZFS.
25833
25834 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25835
25836 Fix for misspelled color names defaulting to black/black (bug
25837 reported by Doug Nazar)
25838
25839 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25840 status to prototype.
25841 * normal/color.c (grub_parse_color_name_pair): Return failure
25842 status.
25843 (grub_env_write_color_normal): Ignore bad color names.
25844 (grub_env_write_color_highlight): Likewise.
25845 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25846
25847 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25848
25849 "shift" command support to GRUB script.
25850
25851 * include/grub/script_sh.h (grub_script_shift): New prototype.
25852 * script/execute.c (grub_script_shift): New function.
25853 * script/main.c (grub_script_init): Register shift command.
25854 (grub_script_fini): Unregister shift command.
25855 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25856
25857 * tests/grub_script_shift.in: New testcase.
25858 * conf/tests.rmk: Rules for new testcase.
25859
25860 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25861
25862 "continue" command support to GRUB script.
25863
25864 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25865 (grub_script_break): Continue support.
25866 * script/main.c (grub_script_init): Register continue command.
25867 (grub_script_fini): Unregister continue command.
25868
25869 * tests/grub_script_continue.in: New testcase.
25870 * conf/tests.rmk: Rules for new testcase.
25871
25872 2010-08-12 BVK Chaitanya <bvk@dbook>
25873
25874 "break" command support to GRUB script.
25875
25876 * conf/common.rmk: Rule updates to grub-script-check.
25877 * include/grub/misc.h (grub_min): New function.
25878 * include/grub/script_sh.h (grub_script_init): New prototype.
25879 (grub_script_fini): New prototype.
25880 (grub_script_break): New prototype.
25881 * script/main.c (grub_script_init): New function.
25882 (grub_script_fini): New function.
25883 * script/execute.c (grub_script_break): New function.
25884 * normal/main.c: Calls to grub_script_{init,fini}.
25885 * util/grub-script-check.c (grub_script_break): New function.
25886
25887 * tests/grub_script_break.in: New testcase.
25888 * conf/tests.rmk: Rules for new test case.
25889
25890 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25891
25892 Function parameters support to GRUB script.
25893
25894 * script/yylex.l (VARIABLE): Regular expression update.
25895 * script/function.c (grub_script_function_call): Moved ...
25896 * script/execute.c (grub_script_function_call): ... to here.
25897 (grub_script_execute_arglist_to_argv): Removed.
25898 (grub_script_arglist_to_argv): New function.
25899 * script/argv.c: New file.
25900 (grub_script_argv_free): New function.
25901 (grub_script_argv_next): Likewise.
25902 (grub_script_argv_append): Likewise.
25903 (grub_script_argv_split_append): Likewise.
25904 * include/grub/script_sh.h (grub_script_argv): New struct.
25905 (grub_script_argv_free): New function.
25906 (grub_script_argv_next): Likewise.
25907 (grub_script_argv_append): Likewise.
25908 (grub_script_argv_split_append): Likewise.
25909
25910 * conf/common.rmk (normal.mod): New source script/argv.c.
25911
25912 * tests/grub_script_echo1.in: More tests.
25913 * tests/grub_script_vars1.in: Likewise.
25914 * tests/grub_script_functions.in: New test case.
25915 * conf/tests.rmk: Rules for new testcase.
25916
25917 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25918
25919 Remove grub_script_cmdblock struct.
25920
25921 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25922 * script/parser.y: Likewise.
25923 * script/execute.c: Rename cmdblock suffix to cmdlist.
25924 * script/script.c: Likewise.
25925 * util/grub-script-check.c: Likewise.
25926
25927 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25928
25929 * .bzrignore: add grub-macho2img
25930
25931 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25932
25933 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25934
25935 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25936
25937 Remove the dump of sm712 initialisation sequence.
25938
25939 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25940 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25941 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25942 (GRUB_VGA_CR_*): Added many registers.
25943 (GRUB_VGA_SR_*): Likewise.
25944 (GRUB_VGA_GR_*): Likewise.
25945 (grub_vga_write_arx): New function.
25946 (grub_video_hw_config): New struct.
25947 (grub_vga_set_geometry): New function.
25948 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25949 GRUB_PCI_CLASS_SUBCLASS_VGA.
25950 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25951 * video/sm712.c (grub_sm712_write_reg): New function
25952 (grub_sm712_read_reg): Likewise.
25953 (grub_sm712_sr_write): Likewise.
25954 (grub_sm712_gr_write): Likewise.
25955 (grub_sm712_cr_write): Likewise.
25956 (grub_sm712_write_arx): Likewise.
25957 (grub_sm712_cr_shadow_write): Likewise.
25958 (grub_sm712_write_dda_lookup): Likewise.
25959 (grub_video_sm712_setup): Initialise the video rather then
25960 blindly replay the dump.
25961 (main) [TEST]: Add a routine to be able to compile as standalone for
25962 tests.
25963 * video/sm712_init.c (sm712_init): Removed.
25964 (sm712_sr_seq1): New array.
25965 (sm712_sr_seq2): Likewise.
25966
25967 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25968
25969 * include/grub/vga.h: Add missing grub/pci.h include.
25970
25971 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25972
25973 * util/grub-macho2img.c (main): fix typo
25974
25975 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25976
25977 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25978 (grub_vga_gr_read): Likewise.
25979 (grub_vga_cr_write): Likewise.
25980 (grub_vga_cr_read): Likewise.
25981 (grub_vga_sr_write): Likewise.
25982 (grub_vga_sr_read): Likewise.
25983 (grub_vga_palette_read): Likewise.
25984 (grub_vga_palette_write): Likewise.
25985 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
25986 (grub_sm712_sr_read): New function.
25987 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
25988 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
25989
25990 2010-08-09 Robert Millan <rmh@gnu.org>
25991
25992 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
25993 out unused variables on non-ZFS build.
25994
25995 2010-08-08 Robert Millan <rmh@gnu.org>
25996
25997 Fix path generation for sub-filesystems in ZFS.
25998
25999 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26000 missing slash.
26001
26002 2010-08-08 Robert Millan <rmh@gnu.org>
26003
26004 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26005
26006 2010-08-08 Robert Millan <rmh@gnu.org>
26007
26008 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26009 exist, issue a proper error message (rely on `ls' for translated
26010 strings).
26011
26012 2010-08-08 Robert Millan <rmh@gnu.org>
26013
26014 Fix grub-probe invocation.
26015
26016 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26017
26018 2010-08-04 Robert Millan <rmh@gnu.org>
26019
26020 * configure.ac: Remove checks for getfsstat() and getmntany().
26021 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26022 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26023 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26024 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26025 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26026 function.
26027 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26028 via find_mount_point_from_dir() and getfsstat() / getmntany().
26029
26030 2010-08-04 Robert Millan <rmh@gnu.org>
26031
26032 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26033 (grub_find_zpool_from_mount_point): Merge into ...
26034 (grub_find_zpool_from_dir): ... this.
26035 * kern/emu/misc.c: Likewise.
26036
26037 * kern/emu/misc.c
26038 (grub_make_system_path_relative_to_its_root): Replace
26039 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26040 with grub_find_zpool_from_dir().
26041 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26042
26043 2010-08-04 Robert Millan <rmh@gnu.org>
26044
26045 Support OpenSolaris in ZFS device resolution.
26046
26047 * configure.ac: Check for getmntany().
26048 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26049 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26050 support.
26051
26052 2010-08-03 Robert Millan <rmh@gnu.org>
26053
26054 Fix grub-emu build.
26055
26056 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26057 * include/grub/emu/misc.h: ... here.
26058
26059 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26060 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26061
26062 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26063 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26064 (grub_get_libzfs_handle): Move to ...
26065 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26066 (grub_get_libzfs_handle): ... here.
26067
26068 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26069
26070 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26071 as command name case.
26072
26073 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26074
26075 * disk/raid.c (insert_array): Select unique numbers for named arrays
26076 as well, for use as keys in the disk cache.
26077
26078 2010-08-01 Robert Millan <rmh@gnu.org>
26079
26080 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26081 kFreeBSD device name, except on ZFS where the filesystem label is
26082 used.
26083 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26084 `/boot/zfs/zpool.cache'.
26085 Set mountfrom kernel variable using ${kfreebsd_device}.
26086
26087 2010-08-01 Robert Millan <rmh@gnu.org>
26088
26089 Make it even harder to use uninitialized `libzfs_handle' (and
26090 make the interface a bit simpler).
26091
26092 * include/grub/util/misc.h (grub_util_init_libzfs)
26093 (libzfs_handle): Remove.
26094 (grub_get_libzfs_handle): New prototype.
26095
26096 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26097 attribute.
26098 (grub_util_init_libzfs): Remove.
26099 (grub_get_libzfs_handle): New function.
26100
26101 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26102 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26103 accessing `libzfs_handle' directly.
26104
26105 2010-08-01 Robert Millan <rmh@gnu.org>
26106
26107 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26108 (grub_find_zpool_from_mount_point): New function prototypes.
26109
26110 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26111 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26112
26113 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26114 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26115 `static' attribute.
26116
26117 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26118 finding zpool from mount point into ...
26119 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26120
26121 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26122 requested path is part of a ZFS pool, use
26123 grub_find_zpool_from_mount_point() to detect its filesystem name,
26124 and generate a path with `/fsname@path' syntax.
26125
26126 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26127
26128 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26129 (void) rather than () so that this is a proper prototype.
26130
26131 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26132
26133 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26134
26135 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26136
26137 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26138 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26139
26140 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26141
26142 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26143
26144 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26145
26146 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26147
26148 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26149
26150 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26151 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26152 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26153 disable gfxpayload.
26154 (Shell-like scripting): Add real content.
26155 (Serial terminal): Suggest `terminal_input serial; terminal_output
26156 serial' rather than putting the two commands on separate lines,
26157 since console input will be inoperative after the first command.
26158 (menuentry): Document --class, --users, and --hotkey options.
26159 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26160 Vladimir Serbinenko).
26161
26162 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26163 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26164
26165 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26166
26167 2010-08-01 Robert Millan <rmh@gnu.org>
26168
26169 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26170 (grub_find_zpool_from_mount_point): New function prototypes.
26171
26172 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26173 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26174
26175 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26176 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26177 `static' attribute.
26178
26179 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26180 finding zpool from mount point into ...
26181 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26182
26183 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26184 requested path is part of a ZFS pool, use
26185 grub_find_zpool_from_mount_point() to detect its filesystem name,
26186 and generate a path with `/fsname@path' syntax.
26187
26188 2010-08-01 Robert Millan <rmh@gnu.org>
26189
26190 Prevent accidental use of uninitialized libzfs_handle.
26191
26192 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26193 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26194 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26195
26196 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26197
26198 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26199 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26200
26201 2010-08-01 Robert Millan <rmh@gnu.org>
26202
26203 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26204
26205 2010-07-31 Robert Millan <rmh@gnu.org>
26206
26207 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26208
26209 2010-07-31 Robert Millan <rmh@gnu.org>
26210
26211 * kern/emu/misc.c: Add missing license header.
26212
26213 2010-07-31 Robert Millan <rmh@gnu.org>
26214
26215 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26216
26217 * include/grub/util/libnvpair.h: Include `<config.h>'.
26218 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26219 declaring libnvpair prototypes ourselves.
26220 * include/grub/util/libzfs.h: Include `<config.h>'.
26221 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26222 declaring libzfs prototypes ourselves.
26223
26224 (libzfs_handle): Moved to ...
26225 * include/grub/util/misc.h (libzfs_handle): ... here.
26226 Include `<grub/util/libzfs.h>'.
26227
26228 2010-07-30 Robert Millan <rmh@gnu.org>
26229
26230 * include/grub/emu/misc.h: Add missing license header.
26231
26232 2010-07-30 Robert Millan <rmh@gnu.org>
26233
26234 Enable `grub-probe -t device' resolution on ZFS.
26235
26236 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26237 * include/grub/util/libnvpair.h: New file.
26238 * include/grub/util/libzfs.h: New file.
26239
26240 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26241 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26242 `<grub/util/libnvpair.h>'.
26243 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26244
26245 (find_mount_point_from_dir): New static function.
26246 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26247 function.
26248 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26249 find_root_device_from_libzfs() before ressorting to find_root_device().
26250
26251 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26252 prototype.
26253 * util/misc.c: Include `<grub/util/libzfs.h>'.
26254 (grub_util_init_libzfs): New function.
26255 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26256 [HAVE_LIBZFS] (fini_libzfs): New static function.
26257 (grub_util_init_libzfs): New function.
26258 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26259
26260 2010-07-30 Robert Millan <rmh@gnu.org>
26261
26262 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26263 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26264 `warn_unused_result' attribute.
26265 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26266 (grub_xasprintf, grub_xvasprintf): Likewise.
26267 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26268
26269 2010-07-29 Robert Millan <rmh@gnu.org>
26270
26271 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26272 (probe): Handle `PRINT_FS_LABEL'.
26273 (main): Handle `-t fs_label'.
26274
26275 2010-07-29 Robert Millan <rmh@gnu.org>
26276
26277 * configure.ac: Remove grub-mkisofs checks.
26278
26279 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26280
26281 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26282 Reported by: Lennart Sorensen.
26283
26284 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26285
26286 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26287 prior to terminal_input/terminal_output separation. It's been over 1.5
26288 years and those versions weren't widely deployed.
26289
26290 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26291
26292 * disk/raid.c (insert_array): Don't count named arrays when looking
26293 for unused array numbers.
26294 Reported and tested by: Michael Guntsche.
26295
26296 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26297
26298 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26299 implementation of this so that grub-emu links again, with a note
26300 that this should support hotplugging in the future.
26301
26302 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26303
26304 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26305
26306 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26307
26308 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26309 handle on failure.
26310 (grub_loopback_close): Remove empty function.
26311 (grub_loopback_dev): Remove close method.
26312
26313 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26314
26315 Disable EFI cursor when the EFI console becomes inactive.
26316
26317 * term/efi/console.c (grub_efi_console_init): New function.
26318 (grub_efi_console_fini): New function.
26319 (grub_console_term_output): Register init and fini methods.
26320
26321 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26322
26323 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26324 sh script.
26325
26326 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26327
26328 * disk/loopback.c (grub_loopback): Replace filename with file.
26329 (delete_loopback): Handle new semantics.
26330 (grub_cmd_loopback): Likewise.
26331 (grub_loopback_iterate): Likewise.
26332 (grub_loopback_close): Likewise.
26333
26334 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26335
26336 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26337 with -p "".
26338 Reported by: Tito Keitel.
26339
26340 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26341
26342 * docs/grub.texi (Naming convention): Document new naming convention.
26343
26344 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26345 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26346
26347 Generate device.map in something closer to the old ordering.
26348
26349 * util/deviceiter.c (struct device): New declaration.
26350 (compare_file_names): Rename to ...
26351 (compare_devices): ... this. Sort by kernel name in preference to
26352 the stable by-id name, but keep the latter as a fallback comparison.
26353 Update header comment.
26354 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26355 of `struct device' rather than of plain file names.
26356
26357 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26358
26359 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26360 on i386.
26361
26362 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26363
26364 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26365 hardcoding size.
26366 (setv1table): Likewise.
26367
26368 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26369
26370 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26371 removing the homehost if present.
26372 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26373 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26374 removing the homehost if present.
26375 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26376 if possible.
26377 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26378
26379 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26380 parameter. Set its pointer target to 0.
26381 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26382 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26383 `data_offset' value from the superblock for 1.x metadata.
26384 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26385 data on the device.
26386 (insert_array): Record the start sector of data on the device.
26387 (grub_raid_register): Pass start_sector parameters to
26388 grub_raid_list->detect and insert_array.
26389 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26390 member.
26391 (struct grub_raid): Add start_sector parameter to `detect'.
26392
26393 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26394 __attribute__ ((packed)), leaving a comment.
26395 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26396 (grub_mdraid_detect_09): ... here and ...
26397 (grub_mdraid_detect_1x): ... here.
26398
26399 2010-07-20 Peter Henn <peter.henn@web.de>
26400
26401 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26402 chunk size and disk size, which are already given as sector counts
26403 as distinct from the 0.90 units. Fetch the correct device number
26404 from the role table instead of using the table index.
26405
26406 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26407
26408 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26409 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26410 (WriteMostly1): New macro.
26411 Set array->name to NULL for metadata format 0.90. Add support for
26412 metadata 1.x. Fix some comments.
26413 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26414 few comments.
26415 * util/getroot.c (grub_util_get_grub_dev): Add support for
26416 /dev/md/name style devices.
26417
26418 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26419
26420 * .bzrignore: Ignore 20_linux_xen.
26421
26422 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26423
26424 * util/import_unicode.py: Remove unnecessary imports.
26425
26426 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26427
26428 Hotplugging and USB hub support.
26429
26430 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26431 (grub_ohci): Likewise.
26432 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26433 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26434 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26435 (GRUB_OHCI_CTRL_EDS): Likewise.
26436 (GRUB_OHCI_BULK_EDS): Likewise.
26437 (GRUB_OHCI_TDS): Likewise.
26438 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26439 (grub_ohci_ed_phys2virt): New function.
26440 (grub_ohci_virt_to_phys): Likewise.
26441 (grub_ohci_td_phys2virt): Likewise.
26442 (grub_ohci_td_virt2phys): Likewise.
26443 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26444 attachment.
26445 (grub_ohci_find_ed): New function.
26446 (grub_ohci_alloc_td): Likewise.
26447 (grub_ohci_free_td): Likewise.
26448 (grub_ohci_free_tds): Likewise.
26449 (grub_ohci_transfer): Use previously allocated memory.
26450 (grub_ohci_portstatus): Reset status changed bit.
26451 (grub_ohci_detect_dev): Supply status changed.
26452 (grub_ohci_fini_hw): Free memory.
26453 (grub_ohci_restore_hw): Reallocate memory.
26454 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26455 Reset status change.
26456 (grub_uhci_detect_dev): Supply status_change.
26457 * bus/usb/usb.c (attach_hooks): New var.
26458 (grub_usb_device_attach): New function.
26459 (grub_usb_register_attach_hook_class): Likewise.
26460 (grub_usb_unregister_attach_hook_class): Likewise.
26461 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26462 (grub_usb_add_hub): Reset connection changed bit.
26463 (attach_root_port): New function.
26464 (grub_usb_root_hub): Likewise.
26465 (poll_nonroot_hub): Likewise.
26466 (grub_usb_poll_devices): Likewise.
26467 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26468 * disk/usbms.c (grub_usbms_open): Use device hooks.
26469 (grub_usbms_iterate) :Poll devices.
26470 (grub_usbms_finddevs): Split into ...
26471 (grub_usbms_attach): ... this ...
26472 (grub_usbms_attach): ... and this.
26473 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26474 in detect_dev.
26475 (grub_usb_interface): New fields attached and detach_hook.
26476 (grub_usb_attach_hook_class): New type.
26477 (grub_usb_attach_desc): New struct.
26478 (grub_usb_register_attach_hook_class): New function.
26479 (grub_usb_unregister_attach_hook_class): Likewise.
26480 (grub_usb_poll_devices): Likewise.
26481 (grub_usb_device_attach): Likewise.
26482 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26483 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26484
26485 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26486
26487 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26488 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26489 delta determination style. Works with most NetBSD partitions too.
26490
26491 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26492
26493 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26494 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26495
26496 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26497
26498 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26499
26500 2010-07-14 Anton Blanchard <anton@samba.org>
26501
26502 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26503 ET_DYN files.
26504
26505 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26506
26507 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26508
26509 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26510
26511 * kern/partition.c (grub_partition_check_containment): New function to
26512 check that a partition is physically contained in a parent. Since
26513 offsets are relative (and non-negative), this reduces to checking that
26514 the partition ends before its parent.
26515 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26516 (grub_partition_iterate): Likewise.
26517 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26518 comments.
26519 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26520 partitions that start before their parent, and add debug printfs.
26521
26522 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26523
26524 * Makefile.in (.SUFFIX): Spell correctly, as ...
26525 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26526 bare module name without `.mod', e.g. `test') tried to invoke a
26527 Modula-2 compiler.
26528
26529 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26530
26531 * README: Point to the Info manual.
26532
26533 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26534
26535 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26536 2nd superblock position from partition size.
26537
26538 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26539
26540 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26541 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26542 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26543 outputs.
26544
26545 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26546
26547 Restructure SCSI .id handling.
26548 Reported and tested by: Aleš Nesrsta.
26549
26550 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26551 (grub_atapi_dev): Changed .name to "ata". New field .id.
26552 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26553 (grub_usbms_dev): New field .id.
26554 * disk/scsi.c (grub_scsi_iterate): Generate name.
26555 (grub_scsi_open): Parse name.
26556 * include/grub/scsi.h (grub_make_scsi_id): New function.
26557 (grub_scsi_dev): Change iterate and open to number instead of naming
26558 busses. All users updated.
26559 (grub_scsi): Remove name. Add .bus.
26560
26561 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26562
26563 * commands/help.c (grub_cmd_help): Fix a typo.
26564
26565 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26566
26567 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26568 Reported and tested by: Colin Watson.
26569
26570 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26571
26572 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26573 in this context.
26574
26575 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26576
26577 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26578
26579 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26580
26581 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26582 indentation.
26583
26584 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26585
26586 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26587 and disk/raid6_recover.c.
26588 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26589 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26590
26591 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26592
26593 * term/gfxterm.c (repaint_schedulded): Rename to ...
26594 (repaint_scheduled): ... this. Update all callers.
26595 (repaint_was_schedulded): Rename to ...
26596 (repaint_was_scheduled): ... this. Update all callers.
26597
26598 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26599
26600 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26601 which we expect to be handled by upper layers.
26602
26603 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26604
26605 * bus/usb/usbhub.c: #include time.h header.
26606
26607 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26608
26609 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26610 entry_name also for entries without stat blocks (e.g. ".."); fixes
26611 corruption of the first entry in a directory.
26612
26613 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26614
26615 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26616 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26617 doesn't work otherwise.
26618
26619 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26620
26621 * docs/grub.texi (Features): Update list of supported file systems.
26622 (GNU/Linux): Update for GRUB 2.
26623 (Serial terminal): Remove mention of --disable-serial, which was a
26624 GRUB Legacy configure option. Update instructions to use
26625 `terminal_input' and `terminal_output' rather than `terminal'.
26626 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26627 configuration' and `Installing GRUB using grub-install'.
26628 (Menu entry editor): Update for GRUB 2.
26629 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26630 Document new -a, -u, and -v options.
26631 (initrd): New section.
26632 (initrd16): New section.
26633 (linux): New section.
26634 (linux16): New section.
26635 (search): The `var' argument to `--set' is optional.
26636 (GRUB only offers a rescue shell): Go into a little more detail on
26637 drive ordering.
26638
26639 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26640
26641 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26642
26643 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26644
26645 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26646 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26647
26648 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26649
26650 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26651 install_prefix, in line with install_dos_part and install_bsd_part.
26652 Add new prefix variable, which is copied to install_prefix after
26653 comparing core.img in memory with the one read from disk in the
26654 no-embedding case, and use that rather than overwriting
26655 install_prefix immediately when installing to a partition.
26656 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26657 Bicakci.
26658
26659 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26660
26661 * configure.ac: Avoid == in test command, it's not portable.
26662 * util/grub.d/30_os-prober.in: Likewise.
26663
26664 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26665
26666 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26667
26668 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26669
26670 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26671 multiple (top-level) partmaps.
26672
26673 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26674
26675 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26676 Reported by: Tino Keitel.
26677
26678 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26679
26680 Bidi and diacritics support.
26681
26682 * Makefile.in (widthspec.bin): New target.
26683 (widthspec.h): Likewise.
26684 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26685 * autogen.sh: Generate unidata.c.
26686 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26687 * commands/ls.c (grub_ls_list_devices): Likewise.
26688 (grub_ls_list_files): Likewise.
26689 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26690 (grub_mini_cmd_lsmod): Likewise.
26691 * commands/read.c: Likewise.
26692 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26693 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26694 * lib/arg.c (grub_arg_show_help): Likewise.
26695 * lib/crypto.c (grub_password_get): Likewise.
26696 * normal/auth.c (grub_username_get): Likewise.
26697 * normal/misc.c (grub_normal_print_device_info): Likewise.
26698 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26699 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26700 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26701 (normal/charset.c_DEPENDENCIES): New variable.
26702 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26703 (pkglib_MODULES): Remove charset.mod.
26704 (charset_mod_SOURCES): Removed.
26705 (charset_mod_CFLAGS): Likewise.
26706 (charset_mod_LDFLAGS): Likewise.
26707 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26708 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26709 and term/tparm.c.
26710 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26711 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26712 (kernel_img_HEADERS): Add terminfo.h.
26713 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26714 Fill ->font. Reverse ascii bitmaps.
26715 (grub_font_get_xheight): New function.
26716 * font/font.c (grub_font_get_string_width): Moved from here ...
26717 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26718 * font/font.c (grub_font_draw_string): Moved from here ...
26719 * gfxmenu/font.c (grub_font_draw_string): ... here.
26720 * font/font.c (grub_font_dup_glyph): New function.
26721 (grub_font_blit_glyph): Likewise.
26722 (grub_font_blit_glyph_mirror): Likewise.
26723 (blit_comb): Likewise.
26724 (grub_font_construct_dry_run): Likewise.
26725 (grub_font_get_constructed_device_width): Likewise.
26726 (grub_font_construct_glyph): Likewise.
26727 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26728 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26729 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26730 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26731 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26732 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26733 (grub_font_get_xheight): New proto.
26734 (grub_font_get_constructed_device_width): Likewise.
26735 (grub_font_construct_glyph): Likewise.
26736 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26737 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26738 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26739 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26740 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26741 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26742 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26743 (grub_console_getcharwidth): Likewise.
26744 * include/grub/misc.h (grub_xputs): New proto.
26745 (grub_puts): Inlined.
26746 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26747 (grub_normal_get_line_counter): Removed.
26748 (grub_install_newline_hook): Likewise.
26749 (grub_normal_get_char_counter): New proto.
26750 (grub_normal_reset_more): Likewise.
26751 (grub_xputs_normal): Likewise.
26752 * include/grub/powerpc/ieee1275/console.h: Removed.
26753 * include/grub/sparc64/ieee1275/console.h: Likewise.
26754 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26755 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26756 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26757 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26758 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26759 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26760 (grub_term_input): Pass reference to self. All users updated.
26761 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26762 Pass reference to self. New fields normal_color, highlight_color and
26763 data. All users updated.
26764 (grub_putchar): Removed.
26765 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26766 (grub_unicode_estimate_width): New function.
26767 (grub_term_getcharwidth): Add defaults.
26768 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26769 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26770 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26771 (grub_cls): Remove EXPORT_FUNC.
26772 (grub_setcolorstate): Inline.
26773 (grub_newline_hook): Removed.
26774 * include/grub/terminfo.h: Rewritten. All users updated.
26775 * include/grub/unicode.h: New file.
26776 * include/grub/video.h (grub_video_signed_rect): New type.
26777 * kern/emu/console.c (grub_console_highlight_color): Removed.
26778 (grub_console_normal_color): Likewise.
26779 (grub_console_standard_color): Made static.
26780 (grub_ncurses_putchar): Remove mapping.
26781 (grub_ncurses_getcharwidth): Removed.
26782 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26783 (grub_ncurses_setcolor): Removed.
26784 (grub_ncurses_getcolor): Likewise.
26785 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26786 (grub_console_putchar): ... this.
26787 (grub_console_putchar): Handle argument difference.
26788 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26789 console_init_early and console_init_lately.
26790 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26791 * kern/misc.c (grub_puts): Removed.
26792 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26793 (grub_vsnprintf_real): Remove str = NULL support.
26794 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26795 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26796 * kern/term.c (grub_putcode): Renamed to ...
26797 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26798 (grub_putchar): Removed.
26799 (grub_xputs_dumb): New function.
26800 (grub_xputs): New variable.
26801 * lib/charset.c: Move from here ...
26802 * normal/charset.c: ... to here.
26803 (grub_ucs4_to_utf8): New function.
26804 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26805 (join_types): New variable.
26806 (unpack_join): New function.
26807 (bidi_types): New variable.
26808 (unpack_bidi): New function.
26809 (get_bidi_type): Likewise.
26810 (get_join_type): Likewise.
26811 (is_mirrored): Likewise.
26812 (grub_unicode_get_comb_type): Likewise.
26813 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26814 (is_type_after): Likewise.
26815 (grub_unicode_aglomerate_comb): Likewise.
26816 (bidi_line_wrap): Likewise.
26817 (grub_bidi_line_logical_to_visual): Likewise.
26818 (grub_bidi_logical_to_visual): Likewise.
26819 (grub_unicode_mirror_code): Likewise.
26820 (grub_unicode_shape_code): Likewise.
26821 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26822 Don't use grub_putchar.
26823 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26824 (grub_normal_reader_init): Likewise.
26825 (grub_xputs_saved): New variable.
26826 (GRUB_MOD_INIT): Set grub_xputs.
26827 (GRUB_MOD_FINI): Restore grub_xputs.
26828 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26829 (menu_init): Avoid printing gfxmenu error.
26830 (show_menu): Use grub_normal_get_char_counter.
26831 * normal/menu_entry.c (update_screen): Fix out-of-array.
26832 (complete): Avoid NULL dereferencing.
26833 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26834 * normal/menu_text.c (print_spaces): Removed.
26835 (grub_print_ucs4): Likewise.
26836 (grub_print_message_indented): Use grub_print_ucs4.
26837 (print_message): Use grub_putcode.
26838 (print_entry): Hanlde diacritics.
26839 * normal/term.c (term_state): New type.
26840 (grub_more_lines): Removed.
26841 (term_states): New variable.
26842 (grub_normal_line_counter): Renamed to ..
26843 (grub_normal_char_counter): ...this. All users updated.
26844 (grub_normal_get_line_counter): Renamed to ...
26845 (grub_normal_get_char_counter): ... this.
26846 (grub_normal_reset_more): New function.
26847 (process_newline): Removed.
26848 (print_more): New function.
26849 (grub_install_newline_hook): Removed.
26850 (map_code): New function.
26851 (grub_puts_terminal): Use grub_print_ucs4.
26852 (putglyph): New function.
26853 (putcode_real): Likewise.
26854 (grub_putcode): Use putcode_real.
26855 (get_maxwidth): New function.
26856 (get_startwidth): Likewise.
26857 (print_ucs4_terminal): Likewise.
26858 (find_term_state): Likewise.
26859 (put_glyphs_terminal): Likewise.
26860 (print_backlog): Likewise.
26861 (print_ucs4_real): Likewise.
26862 (grub_print_ucs4): Likewise.
26863 (grub_xputs_normal): Likewise.
26864 * term/efi/console.c (grub_console_putchar): Output diacritics.
26865 (grub_console_getcharwidth): Removed.
26866 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26867 * term/gfxterm.c (clear_char): Free chars.
26868 (scroll_up): Avoid leaking memory.
26869 (grub_gfxterm_putchar): Support diacritics.
26870 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26871 * term/i386/pc/console.c (grub_console_term_output): Declare as
26872 GRUB_TERM_CODE_TYPE_VGA.
26873 * term/i386/pc/vga.c (grub_vga_term): Declare as
26874 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26875 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26876 GRUB_TERM_CODE_TYPE_VGA.
26877 * term/i386/vga_common.c (map_char): Removed.
26878 (grub_console_putchar): Likewise.
26879 (grub_console_getcharwidth): Likewise.
26880 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26881 (colors): Reordered to match terminfo.
26882 (grub_ofconsole_normal_color): Removed.
26883 (grub_ofconsole_writeesc): Likewise.
26884 (grub_ofconsole_highlight_color): Likewise.
26885 (grub_ofconsole_getcharwidth): Likewise.
26886 (grub_ofconsole_setcolorstate): Likewise.
26887 (grub_ofconsole_setcolor): Likewise.
26888 (grub_ofconsole_getcolor): Likewise.
26889 (grub_ofconsole_readkey): Renamed to ...
26890 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26891 key.
26892 (grub_ofconsole_checkkey): Removed.
26893 (grub_ofconsole_getkey): Likewise.
26894 (grub_ofconsole_getxy): Likewise.
26895 (grub_ofconsole_gotoxy): Likewise.
26896 (grub_ofconsole_cls): Likewise.
26897 (grub_ofconsole_refresh): Likewise.
26898 (grub_ofconsole_terminfo_input): New struct.
26899 (grub_ofconsole_terminfo_output): Likewise.
26900 (grub_ofconsole_term_input): Use terminfo.
26901 (grub_ofconsole_term_output): Likewise.
26902 (grub_console_init): Split into ...
26903 (grub_console_init_early): ...this and ...
26904 (grub_console_init_lately): ...this. Use terminfo.
26905 (grub_ofconsole_putchar): Renamed to ...
26906 (put): ... this. Remove mapping.
26907 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26908 * term/serial.c: Simplify using terminfo.
26909 (xpos): Removed.
26910 (ypos): Likewise.
26911 (keep_track): Likewise.
26912 (registered): Likewise.
26913 (input_buf): Likewise.
26914 (npending): Likewise.
26915 (serial_translate_key_sequence): Likewise.
26916 (fill_input_buf): Likewise.
26917 (grub_serial_checkkey): Likewise.
26918 (grub_serial_getkey): Likewise.
26919 (grub_serial_getxy): Likewise.
26920 (grub_serial_gotoxy): Likewise.
26921 (grub_serial_putchar): Likewise.
26922 (grub_serial_cls): Likewise.
26923 (grub_serial_setcolorstate): Likewise.
26924 (grub_serial_setcursor): Likewise.
26925 (serial_hw_init): Use serial_hw_fetch.
26926 (grub_serial_terminfo_input): New variable.
26927 (grub_serial_terminfo_output): Likewise.
26928 (grub_serial_term_input): Use terminfo.
26929 (grub_serial_term_output): Likewise.
26930 * term/terminfo.c (putstr): Use put.
26931 (grub_terminfo_all_free): New function
26932 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26933 (grub_terminfo_output_register): New function.
26934 (grub_terminfo_output_unregister): Likewise.
26935 (grub_terminfo_getxy): Likewise.
26936 (grub_terminfo_readkey): Likewise.
26937 (grub_terminfo_checkkey): Likewise.
26938 (grub_terminfo_getkey): Likewise.
26939 (grub_terminfo_input_init): Likewise.
26940 (print_terminfo): Likewise.
26941 (grub_cmd_terminfo): Handle encoding.
26942 (grub_terminfo_gotoxy): Track position.
26943 (grub_terminfo_cls): Likewise.
26944 (grub_terminfo_putchar): Likewise.
26945 (grub_terminfo_setcolorstate): Handle colors
26946 (grub_terminfo_cursor_on): This ...
26947 (grub_terminfo_cursor_off): ... and this merged into ...
26948 (grub_terminfo_setcursor): ... this.
26949 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26950 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26951 * unicode/BidiMirroring.txt: Likewise.
26952 * unicode/UnicodeData.txt: Likewise.
26953 * unicode/COPYING: Likewise.
26954 * util/grub-editenv.c (grub_putchar): Removed.
26955 (grub_xputs_real): New function.
26956 (grub_xputs): New variable.
26957 * util/grub-fstest.c (grub_putchar): Removed.
26958 (grub_xputs_real): New function.
26959 (grub_xputs): New variable.
26960 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26961 (grub_xputs_real): New function.
26962 (grub_xputs): New variable.
26963 * util/grub-probe.c (grub_putchar): Removed.
26964 (grub_xputs_real): New function.
26965 (grub_xputs): New variable.
26966 * util/grub-script-check.c (grub_putchar): Removed.
26967 (grub_xputs_real): New function.
26968 (grub_xputs): New variable.
26969 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26970 (grub_xputs_real): New function.
26971 (grub_xputs): New variable.
26972 * util/import_unicode.py: New file.
26973 * util/grub-mkfont.c (ft_errmsgs): New array.
26974 (grub_glyph_info): Make bitmap a pointer.
26975 (file_formats): New type WIDTH_SPEC.
26976 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26977 (options): Add width-spec.
26978 (help): Likewise.
26979 (add_char): Renamed to ...
26980 (add_glyph): ... this.
26981 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
26982 (glyph_replace): New type.
26983 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
26984 (add_char): New function.
26985 (add_subst): Likewise.
26986 (process_cursive): Likewise.
26987 (add_font): Handle GSUB.
26988 (write_font_width_spec): New function.
26989 (main): Sort glyphs.
26990 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
26991 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
26992 * kern/term.c (grub_cls): Moved from here...
26993 * normal/term.c (grub_cls): ... here.
26994
26995 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
26996
26997 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
26998 suitable for using within the format argument of printf when
26999 converting grub_size_t.
27000 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27001 "x" to convert grub_size_t arguments.
27002
27003 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27004
27005 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27006 too long captions.
27007 (list_get_minimal_size): Take selection box into account.
27008
27009 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27010
27011 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27012 NULL font.
27013
27014 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27015
27016 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27017 devices when iterating over /dev/disk/by-id; they will be handled
27018 later if appropriate, which they aren't always (e.g. LVM).
27019
27020 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27021
27022 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27023 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27024 fails.
27025 (grub_halt): Likewise.
27026 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27027 reset-all fails.
27028 (grub_halt): Don't return, even if all of shut-down, power-off, and
27029 poweroff fail.
27030
27031 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27032
27033 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27034 arguments, not three.
27035
27036 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27037
27038 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27039 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27040 LVM-on-RAID is handled correctly.
27041
27042 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27043
27044 * docs/grub.texi (Changes from GRUB Legacy): New section.
27045 (Future): Fix typo.
27046
27047 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27048
27049 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27050 grub.d/README accidentally ends up executable for one reason or
27051 another. Ignore it.
27052
27053 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27054
27055 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27056 (gpt_partition_map_iterate): Support non-512B sectors.
27057
27058 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27059
27060 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27061 Tested by: Seth Goldberg.
27062
27063 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27064
27065 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27066 Properly align mbi.
27067 Reported by: Seth Goldberg.
27068
27069 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27070
27071 * util/grub-mkrescue.in: Avoid module duplication.
27072
27073 2010-07-01 Sean Finney <seanius@seanius.net>
27074
27075 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27076
27077 2010-07-01 Sean Finney <seanius@seanius.net>
27078
27079 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27080
27081 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 * disk/lvm.c (grub_lvm_checkvalue): New function.
27084 (grub_lvm_check_flag): Likewise.
27085
27086 2010-07-01 Robert Millan <rmh@gnu.org>
27087
27088 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27089 Support 'p' as partition separator on kernel of FreeBSD (used
27090 with GPT labels).
27091 (grub_util_biosdisk_get_grub_dev): Likewise.
27092
27093 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27094
27095 Yeeloong firmware port.
27096
27097 * boot/mips/yeeloong/fwstart.S: New file.
27098 * bus/cs5536.c (gpiodump): New const.
27099 (set_io_space): New function.
27100 (set_iod): Likewise.
27101 (set_p2d): Likewise.
27102 (grub_cs5536_init_geode): Likewise.
27103 * commands/mips/yeeloong/lsspd.c: New file.
27104 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27105 (serial_mod_SOURCES): New variable.
27106 (serial_mod_CFLAGS): Likewise.
27107 (serial_mod_LDFLAGS): Likewise.
27108 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27109 term/terminfo.c and term/tparm.c.
27110 (pkglib_IMAGES): Add fwstart.img.
27111 (fwstart_img_SOURCES): New variable.
27112 (fwstart_img_CFLAGS): Likewise.
27113 (fwstart_img_ASFLAGS): Likewise.
27114 (fwstart_img_LDFLAGS): Likewise.
27115 (fwstart_img_FORMAT): Likewise.
27116 (pkglib_MODULES): Add lsspd.mod.
27117 (lsspd_mod_SOURCES): New variable.
27118 (lsspd_mod_CFLAGS): Likewise.
27119 (lsspd_mod_LDFLAGS): Likewise.
27120 (pkglib_MODULES): Add halt.mod.
27121 (halt_mod_SOURCES): New variable.
27122 (halt_mod_CFLAGS): Likewise.
27123 (halt_mod_LDFLAGS): Likewise.
27124 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27125 (serial_mod_SOURCES): Removed.
27126 (serial_mod_CFLAGS): Likewise.
27127 (serial_mod_LDFLAGS): Likewise.
27128 * disk/ata.c (check_device): New function.
27129 (grub_ata_device_initialize): Use check_device.
27130 (grub_ata_iterate): Recheck devices.
27131 (grub_ata_open): Likewise.
27132 (grub_atapi_iterate): Likewise.
27133 (grub_atapi_open): Likewise.
27134 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27135 (GRUB_ATA_CH1_PORT1): Likewise.
27136 (GRUB_ATA_CH0_PORT2): Likewise.
27137 (GRUB_ATA_CH1_PORT2): Likewise.
27138 * include/grub/mips/loongson.h: New file.
27139 * include/grub/mips/yeeloong/ec.h: Likewise.
27140 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27141 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27142 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27143 * include/grub/misc.h (grub_halt): Declare as noreturn.
27144 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27145 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27146 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27147 (UART_ENABLE_DTRRTS): Likewise.
27148 (UART_ENABLE_MODEM): Removed.
27149 (UART_ENABLE_OUT2): New const.
27150 * include/grub/term.h (grub_term_register_input_active): New function.
27151 (grub_term_register_output_active): Likewise.
27152 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27153 argument.
27154 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27155 (init_pci): New function.
27156 (grub_machine_init): Execute platform init when firmware. Init serial.
27157 (grub_halt): Implement.
27158 (grub_exit): Likewise.
27159 (grub_reboot): Likewise.
27160 * term/serial.c (serial_hw_init): Update macros.
27161 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27162 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27163 (image_targets): New target mipsel-yeeloong-flash.
27164 (generate_image): Support IMAGE_YEELOONG_FLASH.
27165 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27166 (grub_video_sm712_setup): Init card.
27167 (grub_video_sm712_set_palette): Removed.
27168 * video/sm712_init.c: New file.
27169
27170 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27171
27172 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27173 PATH when running help2man and then run it on the unadorned
27174 executable names, rather than passing $(builddir)/* paths to
27175 help2man. This avoids the build directory ending up in generated
27176 manual pages.
27177
27178 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27179
27180 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27181 to avoid accidents when debugging with 'sh -x'.
27182 * util/grub-mkrescue.in: Likewise.
27183 * util/grub.d/00_header.in: Likewise.
27184 * util/grub.d/10_hurd.in: Likewise.
27185 * util/grub.d/10_kfreebsd.in: Likewise.
27186 * util/grub.d/10_linux.in: Likewise.
27187 * util/grub.d/10_netbsd.in: Likewise.
27188 * util/grub.d/10_windows.in: Likewise.
27189 * util/grub.d/20_linux_xen.in: Likewise.
27190 * util/grub.d/30_os-prober.in: Likewise.
27191 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27192
27193 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27194
27195 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27196 last character in the buffer.
27197 Reported by: Vladimir Serbinenko.
27198
27199 2010-06-29 Robert Millan <rmh@gnu.org>
27200
27201 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27202 (Command-line and menu entry commands): Document `badram' command.
27203
27204 2010-06-28 Robert Millan <rmh@gnu.org>
27205
27206 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27207 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27208 command using ${GRUB_BADRAM} as parameter.
27209
27210 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27211
27212 * docs/grub.texi (Device map): New section.
27213 (Themes): New section (stub).
27214 * Makefile.in (docs/grub.info): The info documentation now builds
27215 without errors. Make sure it stays that way.
27216
27217 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27218
27219 Use normal parser for menu entries.
27220 Reported by: Thomas Frauendorfer
27221
27222 * include/grub/parser.h (grub_parser_execute): Don't export.
27223 * normal/menu.c (grub_menu_execute_entry_real): New function.
27224 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27225
27226 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27227
27228 * docs/grub.texi (Embedded configuration): New section (replacing
27229 old "Preset Menu" stub).
27230 (Images): New section.
27231 (configfile): Note that any menu entries defined in `file' are shown
27232 immediately.
27233
27234 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27235
27236 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27237
27238 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27239
27240 * util/grub-install.in: Add --debug-image= option.
27241
27242 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27243
27244 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27245 possible on Linux.
27246
27247 * util/deviceiter.c (check_device): Rename to ...
27248 (check_device_readable_unique): ... this. Update all callers.
27249 Maintain and check a list of which devices (by canonicalized name)
27250 have already been seen.
27251 (clear_seen_devices): New function.
27252 (compare_file_names) [__linux__]: New function.
27253 (grub_util_iterate_devices): Clear the list of seen devices on exit
27254 and (just in case) on entry.
27255 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27256 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27257 seen-devices list, superseded by general code in check_device.
27258
27259 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27260
27261 * commands/cat.c (options): New variable.
27262 (grub_cmd_cat): Parse options. If the --dos option is given, print
27263 DOS-style "\r\n" line endings as simple newlines (Debian bug
27264 #586358).
27265 (GRUB_MOD_INIT): Use extcmd.
27266 (GRUB_MOD_FINI): Likewise.
27267 * docs/grub.texi (cat): Document --dos.
27268
27269 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27270
27271 XEN with Linux grub-mkconfig support.
27272
27273 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27274 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27275 GRUB_CMDLINE_XEN_DEFAULT.
27276 * util/grub.d/20_linux_xen.in: New file.
27277
27278 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27279
27280 Initialise VGA video on qemu ourselves.
27281
27282 * boot/i386/qemu/boot.S: Don't call 0xc000.
27283 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27284 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27285 (kernel_img_HEADERS): Add pci.h.
27286 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27287 * configure.ac: Force unifont on qemu and yeeloong.
27288 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27289 (grub_vga_palette_write): Use correct register.
27290 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27291 Call grub_qemu_init_cirrus.
27292 * kern/i386/qemu/init.c: New file.
27293 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27294
27295 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27296
27297 2010-06-26 Pavel Roskin <proski@gnu.org>
27298
27299 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27300 13.
27301
27302 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27303
27304 * docs/grub.texi (Simple configuration): Explain that
27305 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27306 set to `true' to disable their respective recovery entries, not
27307 merely set.
27308
27309 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27310
27311 Make the `source' command slightly faster.
27312
27313 * normal/main.c (grub_normal_execute): Don't re-read list files when
27314 nested.
27315
27316 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27317
27318 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27319 field position and mask size to red fields from mode_info, not
27320 green.
27321 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27322 Remove redundant tag->common.framebuffer_type assignment.
27323 Reported by: Seth Goldberg.
27324
27325 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27326
27327 Sync up other versions of the Linux loader with Robert Millan's
27328 change of 2010-01-09, "Make loader output a bit more user-friendly".
27329
27330 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27331 grub_dprintf().
27332 (grub_cmd_linux): Likewise.
27333 (grub_cmd_initrd): Likewise.
27334 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27335 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27336
27337 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27338
27339 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27340 larger than MEMORY_MAP_SIZE.
27341
27342 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27343
27344 Fix parallel build.
27345
27346 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27347 dependency.
27348 * script/parser.y: #include grub_script.tab.h header.
27349
27350 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27351
27352 Support >3GiB and <16MiB RAM in i386-qemu.
27353
27354 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27355 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27356 (grub_lower_mem): Removed.
27357 (grub_upper_mem): Likewise.
27358 (mem_size): Made static.
27359 (above_4g): New variable.
27360 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27361 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27362 support.
27363
27364 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27365
27366 Cirrus 5446 and Bochs video cards support.
27367
27368 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27369 video_bochs.mod
27370 (video_cirrus_mod_SOURCES): New variable.
27371 (video_cirrus_mod_CFLAGS): Likewise.
27372 (video_cirrus_mod_LDFLAGS): Likewise.
27373 (video_bochs_mod_SOURCES): Likewise.
27374 (video_bochs_mod_CFLAGS): Likewise.
27375 (video_bochs_mod_LDFLAGS): Likewise.
27376 * include/grub/vga.h: New file.
27377 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27378 (grub_video_fb_set_page_t): New type.
27379 (grub_video_fb_setup): New prototype.
27380 (grub_video_fb_swap_buffers): Likewise.
27381 (grub_video_fb_get_info_and_fini): Likewise.
27382 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27383 (CRTC_DATA_PORT): Likewise.
27384 (CRTC_CURSOR): Likewise.
27385 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27386 (CRTC_CURSOR_ADDR_LOW): Likewise.
27387 (CRTC_CURSOR_DISABLE): Likewise.
27388 (update_cursor): Use grub_vga_cr_write.
27389 (grub_vga_text_setcursor): Likewise.
27390 * video/bochs.c: New file.
27391 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27392 (palette): Likewise.
27393 (palette_size): Likewise.
27394 (framebuffer): New variable.
27395 (grub_video_fb_init): Use 'framebuffer'.
27396 (grub_video_fb_fini): Likewise.
27397 (grub_video_fb_get_info): Likewise.
27398 (grub_video_fb_get_palette): Likewise.
27399 (grub_video_fb_set_palette): Likewise.
27400 (grub_video_fb_set_viewport): Likewise.
27401 (grub_video_fb_get_viewport): Likewise.
27402 (grub_video_fb_map_color): Likewise.
27403 (grub_video_fb_map_rgb): Likewise.
27404 (grub_video_fb_map_rgba): Likewise.
27405 (grub_video_fb_unmap_color): Likewise.
27406 (grub_video_fb_unmap_color_int): Likewise.
27407 (grub_video_fb_fill_rect): Likewise.
27408 (grub_video_fb_blit_bitmap): Likewise.
27409 (grub_video_fb_blit_render_target): Likewise.
27410 (grub_video_fb_scroll): Likewise.
27411 (grub_video_fb_create_render_target): Likewise.
27412 (grub_video_fb_doublebuf_blit_init): Likewise.
27413 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27414 (doublebuf_pageflipping_update_screen): New function.
27415 (doublebuf_pageflipping_init): Likewise.
27416 (grub_video_fb_setup): Likewise.
27417 (grub_video_fb_swap_buffers): Likewise.
27418 (grub_video_fb_get_info_and_fini): Likewise.
27419 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27420 All users updated.
27421 (doublebuf_pageflipping_commit): Restructured into ...
27422 (doublebuf_pageflipping_set_page): ... this.
27423 (doublebuf_pageflipping_update_screen): Removed.
27424 (doublebuf_pageflipping_init): Likewise.
27425 (double_buffering_init): Likewise.
27426 (grub_video_vbe_setup): Use grub_video_fb_setup.
27427 (grub_video_vbe_swap_buffers): Removed.
27428 (grub_video_vbe_set_active_render_target): Likewise.
27429 (grub_video_vbe_get_active_render_target): Likewise.
27430 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27431 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27432 grub_video_fb_set_active_render_target and
27433 grub_video_fb_get_active_render_target.
27434 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27435 (SEQUENCER_DATA_PORT): Likewise.
27436 (MAP_MASK_REGISTER): Likewise.
27437 (CRTC_ADDR_PORT): Likewise.
27438 (CRTC_DATA_PORT): Likewise.
27439 (START_ADDR_HIGH_REGISTER): Likewise.
27440 (START_ADDR_LOW_REGISTER): Likewise.
27441 (GRAPHICS_ADDR_PORT): Likewise.
27442 (GRAPHICS_DATA_PORT): Likewise.
27443 (READ_MAP_REGISTER): Likewise.
27444 (INPUT_STATUS1_REGISTER): Likewise.
27445 (INPUT_STATUS1_VERTR_BIT): Likewise.
27446 (get_map_mask): Use grub_vga_sr_read.
27447 (set_map_mask): Use grub_vga_sr_write.
27448 (set_read_map): Use grub_vga_gr_write.
27449 (set_start_address): Use grub_vga_cr_write.
27450 * video/sm712.c (framebuffer): Remove leftover fields.
27451
27452 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27453
27454 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27455 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27456 instead. Replace the gfxterm backend check with a check that
27457 ${GRUB_PREFIX}/video.lst is non-empty.
27458 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27459 again.
27460 (load_video): New generated function. Call it before loading
27461 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27462 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27463 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27464 * docs/grub.texi (Simple configuration): Document
27465 GRUB_VIDEO_BACKEND.
27466
27467 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27468
27469 Use video functions in linux and xnu loaders.
27470
27471 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27472 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27473 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27474 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27475 loader/i386/pc/linux.c.
27476 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27477 (find_line_len): Removed.
27478 (find_framebuf): Likewise.
27479 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27480 * loader/i386/efi/xnu.c: Removed.
27481 * loader/i386/pc/xnu.c: Moved from here...
27482 * loader/i386/xnu.c: ...here.
27483
27484 Enable priorities in video drivers.
27485
27486 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27487 (grub_video_adapter): New field prio.
27488 (grub_video_register): Respect prio when inserting.
27489 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27490 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27491 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27492 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27493 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27494 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27495 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27496
27497 Fix SDL driver ID.
27498
27499 * include/grub/video.h (grub_video_driver_id_t): New value
27500 GRUB_VIDEO_DRIVER_SDL.
27501 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27502
27503 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27504
27505 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27506 argument to printf.
27507 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27508
27509 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27510
27511 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27512 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27513
27514 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27515
27516 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27517 directly, and recommend grub-install instead.
27518 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27519
27520 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27521
27522 Fix i386-pc prefix handling with nested partitions (Debian bug
27523 #585068). Note that the case where the core image is booted using
27524 multiboot and relocated from its original location still requires
27525 more work.
27526
27527 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27528 with "(,", fill the boot drive in between those two characters, but
27529 expect that a full partition specification including partition map
27530 names will follow.
27531 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27532 specified, write a prefix without the drive name but including a
27533 full partition specification.
27534
27535 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27536
27537 * util/grub-mkconfig.in: Ignore non-option arguments, for
27538 compatibility with older versions (before 2010-06-12) which did the
27539 same. In particular, this makes it easier to ship an update-grub
27540 wrapper which is compatible with that used with GRUB Legacy (Debian
27541 bug #586056).
27542
27543 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27544
27545 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27546 for manual page generation.
27547
27548 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27549
27550 * po/POTFILES: Remove leftover commands/handler.c.
27551
27552 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27553
27554 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27555 left this script non-functional.
27556
27557 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27558
27559 * docs/man/grub-emu.h2m: New file.
27560
27561 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27562
27563 * docs/grub.texi (Commands): Document reduced command set in rescue
27564 mode.
27565 (cpuid): New section.
27566
27567 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27568
27569 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27570 new partition naming style.
27571 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27572
27573 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27574
27575 Add "-o grub.iso" like cmdline options support.
27576
27577 * util/grub-install.in: Improve cmdline option parsing.
27578 * util/grub-mkconfig.in: Likewise.
27579 * util/grub-mkrescue.in: Likewise.
27580 * util/grub-reboot.in: Likewise.
27581 * util/grub-set-default.in: Likewise.
27582 * util/i386/efi/grub-install.in: Likewise.
27583 * util/ieee1275/grub-install.in: Likewise.
27584 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27585
27586 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27587
27588 * .bzrignore: Ignore 41_custom.
27589
27590 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27591
27592 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27593
27594 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27595
27596 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27597 prototype declarations.
27598
27599 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27600 generating fs, partmap, and video lists.
27601 * include/grub/fs.h (grub_fs_register): Omit prototype if
27602 GRUB_LST_GENERATOR is defined.
27603 * include/grub/partition.h (grub_partition_map_register): Likewise.
27604 * include/grub/video.h (grub_video_register): Likewise.
27605
27606 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27607
27608 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27609
27610 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27611
27612 * util/grub-mkrescue.in: Support --xorriso argument.
27613
27614 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27615
27616 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27617 Suggested by: Thomas Schmitt.
27618
27619 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27620
27621 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27622 Suggested by: Thomas Schmitt.
27623
27624 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27625
27626 custom.cfg support.
27627
27628 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27629 * util/grub.d/41_custom.in: New file.
27630
27631 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27632
27633 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27634 been merged back into normal.
27635
27636 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27637
27638 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27639 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27640
27641 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27642
27643 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27644 when generating manual pages.
27645 * docs/man/grub-bin2h.h2m: New file.
27646 * docs/man/grub-editenv.h2m: New file.
27647 * docs/man/grub-fstest.h2m: New file.
27648 * docs/man/grub-install.h2m: New file.
27649 * docs/man/grub-macho2img.h2m: New file.
27650 * docs/man/grub-mkconfig.h2m: New file.
27651 * docs/man/grub-mkdevicemap.h2m: New file.
27652 * docs/man/grub-mkfont.h2m: New file.
27653 * docs/man/grub-mkimage.h2m: New file.
27654 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27655 * docs/man/grub-mkrelpath.h2m: New file.
27656 * docs/man/grub-mkrescue.h2m: New file.
27657 * docs/man/grub-ofpathname.h2m: New file.
27658 * docs/man/grub-pe2elf.h2m: New file.
27659 * docs/man/grub-probe.h2m: New file.
27660 * docs/man/grub-reboot.h2m: New file.
27661 * docs/man/grub-script-check.h2m: New file.
27662 * docs/man/grub-set-default.h2m: New file.
27663 * docs/man/grub-setup.h2m: New file.
27664
27665 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27666
27667 Use FOR_* macros instead of *_iterate whenever possible.
27668
27669 * commands/handler.c: Removed.
27670 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27671 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27672 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27673 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27674 (grub_probe_SOURCES): Remove kern/parser.c.
27675 (util/grub-script-check.c_DEPENDENCIES): Removed.
27676 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27677 and grub_script_check_init.c.
27678 (grub_script_check_init.lst): Removed.
27679 (grub_script_check_init.h): Likewise.
27680 (grub_script_check_init.c): Likewise.
27681 (pkglib_MODULES): Remove handler.mod and sh.mod.
27682 (handler_mod_SOURCES): Removed.
27683 (handler_mod_CFLAGS): Likewise.
27684 (handler_mod_LDFLAGS): Likewise.
27685 (normal_mod_SOURCES): Remove normal/handler.c.
27686 Add script/main.c, script/script.c, script/execute.c,
27687 script/function.c, script/lexer.c, grub_script.tab.c
27688 and grub_script.yy.c.
27689 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27690 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27691 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27692 (grub_setup_SOURCES): Remove kern/parser.c.
27693 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27694 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27695 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27696 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27697 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27698 (grub_setup_SOURCES): Remove kern/parser.c.
27699 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27700 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27701 * include/grub/command.h (grub_command_iterate): Removed.
27702 (FOR_COMMANDS): New macro.
27703 * include/grub/dl.h (grub_dl): New member next.
27704 (grub_dl_iterate): Removed.
27705 (grub_dl_head): New variable declaration.
27706 (FOR_DL_MODULES): New macro.
27707 * include/grub/fs.h: Include list.h.
27708 (grub_fs): Make next first element.
27709 (grub_fs_list): New variable declaration.
27710 (grub_fs_register): Make inline.
27711 (grub_fs_unregister): Likewise.
27712 (grub_fs_iterate): Removed.
27713 (FOR_FILESYSTEMS): New macro.
27714 * include/grub/handler.h: Removed.
27715 * include/grub/list.h (grub_list_hook_t): Removed.
27716 (grub_list_test_t): Likewise.
27717 (grub_list_pop): Likewise.
27718 (grub_list_iterate): Likewise.
27719 (grub_list_insert): Likewise.
27720 (FOR_LIST_ELEMENTS): New macro.
27721 * include/grub/parser.h (grub_parser_class): Removed.
27722 (grub_parser_register): Likewise.
27723 (grub_parser_unregister): Likewise.
27724 (grub_parser_get_current): Likewise.
27725 (grub_parser_set_current): Likewise.
27726 (grub_register_rescue_parser): Likewise.
27727 (grub_rescue_parse_line): New function.
27728 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27729 * include/grub/script_sh.h (grub_script_function_list): New variable
27730 declaration.
27731 (FOR_SCRIPT_FUNCTIONS): New macro.
27732 (grub_script_function_iterate): Removed.
27733 (grub_normal_parse_line): New prototype.
27734 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27735 (FOR_DISABLED_TERM_INPUTS): Likewise.
27736 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27737 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27738 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27739 element.
27740 (grub_video_register): Inline.
27741 (grub_video_unregister): Likewise.
27742 (grub_video_adapter_list): New variable declaration.
27743 (grub_video_iterate): Removed.
27744 (FOR_VIDEO_ADAPTERS): New macro.
27745 * kern/dl.c (grub_dl_list): Removed. All users updated.
27746 (grub_dl_iterate): Removed.
27747 * kern/fs.c (grub_fs_list): Make global.
27748 (grub_fs_register): Removed.
27749 (grub_fs_unregister): Likewise.
27750 (grub_fs_iterate): Likewise.
27751 * kern/handler.c: Removed.
27752 * kern/list.c (grub_list_pop): Removed.
27753 (grub_list_iterate): Likewise.
27754 (grub_list_insert): Likewise.
27755 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27756 (grub_prio_list_insert): Don't use grub_list_insert.
27757 * kern/main.c (grub_register_rescue_parser): Don't call
27758 grub_register_rescue_parser.
27759 * kern/parser.c (grub_parser_class): Removed.
27760 (grub_parser_execute): Use grub_rescue_parse_line.
27761 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27762 (grub_rescue_parser): Removed.
27763 (grub_register_rescue_parser): Likewise.
27764 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27765 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27766 (grub_auth_check_authentication): Likewise.
27767 * normal/completion.c (iterate_command): Removed.
27768 (grub_normal_do_completion): Use FOR_COMMANDS.
27769 * normal/handler.c: Removed.
27770 * normal/main.c (read_config_file): Remove parser changing.
27771 (grub_normal_execute): Don't call read_handler_list.
27772 (grub_normal_read_line_real): Statically allocate prompt.
27773 (grub_cmdline_run): Use grub_normal_parse_line.
27774 (GRUB_MOD_FINI): Don't call free_handler_list.
27775 * normal/menu_entry.c (run): Likewise.
27776 * script/function.c (grub_script_function_list): Make global.
27777 (grub_script_function_iterate): Removed.
27778 * script/main.c (grub_normal_parse_line): Make global.
27779 (grub_sh_parser): Removed.
27780 (GRUB_MOD_INIT): Likewise.
27781 (GRUB_MOD_FINI): Likewise.
27782 * tests/lib/functional_test.c (grub_functional_test): Use
27783 FOR_LIST_ELEMENTS.
27784 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27785 (grub_test_run): Use FOR_LIST_ELEMENTS.
27786 * tests/lib/unit_test.c (main): Likewise.
27787 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27788 grub_list_pop.
27789 * util/grub-fstest.c (grub_term_input_class): Removed.
27790 (grub_term_output_class): Likewise.
27791 * util/grub-probe.c: Likewise.
27792 * util/i386/pc/grub-setup.c: Likewise.
27793 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27794 * util/grub-script-check.c (main): Don't call grub_init_all and
27795 grub_fini_all.
27796 * video/video.c (grub_video_adapter_list): Make global.
27797 (grub_video_register): Removed.
27798 (grub_video_unregister): Likewise.
27799 (grub_video_iterate): Likewise.
27800
27801 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27802
27803 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27804 reported by Henrique Ferreiro.
27805
27806 2010-06-09 Robert Millan <rmh@gnu.org>
27807
27808 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27809 ones, when both are available.
27810
27811 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27812
27813 Make --version uniform and avoid hard-coded program name.
27814
27815 * util/grub-mkimage.c (main): Use `program_name' instead of
27816 hard-coded string.
27817 * util/i386/pc/grub-setup.c (main): Likewise.
27818 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27819 * util/grub-install.in: Save the basename of $0 in $self, and use the
27820 latter in informational messages. Use the same format for --version
27821 as the binary programs.
27822 * util/grub-mkconfig.in: Likewise.
27823 * util/grub-mkrescue.in: Likewise.
27824 * util/grub-reboot.in: Likewise.
27825 * util/grub-set-default.in: Likewise.
27826 * util/i386/efi/grub-install.in: Likewise.
27827 * util/ieee1275/grub-install.in: Likewise.
27828 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27829
27830 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27831
27832 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27833 embedding area. Use <= instead of == when checking for non-emptiness.
27834
27835 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27836
27837 * configure.ac: Add `.' to the directories searched for unifont.
27838
27839 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27840
27841 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27842 grub_script.yy.h.
27843
27844 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27845
27846 * docs/grub.texi (History): Expand to cover GRUB 2.
27847 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27848 commands, not `terminal'.
27849 (serial): Likewise.
27850 (terminal_input): New section.
27851 (terminal_output): New section.
27852 (uppermem): New section (stub).
27853 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27854
27855 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27856
27857 * docs/grub.texi (Security): Menu entries are unrestricted by
27858 default, not restricted to superusers as I had previously thought.
27859 Reword to account for this.
27860
27861 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27862
27863 * kern/emu/misc.c (device_mapper_null_log): New function.
27864 (grub_device_mapper_supported): New function.
27865 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27866 prototype.
27867 * kern/emu/hostdisk.c (find_partition_start): Check whether
27868 device-mapper is supported before trying to use it.
27869 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27870
27871 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27872
27873 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27874 (File name syntax): Likewise.
27875 (help): --all is no longer supported in GRUB 2. Be more precise
27876 about pattern matching.
27877
27878 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27879
27880 * normal/completion.c (grub_normal_do_completion): When completing
27881 arguments to "set" and the current word contains an equals sign,
27882 skip to after the equals sign before starting completion.
27883
27884 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27885
27886 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27887
27888 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27889
27890 * docs/grub.texi (Network): New section.
27891 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27892 `(nd)' as in GRUB Legacy.
27893 (pxe_unload): New section.
27894
27895 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27896
27897 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27898 in the rescue shell, so recommend using `set' instead. Thanks,
27899 Jordan Uggla.
27900
27901 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27902
27903 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27904 (password): New section.
27905 (password_pbkdf2): New section.
27906 (search): New section.
27907 (Security): New section.
27908 (Troubleshooting): New section, currently very incomplete.
27909 (Invoking grub-mkpasswd-pbkdf2): New section.
27910 (Internals): New section, currently very incomplete.
27911
27912 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27913
27914 * util/grub.d/00_header.in: Add some more quoting (of
27915 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27916 work again.
27917 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27918
27919 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27920
27921 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27922 to `count', fixing variable shadowing that broke the -c option.
27923
27924 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27925
27926 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27927 in case they contain spaces.
27928
27929 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27930
27931 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27932 "part_" to partmap module names, in line with grub-install.
27933 Reported by: Jindřich Makovička (Debian bug #584426).
27934
27935 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27936
27937 * util/grub-mkimage.c: Make target-related error messages slightly
27938 more helpful; -O talks about "format". Explicitly point to the use
27939 of -O if no target is specified.
27940 Reported by: Didier Raboud (Debian bug #584415).
27941
27942 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27943
27944 * INSTALL: Document several build requirements for optional features
27945 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27946
27947 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27948
27949 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27950 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27951 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27952
27953 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27954
27955 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27956 Thanks to Jordan Uggla for spotting this.
27957
27958 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27959
27960 Finally make USB usable.
27961
27962 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27963 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27964 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27965 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27966 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27967 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27968 (GRUB_OHCI_FSMPS): Likewise.
27969 (GRUB_OHCI_PERIODIC_START): Likewise.
27970 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27971 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27972 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27973 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27974 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27975 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27976 (grub_ohci_transaction): Likewise.
27977 (grub_ohci_transfer): Improve condition detection algorithms.
27978 Handle toggle property. Program the transactions correctly.
27979 Improve error handling. Various important fixups.
27980 (grub_ohci_portstatus): Put register writes in right order.
27981 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
27982 (grub_uhci_transfer): Don't show "failed" message on success.
27983 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
27984 array.
27985 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
27986 determine its size.
27987 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
27988 before initialization is completed. Use IN direction for empty
27989 transfers. Use last_trans and compute toggle.
27990 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
27991 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
27992 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
27993 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
27994 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
27995 (grub_usb_device): Increase toggle to 256.
27996 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
27997 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
27998 GRUB_USBMS_SUBCLASS_SFF8070.
27999 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28000 (grub_scsi_inquiry): New member page and alloc_length.
28001 (grub_scsi_request_sense): New structure.
28002 (grub_scsi_request_sense_data): Likewise.
28003 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28004 control.
28005 * disk/scsi.c (grub_scsi_request_sense): New function.
28006 (grub_scsi_test_unit_ready): Likewise.
28007 (grub_scsi_inquiry): Fill new fields.
28008 (grub_scsi_read_capacity): Likewise.
28009 (grub_scsi_read10): Add request sense at the end.
28010 (grub_scsi_read12): Likewise.
28011 (grub_scsi_write10): Likewise.
28012 (grub_scsi_write12): Likewise.
28013 (grub_scsi_open): Add Test Unit Ready.
28014 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28015 Support additional subclasses. Con't clear halt yet. Activate the
28016 proper config. Calculate LUNs correctly.
28017 (grub_usbms_transfer): Various important fixups.
28018
28019 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28020
28021 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28022 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28023 (grub_ohci_fini_hw): New function.
28024 (grub_ohci_restore_hw): Likewise.
28025 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28026 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28027 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28028
28029 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28030
28031 Dedicated DMA allocations.
28032
28033 * bus/pci.c (grub_memalign_dma32): New function
28034 (grub_dma_free): Likewise.
28035 (grub_dma_get_virt): Likewise.
28036 (grub_dma_get_phys): Likewise.
28037 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28038 (grub_ohci_pci_iter): Use dma32_alloc.
28039 (grub_ohci_transfer): Likewise.
28040 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28041 (grub_usb_bulk_readwrite): Likewise.
28042 * include/grub/pci.h: Add declarations.
28043
28044 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28045
28046 CS5536 support.
28047
28048 * bus/cs5536.c: New file.
28049 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28050 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28051 (cs5536_mod_SOURCES): New variable.
28052 (cs5536_mod_CFLAGS): Likewise.
28053 (cs5536_mod_LDFLAGS): Likewise.
28054 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28055 machine/pci.h.
28056 (kernel_img_SOURCES): Add bus/cs5536.c.
28057 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28058 usb_keyboard.mod.
28059 (usb_mod_SOURCES): New variable.
28060 (usb_mod_CFLAGS): New variable.
28061 (usb_mod_LDFLAGS): New variable.
28062 (usbtest_mod_SOURCES): New variable.
28063 (usbtest_mod_CFLAGS): New variable.
28064 (usbtest_mod_LDFLAGS): New variable.
28065 (ohci_mod_SOURCES): New variable.
28066 (ohci_mod_CFLAGS): New variable.
28067 (ohci_mod_LDFLAGS): New variable.
28068 (usbms_mod_SOURCES): New variable.
28069 (usbms_mod_CFLAGS): New variable.
28070 (usbms_mod_LDFLAGS): New variable.
28071 (usb_keyboard_mod_SOURCES): New variable.
28072 (usb_keyboard_mod_CFLAGS): New variable.
28073 (usb_keyboard_mod_LDFLAGS): New variable.
28074 * include/grub/smbus.h: New file.
28075 * include/grub/cs5536.h: New file.
28076
28077 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28078
28079 * util/grub.d/00_header.in: Add safety check to make sure that
28080 ${locale_dir} exists before trying to probe it.
28081
28082 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28083
28084 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28085 per the GNU Coding Standards; this is now too obscure to be worth
28086 documenting.
28087 (QNX): Likewise.
28088 (chainloader): Remove cross-reference to `SCO UnixWare'.
28089
28090 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28091
28092 * docs/grub.texi (Chain-loading): New section.
28093 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28094 adjusted for GRUB 2.
28095 (SCO UnixWare): Likewise.
28096 (QNX): Likewise.
28097 (chainloader): Add reference to `Block list syntax'.
28098 (drivemap): New section.
28099 (parttool): New section.
28100
28101 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28102
28103 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28104 the grub shell'.
28105 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28106 (Installing GRUB using grub-install): Remove reference to the grub
28107 shell; mention `grub-mkimage' and `grub-setup' instead.
28108 (Invoking grub-install): Likewise.
28109 (Interface): Add reference to `Menu entry editor'.
28110 (serial): Remove `--device' option.
28111
28112 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28113
28114 * docs/grub.texi (Configuration): New section, documenting
28115 configuration file generation using grub-mkconfig. I've left a slot
28116 for documenting the full shell scripting format but have not yet
28117 started on writing that up.
28118 (Invoking grub-mkconfig): New section.
28119
28120 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28121
28122 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28123 (GNU GRUB manual): Likewise.
28124 (General commands): Update description of `terminfo' for GRUB 2.
28125
28126 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28127
28128 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28129 (GRUB_MOD_INIT): Fix capitalisation.
28130 * docs/grub.texi (Command-line and menu entry commands): Document
28131 gettext and gptsync commands.
28132
28133 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28134
28135 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28136 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28137
28138 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28139
28140 Add btrfs probing support, currently only in the single-device case.
28141
28142 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28143 function.
28144 (grub_guess_root_device): Call find_root_device_from_mountinfo
28145 before looking in /dev.
28146
28147 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28148
28149 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28150 GRUB_DISK_SIZE_UNKNOWN.
28151 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28152
28153 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28154
28155 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28156 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28157 corrupted or not synced properly.
28158
28159 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28160
28161 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28162 Reported by: Seth Goldberg.
28163
28164 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28165
28166 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28167 addition of dest.
28168 Reported by: Seth Goldberg.
28169
28170 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28171
28172 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28173 Reported by: Seth Goldberg.
28174
28175 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28176
28177 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28178 64-bit address as signed on MIPS.
28179
28180 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28181
28182 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28183 to the empty string.
28184
28185 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28186
28187 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28188
28189 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28190 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28191 * kern/misc.c (__enable_execute_stack): Disable on
28192 GRUB_MACHINE_EMU.
28193
28194 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28195
28196 Make grub-probe work with symbolic links under /dev/mapper as well
28197 as with real block devices. The Linux world seems to be (at best)
28198 in transition here, and GRUB shouldn't get caught in the middle.
28199
28200 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28201 /dev/mapper.
28202
28203 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28204
28205 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28206 input files (in which case exit zero).
28207
28208 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28209
28210 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28211 return NULL for various reasons even if it has a maximum-length
28212 buffer: for example, there might be a symlink loop, or the path
28213 might exceed PATH_MAX. If this happens, return NULL.
28214
28215 2010-05-27 Robert Millan <rmh@gnu.org>
28216
28217 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28218 partmap module to handle cross-partmap setups.
28219 Reported by Orestes Mas. Gràcies!
28220
28221 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28222
28223 * util/grub-mkrescue.in: Initialise override_dir rather than
28224 assuming that it's unset or empty in the environment.
28225
28226 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28227
28228 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28229 variable index into p_index to suppress a warning with -Wshadow.
28230
28231 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28232
28233 * INSTALL: Added flex >= 2.5.35 requirement.
28234
28235 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28238
28239 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28240
28241 cmostest support.
28242
28243 * commands/i386/cmostest.c: New file.
28244 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28245 (cmostest_mod_SOURCES): New variable.
28246 (cmostest_mod_CFLAGS): Likewise.
28247 (cmostest_mod_LDFLAGS): Likewise.
28248 * conf/i386-pc.rmk: Likewise.
28249 * docs/grub.texi (Vendor power-on keys): New section.
28250 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28251 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28252 and GRUB_BUTTON_CMOS_ADDRESS.
28253 * util/grub.d/00_header.in: Handle powering-on by separate button.
28254
28255 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28256
28257 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28258 Removed drawing_scrollbar argument. All users updated
28259 Fixes #29792.
28260 Reported by Jo Shields
28261
28262 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28263
28264 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28265 buffer since gfxterm handles double repaint.
28266
28267 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28268
28269 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28270 * term/gfxterm.c (real_scroll): Likewise.
28271
28272 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28273
28274 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28275 before calling BIOS.
28276
28277 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28278
28279 * include/grub/i18n.h: Always enable grub_gettext.
28280
28281 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28282
28283 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28284 partition naming style.
28285
28286 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28287
28288 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28289 not the first option.
28290
28291 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28292
28293 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28294
28295 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28296
28297 * util/misc.c: Move inclusion of <limits.h> to ...
28298 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28299
28300 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28301
28302 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28303 Fix merge error in NetBSD code.
28304 (find_partition_start) [__NetBSD__]: Likewise.
28305
28306 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28307
28308 Fix grub-mkrescue usage unit testing.
28309
28310 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28311
28312 2010-05-18 Christian Franke <franke@computer.org>
28313
28314 * util/grub.d/10_windows.in: Use path names instead of
28315 drive letters to prevent warning from Cygwin 1.7.
28316 Add drivemap command to menuentry if needed.
28317
28318 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28319
28320 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28321 gnumach and gnumach.gz.
28322
28323 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28324
28325 * include/grub/i18n.h (gettext): Inline instead of using #define.
28326 (grub_gettext): Likewise.
28327 (_): Likewise.
28328
28329 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28330
28331 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28332 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28333 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28334 (main): Add a slash after pkglibdirroot.
28335
28336 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28337
28338 * util/grub-install.in: Add missing "in" keyword.
28339
28340 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28341
28342 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28343 Reported by: Seth Goldberg.
28344
28345 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28346
28347 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28348
28349 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28350
28351 * configure.ac: Check for Linux device-mapper support.
28352
28353 * util/hostdisk.c (device_is_mapped): New function.
28354 (find_partition_start): New function, partly broken out from
28355 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28356 device-mapper support added.
28357 (linux_find_partition): Use find_partition_start.
28358 (convert_system_partition_to_system_disk): Add `st' argument.
28359 Support Linux /dev/mapper/* devices if device-mapper support is
28360 available; only DM-RAID devices are understood at present.
28361 (find_system_device): Add `st' argument. Pass it to
28362 convert_system_partition_to_system_disk.
28363 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28364 find_system_device and convert_system_partition_to_system_disk. Use
28365 find_partition_start.
28366
28367 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28368 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28369 * util/deviceiter.c [__linux__]: Define MINOR.
28370 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28371 * util/mkdevicemap.c (grub_putchar): New function.
28372 (grub_getkey): New function.
28373 (grub_refresh): New function.
28374 (main): Set debug=all if -v -v is used.
28375
28376 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28377
28378 Fix build with non-GNU libcs.
28379
28380 * util/misc.c (canonicalize_file_name): Move to ...
28381 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28382 grub_make_system_path_relative_to_its_root.
28383
28384 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28385
28386 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28387 we handle finding grub-mkimage. Default to finding grub-mkimage in
28388 ${bindir} with program_transform_name applied, and provide a
28389 --grub-mkimage option to override this.
28390
28391 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28392
28393 Remove grub-mkisofs.
28394
28395 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28396 (grub_mkisofs_SOURCES): Removed.
28397 (grub_mkisofs_CFLAGS): Removed.
28398 * util/mkisofs/defaults.h: Removed.
28399 * util/mkisofs/eltorito.c: Likewise.
28400 * util/mkisofs/exclude.h: Likewise.
28401 * util/mkisofs/hash.c: Likewise.
28402 * util/mkisofs/include/: Likewise.
28403 * util/mkisofs/include/fctldefs.h: Likewise.
28404 * util/mkisofs/include/mconfig.h: Likewise.
28405 * util/mkisofs/include/prototyp.h: Likewise.
28406 * util/mkisofs/include/statdefs.h: Likewise.
28407 * util/mkisofs/iso9660.h: Likewise.
28408 * util/mkisofs/joliet.c: Likewise.
28409 * util/mkisofs/match.c: Likewise.
28410 * util/mkisofs/match.h: Likewise.
28411 * util/mkisofs/mkisofs.c: Likewise.
28412 * util/mkisofs/mkisofs.h: Likewise.
28413 * util/mkisofs/msdos_partition.h: Likewise.
28414 * util/mkisofs/multi.c: Likewise.
28415 * util/mkisofs/name.c: Likewise.
28416 * util/mkisofs/rock.c: Likewise.
28417 * util/mkisofs/tree.c: Likewise.
28418 * util/mkisofs/write.c: Likewise.
28419
28420 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28421
28422 Unify grub-mkimage accross platforms.
28423
28424 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28425 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28426 (grub_mkelfimage_SOURCES): Removed.
28427 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28428 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28429 (bin_UTILITIES): Add grub-mkimage.
28430 (grub_mkimage_SOURCES): New variable.
28431 (kernel_img_HEADERS): Remove machine/kernel.h.
28432 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28433 (pkglib_PROGRAMS): Add kernel.img.
28434 (kernel_img_HEADERS): Add machine/kernel.h.
28435 (kernel_img_FORMAT): Removed.
28436 (bin_UTILITIES): Remove grub-mkimage.
28437 (grub_mkimage_SOURCES): Removed.
28438 (grub_mkimage_CFLAGS): Likewise.
28439 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28440 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28441 (pkglib_PROGRAMS): Add kernel.img.
28442 (bin_UTILITIES): Remove grub-mkimage.
28443 (grub_mkimage_SOURCES): Removed.
28444 (grub_mkimage_CFLAGS): Likewise.
28445 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28446 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28447 (pkglib_PROGRAMS): Add kernel.img.
28448 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28449 (pkglib_PROGRAMS): Add kernel.img.
28450 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28451 (grub_mkimage_SOURCES): Removed.
28452 (grub_mkimage_CFLAGS): Likewise.
28453 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28454 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28455 (pkglib_PROGRAMS): Add kernel.img.
28456 (bin_UTILITIES): Remove grub-mkimage.
28457 (grub_mkimage_SOURCES): Removed.
28458 (grub_mkimage_CFLAGS): Likewise.
28459 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28460 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28461 (grub_mkimage_SOURCES): Removed.
28462 (grub_mkimage_CFLAGS): Likewise.
28463 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28464 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28465 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28466 (grub_pe32_optional_header): ... this.
28467 (grub_pe64_optional_header): ... and this. All users updated.
28468 (GRUB_PE32_PE32_MAGIC): Split into ..
28469 (GRUB_PE32_PE32_MAGIC): .. this.
28470 (GRUB_PE32_PE64_MAGIC): .. and this.
28471 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28472 * include/grub/elf.h (PT_GNU_STACK): New definition.
28473 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28474 * include/grub/i386/efi/kernel.h: Likewise.
28475 * include/grub/i386/kernel.h: Likewise.
28476 * include/grub/i386/pc/kernel.h: Likewise.
28477 * include/grub/i386/qemu/boot.h: Likewise.
28478 * include/grub/mips/kernel.h: Likewise.
28479 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28480 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28481 * include/grub/powerpc/kernel.h: Likewise.
28482 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28483 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28484 * include/grub/sparc64/kernel.h: Likewise.
28485 * include/grub/x86_64/efi/kernel.h: Likewise.
28486 * include/grub/x86_64/kernel.h: Likewise.
28487 * include/grub/offsets.h: New file.
28488 * include/grub/kernel.h (grub_module_info): Split into ...
28489 (grub_module_info32): ... this.
28490 (grub_module_info64): ... and this.
28491 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28492 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28493 (grub_boot_blocklist): Moved from here ...
28494 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28495 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28496 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28497 * include/grub/types.h (grub_target_to_host16): Removed.
28498 (grub_target_to_host32): Likewise.
28499 (grub_target_to_host64): Likewise.
28500 (grub_host_to_target16): Likewise.
28501 (grub_host_to_target32): Likewise.
28502 (grub_host_to_target64): Likewise.
28503 (grub_host_to_target_addr): Likewise.
28504
28505 Support grub-mkrescue for efi, coreboot and qemu.
28506
28507 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28508 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28509 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28510 * util/grub-mkrawimage.c: Moved from here ...
28511 * util/grub-mkimage.c: ... here. All users updated.
28512 (ALIGN_ADDR): Use image_target.
28513 (TARGET_NO_FIELD): New const.
28514 (image_target_desc): New type.
28515 (image_targets): New array.
28516 (grub_target_to_host64): Use image_target.
28517 (grub_target_to_host32): Likewise.
28518 (grub_target_to_host16): Likewise.
28519 (grub_host_to_target64): Likewise.
28520 (grub_host_to_target32): Likewise.
28521 (grub_host_to_target16): Likewise.
28522 (grub_host_to_target_addr): Likewise.
28523 (generate_image): Handle multiimage.
28524 (main): Require -O parameter. All users updated.
28525 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28526 util/efi/grub-mkimage.c
28527 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28528 New option --rom-directory.
28529 Use xorriso.
28530 * util/i386/efi/grub-mkimage.c: Removed.
28531 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28532 (grub_target_to_host32): Likewise.
28533 (grub_target_to_host64): Likewise.
28534 (grub_host_to_target16): Likewise.
28535 (grub_host_to_target32): Likewise.
28536 (grub_host_to_target64): Likewise.
28537 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28538 (grub_target_to_host32): Likewise.
28539 (grub_target_to_host64): Likewise.
28540 (grub_host_to_target16): Likewise.
28541 (grub_host_to_target32): Likewise.
28542 (grub_host_to_target64): Likewise.
28543
28544 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28545
28546 Source tree is reorganized for emu build.
28547
28548 * include/grub/util/console.h: Move from here...
28549 * include/grub/emu/console.h: ...to here.
28550 * include/grub/util/getroot.h: Move from here...
28551 * include/grub/emu/getroot.h: ...to here.
28552 * include/grub/util/hostdisk.h: Move from here...
28553 * include/grub/emu/hostdisk.h: ...to here.
28554 * util/console.c: Move from here...
28555 * kern/emu/console.c: ...to here.
28556 * util/getroot.c: Move from here...
28557 * kern/emu/getroot.c: ...to here.
28558 * util/grub-emu.c: Move from here...
28559 * kern/emu/main.c: ...to here.
28560 * util/hostdisk.c: Move from here...
28561 * kern/emu/hostdisk.c: ...to here.
28562 * util/hostfs.c: Move from here...
28563 * kern/emu/hostfs.c: ...to here.
28564 * util/mm.c: Move from here...
28565 * kern/emu/mm.c: ...to here.
28566 * util/pci.c: Move from here...
28567 * bus/emu/pci.c: ...to here.
28568 * util/sdl.c: Move from here...
28569 * video/emu/sdl.c: ...to here.
28570 * util/time.c: Move from here...
28571 * kern/emu/time.c: ...to here.
28572 * util/usb.c: Move from here...
28573 * bus/usb/emu/usb.c: ...to here.
28574
28575 * include/grub/emu/misc.h: New header for grub-emu functions.
28576 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28577
28578 * conf/any-emu.rmk: Rule updates for above renames.
28579 * conf/common.rmk: Likewise.
28580 * conf/i386-pc.rmk: Likewise.
28581 * conf/i386-qemu.rmk: Likewise.
28582 * conf/mips.rmk: Likewise.
28583 * conf/sparc64-ieee1275.rmk: Likewise.
28584 * conf/x86-efi.rmk: Likewise.
28585
28586 * disk/lvm.h: #include updates for above renames.
28587 * util/grub-mkrelpath.c: Likewise.
28588 * util/grub-probe.c: Likewise.
28589 * util/i386/pc/grub-setup.c: Likewise.
28590 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28591 * kern/emu/console.c: Likewise.
28592 * kern/emu/getroot.c: Likewise.
28593 * kern/emu/hostdisk.c: Likewise.
28594 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28595
28596 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28597 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28598 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28599 * util/misc.c: Remove grub-emu functions.
28600
28601 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28602
28603 Fix gfxmenu crash.
28604 Reported by: Thorsten Grützmacher.
28605
28606 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28607 timeout hook.
28608 (circprog_set_property): Register and unregister timeout hook.
28609 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28610 (label_destroy): Free template. and unregister hook.
28611 (label_set_state): New function.
28612 (label_set_property): Handle templates and hooks.
28613 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28614 timeout hook.
28615 (progress_bar_set_property): Register and unregister timeout hook.
28616 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28617 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28618 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28619 (update_timeout_visit): Removed.
28620 (update_timeouts): New function.
28621 (redraw_timeouts): Likewise.
28622 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28623 (grub_gfxmenu_clear_timeout): Likewise.
28624 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28625 (grub_gfxmenu_timeout_notify): Likewise.
28626 (grub_gfxmenu_timeout_notifications): New external variable.
28627 (grub_gfxmenu_timeout_register): New function.
28628 (grub_gfxmenu_timeout_unregister): Likewise.
28629
28630 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28631
28632 Transform (broken) vga terminal into (working) vga video driver.
28633
28634 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28635 video/i386/pc/vga.c.
28636 * include/grub/video.h (grub_video_driver_id):
28637 Add GRUB_VIDEO_DRIVER_VGA.
28638 * term/i386/pc/vga.c: Renamed to ...
28639 * video/i386/pc/vga.c: ...this
28640 (DEBUG_VGA): Removed.
28641 (CHAR_WIDTH): Likewise.
28642 (CHAR_HEIGHT): Likewise.
28643 (TEXT_WIDTH): Likewise.
28644 (TEXT_HEIGHT): Likewise.
28645 (DEFAULT_FG_COLOR): Likewise.
28646 (DEFAULT_BG_COLOR): Likewise.
28647 (colored_char): Likewise.
28648 (xpos): Likewise.
28649 (ypos): Likewise.
28650 (cursor_state): Likewise.
28651 (fg_color): Likewise.
28652 (bg_color): Likewise.
28653 (text_buf): Likewise.
28654 (page): Likewise.
28655 (font): Likewise.
28656 (framebuffer): New variable.
28657 (set_read_map): Disabled.
28658 (setup): New variable.
28659 (is_target): Likewise.
28660 (grub_vga_mod_init): Likewise.
28661 (grub_vga_mod_fini): Likewise.
28662 (check_vga_mem): Likewise.
28663 (write_char): Likewise.
28664 (write_cursor): Likewise.
28665 (scroll_up): Likewise.
28666 (grub_vga_putchar): Likewise.
28667 (grub_vga_getcharwidth): Likewise.
28668 (grub_vga_getwh): Likewise.
28669 (grub_vga_getxy): Likewise.
28670 (grub_vga_gotoxy): Likewise.
28671 (grub_vga_cls): Likewise.
28672 (grub_vga_setcolorstate): Likewise.
28673 (grub_vga_setcursor): Likewise.
28674 (grub_video_vga_init): New function.
28675 (grub_video_vga_setup): Likewise.
28676 (grub_video_vga_fini): Likewise.
28677 (update_target): Likewise.
28678 (grub_video_vga_blit_bitmap): Likewise.
28679 (grub_video_vga_blit_render_target): Likewise.
28680 (grub_video_vga_set_active_render_target): Likewise.
28681 (grub_video_vga_get_active_render_target): Likewise.
28682 (grub_video_vga_swap_buffers): Likewise.
28683 (grub_video_vga_set_palette): Likewise.
28684 (grub_video_vga_get_info_and_fini): Likewise.
28685 (grub_vga_term): Removed.
28686 (grub_video_vga_adapter): New variable.
28687 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28688 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28689
28690 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28691
28692 * video/readers/jpeg.c: Indented.
28693
28694 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28695
28696 Various jpeg cleanups.
28697
28698 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28699 (grub_jpeg_decode_quan_table): Use sizeof.
28700 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28701
28702 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28703
28704 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28705 tables. Ignore non-last ac bit.
28706 (grub_jpeg_decode_quan_table): Likewise.
28707
28708 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28709
28710 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28711 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28712 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28713 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28714 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28715 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28716
28717 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28718
28719 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28720 error.
28721
28722 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28723
28724 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28725
28726 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28729 condition.
28730
28731 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28734 part.
28735
28736 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28737
28738 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28739 pointers.
28740
28741 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28742
28743 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28744
28745 2010-05-01 Christian Franke <franke@computer.org>
28746
28747 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28748 Remove broken Cygwin path conversion.
28749 * util/misc.c: [__CYGWIN__] Add include and define.
28750 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28751 for Cygwin 1.7.
28752 (make_system_path_relative_to_its_root): Simplify loop, replace early
28753 return by break.
28754 [__CYGWIN__] Add conversion to win32 path.
28755 Include "/" case in trailing slash removal.
28756
28757 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28758
28759 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28760 Reported by: Seth Goldberg
28761
28762 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28763
28764 * commands/help.c (grub_cmd_help): Fix a typo.
28765 Reported by: Seth Goldberg
28766
28767 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28768
28769 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28770 name and add N_.
28771 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28772 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28773 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28774 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28775 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28776 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28777 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28778 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28779 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28780 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28781 * normal/context.c (GRUB_MOD_INIT): Likewise.
28782 * normal/main.c (GRUB_MOD_INIT): Likewise.
28783 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28784 * term/serial.c (GRUB_MOD_INIT): Likewise.
28785 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28786
28787 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28788
28789 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28790 extra == 0.
28791
28792 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28793
28794 * commands/iorw.c: New file.
28795 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28796 (iorw_mod_SOURCES): New variable.
28797 (iorw_mod_CFLAGS): Likewise.
28798 (iorw_mod_LDFLAGS): Likewise.
28799
28800 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28801
28802 Hotkey support
28803
28804 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28805 * normal/main.c (hotkey_aliases): New variable.
28806 (grub_normal_add_menu_entry): Parse "--hotkey".
28807 * normal/menu_text.c (run_menu): Handle hotkeys.
28808
28809 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28810
28811 * kern/i386/coreboot/init.c (grub_machine_init): Call
28812 grub_machine_mmap_init on qemu.
28813
28814 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28815
28816 * boot/i386/qemu/boot.S: Add a missing .code16.
28817
28818 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28819
28820 Use LBIO on coreboot.
28821
28822 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28823 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28824 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28825 New declaration.
28826 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28827 grub_machine_mmap_init on coreboot.
28828 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28829 GRUB_LINUXBIOS_MEMBER_LINK.
28830 (grub_machine_mmap_iterate): Fix declaration.
28831 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28832
28833 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 Split coreboot and multiboot ports.
28836
28837 * conf/i386-multiboot.rmk: New file.
28838 * configure.ac: Add multiboot port.
28839 * include/grub/i386/multiboot/boot.h: New file.
28840 * include/grub/i386/multiboot/console.h: Likewise.
28841 * include/grub/i386/multiboot/init.h: Likewise.
28842 * include/grub/i386/multiboot/kernel.h: Likewise.
28843 * include/grub/i386/multiboot/loader.h: Likewise.
28844 * include/grub/i386/multiboot/memory.h: Likewise.
28845 * include/grub/i386/multiboot/serial.h: Likewise.
28846 * include/grub/i386/multiboot/time.h: Likewise.
28847 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28848 * loader/multiboot.c: Likewise.
28849 * loader/multiboot_mbi2.c: Likewise.
28850 * util/grub-mkrescue.in: Generate multiboot rescue.
28851
28852 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28853
28854 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28855
28856 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 Merge handling of input and output terminals. Fix a hang.
28859
28860 * commands/terminal.c (abstract_terminal): New struct.
28861 (handle_command): New function. Based on grub_cmd_terminal_input.
28862 (grub_cmd_terminal_input): Use handle_command.
28863 (grub_cmd_terminal_output): Use handle_command.
28864
28865 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28866
28867 Fix comment handling.
28868
28869 * tests/grub_script_comments.in: New testcase.
28870 * conf/tests.rmk: Rules for new testcase.
28871 * script/yylex.l: Updated flex rules.
28872
28873 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28874
28875 * docs/grub.texi (play): Document that zero pitches produce rests.
28876 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28877 if argc is 1.
28878
28879 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28880
28881 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28882 autogen issues.
28883
28884 2010-04-26 Christian Franke <franke@computer.org>
28885
28886 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28887 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28888 (grub_get_prefix): Remove function.
28889 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28890 make_system_path_relative_to_its_root ().
28891 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28892
28893 2010-04-24 Christian Franke <franke@computer.org>
28894
28895 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28896 (kernel_img_LDFLAGS): Remove -static-libgcc.
28897
28898 2010-04-24 Christian Franke <franke@computer.org>
28899
28900 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28901 and CHECK_END_SYMBOL if grub-emu is built.
28902 Unset TARGET_OBJ2ELF if grub-emu is built
28903 without module support.
28904
28905 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28906
28907 Nilfs2 support.
28908
28909 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28910 (grub_fstest_SOURCES): Likewise.
28911 (pkglib_MODULES): Add nilfs2.mod.
28912 (nilfs2_mod_SOURCES): New variable.
28913 (nilfs2_mod_CFLAGS): Likewise.
28914 (nilfs2_mod_LDFLAGS): Likewise.
28915 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28916 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28917 * fs/nilfs2.c: New file.
28918
28919 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28920
28921 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28922 is not supported.
28923
28924 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28925
28926 Add grub-mkconfig support for NetBSD.
28927
28928 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28929 * util/grub-mkconfig.in: export new NetBSD specific variables.
28930 * po/POTFILES-shell: added 10_netbsd.in.
28931 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28932
28933 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28934
28935 Fix emu build with grub-emu-pci and grub-emu-modules.
28936
28937 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28938 functions.
28939 * include/grub/libpciaccess.h: New file.
28940 * conf/any-emu.rmk: Update kernel headers for emu build.
28941
28942 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28945
28946 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28947
28948 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28949
28950 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28951
28952 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28953 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28954 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28955 util/ieee1275/ofpath.c.
28956 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28957 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28958 * include/grub/sparc64/ieee1275/boot.h
28959 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28960 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28961 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28962 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28963 const char *.
28964 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28965 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28966 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28967 install.
28968
28969 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28970
28971 * util/grub-mkconfig.in: Corrected two == equality tests.
28972 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28973 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28974 expect a number appended to it.
28975 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28976 expects a number appended to it.
28977
28978 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28979
28980 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28981
28982 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28983
28984 * util/hostdisk.c (make_device_name): Change to new partition naming.
28985
28986 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
28987
28988 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
28989
28990 2010-04-17 Christian Franke <franke@computer.org>
28991
28992 * Makefile.in: Add missing localedir setting.
28993
28994 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
28995
28996 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
28997 mistake in r2156. Noticed by Anthony Fok.
28998
28999 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29000 @localedir@.
29001 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29002
29003 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29004
29005 Fix a spurious, uninitialized variable warning.
29006
29007 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29008 Initialize variable, shdr.
29009 (grub_freebsd_load_elfmodule): Likewise.
29010 (grub_freebsd_load_elf_meta): Likewise.
29011
29012 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29013
29014 Fix for escaped dollar in double quoted strings.
29015
29016 * script/yylex.l: Updated flex rules.
29017 * conf/tests.rmk: Rule for new testcase.
29018 * tests/grub_script_dollar.in: New testcase.
29019
29020 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29021 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29022
29023 Enclose all translated strings in grub.cfg in single quotes, and
29024 escape them appropriately (Ubuntu bug #552921).
29025
29026 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29027 * util/grub.d/10_hurd.in: Use it.
29028 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29029 * util/grub.d/10_linux.in (linux_entry): Likewise.
29030
29031 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29032
29033 Fix cygwin compilation.
29034
29035 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29036 * include/grub/misc.h (__register_frame_info)
29037 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29038 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29039 * kern/misc.c (__register_frame_info)
29040 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29041 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29042
29043 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29044
29045 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29046
29047 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 Unify libgcc processing.
29050
29051 * Makefile.in (kernel_img_LDFLAGS): New variable.
29052 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29053 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29054 overwriting.
29055 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29056 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29057 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29058 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29059 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29060 overwriting. Remove -lgcc and -static-libgcc
29061 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29062 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29063 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29064 (kernel_img_LDFLAGS): Append instead of overwriting.
29065 Remove -lgcc and -static-libgcc
29066 * conf/sparc64-ieee1275.rmk: Likewise.
29067 * include/grub/powerpc/libgcc.h: Move to ...
29068 * include/grub/libgcc.h: .. this.
29069 * include/grub/libgcc.h: Don't export most of the function on x86.
29070 (__bswapsi2): New export.
29071 (__bswapdi2): Likewise.
29072 * include/grub/mips/libgcc.h: Removed.
29073 * include/grub/sparc64/libgcc.h: Likewise.
29074
29075 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29076
29077 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29078 disk_info_msg (conflicts with gettexting into languages with cases).
29079
29080 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29081
29082 Add grub-probe support for NetBSD.
29083
29084 * util/getroot.c (find_root_device): Convert block device to
29085 character device on NetBSD.
29086 * util/probe.c (probe): Require character device on NetBSD.
29087 * util/hostdisk.c: NetBSD specific headers.
29088 (configure_device_driver): new function to tune device driver
29089 parameters (currently only for NetBSD floppy driver).
29090 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29091 via disklabel ioctl).
29092 (open_device): call configure_device_driver on NetBSD.
29093 (convert_system_partition_to_system_disk): NetBSD specific code.
29094 (device_is_wholedisk): Likewise.
29095 (grub_util_biosdisk_get_grub_dev): Likewise.
29096 (make_device_name): Fixed a typo in bsd_part_str.
29097 * configure.ac: check for opendisk() and getrawpartition() on
29098 NetBSD and set LIBUTIL.
29099 * Makefile.in: add LIBUTIL to LIBS.
29100
29101 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29102
29103 Documentation fix.
29104
29105 * util/grub-script-check.c: Better help message.
29106
29107 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29108
29109 Fix FreeBSD build.
29110
29111 * configure.ac: Flex version check.
29112 * conf/common.rmk: Add -Wno-error to sh.mod.
29113 * script/yylex.l: Remove all #pragma.
29114
29115 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29116
29117 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29118 prototype.
29119 Reported by: Seth Goldberg.
29120
29121 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29122
29123 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29124 Rename "module" to "module2".
29125 Reported by: Seth Goldberg.
29126
29127 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29128
29129 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29130 EXPORT_FUNC.
29131 Reported by: Seth Goldberg.
29132
29133 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29134
29135 * lib/posix_wrap/locale.h: Add missing file.
29136 Reported by: Seth Goldberg.
29137
29138 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29139
29140 grub-emu module load support.
29141
29142 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29143 NO_DYNAMIC_MODULES switched to this.
29144 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29145 (CFLAGS): Likewise.
29146 * conf/any-emu.rmk: Generate symlist.
29147 (kernel_img_HEADERS): Add util/datetime.h.
29148 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29149 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29150 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29151 kern/$(target_cpu)/cache.S.
29152 * configure.ac (grub-emu-modules): New option.
29153 * genmk.rb: Handle multiple source lists.
29154 * include/grub/sdl.h: New file.
29155 * include/grub/libusb.h: Likewise.
29156 * util/grub-emu.c (main): Hanle (host) root.
29157 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29158 GRUB_ERR_UNKNOWN_DEVICE.
29159 * util/misc.c: Move mm functions to ...
29160 * util/mm.c: ... here. All users updated.
29161
29162 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29163
29164 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29165 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29166 missing files.
29167 (maintainer-clean): Remove libgcrypt-grub.
29168
29169 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29170
29171 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29172
29173 2010-04-09 EFI Coder <eficoder@hotmail.com>
29174
29175 * normal/menu_text.c (print_message): Clean up the message and show
29176 the Fn information when on EFI
29177 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29178
29179 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29180
29181 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29182 All users updated.
29183 * normal/crypto.c (read_crypto_list): Likewise.
29184 * normal/dyncmd.c (read_command_list): Likewise.
29185 * normal/term.c (read_terminal_list): Likewise.
29186 * normal/main.c (read_lists): Use explicit prefix.
29187 (read_lists_hook): Use read_lists.
29188 (grub_normal_execute): Likewise.
29189
29190 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29191
29192 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29193 Reported by: Thomas Schmitt.
29194 Add -no-emul-boot to grub-mkisofs parameters.
29195
29196 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29197
29198 * font/font.c: Indented.
29199
29200 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29201
29202 Elif support to GRUB script (by Deepak Vankadaru).
29203
29204 * tests/grub_script_if.in: New testcase.
29205 * conf/tests.rmk: Rule for new testcase.
29206 * script/parser.y: Grammar rules for elif.
29207
29208 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29209
29210 While and until loops support to GRUB script.
29211
29212 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29213 (grub_script_create_cmdwhile): New function prototype.
29214 (grub_script_execute_cmdwhile): New function prototype.
29215 * script/execute.c (grub_script_execute_cmdwhile): New function.
29216 * script/parser.y (command): New commands.
29217 (whilecmd): New grammar rule.
29218 (untilcmd): New grammar rule.
29219 * script/script.c (grub_script_create_cmdwhile): New function.
29220 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29221 function.
29222
29223 * tests/grub_script_while1.in: New testcase.
29224 * conf/tests.rmk: Rule for new testcase.
29225
29226 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29227
29228 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29229 as *.jpg.
29230
29231 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29232
29233 GRUB_BACKGROUND support.
29234
29235 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29236 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29237
29238 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29239
29240 Load fonts and modules for gfxmenu in grub-mkconfig.
29241 Idea by: Mario Vazquez
29242
29243 * util/grub.d/00_header.in: Load pf2 and image modules.
29244
29245 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29246
29247 grub-mkconfig multiple terminal support.
29248
29249 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29250 * util/grub.d/00_header.in: Likewise.
29251
29252 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29253
29254 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29255 we use cd $(srcdir).
29256
29257 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29258
29259 * util/grub.d/10_linux.in: Only use the first word of
29260 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29261 spaces in GRUB_DISTRIBUTOR.
29262 * util/grub.d/10_kfreebsd.in: Likewise.
29263 * util/grub.d/10_hurd.in: Likewise.
29264
29265 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29266
29267 Fix unit testing framework for Qemu 0.12.
29268
29269 * tests/util/grub-shell.in: Remove -serial stdio option.
29270
29271 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29272
29273 POSIX header file wrappers.
29274
29275 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29276 equivalents.
29277 * lib/posix_wrap/ctype.h: Likewise.
29278 * lib/posix_wrap/errno.h: Likewise.
29279 * lib/posix_wrap/langinfo.h: Likewise.
29280 * lib/posix_wrap/limits.h: Likewise.
29281 * lib/posix_wrap/localcharset.h: Likewise.
29282 * lib/posix_wrap/stdint.h: Likewise.
29283 * lib/posix_wrap/stdio.h: Likewise.
29284 * lib/posix_wrap/stdlib.h: Likewise.
29285 * lib/posix_wrap/string.h: Likewise.
29286 * lib/posix_wrap/sys/types.h: Likewise.
29287 * lib/posix_wrap/unistd.h: Likewise.
29288 * lib/posix_wrap/wchar.h: Likewise.
29289 * lib/posix_wrap/wctype.h: Likewise.
29290 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29291 (grub_script.yy.h): Likewise.
29292 * script/yylex.l: Remove POSIX emulation #defines.
29293 * Makefile.in (POSIX_CFLAGS): New variable.
29294 (GNULIB_UTIL_CFLAGS): Likewise.
29295
29296 Regexp support.
29297
29298 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29299 (regexp_mod_SOURCES): New variable.
29300 (regexp_mod_CFLAGS): Likewise.
29301 (regexp_mod_LDFLAGS): Likewise.
29302 * commands/regexp.c: New file.
29303 * gnulib/regcomp.c: New file. Imported from gnulib.
29304 * gnulib/regex.c: Likewise.
29305 * gnulib/regex_internal.c: Likewise.
29306 * gnulib/regex_internal.h: Likewise.
29307 * gnulib/regexec.c: Likewise.
29308 * gnulib/regex.h: Likewise.
29309
29310 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29311
29312 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29313 unsupported video mode types.
29314
29315 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29316
29317 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29318
29319 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29320
29321 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29322 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29323
29324 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 Remove unused grub_vga_get_font.
29327
29328 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29329 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29330
29331 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29332
29333 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29334 * include/grub/misc.h: Likewise.
29335
29336 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29337
29338 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29339 for which failure is fatal.
29340
29341 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29342
29343 * util/grub-install.in: Use mkdir -p to create grub directory.
29344 * util/i386/efi/grub-install.in: Likewise.
29345 * util/ieee1275/grub-install.in: Likewise.
29346
29347 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29348
29349 * Makefile.in (LEX): new variable.
29350
29351 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29352
29353 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29354 `=' and added double quotes on operands of this equality test.
29355
29356 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29357
29358 * Makefile.in (uninstall): Remove a leftover debug echo.
29359 Reported by: Grégoire Sutre
29360
29361 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29362
29363 MIPS multiboot2 support.
29364
29365 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29366 (multiboot2_mod_SOURCES): New variable.
29367 (multiboot2_mod_CFLAGS): Likewise.
29368 (multiboot2_mod_LDFLAGS): Likewise.
29369 (multiboot2_mod_ASFLAGS): Likewise.
29370 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29371 definition.
29372 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29373 (MULTIBOOT_MBI_REGISTER): Likewise.
29374 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29375 (MULTIBOOT_ELF32_MACHINE): Likewise.
29376 (MULTIBOOT_ELF64_MACHINE): Likewise.
29377 * include/grub/mips/multiboot.h: New file.
29378 * include/grub/video.h (grub_video_driver_id): New type
29379 GRUB_VIDEO_DRIVER_SM712.
29380 (grub_video_get_info_and_fini): Export.
29381 (grub_video_get_palette): Likewise.
29382 (grub_video_get_driver_id): Likewise.
29383 * include/multiboot2.h: Resynced with spec.
29384 * loader/i386/multiboot.c: Moved from here ...
29385 * loader/multiboot.c: ... here. All users updated.
29386 (grub_multiboot_boot): Use platform-specific macros.
29387 * loader/i386/multiboot_elfxx.c: Moved from here ...
29388 * loader/multiboot_elfxx.c: ... here. All users updated.
29389 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29390 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29391 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29392
29393 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29394
29395 Import gnulib argp module.
29396
29397 * gnulib/argp-ba.c: New file.
29398 * gnulib/argp-eexst.c: Likewise.
29399 * gnulib/argp-fmtstream.c: Likewise.
29400 * gnulib/argp-fmtstream.h: Likewise.
29401 * gnulib/argp-fs-xinl.c: Likewise.
29402 * gnulib/argp-help.c: Likewise.
29403 * gnulib/argp-namefrob.h: Likewise.
29404 * gnulib/argp-parse.c: Likewise.
29405 * gnulib/argp-pin.c: Likewise.
29406 * gnulib/argp-pv.c: Likewise.
29407 * gnulib/argp-pvh.c: Likewise.
29408 * gnulib/argp-version-etc.c: Likewise.
29409 * gnulib/argp-version-etc.h: Likewise.
29410 * gnulib/argp-xinl.c: Likewise.
29411 * gnulib/argp.h: Likewise.
29412
29413 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29414
29415 * kern/device.c (grub_device_iterate): Clear errors after failed
29416 opening device.
29417
29418 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29419
29420 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29421 returned by firmware.
29422
29423 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29424
29425 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29426 compilation on coreboot and qemu
29427
29428 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29429
29430 * include/multiboot2.h: Resync with spec.
29431
29432 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29433
29434 Multiboot2 tag support
29435
29436 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29437 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29438 Remove loader/multiboot_loader.c.
29439 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29440 (grub_multiboot2_real_boot): Likewise.
29441 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29442 (grub_get_multiboot_mmap_count): New proto.
29443 (grub_fill_multiboot_mmap): Likewise.
29444 (grub_multiboot_set_video_mode): Likewise.
29445 (grub_multiboot_set_console): Likewise.
29446 (grub_multiboot_load): Likewise.
29447 (grub_multiboot_load_elf): Likewise.
29448 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29449 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29450 * include/multiboot.h: Resynced with specification.
29451 * include/multiboot2.h: Resynced with specification.
29452 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29453 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29454 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29455 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29456 users updated.
29457 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29458 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29459 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29460 Removed.
29461 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29462 Moved from here...
29463 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29464 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29465 Moved from here...
29466 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29467 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29468 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29469 All users updated.
29470 * loader/i386/multiboot_mbi2.c: New file.
29471
29472 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29473
29474 Resync with gnulib.
29475
29476 * Makefile.in (GNULIB_CFLAGS): New variable.
29477 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29478 (grub_script_check_CFLAGS): New variable.
29479 * gnulib/alloca.h: Resync with gnulib.
29480 * gnulib/error.c: Likewise.
29481 * gnulib/error.h: Likewise.
29482 * gnulib/fnmatch.c: Likewise.
29483 * gnulib/fnmatch_loop.c: Likewise.
29484 * gnulib/getdelim.c: Likewise.
29485 * gnulib/getline.c: Likewise.
29486 * gnulib/getopt.c: Likewise.
29487 * gnulib/getopt1.c: Likewise.
29488 * gnulib/getopt_int.h: Likewise.
29489 * gnulib/gettext.h: Likewise.
29490 * gnulib/progname.c: Likewise.
29491 * gnulib/progname.h: Likewise.
29492
29493 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29494
29495 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29496 which is the case with --disabled-nls.
29497
29498 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29499 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29500 * util/misc.c: Likewise.
29501 * util/mkisofs/mkisofs.c: Likewise.
29502 * util/mkisofs/mkisofs.h: Likewise.
29503
29504 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29505
29506 Simplify Apple CC support.
29507
29508 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29509 Add 0 byte at the end not to have a symbol with empty target.
29510 * mmap/i386/pc/mmap_helper.S: Likewise.
29511 * genmk.rb: Ignore errors 2030 and 2050.
29512 * kern/i386/pc/startup.S: Use LOCAL when possible.
29513
29514 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29515
29516 Testcase and the fix for final semicolon on cmdline.
29517
29518 * tests/grub_script_final_semicolon.in: New testcase.
29519 * conf/tests.rmk: Rules for the new testcase.
29520 * script/parser.y: Grammar fix.
29521
29522 2010-03-26 BVK Chaitanya <bvk@localhost>
29523
29524 Blank lines testcase for GRUB script.
29525
29526 * tests/grub_script_blanklines.in: New testcase.
29527 * conf/tests.rmk: Rules for the new testcase.
29528
29529 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29530
29531 Don't use __FILE__.
29532
29533 * genmk.rb: Add -DGRUB_FILE to all C targets.
29534 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29535 * include/grub/list.h: Likewise.
29536 * include/grub/misc.h: Likewise.
29537 * include/grub/mm.h: Likewise.
29538 * include/grub/test.h: Likewise.
29539 * kern/mm.c: Likewise.
29540 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29541
29542 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29543
29544 Sunpc partitions support.
29545
29546 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29547 (grub_fstest_SOURCES): Likewise.
29548 (pkglib_MODULES): Add part_sunpc.mod.
29549 (part_sunpc_mod_SOURCES): New variable.
29550 (part_sunpc_mod_CFLAGS): Likewise.
29551 (part_sunpc_mod_LDFLAGS): Likewise.
29552 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29553 * partmap/sunpc.c: New file.
29554
29555 2010-03-26 BVK Chaitanya <bvk@localhost>
29556
29557 For loop support to GRUB script.
29558
29559 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29560 (grub_script_create_cmdfor): New function prototype.
29561 (grub_script_execute_cmdfor): New function prototype.
29562 * script/execute.c (grub_script_execute_cmdfor): New function.
29563 * script/parser.y (command): New for command.
29564 (forcmd): New grammar rule.
29565 * script/script.c (grub_script_create_cmdfor): New function.
29566 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29567 function.
29568 * tests/grub_script_for1.in: New testcase.
29569 * conf/tests.rmk: Rules for new testcase.
29570
29571 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29572
29573 Nested partitions
29574
29575 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29576 'partition' is NULL, grub_partition_get_start already does that.
29577 * commands/loadenv.c (check_blocklists): Likewise.
29578 (write_blocklists): Likewise.
29579 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29580 (grub_fstest_SOURCES): Likewise.
29581 (pkglib_MODULES): Add part_bsd.mod.
29582 (part_bsd_mod_SOURCES): New variable.
29583 (part_bsd_mod_CFLAGS): Likewise.
29584 (part_bsd_mod_LDFLAGS): Likewise.
29585 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29586 (grub_emu_SOURCES): Likewise.
29587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29588 * include/grub/bsdlabel.h: New file.
29589 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29590 'get_name'.
29591 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29592 (grub_partition_map_list): New variable.
29593 (grub_partition_map_register): Inline.
29594 (grub_partition_map_unregister): Likewise.
29595 (FOR_PARTITION_MAPS): New macro.
29596 (grub_partition_map_iterate): Removed.
29597 (grub_partition_get_start): Handle nested partitions.
29598 * include/grub/msdos_partition.h: Remove bsd-related entries.
29599 (grub_pc_partition): Remove.
29600 * kern/disk.c (grub_disk_close): Free partition data.
29601 (grub_disk_adjust_range): Handle nested partitions.
29602 * kern/partition.c (grub_partition_map_probe): New function.
29603 (grub_partition_probe): Parse name to number, handle subpartitions.
29604 (get_partmap): New function.
29605 (grub_partition_iterate): Handle subpartitions.
29606 (grub_partition_get_name): Likewise.
29607 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29608 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29609 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29610 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29611 Set 'number'.
29612 (acorn_partition_map_probe): Remove.
29613 (acorn_partition_map_get_name): Likewise.
29614 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29615 Set 'number'.
29616 Set 'index' to 0 since there can be only one partition entry per sector.
29617 (amiga_partition_map_probe): Remove.
29618 (amiga_partition_map_get_name): Likewise.
29619 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29620 Set 'number'.
29621 Set 'offset' and 'index' to real positions of partitions.
29622 (apple_partition_map_probe): Remove.
29623 (apple_partition_map_get_name): Likewise.
29624 * partmap/bsdlabel.c: New file.
29625 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29626 Set 'number'.
29627 Allocate 'data' so it can be correctly freed.
29628 Set 'index' to offset inside sector.
29629 (gpt_partition_map_probe): Remove.
29630 (gpt_partition_map_get_name): Likewise.
29631 * partmap/msdos.c (grub_partition_parse): Remove.
29632 (pc_partition_map_iterate): Don't force raw access.
29633 Set 'number'.
29634 Make 'ext_offset' a local variable.
29635 (pc_partition_map_probe): Remove.
29636 (pc_partition_map_get_name): Remove.
29637 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29638 Set 'number'.
29639 (sun_partition_map_probe): Remove.
29640 (sun_partition_map_get_name): Likewise.
29641 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29642 (grub_pcpart_type): Likewise.
29643 * util/hostdisk.c (open_device): Handle new numbering scheme.
29644 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29645 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29646 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29647 * util/grub-install.in: Insert all subpartition modules.
29648 * util/ieee1275/grub-install.in: Likewise.
29649
29650 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29651
29652 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29653 grammar.
29654
29655 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29656
29657 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29658
29659 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29660
29661 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29662 match where 'make install' puts them.
29663 * util/i386/efi/grub-install.in: Likewise.
29664
29665 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29666
29667 * .bzrignore: Add gentrigtables, grub-script-check,
29668 grub_script_check_init.c, grub_script_check_init.h, and
29669 trigtables.c.
29670
29671 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29672
29673 * kern/parser.c: Indented.
29674
29675 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29676
29677 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29678
29679 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29680
29681 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29682 alpha_mask_size == 0 case.
29683
29684 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29685
29686 GRUB shell lexer and parser improvements.
29687
29688 * conf/any-emu.rmk: Build rule updates.
29689 * conf/common.rmk: Likewise.
29690 * conf/i386-coreboot.rmk: Likewise.
29691 * conf/i386-efi.rmk: Likewise.
29692 * conf/i386-ieee1275.rmk: Likewise.
29693 * conf/i386-pc.rmk: Likewise.
29694 * conf/powerpc-ieee1275.rmk: Likewise.
29695 * conf/x86_64-efi.rmk: Likewise.
29696
29697 * configure.ac: Configure check for flex.
29698
29699 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29700 types.
29701 (grub_lexer_param): Struct member updates.
29702 (grub_parser_param): Likewise.
29703 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29704 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29705 (grub_script_lexer_init): Prototype update.
29706 (grub_script_lexer_record_start): Likewise.
29707 (grub_script_lexer_record_stop): Likewise.
29708 (grub_script_lexer_yywrap): New function prototype.
29709 (grub_script_lexer_fini): Likewise.
29710 (grub_script_execute_argument_to_string): Removed by...
29711 (grub_script_execute_argument_to_argv): ...better version.
29712
29713 * script/execute.c (ROUND_UPTO): New macro.
29714 (grub_script_execute_cmdline): Out of memory fixes.
29715 (grub_script_execute_menuentry): Likewise.
29716 (grub_script_execute_argument_to_string): Removed. Update all
29717 users by...
29718 (grub_script_execute_argument_to_argv): ...better version.
29719 * script/function.c (grub_script_function_create): Use
29720 grub_script_execute_argument_to_argv instead of
29721 grub_script_execute_argument_to_string.
29722
29723 * script/lexer.c (check_varstate): Removed.
29724 (check_textstate): Removed.
29725 (grub_script_lexer_record_start): Likewise.
29726 (grub_script_lexer_record_stop): Likewise.
29727 (recordchar): Replaced with...
29728 (grub_script_lexer_record): ...new function.
29729 (nextchar): Removed.
29730 (grub_script_lexer_init): Rewritten.
29731 (grub_script_yylex): Rewritten.
29732 (append_newline): New function.
29733 (grub_script_lexer_yywrap): New function.
29734 (grub_script_lexer_fini): New function.
29735 (grub_script_yyerror): Sets error flag.
29736
29737 * script/yylex.l: New file.
29738 (grub_lexer_yyfree): Wrapper for flex yyffre.
29739 (grub_lexer_yyalloc): Likewise.
29740 (grub_lexer_yyrealloc): Likewise.
29741 * script/parser.y: Refactored.
29742
29743 * script/script.c (grub_script_arg_add): Out of memory fixes.
29744 (grub_script_add_arglist): Likewise.
29745 (grub_script_create_cmdline): Likewise.
29746 (grub_script_create_cmdmenu): Likewise.
29747 (grub_script_add_cmd): Likewise.
29748 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29749 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29750 unnecessary code.
29751
29752 * tests/grub_script_echo1.in: New testcase.
29753 * tests/grub_script_vars1.in: New testcase.
29754 * tests/grub_script_echo_keywords.in: New testcase.
29755
29756 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29757
29758 Remove some redundancy in build system.
29759
29760 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29761 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29762 (TARGET_LDFLAGS): Add -nostdlib.
29763 (TARGET_IMG_LDFLAGS): Likewise.
29764 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29765 anything since mmap isn't available.
29766 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29767 Add util/time.c.
29768 (pkglib_MODULES): Remove reboot.mod.
29769 (reboot_mod_SOURCES): Removed.
29770 (reboot_mod_CFLAGS): Likewise.
29771 (reboot_mod_LDFLAGS): Likewise.
29772 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29773 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29774 (DEFSYMFILES): Add kernel_syms.lst.
29775 (kernel_img_HEADERS): Add common headers.
29776 (symlist.c): New target.
29777 (kernel_syms.lst): Likewise.
29778 (pkglib_MODULES): Add memdisk.mod.
29779 (memdisk_mod_SOURCES): New variable.
29780 (memdisk_mod_CFLAGS): Likewise.
29781 (memdisk_mod_LDFLAGS): Likewise.
29782 (pkglib_MODULES): Add reboot.mod.
29783 (reboot_mod_SOURCES): New variable.
29784 (reboot_mod_CFLAGS): Likewise.
29785 (reboot_mod_LDFLAGS): Likewise.
29786 (pkglib_MODULES): Add date.mod.
29787 (date_mod_SOURCES): New variable.
29788 (date_mod_CFLAGS): Likewise.
29789 (date_mod_LDFLAGS): Likewise.
29790 (pkglib_MODULES): Add datehook.mod.
29791 (datehook_mod_SOURCES): New variable.
29792 (datehook_mod_CFLAGS): Likewise.
29793 (datehook_mod_LDFLAGS): Likewise.
29794 (pkglib_MODULES): Add lsmmap.mod.
29795 (lsmmap_mod_SOURCES): New variable.
29796 (lsmmap_mod_CFLAGS): Likewise.
29797 (lsmmap_mod_LDFLAGS): Likewise.
29798 (pkglib_MODULES): Add boot.mod.
29799 (boot_mod_SOURCES): New variable.
29800 (boot_mod_CFLAGS): Likewise.
29801 (boot_mod_LDFLAGS): Likewise.
29802 * conf/i386-coreboot.rmk: Removed redundant parts.
29803 * conf/i386-ieee1275.rmk: Likewise.
29804 * conf/i386-pc.rmk: Likewise.
29805 * conf/mips-yeeloong.rmk: Likewise.
29806 * conf/mips.rmk: Likewise.
29807 * conf/powerpc-ieee1275.rmk: Likewise.
29808 * conf/sparc64-ieee1275.rmk: Likewise.
29809 * conf/x86_64-efi.rmk: Likewise.
29810 * conf/i386-coreboot.rmk: Moved qemu parts ..
29811 * conf/i386-qemu.rmk: ... here
29812 * conf/i386-efi.rmk: Moved common parts to...
29813 * conf/x86-efi.rmk: ... here.
29814 * conf/i386.rmk: Added modules common to all x86 variants.
29815 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29816 * disk/memdisk.c: Remove grub/machine/kernel.h.
29817 * gensymlist.sh.in: Include symbol.h.
29818 * hook/datehook.c: Correct module name.
29819 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29820 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29821 * include/grub/i386/efi/serial.h: New file.
29822 * include/grub/x86_64/efi/serial.h: Likewise.
29823 * util/time.c: Likewise.
29824 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29825
29826 2010-03-14 Colin King <colin.king@ubuntu.com>
29827 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29828
29829 Shrink the pre-partition-table part of boot.img by eight bytes.
29830
29831 * boot/i386/pc/boot.S (ERR): New macro.
29832 (chs_mode): Use ERR.
29833 (geometry_error): Likewise.
29834 (hd_probe_error): Remove. This is only used once, so we wrwite
29835 it inline instead.
29836 (read_error): Instead of printing read_error_string, just set up
29837 %si and fall through to ...
29838 (error_message): ... this new function, also used by ERR.
29839
29840 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29841
29842 Speed up consecutive hostdisk operations on the same device.
29843
29844 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29845 (grub_util_biosdisk_open): Initialise disk->data.
29846 (struct linux_partition_cache): New structure.
29847 (linux_find_partition): Cache partition start positions; these are
29848 expensive to compute on every read and write.
29849 (open_device): Cache open file descriptor in disk->data, so that we
29850 don't have to reopen it and flush the buffer cache for consecutive
29851 operations on the same device.
29852 (grub_util_biosdisk_close): New function.
29853 (grub_util_biosdisk_dev): Set `close' member.
29854
29855 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29856 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29857 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29858 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29859 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29860
29861 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29862
29863 Compile parts of grub-emu as modules.
29864
29865 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29866 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29867 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29868 (all-local): Add $(GRUB_EMU).
29869 (install-local): Install $(GRUB_EMU).
29870 (uninstall): Uninstall $(GRUB_EMU).
29871 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29872 * kern/dl.c: Likewise.
29873 * commands/sleep.c: Not include machine/time.h.
29874 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29875 (COMMON_CFLAGS): Likewise.
29876 (sbin_UTILITIES): Remove grub-emu.
29877 (grub_emu_SOURCES): Removed.
29878 (kernel_img_RELOCATABLE): New variable.
29879 (pkglib_PROGRAMS): Add kernel.img.
29880 (kernel_img_SOURCES): New variable
29881 (kernel_img_CFLAGS): Likewise.
29882 (kernel_img_LDFLAGS): Likewise.
29883 (TARGET_NO_STRIP): Likewise.
29884 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29885 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29886 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29887 (grub-emu): New target.
29888 (GRUB_EMU): New variable.
29889 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29890 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29891 * loader/xnu.c: Likewise.
29892 * include/grub/pci.h: Likewise.
29893 * genemuinit.sh: New file.
29894 * genemuinitheader.sh: Likewise.
29895 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29896 Support TARGET_NO_DYNAMIC_MODULES.
29897 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29898 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29899 * disk/loopback.c: Likewise.
29900 * font/font_cmd.c: Likewise.
29901 * partmap/acorn.c: Likewise.
29902 * partmap/amiga.c: Likewise.
29903 * partmap/apple.c: Likewise.
29904 * partmap/gpt.c: Likewise.
29905 * partmap/msdos.c: Likewise.
29906 * partmap/sun.c: Likewise.
29907 * parttool/msdospart.c: Likewise.
29908 * term/gfxterm.c: Likewise.
29909 * video/bitmap.c: Likewise.
29910 * video/readers/jpeg.c: Likewise.
29911 * video/readers/png.c: Likewise.
29912 * video/readers/tga.c: Likewise.
29913 * video/video.c: Likewise.
29914 * util/grub-emu.c (read_command_list): Removed.
29915 (main): Don't call util_init_nls.
29916 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29917 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29918
29919 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29920
29921 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29922 date.mod, datehook.mod.
29923 (datetime_mod_SOURCES): New variable.
29924 (datetime_mod_CFLAGS): Likewise.
29925 (datetime_mod_LDFLAGS): Likewise.
29926 (date_mod_SOURCES): Likewise.
29927 (date_mod_CFLAGS): Likewise.
29928 (date_mod_LDFLAGS): Likewise.
29929 (datehook_mod_SOURCES): Likewise.
29930 (datehook_mod_CFLAGS): Likewise.
29931 (datehook_mod_LDFLAGS): Likewise.
29932 * conf/sparc64-ieee1275.rmk: Likewise.
29933 * lib/ieee1275/datetime.c: New file.
29934
29935 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29936
29937 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29938 (ieee1275_fb_mod_SOURCES): New variable.
29939 (ieee1275_fb_mod_CFLAGS): Likewise.
29940 (ieee1275_fb_mod_LDFLAGS): Likewise.
29941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29942 New proto.
29943 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29944 (HEAP_MAX_ADDR): Likewise.
29945 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29946 type.
29947 Correct stop condition.
29948 (grub_ieee1275_devices_iterate): New function.
29949 * video/ieee1275.c: New file.
29950
29951 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29952
29953 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29954
29955 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29956 as scratch.
29957 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29958 SCRATCH_PAD_DISKBOOT as scratch.
29959 (bootit): Pass Openfirmware pointer in %o4.
29960 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29961 of 0x200000.
29962 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29963 with util/grub-mkrawimage.c.
29964 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29965 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29966 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29967 (grub_aout_load) [GRUB_UTIL]: Likewise.
29968 * include/grub/kernel.h (grub_modules_get_end): New proto.
29969 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29970 (SCRATCH_PAD_BOOT): New definition.
29971 (SCRATCH_PAD_DISKBOOT): Likewise.
29972 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29973 * include/grub/sparc64/ieee1275/ieee1275.h
29974 (grub_ieee1275_original_stack): New variable
29975 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29976 New definition
29977 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29978 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29979 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29980 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29981 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
29982 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
29983 (grub_platform_image_format_t): New type.
29984 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
29985 * kern/main.c (grub_modules_get_end)
29986 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
29987 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
29988 (codestart): Switch stacks.
29989 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
29990 variable.
29991 (grub_heap_init): Use grub_modules_get_end.
29992 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
29993 stack.
29994 * util/grub-mkrawimage.c (generate_image): Support sparc64.
29995 (main): Likewise.
29996 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
29997
29998 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
29999
30000 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30001
30002 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30003
30004 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30005 bug #559005).
30006
30007 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30008
30009 * genmoddep.awk: Output all missing symbols and not only first.
30010
30011 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30012
30013 * NEWS: Put the date of 1.98 release.
30014
30015 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30016
30017 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30018 ft2build.h.
30019
30020 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30021
30022 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30023 completition in the middle of string.
30024
30025 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30026
30027 * util/grub-mkrescue.in: Use mktemp with explicit template.
30028
30029 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30030
30031 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30032
30033 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30036 right pointer.
30037
30038 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30039
30040 Fix FreeBSD compilation.
30041
30042 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30043 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30044
30045 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30046
30047 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30048
30049 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30052
30053 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30054
30055 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30056
30057 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30058
30059 Support relative image path in theme file.
30060
30061 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30062 (image_set_property): Handle theme_dir and relative path.
30063
30064 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30065
30066 * configure.ac: Alias amd64 to x86_64.
30067
30068 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30069
30070 * NEWS: mention multiboot on EFI.
30071
30072 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30073
30074 * kern/main.c (grub_load_modules): Handle errors from init functions of
30075 embeded modules.
30076
30077 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30078
30079 * normal/autofs.c (autoload_fs_module): Handle errors.
30080
30081 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30082
30083 Disable linux.mod on qemu-mips since it's not functional and leads
30084 to compilation failure.
30085
30086 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30087 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30088 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30089 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30090 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30091 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30092 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30093 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30094 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30095 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30096 Reported by: BVK Chaitanya
30097
30098 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30099
30100 * INSTALL: Add gettext as a dependency and add qemu to a new section
30101 "Prerequisites for make-check".
30102
30103 2010-03-04 Christian Franke <franke@computer.org>
30104
30105 * util/grub-pe2elf.c: Add missing include "progname.h".
30106
30107 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30108
30109 * normal/crypto.c (read_crypto_list): Fix a typo.
30110 Reported by: Seth Goldberg.
30111
30112 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30115 Reported by: Seth Goldberg.
30116
30117 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30118
30119 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30120 ascii.bitmaps.
30121
30122 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30123
30124 * genmk.rb: Remove terminal*.lst in make clean.
30125 Reported by: Seth Goldberg.
30126
30127 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30128
30129 * util/i386/efi/grub-install.in: Copy gettext files.
30130
30131 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30132
30133 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30134
30135 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30136
30137 Wait for user entry basing on presence of output rather than on errors.
30138
30139 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30140 (grub_install_newline_hook): Likewise.
30141 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30142 * normal/menu.c (show_menu): Check line_counter to determine presence
30143 of output.
30144 * normal/term.c (grub_normal_line_counter): New variable.
30145 (grub_normal_get_line_counter): New function.
30146 (grub_install_newline_hook): Likewise.
30147
30148 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30149
30150 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30151
30152 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30153
30154 * configure.ac: Update version to 1.98.
30155
30156 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30157
30158 * util/grub.d/10_linux.in (linux_entry): Don't default to
30159 gfxpayload=keep if Linux doesn't support video handover.
30160
30161 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 Don't compile video modules on yeeloong since video subsystem is part
30164 of kernel.
30165
30166 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30167 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30168 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30169 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30170 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30171 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30172 * include/grub/bitmap_scale.h: Likewise.
30173 * include/grub/bufio.h: Likewise.
30174 * include/grub/font.h: Likewise.
30175 * include/grub/gfxterm.h: Likewise.
30176 * include/grub/video.h: Likewise.
30177 * include/grub/vbe.h: Don't include video_fb.h.
30178 * video/i386/pc/vbe.c: Include video_fb.h.
30179 * commands/i386/pc/vbetest.c: Include video.h.
30180
30181 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30182
30183 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30184 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30185 default entry if GRUB_SAVEDEFAULT=true. This allows using
30186 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30187 saving a new default on every boot.
30188
30189 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30190
30191 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30192 * normal/term.c (read_terminal_list): Likewise.
30193 * normal/main.c (grub_normal_init_page): Likewise.
30194 (grub_normal_read_line_real): Likewise.
30195
30196 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30197
30198 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30199 memory leak.
30200 Reported by: Seth Goldberg.
30201
30202 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30203
30204 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30205 duplicate declaration of `start'.
30206
30207 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30208
30209 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30210 filename.
30211 Reported by: Georgy Buranov
30212
30213 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30214
30215 * util/grub-mkrawimage.c (usage): Change string formatting to
30216 improve gettext.
30217
30218 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30219
30220 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30221 backspace keys.
30222
30223 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30224
30225 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30226 Reported by: Michael Suchanek.
30227
30228 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30229
30230 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30231 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30232
30233 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30234
30235 Remove any reference to non-free fonts.
30236
30237 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30238 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30239 uses non-free components.
30240 * font/font.c (grub_font_get_name): Remove example name.
30241 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30242 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30243 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30244 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30245
30246 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30247
30248 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30249
30250 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30251
30252 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30253 Double divisor.
30254 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30255 features.
30256 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30257
30258 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30259
30260 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30261
30262 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30263
30264 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30265 * docs/grub.texi (Command-line and menu entry commands): Document play
30266 command.
30267
30268 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30269
30270 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30271 parse arguments as inline tempo and notes. Move code for playing notes
30272 to...
30273 (play): ... new function.
30274
30275 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30276
30277 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30278 grub_uint16_t instead of short.
30279 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30280 disk from little endian to cpu endianness.
30281
30282 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30283
30284 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30285 GRUB_TICKS_PER_SECOND instead of 120.
30286
30287 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30290 escape sequence after \e.
30291
30292 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30293
30294 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30295 non-ASCII characters.
30296
30297 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30298
30299 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30300 set root in single quotes to prevent \, from being unescaped.
30301
30302 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30303
30304 Prevent unknown commands from stopping menuentry execution.
30305
30306 * script/execute.c (grub_script_execute_cmdline): Print error after
30307 unknown command.
30308
30309 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30310
30311 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30312 Reported by: Pavel Pisa.
30313
30314 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30315
30316 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30317
30318 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30319
30320 Merge grub_ieee1275_map_physical into grub_map and rename to
30321 grub_ieee1275_map
30322
30323 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30324 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30325 Remove.
30326 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30327 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30328 necessary.
30329 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30330
30331 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30332
30333 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30334 opening and not after.
30335
30336 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30337
30338 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30339 constants.
30340
30341 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30342
30343 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30344 (alloc_phys): Use ALIGN_UP instead of align_addr.
30345
30346 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30347
30348 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30349
30350 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30351
30352 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30353
30354 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30355
30356 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30357 verbose dprintf.
30358
30359 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30360
30361 Fix over-4GiB seek on sparc64.
30362
30363 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30364 Replace pos_i and pos_lo with pos. All users updated.
30365 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30366 New constant.
30367 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30368 Likewise.
30369 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30370 and pos_lo.
30371
30372 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 * util/grub-mkrawimage.c (main): Call set_program_name.
30375
30376 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30377
30378 Properly align 64-bit targets.
30379
30380 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30381 (generate_image): Use ALIGN_ADDR.
30382
30383 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30384
30385 Properly create cross-endian images.
30386
30387 * include/grub/types.h (grub_host_to_target_addr): New macro
30388 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30389
30390 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30393
30394 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30395
30396 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30397
30398 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30399 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30400 (grub_linux_boot): Divide by 64K when on VESA.
30401
30402 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30403
30404 Support GRUB_GFXPAYLOAD_LINUX.
30405
30406 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30407 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30408
30409 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30410
30411 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30412 to show messages instead of discarding them.
30413 Process errors after executing command and not before. Keep old method
30414 too as precaution.
30415
30416 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30417
30418 * configure.ac: Check for ft2build.h.
30419
30420 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30421
30422 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30423
30424 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30425
30426 * genkernsyms.sh.in: Use TARGET_CC.
30427
30428 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30429
30430 * NEWS: Update.
30431
30432 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 * include/grub/multiboot2.h: Remove leftover file.
30435 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30436 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30437
30438 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30439
30440 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30441
30442 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30443
30444 Fix warnings in grub-emu when compiling with maximum warning options.
30445
30446 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30447 (grub_arch_modules_addr): Return 0 and not NULL.
30448 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30449 (xstrdup): Use newstr instead of dup.
30450 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30451 of disk to dsk to avoid shadowing.
30452 (find_free_slot): Fix prototype.
30453 * util/getroot.c (grub_util_is_dmraid): Make static.
30454 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30455 Add missing prototype.
30456 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30457
30458 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30459
30460 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30461 appropriately.
30462
30463 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30464
30465 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30466 code out.
30467
30468 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30469
30470 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30471 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30472 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30473 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30474 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30475 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30476
30477 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30478
30479 * include/grub/err.h (grub_err_printf): Don't export.
30480
30481 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30482
30483 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30484
30485 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30486
30487 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30488 * kern/misc.c (grub_gettext_dummy): Make static.
30489
30490 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30491
30492 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30493 by non-valid ones.
30494 * kern/term.c (grub_putchar): Likewise.
30495
30496 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30497
30498 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30499 buggy hook call and memory leak.
30500
30501 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30502
30503 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30504
30505 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30506
30507 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30508
30509 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30510
30511 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30512 modevar.
30513 Return grub_errno on allocation error.
30514
30515 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30518
30519 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30520
30521 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30522 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30523
30524 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30525
30526 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30527 non-pxe disk.
30528 (grub_pxefs_open): Likewise.
30529
30530 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30531
30532 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30533 * util/grub.d/10_kfreebsd.in: Likewise.
30534 * util/grub.d/10_linux.in: Likewise.
30535
30536 2010-02-06 Colin D Bennett <colin@gibibit.com>
30537
30538 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30539 (gfxmenu_mod_SOURCES): New variable.
30540 (gfxmenu_mod_CFLAGS): Likewise.
30541 (gfxmenu_mod_LDFLAGS): Likewise.
30542 * include/grub/term.h (grub_term_set_current_output): Declare
30543 argument as const.
30544 * docs/gfxmenu-theme-example.txt: New file.
30545 * gfxmenu/gfxmenu.c: Likewise.
30546 * gfxmenu/gui_box.c: Likewise.
30547 * gfxmenu/gui_canvas.c: Likewise.
30548 * gfxmenu/gui_circular_progress.c: Likewise.
30549 * gfxmenu/gui_image.c: Likewise.
30550 * gfxmenu/gui_label.c: Likewise.
30551 * gfxmenu/gui_list.c: Likewise.
30552 * gfxmenu/gui_progress_bar.c: Likewise.
30553 * gfxmenu/gui_string_util.c: Likewise.
30554 * gfxmenu/gui_util.c: Likewise.
30555 * gfxmenu/icon_manager.c: Likewise.
30556 * gfxmenu/model.c: Likewise.
30557 * gfxmenu/named_colors.c: Likewise.
30558 * gfxmenu/theme_loader.c: Likewise.
30559 * gfxmenu/view.c: Likewise.
30560 * gfxmenu/widget-box.c: Likewise.
30561 * include/grub/gfxmenu_model.h: Likewise.
30562 * include/grub/gfxmenu_view.h: Likewise.
30563 * include/grub/gfxwidgets.h: Likewise.
30564 * include/grub/gui.h: Likewise.
30565 * include/grub/gui_string_util.h: Likewise.
30566 * include/grub/icon_manager.h: Likewise.
30567
30568 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30569
30570 Agglomerate scrolling in gfxterm.
30571
30572 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30573 (grub_virtual_screen_setup): Initialise 'total_screen'.
30574 (write_char): Split to ...
30575 (paint_char): ... this ...
30576 (write_char): ... and this.
30577 (paint_char): Handle delayed scrolling.
30578 (draw_cursor): Likewise.
30579 (scroll_up): Split to ...
30580 (real_scroll): ... this ...
30581 (scroll_up): ... and this.
30582 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30583 characters.
30584 (grub_gfxterm_refresh): Call real_scroll.
30585
30586 2010-02-06 Colin D Bennett <colin@gibibit.com>
30587
30588 * include/grub/misc.h (grub_iscntrl): New inline function.
30589 (grub_isalnum): Likewise.
30590 (grub_strtol): Likewise.
30591
30592 2010-02-06 Colin D Bennett <colin@gibibit.com>
30593
30594 * normal/menu_text.c (get_entry_number): Move from here ...
30595 * normal/menu.c (get_entry_number): ... moved here.
30596 * include/grub/menu.h (grub_menu_get_default_entry_index):
30597 New prototype.
30598 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30599 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30600 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30601 (grub_menu_viewer_should_return): Likewise.
30602 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30603 * normal/menu_text.c (run_menu): Enable menu switching.
30604 * normal/menu_viewer.c (should_return): New variable.
30605 (menu_viewer_changed): Likewise.
30606 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30607 (grub_menu_viewer_should_return): New function.
30608 (menuviewer_write_hook): Likewise.
30609 (grub_menu_viewer_init): Likewise.
30610
30611 2010-02-06 Colin D Bennet <colin@gibibit.com>
30612 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30613
30614 Support for gfxterm in a window.
30615
30616 * include/grub/gfxterm.h: New file.
30617 * include/grub/video.h (struct grub_video_rect): New declaration.
30618 (grub_video_rect_t): Likewise.
30619 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30620 (refcount): New variable.
30621 (render_target): Likewise.
30622 (window): Likewise.
30623 (repaint_callback): Likewise.
30624 (grub_virtual_screen_setup): Use 'render_target'.
30625 (init_window): New function.
30626 (grub_gfxterm_init_window): Likewise.
30627 (grub_gfxterm_init): Check reference counter.
30628 Use init_window.
30629 (destroy_window): New function.
30630 (grub_gfxterm_destroy_window): Likewise.
30631 (grub_gfxterm_fini): Check reference counter.
30632 Use destroy_window.
30633 (redraw_screen_rect): Restore viewport.
30634 Use 'render_target' and 'window'.
30635 Call 'repaint_callback'.
30636 (write_char): Use 'render_target'.
30637 (draw_cursor): Likewise.
30638 (scroll_up): Restore viewport.
30639 Use 'render_target' and 'window'.
30640 Call 'repaint_callback'.
30641 (grub_gfxterm_cls): Likewise.
30642 (grub_gfxterm_refresh): Use 'window'.
30643 (grub_gfxterm_set_repaint_callback): New function.
30644 (grub_gfxterm_background_image_cmd): Use 'window'.
30645 (grub_gfxterm_get_term): New function.
30646 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30647
30648 2010-02-06 Colin D Bennett <colin@gibibit.com>
30649
30650 Bitmap scaling support.
30651
30652 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30653 (bitmap_scale_mod_SOURCES): New variable.
30654 (bitmap_scale_mod_CFLAGS): Likewise.
30655 (bitmap_scale_mod_LDFLAGS): Likewise.
30656 * include/grub/bitmap_scale.h: New file.
30657 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30658 (background_image_cmd_options): New variable.
30659 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30660 (cmd): Rename and change type to ...
30661 (background_image_cmd_handle): ... this. All users updated.
30662 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30663 * video/bitmap_scale.c: New file.
30664
30665 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30666
30667 SDL support.
30668
30669 * Makefile.in (LIBSDL): New variable.
30670 (enable_grub_emu_sdl): Likewise.
30671 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30672 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30673 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30674 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30675 * util/sdl.c: New file.
30676
30677 2010-02-06 Colin D Bennett <colin@gibibit.com>
30678 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30679
30680 Double buffering support.
30681
30682 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30683 * include/grub/video.h: Update comment.
30684 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30685 New type.
30686 (grub_video_fb_doublebuf_blit_init): New prototype.
30687 * term/gfxterm.c (scroll_up): Support double buffering.
30688 (grub_gfxterm_refresh): Likewise.
30689 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30690 (grub_video_fb_doublebuf_blit_init): Likewise.
30691 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30692 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30693 'displayed_page', 'render_page' and 'update_screen'.
30694 (grub_video_vbe_fini): Free offscreen buffer.
30695 (doublebuf_pageflipping_commit): New function.
30696 (doublebuf_pageflipping_update_screen): Likewise.
30697 (doublebuf_pageflipping_init): Likewise.
30698 (double_buffering_init): Likewise.
30699 (grub_video_vbe_setup): Enable doublebuffering.
30700 (grub_video_vbe_swap_buffers): Implement.
30701 (grub_video_vbe_set_active_render_target): Handle double buffering.
30702 (grub_video_vbe_get_active_render_target): Likewise.
30703 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30704 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30705 (grub_video_vbe_enable_double_buffering): Likewise.
30706 (grub_video_vbe_swap_buffers): Use update_screen.
30707 (grub_video_set_mode): Use double buffering.
30708
30709 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30710
30711 * maintainance/gentrigtables.py: Remove.
30712 * lib/trig.c: Likewise.
30713
30714 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30715
30716 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30717 `trigtables.c'.
30718 (trigtables.c): New rule.
30719 (gentrigtables): Likewise.
30720 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30721
30722 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30723
30724 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30725 integer constants.
30726
30727 2010-02-06 Colin D Bennet <colin@gibibit.com>
30728
30729 Trigonometry support.
30730
30731 * include/grub/trig.h: New file.
30732 * lib/trig.c: Likewise.
30733 * maintainance/gentrigtables.py: Likewise.
30734 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30735 (trig_mod_SOURCES): New variable.
30736 (trig_mod_CFLAGS): Likewise.
30737 (trig_mod_LDFLAGS): Likewise.
30738
30739 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30740
30741 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30742 disk devices.
30743
30744 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30745
30746 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30747 error.
30748
30749 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30750
30751 * util/hostdisk.c (open_device): Don't use partition device when reading
30752 before the partition.
30753 (grub_util_biosdisk_read): Don't read from partition and before the
30754 partition in single operation.
30755 (grub_util_biosdisk_write): Don't write to partition and before the
30756 partition in single operation.
30757
30758 2010-02-03 Torsten Landschoff <torsten@debian.org>
30759
30760 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30761 last sectors.
30762
30763 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30764
30765 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30766 CDROM reads.
30767 (grub_biosdisk_write): Refuse to write to CDROM.
30768
30769 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30770
30771 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30772
30773 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30774
30775 * font/font.c (find_glyph): Check that bmp_idx is available before
30776 using it.
30777 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30778 with (font == NULL).
30779
30780 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30781
30782 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30783
30784 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30785
30786 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30787 * util/grub-script-check.c (getline): Fix empty lines case.
30788
30789 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30790
30791 * Makefile.in (check): Exit with fail status when one of the tests
30792 fails.
30793 * tests/example_functional_test.c (example_test): Fix reversed assert.
30794 * tests/example_unit_test.c (example_test): Likewise.
30795
30796 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30797
30798 * util/grub.d/10_linux.in: This script does not use any of the
30799 contents of gettext.sh, only the external command `gettext', so stop
30800 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30801 the same prefix as GRUB.)
30802 * util/grub.d/10_kfreebsd.in: Likewise.
30803
30804 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30805
30806 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30807 of the line.
30808
30809 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30810
30811 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30812 last sectors.
30813
30814 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30815
30816 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30817 having a 4KiB and not 32KiB buffer size.
30818
30819 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30820
30821 * util/hostfs.c: Include `<errno.h>'.
30822 (grub_hostfs_read): Handle errors from fseeko() and fread().
30823
30824 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30825
30826 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30827 loop when using read hooks on files whose size isn't sector-aligned.
30828
30829 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30830
30831 Remove unused parameter.
30832
30833 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30834 (grub_iso9660_open): Remove initialization of `data->length'.
30835
30836 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30837
30838 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30839 memleak conditions.
30840
30841 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30842
30843 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30844 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30845
30846 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30847
30848 * util/bin2h.c (usage): Fix warning (space after backslash).
30849
30850 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30851
30852 * font/font.c: Include `grub/fontformat.h.
30853 Remove font file format constants.
30854 (grub_font_load): Use the new macros.
30855 * include/grub/fontformat.h: New file.
30856 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30857 (write_font_pf2): Use the new macros.
30858
30859 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30860
30861 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30862 does.
30863
30864 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30865
30866 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30867
30868 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30869 (_start): Macroify `0x7F'.
30870
30871 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30872 (make_install_device): Use "(pxe)" as fallback prefix when booting
30873 via PXE.
30874
30875 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30876
30877 * configure.ac: Reset LIBS after check for libgcc symbols.
30878
30879 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30880
30881 * util/hostdisk.c (open_device): Add trailing newline to debug
30882 message.
30883
30884 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30885
30886 * configure.ac: Check for `limits.h'.
30887 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30888
30889 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30890
30891 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30892 capitalize error strings.
30893
30894 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30895
30896 * util/grub.d/10_hurd.in: Add a recovery mode.
30897
30898 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30899
30900 * configure.ac: Check for libgcc symbols with -nostdlib.
30901
30902 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30903
30904 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30905
30906 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30907
30908 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30909 stack since heap may be unavailable at that point.
30910 (grub_ofconsole_gotoxy): Likewise.
30911
30912 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30913
30914 * configure.ac: Check for _restgpr_14_x.
30915 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30916 and _savegpr_* prototypes.
30917
30918 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30919
30920 Use generic grub_reboot() for i386-efi.
30921
30922 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30923 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30924 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30925
30926 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30927
30928 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30929 presence of "prefix" variable as it breaks when normal.mod is
30930 embedded.
30931
30932 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30933
30934 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30935 stack since heap is unavailable at that point.
30936
30937 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30938
30939 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30940 (grub_freebsd_bootinfo): Rewritten.
30941 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30942
30943 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30944
30945 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30946
30947 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30948
30949 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30950 domain now.
30951
30952 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30953
30954 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30955 around for handling "/" to the correct fix. Fix a memory leak. Use
30956 xstrdup instead of strdup.
30957
30958 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30959
30960 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30961
30962 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30963
30964 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30965
30966 * font/font.c (struct grub_font): New member 'bmp_idx'.
30967 (font_init): Initialise 'bmp_idx'.
30968 (load_font_index): Fill 'bmp_idx'.
30969 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30970
30971 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30972
30973 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30974 unnecessary calls.
30975
30976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30977
30978 Move context handling out of the kernel.
30979
30980 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30981 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
30982 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
30983 * conf/i386-efi.rmk: Likewise.
30984 * conf/i386-ieee1275.rmk: Likewise.
30985 * conf/i386-pc.rmk: Likewise.
30986 * conf/powerpc-ieee1275.rmk: Likewise.
30987 * conf/sparc64-ieee1275.rmk: Likewise.
30988 * conf/x86_64-efi.rmk: Likewise.
30989 * include/grub/env.h: Include grub/menu.h.
30990 (grub_env_var_type): Removed.
30991 (grub_env_var): Replaced field 'type' with 'global'.
30992 (grub_env_find): New prototype.
30993 (grub_env_context_open): Remove EXPORT_FUNC.
30994 (grub_env_context_close): Likewise.
30995 (grub_env_export): Likewise.
30996 (grub_env_set_data_slot): Removed.
30997 (grub_env_get_data_slot): Likewise.
30998 (grub_env_unset_data_slot): Likewise.
30999 (grub_env_unset_menu): New prototype.
31000 (grub_env_set_menu): Likewise.
31001 (grub_env_get_menu): Likewise.
31002 * include/grub/env_private.h: New file.
31003 * include/grub/normal.h (grub_context_init): New prototype.
31004 (grub_context_fini): Likewise.
31005 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31006 * normal/context.c (grub_cmd_export): ... to here.
31007 * kern/env.c: Include env_private.h.
31008 (HASHSZ): Moved to include/grub/env_private.h.
31009 (grub_env_context): Likewise.
31010 (grub_env_sorted_var): Likewise.
31011 (current_context): Renamed from this ...
31012 (grub_current_context): ...to this. 'static' removed. All users updated.
31013 (grub_env_find): Removed 'static'.
31014 (grub_env_context_open): Moved to normal/context.c.
31015 (grub_env_context_close): Likewise.
31016 (grub_env_export): Likewise.
31017 (mangle_data_slot_name): Removed.
31018 (grub_env_set_data_slot): Likewise.
31019 (grub_env_get_data_slot): Likewise.
31020 (grub_env_unset_data_slot): Likewise.
31021 * kern/main.c (grub_set_root_dev): Don't export root.
31022 It will be done later.
31023 (grub_main): Don't export prefix.
31024 It will be done later.
31025 * normal/context.c: New file.
31026 * normal/main.c (free_menu): Use grub_env_unset_menu.
31027 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31028 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31029 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31030 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31031
31032 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 setpci support.
31035
31036 * commands/setpci.c: New file.
31037 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31038 (setpci_mod_SOURCES): New variable.
31039 (setpci_mod_CFLAGS): Likewise.
31040 (setpci_mod_LDFLAGS): Likewise.
31041
31042 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31043
31044 Byte-addressable PCI configuration space.
31045
31046 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31047 dword address.
31048 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31049 GRUB_PCI_REG_CACHELINE.
31050 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31051 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31052 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31053 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31054 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31055 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31056 grub_pci_make_address.
31057 (lock_rom_area): Likewise.
31058 * commands/lspci.c (grub_lspci_iter): Use macroses
31059 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31060 of grub_pci_make_address.
31061 * disk/ata.c (grub_ata_pciinit): Likewise.
31062 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31063 (GRUB_PCI_REG_VENDOR): Likewise.
31064 (GRUB_PCI_REG_DEVICE): Likewise.
31065 (GRUB_PCI_REG_COMMAND): Likewise.
31066 (GRUB_PCI_REG_STATUS): Likewise.
31067 (GRUB_PCI_REG_REVISION): Likewise.
31068 (GRUB_PCI_REG_CLASS): Likewise.
31069 (GRUB_PCI_REG_CACHELINE): Likewise.
31070 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31071 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31072 (GRUB_PCI_REG_BIST): Likewise.
31073 (GRUB_PCI_REG_ADDRESSES): Likewise.
31074 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31075 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31076 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31077 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31078 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31079 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31080 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31081 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31082 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31083 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31084 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31085 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31086 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31087 (GRUB_PCI_REG_MIN_GNT): Likewise.
31088 (GRUB_PCI_REG_MAX_LAT): Likewise.
31089 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31090 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31091 * video/efi_uga.c (find_framebuf): Likewise.
31092 * video/sm712.c (grub_video_sm712_setup): Likewise.
31093 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31094 space.
31095
31096 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31097
31098 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31099 can be reliably determined to be supported.
31100
31101 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31102
31103 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31104 that VESA is supported.
31105 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31106 supported.
31107
31108 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31109
31110 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31111
31112 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31113
31114 * util/misc.c (make_system_path_relative_to_its_root): Work around
31115 special-casing of "/", as previous incarnation of this routine did.
31116
31117 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31118
31119 Fix any-emu compilation.
31120
31121 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31122 * grub_bin2h_SOURCES: New variable.
31123
31124 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31125
31126 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31127
31128 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31129
31130 * util/grub.d/00_header.in: Fix handling of locale_dir.
31131
31132 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31133
31134 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31135 as possible unifont location (Gentoo).
31136 Reported by: Alexander Brüning
31137
31138 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31139
31140 Don't try to generate lists for kernel.img.
31141
31142 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31143 (pkglib_MODULES): Remove kernel.img.
31144 (kernel_img_EXPORTS): Removed.
31145 (kernel_img_RELOCATABLE): New variable.
31146 * conf/x86_64-efi.rmk: Likewise.
31147 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31148
31149 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31150
31151 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31152 grub_xasprintf or grub_snprintf.
31153 (grub_vsprintf): Likewise.
31154 (grub_snprintf): New proto.
31155 (grub_vsnprintf): Likewise.
31156 (grub_xasprintf): Likewise.
31157 (grub_xvasprintf): Likewise.
31158 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31159 (grub_sprintf): Removed.
31160 (grub_vsnprintf): New function.
31161 (grub_snprintf): Likewise.
31162 (grub_xvasprintf): Likewise.
31163 (grub_xasprintf): Likewise.
31164 (grub_vsprintf): Renamed to ...
31165 (grub_vsnprintf_real): ...this. New argument max_len.
31166
31167 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31168
31169 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31170 fix grub-script-check warning.
31171
31172 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31173
31174 * include/grub/font.h (grub_font_load): Fix prototype.
31175
31176 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31177
31178 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31179
31180 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31181
31182 * include/grub/x86_64/at_keyboard.h: New file.
31183
31184 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31185
31186 * loader/mips/linux.c: Include missing grub/i18n.h.
31187
31188 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31189
31190 * normal/menu.c (notify_execution_failure): Clarify error message.
31191
31192 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31193
31194 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31195 return value (and revert all return statements). Update users.
31196
31197 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31198
31199 * kern/device.c (grub_device_iterate): Allocate new part_ent
31200 structure based on sizeof (*p) rather than sizeof (p->next), to
31201 account for structure padding.
31202
31203 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31204 disk is NULL, which might happen for LVM physical volumes with no
31205 LVM signature.
31206
31207 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31208
31209 * loader/mips/linux.c (grub_cmd_initrd)
31210 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31211
31212 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31213
31214 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31215 (grub_video_video_init, grub_video_bitmap_init)
31216 (grub_font_manager_init, grub_term_gfxterm_init)
31217 (grub_at_keyboard_init): New extern declarations.
31218 (grub_machine_init): Initialize gfxterm and at_keyboard.
31219
31220 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31221
31222 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31223 `gfxterm.mod' into core image.
31224
31225 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31226 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31227 (kernel_img_FORMAT): Copy to ...
31228
31229 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31230 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31231 (kernel_img_FORMAT): ... here, and ...
31232
31233 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31234 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31235 (kernel_img_FORMAT): ... here.
31236
31237 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31238 and input (at_keyboard) terminals in kernel.
31239 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31240
31241 (pkglib_MODULES): Remove `pci.mod'.
31242 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31243 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31244 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31245 (at_keyboard_mod_LDFLAGS): Remove variables.
31246
31247 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31248
31249 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31250
31251 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31252
31253 * include/grub/mips/libgcc.h: Only export symbols for functions
31254 that libgcc provides.
31255
31256 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31257
31258 MIPS support.
31259
31260 * bus/bonito.c: New file.
31261 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31262 GRUB_PCI_NUM_DEVICES.
31263 * term/i386/pc/serial.c: Move to ...
31264 * term/serial.c: ... here. All users updated.
31265 * util/i386/pc/grub-mkimage.c: Move to ...
31266 * util/grub-mkrawimage.c: ... here. All users updated.
31267 * term/i386/pc/at_keyboard.c: Move to ...
31268 * term/at_keyboard.c: ... here. All users updated.
31269 * conf/mips-qemu-mips.rmk: New file.
31270 * conf/mips-yeeloong.rmk: Likewise.
31271 * conf/mips.rmk: Likewise.
31272 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31273 mipsel-qemu-mips.
31274 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31275 to port addresses.
31276 (grub_ata_pciinit): Support CS5536.
31277 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31278 * font/font_cmd.c (loadfont_command): Open file before passing it to
31279 grub_font_load.
31280 (pseudo_file_read): New function.
31281 (pseudo_file_close): Likewise.
31282 (pseudo_fs): New structure.
31283 (load_font_module): New function.
31284 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31285 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31286 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31287 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31288 * include/grub/i386/at_keyboard.h: Split into ...
31289 * include/grub/at_keyboard.h: ... this ...
31290 * include/grub/i386/at_keyboard.h: ... and this.
31291 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31292 New prototype.
31293 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31294 updated.
31295 (grub_elf64_size): Likewise.
31296 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31297 filename.
31298 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31299 * include/grub/i386/coreboot/serial.h: Rewritten.
31300 * include/grub/i386/ieee1275/serial.h: Include
31301 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31302 * include/grub/i386/pc/serial.h: Moved from here ...
31303 * include/grub/serial.h: ... to here. All users updated.
31304 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31305 (GRUB_PCI_NUM_BUS): Likewise.
31306 (GRUB_PCI_NUM_DEVICES): Likewise.
31307 (grub_pci_device_map_range): Add missing volatile keyword.
31308 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31309 * include/grub/mips/at_keyboard.h: New file.
31310 * include/grub/mips/cache.h: Likewise.
31311 * include/grub/mips/io.h: Likewise.
31312 * include/grub/mips/kernel.h: Likewise.
31313 * include/grub/mips/libgcc.h: Likewise.
31314 * include/grub/mips/pci.h: Likewise.
31315 * include/grub/mips/qemu-mips/boot.h: Likewise.
31316 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31317 * include/grub/mips/qemu-mips/loader.h: Likewise.
31318 * include/grub/mips/qemu-mips/memory.h: Likewise.
31319 * include/grub/mips/qemu-mips/serial.h: Likewise.
31320 * include/grub/mips/qemu-mips/time.h: Likewise.
31321 * include/grub/mips/relocator.h: Likewise.
31322 * include/grub/mips/time.h: Likewise.
31323 * include/grub/mips/types.h: Likewise.
31324 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31325 * include/grub/mips/yeeloong/boot.h: Likewise.
31326 * include/grub/mips/yeeloong/kernel.h: Likewise.
31327 * include/grub/mips/yeeloong/loader.h: Likewise.
31328 * include/grub/mips/yeeloong/memory.h: Likewise.
31329 * include/grub/mips/yeeloong/pci.h: Likewise.
31330 * include/grub/mips/yeeloong/serial.h: Likewise.
31331 * include/grub/mips/yeeloong/time.h: Likewise.
31332 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31333 * kern/elf.c (grub_elf32_size): New parameter. All users
31334 updated.
31335 (grub_elf64_size): Likewise.
31336 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31337 Load modules before saying "Welcome to GRUB!".
31338 Call grub_refresh after saying "Welcome to GRUB!".
31339 * kern/mips/cache.S: New file.
31340 * kern/mips/cache_flush.S: Likewise.
31341 * kern/mips/dl.c: Likewise.
31342 * kern/mips/init.c: Likewise.
31343 * kern/mips/qemu-mips/init.c: Likewise.
31344 * kern/mips/startup.S: Likewise.
31345 * kern/mips/yeeloong/init.c: Likewise.
31346 * kern/term.c (grub_putcode): Handle NULL terminal.
31347 (grub_getcharwidth): Likewise.
31348 (grub_getkey): Likewise.
31349 (grub_checkkey): Likewise.
31350 (grub_getkeystatus): Likewise.
31351 (grub_getxy): Likewise.
31352 (grub_getwh): Likewise.
31353 (grub_gotoxy): Likewise.
31354 (grub_cls): Likewise.
31355 (grub_setcolorstate): Likewise.
31356 (grub_setcolor): Likewise.
31357 (grub_getcolor): Likewise.
31358 (grub_refresh): Likewise.
31359 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31360 (write_jump): Add hatch nop.
31361 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31362 * lib/mips/setjmp.S: New file.
31363 * loader/mips/linux.c: Likewise.
31364 * term/i386/pc/at_keyboard.c: Move from here ...
31365 * term/at_keyboard.c: ... to here.
31366 * term/i386/pc/serial.c: Moved from here ...
31367 * term/serial.c: ... to here. All users updated.
31368 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31369 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31370 (serial_translate_key_sequence): Avoid deadlock.
31371 (grub_serial_getkey): Handle backspace.
31372 (grub_serial_putchar): Fix newline handling.
31373 * util/i386/pc/grub-mkimage.c: Move from here ...
31374 * util/grub-mkrawimage.c: ... to here. All users updated.
31375 (generate_image): New parameters 'font_path' and 'format'.
31376 Support embedding font.
31377 Use grub_host_to_target* instead of grub_cpu_to_le*.
31378 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31379 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31380 (options): New option "--font".
31381 (usage): Likewise.
31382 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31383 (main): Handle "--font".
31384 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31385 (grub_virtual_screen_setup): Set bg_color_display.
31386 (redraw_screen_rect): Use bg_color_display instead of incorrect
31387 bg_color.
31388 (grub_gfxterm_cls): Likewise.
31389 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31390 Support embedding config file.
31391 (add_segments): Likewise.
31392 (options): New option "--config".
31393 (main): Handle "--config".
31394 * video/sm712.c: New file.
31395
31396 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31397
31398 Fix parallel builds.
31399
31400 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31401 font.c depend on ascii.h).
31402
31403 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31404
31405 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31406
31407 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31408
31409 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31410 By default: disabled.
31411 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31412 parameter.
31413
31414 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31415
31416 * font/font.c: Update copyright years.
31417 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31418
31419 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31420
31421 * font/font.c: Include `ascii.h'.
31422 (ASCII_BITMAP_SIZE): New macro.
31423 (ascii_font_glyph): Define.
31424 (ascii_glyph_lookup): New function.
31425 (grub_font_get_string_width): Change comment. If glyph not found, use
31426 ascii_glyph_lookup.
31427 (grub_font_get_glyph_with_fallback): If glyph not available returns
31428 ascii_glyph_lookup.
31429 * util/grub-mkfont.c (file_formats): New enum.
31430 (options): Add `ascii-bitmaps' new option.
31431 (usage): Add `asii-bitmaps' new option.
31432 (write_font_ascii_bitmap): New function.
31433 (write_font): Rename to ...
31434 (write_font_p2): ... this. Remove print_glyphs call.
31435 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31436 used. Call print_glyphs.
31437 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31438
31439 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31440
31441 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31442 (grub_bin2h_SOURCES): New variable.
31443 * util/bin2h.c: New file.
31444
31445 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31446
31447 * include/multiboot.h: Resynced with spec.
31448 * include/multiboot2.h: Likewise.
31449 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31450 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31451
31452 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31453
31454 * include/grub/term.h (grub_term_register_input,
31455 grub_term_register_output): Check return of terminal init()
31456 routines, and abort if errors are raised.
31457
31458 * commands/terminal.c: Update copyright year.
31459
31460 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31461
31462 * commands/terminal.c (grub_cmd_terminal_input)
31463 (grub_cmd_terminal_output): Check return of terminal init()
31464 routines, and abort if errors are raised.
31465
31466 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31467
31468 * include/grub/i386/bsd.h: Fix include pathes.
31469
31470 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31471
31472 Add missing *BSD copyright headers.
31473
31474 * include/grub/aout.h: Add BSD licence.
31475 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31476 * include/grub/i386/freebsd_linker.h: ... here,
31477 * include/grub/i386/freebsd_reboot.h: ... here,
31478 * include/grub/i386/netbsd_bootinfo.h: ... here,
31479 * include/grub/i386/netbsd_reboot.h: ... here,
31480 * include/grub/i386/openbsd_bootarg.h: ... here,
31481 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31482 licence to each file.
31483
31484 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31485
31486 * acinclude.m4: Remove `nop' assembly instruction; it's not
31487 implemented by all architectures.
31488
31489 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31490
31491 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31492 ELILO. This is no longer necessary.
31493
31494 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31495
31496 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31497
31498 * util/grub-script-check.c: grub-script-check tool.
31499 * conf/common.rmk: Make rules for grub-script-check.
31500
31501 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31502
31503 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31504 spotting it back in 2008. Shame on me for forgetting he did.
31505
31506 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31507
31508 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31509
31510 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31511 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31512 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31513 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31514 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31515 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31516
31517 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31518
31519 * include/grub/test.h: Add license header.
31520 * tests/example_functional_test.c: Likewise.
31521 * tests/example_unit_test.c: Likewise.
31522 * tests/lib/functional_test.c: Likewise.
31523 * tests/lib/test.c: Likewise.
31524 * tests/lib/unit_test.c: Likewise.
31525
31526 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31527
31528 Use flag-based instead of hook-based video mode selection and "auto"
31529 keyword.
31530
31531 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31532 (grub_video_set_mode): Changed prototype. All users updated.
31533 (grub_video_check_mode_flag): New inline function.
31534 * video/video.c (parse_modespec): New function.
31535 (grub_video_set_mode): Parse flags and keywords.
31536
31537 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31538
31539 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31540 fprintf call.
31541
31542 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31543
31544 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31545
31546 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31547
31548 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31549 string.
31550 * util/grub-emu.c (usage): Likewise.
31551 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31552 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31553 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31554 * util/i386/pc/grub-setup.c (usage): Likewise.
31555
31556 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31557
31558 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31559 the message.
31560 (grub_util_info): Likewise.
31561 (grub_util_error): Likewise.
31562 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31563 and/or new lines in `grub_util_warna', `grub_util_info',
31564 `grub_util_error' calls.
31565 * util/getroot.c: Likewise.
31566 * util/grub-editenv.c: Likewise.
31567 * util/grub-emu.c: Likewise.
31568 * util/grub-fstest.c: Likewise.
31569 * util/grub-mkdevicemap.c: Likewise.
31570 * util/grub-mkfont.c: Likewise.
31571 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31572 * util/grub-mkrelpath.c: Likewise.
31573 * util/grub-pe2elf.c: Likewise.
31574 * util/grub-probe.c: Likewise.
31575 * util/hostdisk.c: Likewise.
31576 * util/i386/efi/grub-mkimage.c: Likewise.
31577 * util/i386/pc/grub-mkimage.c: Likewise.
31578 * util/i386/pc/grub-setup.c: Likewise.
31579 * util/ieee1275/ofpath.c: Likewise.
31580 * util/mkisofs/eltorito.c: Likewise.
31581 * util/mkisofs/rock.c: Likewise.
31582 * util/mkisofs/write.c: Likewise.
31583 * util/raid.c: Likewise.
31584 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31585 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31586
31587 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31588
31589 Enable multiboot on non-pc.
31590
31591 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31592 multiboot.mod and multiboot2.mod to ...
31593 * conf/i386.rmk (pkglib_MODULES): ... here.
31594 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31595 Moved to ...
31596 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31597 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31598 Moved to ...
31599 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31600 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31601 Moved to ...
31602 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31603 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31604 Moved to ...
31605 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31606 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31607 relocator.mod.
31608 (ata_mod_SOURCES): Removed.
31609 (ata_mod_CFLAGS): Likewise.
31610 (ata_mod_LDFLAGS): Likewise.
31611 (relocator_mod_SOURCES): Removed.
31612 (relocator_mod_CFLAGS): Likewise.
31613 (relocator_mod_ASFLAGS): Likewise.
31614 (relocator_mod_LDFLAGS): Likewise.
31615 Include i386.mk.
31616 * include/grub/x86_64/multiboot.h: New file.
31617 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31618 Terminate EFI.
31619
31620 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31621
31622 Video multiboot support.
31623
31624 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31625 New prototype.
31626 * include/multiboot.h: Resynced with multiboot specification.
31627 * include/multiboot2.h: Likewise.
31628 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31629 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31630 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31631 (HAS_VGA_TEXT): Likewise.
31632 (accepts_video): New variable.
31633 (grub_multiboot_set_accepts_video): New function.
31634 (grub_multiboot_get_mbi_size): Account for video structures.
31635 (set_video_mode): New function.
31636 (retrieve_video_parameters): Likewise.
31637 (grub_multiboot_make_mbi): Fill video fields.
31638
31639 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31640
31641 Video driver ids.
31642
31643 * include/grub/video.h (grub_video_driver_id): New type.
31644 (grub_video_adapter): New member 'id'. All users updated.
31645 (grub_video_get_driver_id): New proto.
31646 * video/video.c (grub_video_get_driver_id): New function.
31647
31648 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31649
31650 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31651 `var=val'.
31652
31653 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31654
31655 * normal/cmdline.c (print_completion): Gettextizze.
31656
31657 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31658
31659 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31660
31661 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31662
31663 * gettext/gettext.c (grub_gettext_translate): Push and pop
31664 grub_errno.
31665 (grub_gettext_delete_list): Change comment style.
31666 * kern/err.c (grub_error): Gettextizze.
31667 (grub_fatal): Gettextizze.
31668
31669 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31670
31671 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31672 (grub_linux16_real_boot): ... this.
31673 * kern/i386/loader.S: Likewise.
31674 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31675 (grub_linux16_boot): New function. Switches to text mode and calls
31676 grub_linux16_real_boot().
31677
31678 * loader/i386/bsd.c: Include `<grub/video.h>'.
31679 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31680 text mode before calling grub_unix_real_boot().
31681
31682 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31683 (grub_multiboot_boot): Switch to text mode before calling
31684 grub_relocator32_boot().
31685
31686 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31687 (grub_chainloader_boot): Switch to text mode before calling
31688 grub_chainloader_real_boot().
31689
31690 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31691 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31692
31693 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31694 non-empty value.
31695
31696 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31697 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31698
31699 * util/grub.d/00_header.in: Define a "savedefault" function for use
31700 in menu entries.
31701 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31702
31703 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31704 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31705
31706 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31707 saved_entry if boot_once is unset.
31708 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31709 previous saved entry (i.e. grub-reboot).
31710
31711 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31712
31713 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31714
31715 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31716
31717 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31718 `var=val'.
31719 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31720
31721 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31722
31723 * util/grub-reboot.in: Fix --version output.
31724 * util/grub-set-default.in: Likewise.
31725
31726 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31727
31728 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31729 blocks.
31730
31731 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31732
31733 * util/grub.d/00_header.in: Quote the value assigned to `default',
31734 in case it contains spaces.
31735
31736 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31737
31738 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31739 `save_default_entry' call from the macosx case to the linux case.
31740
31741 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31742 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31743
31744 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31745 in `chosen' environment variable.
31746 * normal/menu_text.c (get_entry_number): Check if the variable
31747 matches the title of a menu entry.
31748 (run_menu): Pass menu to get_entry_number.
31749
31750 * util/grub-reboot.in: New file.
31751 * util/grub-set-default.in: New file.
31752 * conf/common.rmk (grub-reboot): New utility.
31753 (grub-set-default): New utility.
31754
31755 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31756 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31757 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31758 move it to `saved_entry' for the next boot. Load environment on
31759 initialisation.
31760 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31761 * util/grub.d/10_hurd.in: Likewise.
31762 * util/grub.d/10_linux.in (linux_entry): Likewise.
31763 * util/grub.d/10_windows.in: Likewise.
31764 * util/grub.d/30_os-prober.in: Likewise.
31765
31766 * util/grub-install.in: Create environment block.
31767 * util/i386/efi/grub-install.in: Likewise.
31768 * util/ieee1275/grub-install.in: Likewise.
31769 * util/sparc64/ieee1275/grub-install.in: Likewise.
31770
31771 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31772
31773 Unit testing framework for GRUB.
31774
31775 * Makefile.in: Test framework build rules for 'make check'.
31776 * conf/tests.rmk: Build rules for individual tests and framework.
31777
31778 * include/grub/test.h: Header file for whitebox tests.
31779 * tests/lib/functional_test.c: Framework support for whitebox
31780 functional tests.
31781 * tests/lib/test.c: Common whitebox testing code for unit and
31782 functional tests.
31783 * tests/lib/unit_test.c: Framework support for whitebox unit
31784 tests.
31785
31786 * tests/util/grub-shell-tester.in: Support utility for grub-script
31787 tests.
31788 * tests/util/grub-shell.in: Utility to execute grub-script
31789 commands in a Qemu instance.
31790
31791 * tests/example_functional_test.c: Example whitebox functional
31792 test.
31793 * tests/example_grub_script_test.in: Example grub-script test.
31794 * tests/example_scripted_test.in: Example scripted test.
31795 * tests/example_unit_test.c: Example whitebox unit test.
31796
31797 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31798
31799 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31800 Add loader/i386/multiboot_mbi.c.
31801 (multiboot2_mod_SOURCES): Likewise.
31802 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31803 (multiboot2_mod_SOURCES): Likewise.
31804 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31805 (grub_multiboot_make_mbi): Likewise.
31806 (grub_multiboot_free_mbi): Likewise.
31807 (grub_multiboot_init_mbi): Likewise.
31808 (grub_multiboot_add_module): Likewise.
31809 (grub_multiboot_set_bootdev): Likewise.
31810 * loader/i386/multiboot.c (mbi): Removed.
31811 (mbi_dest): Likewise.
31812 (alloc_mbi): New variable.
31813 (grub_multiboot_payload_size): Removed. All users updated.
31814 (grub_multiboot_pure_size): New variable.
31815 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31816 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31817 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31818 (grub_fill_multiboot_mmap): Likewise.
31819 (grub_multiboot_get_bootdev): Likewise.
31820 (grub_multiboot): Use multiboot_mbi functions.
31821 * loader/i386/multiboot_mbi.c: New file.
31822
31823 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31824
31825 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31826 it would result in module crash.
31827
31828 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31829
31830 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31831 (grub_ofconsole_getwh): Split to ...
31832 (grub_ofconsole_getwh): ... this.
31833 (grub_ofconsole_dimensions): ...and this.
31834 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31835
31836 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31837
31838 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31839
31840 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31841
31842 * loader/i386/pc/multiboot2.c: Removed stalled file.
31843
31844 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31845
31846 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31847 Reported by: Grégoire Sutre
31848
31849 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31850
31851 * util/misc.c (canonicalize_file_name): New function.
31852 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31853 instead of realpath().
31854
31855 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31856
31857 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31858 and make it clearer that it's optional. Based on confusion
31859 witnessed on IRC.
31860
31861 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31862
31863 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31864 in premature implicit newline.
31865
31866 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31867
31868 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31869 which resulted in garbled command line at the end of screen.
31870
31871 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31872
31873 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31874 initialization with similar approach as with other Linux loaders.
31875
31876 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31877
31878 Fix i386-ieee1275 build.
31879
31880 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31881 and grub_term_height() for video_{width,height} initialization.
31882
31883 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31884
31885 Fix grub-emu build.
31886
31887 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31888
31889 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31890 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31891
31892 Support for multiple terminals.
31893
31894 * Makefile.in (pkglib_DATA): terminal.lst.
31895 (terminal.lst): New target.
31896 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31897 (GRUB_MOD_INIT(handler)): Likewise.
31898 (GRUB_MOD_FINI(handler)): Likewise.
31899 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31900 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31901 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31902 (grub_cmd_sleep): Use grub_term_save_pos.
31903 * commands/terminal.c: New file.
31904 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31905 commands/terminal.c and lib/charset.c.
31906 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31907 (pkglib_MODULES): Add terminal.mod.
31908 (terminal_mod_SOURCES): New variable.
31909 (terminal_mod_CFLAGS): Likewise.
31910 (terminal_mod_LDFLAGS): Likewise.
31911 * genhandlerlist.sh: Don't handle terminals.
31912 * genmk.rb: Generate terminal-*.lst.
31913 * genterminallist.sh: New file.
31914 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31915 (grub_is_valid_utf8): Likewise.
31916 (grub_utf8_to_ucs4_alloc): Likewise.
31917 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31918 (grub_menu_register_viewer): Changed argument.
31919 (grub_menu_try_text): New proto.
31920 (grub_gfxmenu_try_hook): New declaration.
31921 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31922 (grub_menu_init_page): Additional argument term.
31923 (grub_normal_init_page): Likewise.
31924 (grub_cmdline_get): Arguments simplified.
31925 (grub_utf8_to_ucs4_alloc): Removed.
31926 (grub_print_ucs4): Additional argument term.
31927 (grub_getstringwidth): Likewise.
31928 (grub_print_message_indented): Likewise.
31929 (grub_menu_text_register_instances): New proto.
31930 (grub_show_menu): Likewise.
31931 (read_terminal_list): Likewise.
31932 (grub_set_more): Likewise.
31933 * include/grub/parser.h: Include handler.h.
31934 * include/grub/reader.h: Rewritten.
31935 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31936 (GRUB_TERM_WIDTH): Changed to function.
31937 (GRUB_TERM_HEIGHT): Likewise.
31938 (GRUB_TERM_BORDER_WIDTH): Likewise.
31939 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31940 (GRUB_TERM_NUM_ENTRIES): Likewise.
31941 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31942 (GRUB_TERM_CURSOR_X): Likewise.
31943 (grub_term_input_class): Likewise.
31944 (grub_term_output_class): Likewise.
31945 (grub_term_outputs_disabled): New declaration.
31946 (grub_term_inputs_disabled): Likewise.
31947 (grub_term_outputs): Likewise.
31948 (grub_term_inputs): Likewise.
31949 (grub_term_register_input): Rewritten.
31950 (grub_term_register_output): Likewise.
31951 (grub_term_unregister_input): Likewise.
31952 (grub_term_unregister_output): Likewise.
31953 (FOR_ACTIVE_TERM_INPUTS): New macro.
31954 (FOR_DISABLED_TERM_INPUTS): Likewise.
31955 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31956 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31957 * include/grub/terminfo.h: Add oterm argument to all protypes.
31958 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31959 Use grub_rescue_run.
31960 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31961 All users updated.
31962 * kern/reader.c: Removed. All users updated.
31963 * kern/rescue_reader.c (grub_rescue_init): Removed.
31964 (grub_rescue_reader): Likewise.
31965 (grub_register_rescue_reader): Likewise.
31966 (grub_rescue_run): New function based on kern/reader.c.
31967 * kern/term.c: Adapted for multiterm.
31968 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31969 (grub_is_valid_utf8): Likewise.
31970 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31971 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31972 right terminal.
31973 * loader/i386/linux.c (grub_linux_boot): Likewise.
31974 * normal/auth.c (grub_username_get): New function.
31975 (grub_auth_check_authentication): Use grub_username_get.
31976 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31977 * normal/color.c: Adapt for multiterm.
31978 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31979 (grub_normal_init_page): Additional argument term.
31980 (read_lists): Call read_terminal_lists.
31981 (grub_enter_normal_mode): Call grub_cmdline_run.
31982 Handle grub_normal_exit_level.
31983 (grub_cmd_normal): Make reentrant.
31984 (grub_cmd_normal_exit): New function.
31985 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
31986 * normal/menu.c: Adapt for multiterm.
31987 * normal/menu_entry.c: Likewise.
31988 * normal/menu_text.c: Likewise.
31989 * normal/menu_viewer.c: Removed. All users updated.
31990 * normal/term.c: New file.
31991 * util/console.c: Change order of includes to workaround a bug in
31992 ncurses headers.
31993 * term/terminfo.c: New argument oterm on all exported functions.
31994 All users updated.
31995 * util/grub-editenv.c (grub_term_input_class): Removed.
31996 (grub_term_output_class): Likewise.
31997
31998 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31999
32000 Make loader output a bit more user-friendly.
32001
32002 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32003 is being loaded. Likewise for the Hurd.
32004
32005 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32006 that kernel of FreeBSD ${version} is being loaded.
32007
32008 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32009 grub_dprintf().
32010 (grub_cmd_initrd): Likewise.
32011 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32012 that Linux ${version} is being loaded. Likewise for initrd.
32013
32014 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32015
32016 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32017
32018 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32019
32020 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32021 (GRUB_MOD_INIT): Gettextizze.
32022 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32023 (GRUB_MOD_INIT): Gettextizze.
32024 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32025 (grub_cmd_linux): Capitalise Linux.
32026 (GRUB_MOD_INIT): Gettextizze.
32027 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32028 (grub_cmd_linux): Capitalise Linux.
32029 (GRUB_MOD_INIT): Gettextizze.
32030 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32031 (grub_cmd_linux): Capitalise Linux.
32032 (GRUB_MOD_INIT): Gettextizze.
32033 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32034 (GRUB_MOD_INIT): Gettextizze.
32035 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32036 (grub_cmd_linux): Capitalise Linux.
32037 (GRUB_MOD_INIT): Gettextizze.
32038 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32039 (grub_cpu_xnu_init): Gettextizze.
32040 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32041 (GRUB_MOD_INIT): Gettextizze.
32042 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32043 (GRUB_MOD_INIT): Gettextizze.
32044 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32045 (grub_linux_load64): Capitalise Linux.
32046 (GRUB_MOD_INIT): Gettextizze.
32047 * loader/xnu.c: Include `<grub/i18n.h>'.
32048 (GRUB_MOD_INIT): Gettextizze.
32049 * po/POTFILES: Add `loader/efi/appleloader.c',
32050 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32051 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32052 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32053 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32054 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32055 and `loader/xnu.c'.
32056
32057 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32058
32059 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32060
32061 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32062
32063 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32064 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32065 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32066
32067 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32068
32069 Reset Multiboot 2 support. New loader implements the draft in
32070 /branches/multiboot2 and shares as much code as possible with the
32071 production Multiboot 1 implementation.
32072
32073 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32074 * loader/multiboot2.c: Likewise.
32075 * loader/i386/multiboot_helper.S: Likewise.
32076 * include/multiboot2.h: Replace with latest version from the draft
32077 in /branches/multiboot2.
32078
32079 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32080 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32081 and `loader/multiboot2.c'.
32082 (pkglib_MODULES): Add `multiboot2.mod'.
32083 (multiboot2_mod_SOURCES): New variable.
32084 (multiboot2_mod_LDFLAGS): Likewise.
32085 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32086
32087 * conf/i386-pc.rmk: Likewise.
32088
32089 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32090 (multiboot_mod_SOURCES): Remove variable.
32091 (multiboot_mod_LDFLAGS): Likewise.
32092 (multiboot_mod_CFLAGS): Likewise.
32093
32094 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32095 `<multiboot2.h>' instead of `<multiboot.h>'.
32096 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32097 (MULTIBOOT_HEADER_MAGIC): New macros.
32098
32099 * loader/multiboot_loader.c (module_version_status): Remove variable.
32100 (find_multi_boot2_header): Remove function.
32101 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32102 logic. Always check for the Multiboot version we're compiling for.
32103 (grub_cmd_module_loader): Likewise.
32104 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32105 command instead of `multiboot'.
32106
32107 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32108
32109 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32110 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32111 all users.
32112
32113 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32114 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32115
32116 Fix breakage introduced with previous commit.
32117
32118 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32119 commands.
32120 * normal/handler.c (read_handler_list): Revert part of previous commit
32121 affecting this file.
32122 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32123 (grub_normal_execute): ... here.
32124
32125 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32126
32127 Merge prefix-redefinition-fix branch.
32128
32129 * normal/autofs.c (read_fs_list): Make function capable of being
32130 run multiple times, gracefuly replacing the previous data
32131 structures.
32132 * normal/dyncmd.c (read_command_list): Likewise.
32133 * normal/handler.c (read_handler_list): Likewise.
32134 * normal/main.c (read_lists): New function. Calls all the
32135 list reading functions.
32136 (grub_normal_execute): Use read_lists() instead of calling all
32137 list reading functions explicitly. Register read_lists() as a
32138 variable hook attached to ${prefix}.
32139
32140 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32141
32142 Merge crypto branch.
32143
32144 * Makefile.in (pkglib_DATA): Add crypto.lst.
32145 (crypto.lst): New target.
32146 * commands/hashsum.c: New file.
32147 * commands/password.c (check_password): Use grub_crypto_memcmp.
32148 * commands/password_pbkdf2.c: New file.
32149 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32150 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32151 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32152 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32153 -I$(srcdir)/lib/libgcrypt_wrap.
32154 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32155 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32156 password_pbkdf2.mod.
32157 (crypto_mod_SOURCES): New variable.
32158 (crypto_mod_CFLAGS): Likewise.
32159 (crypto_mod_LDFLAGS): Likewise.
32160 (hashsum_mod_SOURCES): New variable.
32161 (hashsum_mod_CFLAGS): Likewise.
32162 (hashsum_mod_LDFLAGS): Likewise.
32163 (pbkdf2_mod_SOURCES): New variable.
32164 (pbkdf2_mod_CFLAGS): Likewise.
32165 (pbkdf2_mod_LDFLAGS): Likewise.
32166 (password_pbkdf2_mod_SOURCES): New variable.
32167 (password_pbkdf2_mod_CFLAGS): Likewise.
32168 (password_pbkdf2_mod_LDFLAGS): Likewise.
32169 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32170 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32171 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32172 Include conf/gcry.rmk.
32173 * include/grub/auth.h: Rewritten.
32174 * include/grub/crypto.h: New file.
32175 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32176 * include/grub/normal.h (read_crypto_list): New prototype.
32177 * lib/crypto.c: New file.
32178 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32179 * lib/pbkdf2.c: Likewise.
32180 * normal/auth.c (grub_auth_strcmp): Removed.
32181 (grub_iswordseparator): Likewise.
32182 (grub_auth_strword): Likewise.
32183 (is_authenticated): Use grub_strword.
32184 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32185 and grub_strword. Pass entered password to authentication callback.
32186 * normal/crypto.c: New file.
32187 * normal/main.c: Call read_crypto_list.
32188 * util/grub-mkpasswd-pbkdf2.c: New file.
32189 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32190
32191 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32192
32193 Fix descent and ascent calculation.
32194
32195 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32196 (options): New option "asce".
32197 (usage): Likewise.
32198 (add_char): Ignore invalid glyphs for descent calculation.
32199 Calculate ascent from actual content.
32200 (print_glyphs): Use 'asce'.
32201 (write_font): Likewise. Allow ascent override.
32202 (main): Handle "asce" option.
32203
32204 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32205
32206 * kern/err.c: Include `<grub/i18n.h>'.
32207 (grub_print_error): Add full stop. Gettextizze.
32208 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32209 (grub_bsd_load_elf): Capitalise ELF.
32210 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32211 (grub_cmd_freebsd_module): Likewise.
32212 (grub_cmd_freebsd_module_elf): Likewise.
32213 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32214
32215 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32216
32217 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32218 * commands/search_file.c (HELP_MESSAGE): New macro.
32219 * commands/search_label.c (HELP_MESSAGE): Likewise.
32220 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32221 * po/POTFILES: Add `commands/search_file.c',
32222 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32223 `commands/search.c'.
32224
32225 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32226
32227 * config.rpath: Update from Gnulib.
32228
32229 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32230
32231 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32232
32233 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32234
32235 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32236
32237 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32238
32239 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32240 arguments to fread so that we get a return value in bytes, rather
32241 than something that will normally be rounded down to 0.
32242 Adjust error handling to avoid producing garbage when size_t is not
32243 the same size as long long.
32244
32245 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32246
32247 * util/mkisofs/write.c (padblock_write): Check return value of
32248 fread.
32249
32250 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32251
32252 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32253 floppy images now.
32254
32255 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32256
32257 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32258
32259 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32260 instead of manual alignment.
32261 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32262 verbose). Avoid attempts to read past end of the device
32263 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32264 but GRUB_DISK_CACHE_SIZE may exceed that).
32265
32266 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32267
32268 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32269 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32270 it to upper layer.
32271
32272 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32273
32274 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32275 New constant.
32276 (grub_efi_piwg_device_path): New structure
32277 (grub_efi_piwg_device_path_t): New type.
32278 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32279 (devpath_1): Transform to a structure. All users updated.
32280 (devpath_2): Likewise.
32281 (devpath_3): Likewise.
32282 (devpath_4): Likewise.
32283 (devpath_5): Likewise.
32284
32285 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32286
32287 * loader/efi/appleloader.c: Restored. Update all users.
32288
32289 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32290
32291 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32292
32293 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32294 (struct boot_blocklist): Move from here ...
32295 * include/grub/i386/pc/boot.h [ASM_FILE]
32296 (struct grub_boot_blocklist): ... to here. Update all users.
32297 (setup): Only initialize `start' member of `first_block'
32298 structure. Add assert() calls to verify the other members.
32299
32300 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32301 (generate_image): Fix broken blocklist length initialization.
32302 Add assert() call to verify blocklist `segment' field.
32303
32304 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32305
32306 * loader/efi/appleloader.c: Remove. Update all users.
32307
32308 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32309
32310 * boot/i386/pc/boot.S: Update copyright year.
32311 * boot/i386/pc/cdboot.S: Likewise.
32312 * boot/i386/pc/diskboot.S: Likewise.
32313 * boot/i386/pc/lnxboot.S: Likewise.
32314 * boot/i386/pc/pxeboot.S: Likewise.
32315 * bus/pci.c: Likewise.
32316 * commands/cmp.c: Likewise.
32317 * commands/help.c: Likewise.
32318 * commands/hexdump.c: Likewise.
32319 * commands/i386/pc/halt.c: Likewise.
32320 * commands/i386/pc/play.c: Likewise.
32321 * commands/i386/pc/vbeinfo.c: Likewise.
32322 * commands/ls.c: Likewise.
32323 * commands/test.c: Likewise.
32324 * disk/dmraid_nvidia.c: Likewise.
32325 * disk/i386/pc/biosdisk.c: Likewise.
32326 * disk/ieee1275/nand.c: Likewise.
32327 * disk/ieee1275/ofdisk.c: Likewise.
32328 * disk/lvm.c: Likewise.
32329 * disk/raid.c: Likewise.
32330 * disk/raid6_recover.c: Likewise.
32331 * disk/scsi.c: Likewise.
32332 * fs/affs.c: Likewise.
32333 * fs/cpio.c: Likewise.
32334 * fs/ext2.c: Likewise.
32335 * fs/hfs.c: Likewise.
32336 * fs/iso9660.c: Likewise.
32337 * fs/ntfs.c: Likewise.
32338 * fs/sfs.c: Likewise.
32339 * fs/udf.c: Likewise.
32340 * fs/ufs.c: Likewise.
32341 * fs/xfs.c: Likewise.
32342 * gencmdlist.sh: Likewise.
32343 * genmk.rb: Likewise.
32344 * include/grub/disk.h: Likewise.
32345 * include/grub/efi/api.h: Likewise.
32346 * include/grub/efi/efi.h: Likewise.
32347 * include/grub/efi/pe32.h: Likewise.
32348 * include/grub/elf.h: Likewise.
32349 * include/grub/fs.h: Likewise.
32350 * include/grub/i386/at_keyboard.h: Likewise.
32351 * include/grub/i386/pc/memory.h: Likewise.
32352 * include/grub/i386/pc/vbe.h: Likewise.
32353 * include/grub/i386/pci.h: Likewise.
32354 * include/grub/i386/tsc.h: Likewise.
32355 * include/grub/ieee1275/ieee1275.h: Likewise.
32356 * include/grub/ntfs.h: Likewise.
32357 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32358 * include/grub/sparc64/libgcc.h: Likewise.
32359 * include/grub/symbol.h: Likewise.
32360 * include/grub/types.h: Likewise.
32361 * include/multiboot2.h: Likewise.
32362 * io/gzio.c: Likewise.
32363 * kern/device.c: Likewise.
32364 * kern/disk.c: Likewise.
32365 * kern/efi/efi.c: Likewise.
32366 * kern/efi/mm.c: Likewise.
32367 * kern/elf.c: Likewise.
32368 * kern/file.c: Likewise.
32369 * kern/i386/dl.c: Likewise.
32370 * kern/i386/pc/init.c: Likewise.
32371 * kern/i386/pc/startup.S: Likewise.
32372 * kern/ieee1275/ieee1275.c: Likewise.
32373 * kern/ieee1275/init.c: Likewise.
32374 * kern/main.c: Likewise.
32375 * kern/mm.c: Likewise.
32376 * kern/powerpc/dl.c: Likewise.
32377 * kern/sparc64/dl.c: Likewise.
32378 * kern/x86_64/dl.c: Likewise.
32379 * lib/hexdump.c: Likewise.
32380 * loader/efi/appleloader.c: Likewise.
32381 * loader/i386/ieee1275/linux.c: Likewise.
32382 * loader/i386/pc/chainloader.c: Likewise.
32383 * loader/i386/pc/linux.c: Likewise.
32384 * loader/i386/pc/multiboot2.c: Likewise.
32385 * loader/ieee1275/multiboot2.c: Likewise.
32386 * loader/multiboot2.c: Likewise.
32387 * loader/multiboot_loader.c: Likewise.
32388 * loader/powerpc/ieee1275/linux.c: Likewise.
32389 * normal/completion.c: Likewise.
32390 * normal/menu_entry.c: Likewise.
32391 * partmap/apple.c: Likewise.
32392 * util/grub.d/10_hurd.in: Likewise.
32393 * util/hostfs.c: Likewise.
32394 * video/readers/png.c: Likewise.
32395
32396 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32397
32398 * include/grub/misc.h (GNUC_PREREQ): New macro.
32399 (ATTRIBUTE_ERROR): New macro.
32400 * include/grub/list.h (grub_bad_type_cast_real): Use
32401 ATTRIBUTE_ERROR.
32402
32403 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32404
32405 * normal/menu_text.c (print_message): Change messages.
32406
32407 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32408
32409 * normal/menu_entry.c (store_completion): Gettextizze.
32410
32411 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32412
32413 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32414
32415 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32416
32417 * po/POTFILES: Sort correctly.
32418
32419 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32420
32421 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32422 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32423 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32424 full stop.
32425 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32426 summary. Gettextizze the strings.
32427 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32428 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32429 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32430 full stop.
32431 (GRUB_MOD_INIT): Remove command name from summary.
32432 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32433 summary.
32434 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32435 * term/i386/pc/serial.c (options): Add full stops.
32436 (GRUB_MOD_INIT): Remove command name from the summary.
32437
32438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32439
32440 * commands/acpi.c: Gettextizze help strings and/or options. Include
32441 `grub/i18n.h' if needed.
32442 * commands/blocklist.c: Likewise.
32443 * commands/boot.c: Likewise.
32444 * commands/cat.c: Likewise.
32445 * commands/cmp.c: Likewise.
32446 * commands/configfile.c: Likewise.
32447 * commands/crc.c: Likewise.
32448 * commands/date.c: Likewise.
32449 * commands/echo.c: Likewise.
32450 * commands/efi/fixvideo.c: Likewise.
32451 * commands/efi/loadbios.c: Likewise.
32452 * commands/gptsync.c: Likewise.
32453 * commands/halt.c: Likewise.
32454 * commands/handler.c: Likewise.
32455 * commands/hdparm.c: Likewise.
32456 * commands/hexdump.c: Likewise.
32457 * commands/i386/cpuid.c: Likewise.
32458 * commands/i386/pc/drivemap.c: Likewise.
32459 * commands/i386/pc/halt.c: Likewise.
32460 * commands/i386/pc/pxecmd.c: Likewise.
32461 * commands/i386/pc/vbeinfo.c: Likewise.
32462 * commands/i386/pc/vbetest.c: Likewise.
32463 * commands/ieee1275/suspend.c: Likewise.
32464 * commands/keystatus.c: Likewise.
32465 * commands/loadenv.c: Likewise.
32466 * commands/ls.c: Likewise.
32467 * commands/lsmmap.c: Likewise.
32468 * commands/lspci.c: Likewise.
32469 * commands/memrw.c: Likewise.
32470 * commands/minicmd.c: Likewise.
32471 * commands/parttool.c: Likewise.
32472 * commands/password.c: Likewise.
32473 * commands/probe.c: Likewise.
32474 * commands/read.c: Likewise.
32475 * commands/reboot.c: Likewise.
32476 * commands/search.c: Likewise.
32477 * commands/sleep.c: Likewise.
32478 * commands/test.c: Likewise.
32479 * commands/true.c: Likewise.
32480 * commands/usbtest.c: Likewise.
32481 * commands/videotest.c: Likewise.
32482 * commands/xnu_uuid.c: Likewise.
32483 * disk/loopback.c: Likewise.
32484 * hello/hello.c: Likewise.
32485 * loader/i386/bsd.c: Likewise.
32486 * term/i386/pc/serial.c: Likewise.
32487 * po/POTFILES: Add new files.
32488
32489 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32490
32491 * term/i386/pc/at_keyboard.c
32492 (keyboard_controller_wait_untill_ready): Rename to ...
32493 (keyboard_controller_wait_until_ready): ... this. Update all users.
32494
32495 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32496
32497 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32498 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32499 string using string width.
32500 * normal/menu_text.c (grub_print_message_indented): Use
32501 grub_print_spaces and not print_spaces.
32502 (print_timeout): Likewise.
32503 (print_spaces): Move to...
32504 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32505
32506 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32507
32508 Import from Gnulib.
32509
32510 * gnulib/getdelim.c: New file.
32511 * gnulib/getline.c: Likewise.
32512
32513 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32514
32515 * include/grub/list.h (grub_assert_fail): Removed.
32516 (grub_bad_type_cast_real): New function.
32517 (grub_bad_type_cast): New macro.
32518 (GRUB_AS_LIST): Use grub_bad_type_cast.
32519 (GRUB_AS_LIST_P): Likewise.
32520 (GRUB_AS_NAMED_LIST): Likewise.
32521 (GRUB_AS_NAMED_LIST_P): Likewise.
32522 (GRUB_AS_PRIO_LIST): Likewise.
32523 (GRUB_AS_PRIO_LIST_P): Likewise.
32524 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32525
32526 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32527
32528 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32529 Fix syntax error.
32530
32531 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32532
32533 * configure.ac: Check for TARGET_CFLAGS initialization before we
32534 initialize it ourselves (sigh).
32535 Move a few modifications to TARGET_CFLAGS to be unconditional
32536 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32537 eh_frame)
32538
32539 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32540 * term/i386/pc/at_keyboard.c
32541 (keyboard_controller_wait_untill_ready): Likewise.
32542 (keyboard_controller_led): Rename `led_status' paramter to avoid
32543 name conflict.
32544
32545 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32546
32547 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32548 quotes.
32549
32550 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32551
32552 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32553
32554 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32555
32556 * normal/menu_text.c (grub_print_message_indented): Prevent
32557 past-the-end-of-array dereference.
32558
32559 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32560
32561 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32562 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32563
32564 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32565
32566 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32567 * normal/main.c (grub_normal_read_line): Remove a space from the
32568 default prompt.
32569
32570 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32571
32572 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32573 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32574 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32575 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32576 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32577 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32578 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32579
32580 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32581
32582 * video/readers/jpeg.c (cmd): Declare.
32583 (grub_cmd_jpegtest): 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 * video/readers/png.c (cmd): Declare.
32588 (grub_cmd_pngtest): Use `grub_command_t' type.
32589 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32590 Assign to `cmd'.
32591 (GRUB_MOD_FINI): Use `cmd' to unregister.
32592 * video/readers/tga.c (cmd): Declare.
32593 (grub_cmd_tgatest): Use `grub_command_t' type.
32594 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32595 Assign to `cmd'.
32596 (GRUB_MOD_FINI): Use `cmd' to unregister.
32597
32598 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32599
32600 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32601 stops.
32602 * kern/corecmd.c (grub_register_core_commands): Likewise.
32603 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32604 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32605 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32606 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32607 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32608 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32609 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32610 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32611 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32612 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32613 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32614 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32615 * normal/handler.c (insert_handler): Likewise.
32616 * normal/main.c (GRUB_MOD_INIT): Likewise.
32617 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32618
32619 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32620
32621 * commands/help.c (grub_cmd_help): Print the command name before the
32622 summary.
32623 (GRUB_MOD_INIT): Remove command name from the summary.
32624 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32625 string as summary.
32626 * lib/arg.c (find_long): Print the command name before the summary.
32627 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32628 summary.
32629 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32630 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32631 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32632 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32633 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32634 * commands/date.c (GRUB_MOD_INIT): Likewise.
32635 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32636 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32637 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32638 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32639 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32640 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32641 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32642 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32643 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32644 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32645 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32646 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32647 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32648 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32649 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32650 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32651 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32652 * commands/password.c (GRUB_MOD_INIT): Likewise.
32653 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32654 * commands/read.c (GRUB_MOD_INIT): Likewise.
32655 * commands/search.c (GRUB_MOD_INIT): Likewise.
32656 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32657 * commands/test.c (GRUB_MOD_INIT): Likewise.
32658 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32659 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32660 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32661 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32662 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32663 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32664 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32665 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32666 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32667 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32668 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32669 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32670 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32671 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32672
32673 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32674
32675 Use search command for preliminar UUID search.
32676
32677 * commands/search.c: Split into ...
32678 * commands/search_wrap.c: ...this
32679 * commands/search.c: ...and this.
32680 * commands/search_file.c: New file.
32681 * commands/search_label.c: New file.
32682 * commands/search_uuid.c: New file.
32683 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32684 Add commands/search_wrap.c, commands/search_file.c,
32685 commands/search_label.c and commands/search_uuid.c.
32686 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32687 (search_mod_SOURCES): Set to commands/search_wrap.c.
32688 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32689 search_label.mod.
32690 (search_fs_file_mod_SOURCES): New variable.
32691 (search_fs_file_mod_CFLAGS): Likewise.
32692 (search_fs_file_mod_LDFLAGS): Likewise.
32693 (search_label_mod_SOURCES): Likewise.
32694 (search_label_mod_CFLAGS): Likewise.
32695 (search_label_mod_LDFLAGS): Likewise.
32696 (search_fs_uuid_mod_SOURCES): New variable.
32697 (search_fs_uuid_mod_CFLAGS): Likewise.
32698 (search_fs_uuid_mod_LDFLAGS): Likewise.
32699 (fs_file_mod_SOURCES): Removed.
32700 (fs_file_mod_CFLAGS): Likewise.
32701 (fs_file_mod_LDFLAGS): Likewise.
32702 (fs_uuid_mod_SOURCES): Removed.
32703 (fs_uuid_mod_CFLAGS): Likewise.
32704 (fs_uuid_mod_LDFLAGS): Likewise.
32705 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32706 Set to util/grub-install.in.
32707 * disk/fs_file.c: Removed.
32708 * disk/fs_uuid.c: Likewise.
32709 * include/grub/search.h: New file.
32710 * util/grub-install.in: Handle sparc64.
32711 Create and use load.cfg.
32712 * util/sparc64/ieee1275/grub-install.in: Removed.
32713
32714 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32715
32716 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32717 Ignore return status if CF is cleared.
32718 (grub_biosdisk_get_diskinfo_standard): Likewise.
32719
32720 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32721
32722 * term/i386/pc/at_keyboard.c
32723 (keyboard_controller_wait_untill_ready): New function.
32724 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32725 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32726 for keyboard polling, rather than duplicate the same loop. This
32727 saves a few bytes in code size.
32728
32729 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32730
32731 Support for (pxe[:server[:gateway]]) syntax and
32732 use environment variable for PXE.
32733
32734 * commands/i386/pc/pxecmd.c (options): Removed.
32735 (print_ip): Removed.
32736 (grub_cmd_pxe): Removed
32737 (grub_cmd_pxe_unload): New function.
32738 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32739 (grub_pxe_your_ip): Made static.
32740 (grub_pxe_default_server_ip): Likewise.
32741 (grub_pxe_default_gateway_ip): Likewise.
32742 (grub_pxe_blksize): Likewise.
32743 (parse_ip): New function.
32744 (grub_pxe_open): Support server and gateway specification.
32745 (grub_pxe_close): Free disk->data.
32746 (grub_pxefs_open): Use disk->data.
32747 (grub_pxefs_read): Likewise.
32748 (grub_env_write_readonly): New function.
32749 (set_mac_env): Likewise.
32750 (set_env_limn_ro): Likewise.
32751 (parse_dhcp_vendor): Likewise.
32752 (grub_pxe_detect): Set the environment variables.
32753 (set_ip_env): New function.
32754 (write_ip_env): Likewise.
32755 (grub_env_write_pxe_default_server): Likewise.
32756 (grub_env_write_pxe_default_gateway): Likewise.
32757 (grub_env_write_pxe_blocksize): Likewise.
32758 (GRUB_MOD_INIT(pxe)): Set environment variables.
32759 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32760 (grub_pxe_mac_addr_t): ... this. All users updated.
32761 (grub_pxe_your_ip): Removed.
32762 (grub_pxe_server_ip): Likewise.
32763 (grub_pxe_gateway_ip): Likewise.
32764 (grub_pxe_blksize): Likewise.
32765
32766 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32767
32768 * commands/help.c: Include `<grub/i18n.h>'.
32769 (grub_cmd_help): Gettextizze.
32770 (GRUB_MOD_INIT): Likewise.
32771 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32772 (GRUB_MOD_INIT): Gettextizze.
32773 * commands/search.c: Include `<grub/i18n.h>'.
32774 (options): Gettextizze.
32775 (GRUB_MOD_INIT): Gettextizze.
32776 * lib/arg.c: Include `<grub/i18n.h>'.
32777 (help_options): Gettextizze.
32778 (find_long): Likewise.
32779 (grub_arg_show_help): Likewise.
32780 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32781 (read_command_list): Gettextizze.
32782 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32783 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32784
32785 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32786
32787 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32788 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32789 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32790 (led_status): New variable.
32791 (keyboard_controller_led): New function.
32792 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32793 update led status for caps lock, num lock and scroll lock.
32794
32795 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32796
32797 * util/hostdisk.c (open_device): Fix a comment.
32798
32799 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32800
32801 * util/grub-install.in (host_os): New variable.
32802 * util/i386/efi/grub-install.in (host_os): Likewise.
32803
32804 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32805
32806 * util/mkisofs/write.c (padblock_write): Abort when given an
32807 excedingly large embed image, instead of silently truncating it.
32808
32809 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32810
32811 * include/multiboot.h: Indentation fixes.
32812
32813 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32814
32815 * include/multiboot.h (struct multiboot_aout_symbol_table)
32816 (struct multiboot_elf_section_header_table): New structure
32817 declarations (stolen from GRUB Legacy).
32818 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32819 table information.
32820
32821 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32822 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32823 type aliases.
32824
32825 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32826
32827 * include/multiboot.h: Make comments src2texi-friendly.
32828
32829 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32830
32831 For consistency with [multiboot]/docs/boot.S.
32832
32833 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32834 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32835 (MULTIBOOT_MAGIC2): Rename from this ...
32836 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32837
32838 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32839
32840 * include/multiboot.h: Remove `<grub/types.h>'.
32841 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32842 types. Update all users.
32843
32844 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32845
32846 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32847 `couldn't' and `can not' by `cannot'.
32848 * commands/i386/pc/drivemap.c: Likewise.
32849 * disk/ata.c: Likewise.
32850 * disk/ieee1275/nand.c: Likewise.
32851 * fs/affs.c: Likewise.
32852 * fs/fat.c: Likewise.
32853 * fs/hfs.c: Likewise.
32854 * fs/hfsplus.c: Likewise.
32855 * fs/iso9660.c: Likewise.
32856 * fs/jfs.c: Likewise.
32857 * fs/minix.c: Likewise.
32858 * fs/reiserfs.c: Likewise.
32859 * fs/sfs.c: Likewise.
32860 * fs/udf.c: Likewise.
32861 * fs/ufs.c: Likewise.
32862 * fs/xfs.c: Likewise.
32863 * loader/powerpc/ieee1275/linux.c: Likewise.
32864 * loader/sparc64/ieee1275/linux.c: Likewise.
32865 * util/grub-probe.c: Likewise.
32866 * util/misc.c: Likewise.
32867
32868 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32869
32870 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32871 grub_errno calls.
32872 * commands/acpi.c: Likewise.
32873 * commands/blocklist.c: Likewise.
32874 * commands/efi/loadbios.c: Likewise.
32875 * commands/i386/pc/drivemap.c: Likewise.
32876 * commands/loadenv.c: Likewise.
32877 * commands/memrw.c: Likewise.
32878 * commands/password.c: Likewise.
32879 * commands/videotest.c: Likewise.
32880 * disk/ata.c: Likewise.
32881 * disk/ata_pthru.c: Likewise.
32882 * disk/dmraid_nvidia.c: Likewise.
32883 * disk/ieee1275/nand.c: Likewise.
32884 * disk/ieee1275/ofdisk.c: Likewise.
32885 * disk/loopback.c: Likewise.
32886 * disk/lvm.c: Likewise.
32887 * disk/mdraid_linux.c: Likewise.
32888 * disk/raid.c: Likewise.
32889 * disk/raid6_recover.c: Likewise.
32890 * disk/scsi.c: Likewise.
32891 * efiemu/main.c: Likewise.
32892 * efiemu/mm.c: Likewise.
32893 * efiemu/pnvram.c: Likewise.
32894 * efiemu/symbols.c: Likewise.
32895 * font/font.c: Likewise.
32896 * fs/cpio.c: Likewise.
32897 * fs/hfsplus.c: Likewise.
32898 * fs/iso9660.c: Likewise.
32899 * fs/jfs.c: Likewise.
32900 * fs/minix.c: Likewise.
32901 * fs/ntfs.c: Likewise.
32902 * fs/ntfscomp.c: Likewise.
32903 * fs/reiserfs.c: Likewise.
32904 * fs/ufs.c: Likewise.
32905 * fs/xfs.c: Likewise.
32906 * gettext/gettext.c: Likewise.
32907 * include/grub/auth.h: Likewise.
32908 * kern/elf.c: Likewise.
32909 * kern/file.c: Likewise.
32910 * kern/ieee1275/init.c: Likewise.
32911 * kern/ieee1275/mmap.c: Likewise.
32912 * kern/ieee1275/openfw.c: Likewise.
32913 * kern/powerpc/dl.c: Likewise.
32914 * kern/sparc64/dl.c: Likewise.
32915 * lib/arg.c: Likewise.
32916 * loader/i386/bsd.c: Likewise.
32917 * loader/i386/bsdXX.c: Likewise.
32918 * loader/i386/efi/linux.c: Likewise.
32919 * loader/i386/efi/xnu.c: Likewise.
32920 * loader/i386/ieee1275/linux.c: Likewise.
32921 * loader/i386/linux.c: Likewise.
32922 * loader/i386/multiboot.c: Likewise.
32923 * loader/i386/pc/linux.c: Likewise.
32924 * loader/i386/pc/multiboot2.c: Likewise.
32925 * loader/i386/xnu.c: Likewise.
32926 * loader/ieee1275/multiboot2.c: Likewise.
32927 * loader/macho.c: Likewise.
32928 * loader/machoXX.c: Likewise.
32929 * loader/multiboot2.c: Likewise.
32930 * loader/multiboot_loader.c: Likewise.
32931 * loader/powerpc/ieee1275/linux.c: Likewise.
32932 * loader/sparc64/ieee1275/linux.c: Likewise.
32933 * loader/xnu.c: Likewise.
32934 * loader/xnu_resume.c: Likewise.
32935 * mmap/i386/pc/mmap.c: Likewise.
32936 * normal/menu_viewer.c: Likewise.
32937 * partmap/acorn.c: Likewise.
32938 * partmap/amiga.c: Likewise.
32939 * partmap/apple.c: Likewise.
32940 * script/lexer.c: Likewise.
32941 * term/gfxterm.c: Likewise.
32942 * term/i386/pc/serial.c: Likewise.
32943 * term/i386/pc/vga.c: Likewise.
32944 * term/ieee1275/ofconsole.c: Likewise.
32945 * term/terminfo.c: Likewise.
32946 * video/bitmap.c: Likewise.
32947 * video/efi_gop.c: Likewise.
32948 * video/efi_uga.c: Likewise.
32949 * video/fb/video_fb.c: Likewise.
32950 * video/i386/pc/vbe.c: Likewise.
32951 * video/readers/tga.c: Likewise.
32952 * video/video.c: Likewise.
32953
32954 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32955
32956 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32957 * commands/lspci.c: Likewise.
32958 * commands/probe.c: Likewise.
32959 * commands/xnu_uuid.c: Likewise.
32960 * conf/i386-coreboot.rmk: Likewise.
32961 * conf/i386-efi.rmk: Likewise.
32962 * conf/i386-ieee1275.rmk: Likewise.
32963 * conf/i386-pc.rmk: Likewise.
32964 * conf/powerpc-ieee1275.rmk: Likewise.
32965 * conf/sparc64-ieee1275.rmk: Likewise.
32966 * conf/x86_64-efi.rmk: Likewise.
32967 * fs/i386/pc/pxe.c: Likewise.
32968 * gettext/gettext.c: Likewise.
32969 * include/grub/efi/graphics_output.h: Likewise.
32970 * include/grub/i386/pc/memory.h: Likewise.
32971 * kern/env.c: Likewise.
32972 * kern/i386/qemu/startup.S: Likewise.
32973 * lib/i386/pc/biosnum.c: Likewise.
32974 * lib/i386/relocator.c: Likewise.
32975 * lib/i386/relocator_asm.S: Likewise.
32976 * lib/relocator.c: Likewise.
32977 * loader/i386/bsd.c: Likewise.
32978 * loader/i386/multiboot.c: Likewise.
32979 * loader/i386/pc/chainloader.c: Likewise.
32980 * loader/i386/xnu.c: Likewise.
32981 * loader/xnu.c: Likewise.
32982 * normal/main.c: Likewise.
32983 * normal/menu_text.c: Likewise.
32984 * util/getroot.c: Likewise.
32985 * util/grub-mkconfig_lib.in: Likewise.
32986 * util/grub.d/00_header.in: Likewise.
32987 * util/i386/pc/grub-mkimage.c: Likewise.
32988 * util/mkisofs/eltorito.c: Likewise.
32989 * util/mkisofs/exclude.h: Likewise.
32990 * util/mkisofs/hash.c: Likewise.
32991 * util/mkisofs/iso9660.h: Likewise.
32992 * util/mkisofs/joliet.c: Likewise.
32993 * util/mkisofs/mkisofs.c: Likewise.
32994 * util/mkisofs/mkisofs.h: Likewise.
32995 * util/mkisofs/multi.c: Likewise.
32996 * util/mkisofs/name.c: Likewise.
32997 * util/mkisofs/rock.c: Likewise.
32998 * util/mkisofs/tree.c: Likewise.
32999 * util/mkisofs/write.c: Likewise.
33000 * video/efi_gop.c: Likewise.
33001
33002 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33003
33004 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33005 size counting.
33006
33007 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33008
33009 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33010 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33011
33012 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33013
33014 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33015 (GRUB_MOD_INIT(memrw)): Update help line.
33016
33017 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33018
33019 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33020 Use grub_extcmd_t. All users updated.
33021 (options): New variable.
33022 (grub_cmd_read): Restructure for readability. Support "-v" option.
33023 (grub_cmd_write): Restructure for readability.
33024
33025 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33026
33027 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33028
33029 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33030
33031 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33032 with the actual contents of the correspondending make variable.
33033 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33034 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33035 specifying `*.lst' and `efiemu??.o'
33036
33037 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33038
33039 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33040 after function name.
33041 Noticed by Rene Engelhard <rene@debian.org>.
33042
33043 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33044
33045 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33046 (options): New variable.
33047 (iospace): Likewise.
33048 (grub_lspci_iter): List IO spaces if "-i" was given.
33049 (grub_cmd_lspci): Parse options.
33050 (GRUB_MOD_INIT(lspci)): Use extcmd.
33051 (GRUB_MOD_FINI(lspci)): Likewise.
33052
33053 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33054
33055 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33056 `function' keyword.
33057 Patch by Tony Mancill <tmancill@debian.org>.
33058
33059 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33060
33061 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33062 (grub_uhci_portstatus): Likewise.
33063 (grub_uhci_portstatus): Add necessary delay.
33064 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33065
33066 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33067
33068 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33069 (GRUB_MOD_INIT): Likewise.
33070 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33071 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33072 * commands/echo.c (options): Fix capitalizations and/or full stops.
33073 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33074 (enable_rom_area): Likewise.
33075 (GRUB_MOD_INIT): Likewise.
33076 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33077 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33078 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33079 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33080 * commands/hexdump.c (options): Likewise.
33081 * commands/i386/cpuid.c (options): Likewise.
33082 (GRUB_MOD_INIT): Likewise.
33083 * commands/i386/pc/drivemap.c (options): Likewise.
33084 (GRUB_MOD_INIT): Likewise.
33085 * commands/i386/pc/halt (options): Likewise.
33086 (GRUB_MOD_INIT): Likewise.
33087 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33088 * commands/i386/pc/pxecmd.c (options): Likewise.
33089 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33090 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33091 * commands/keystatus.c (options): Likewise.
33092 (GRUB_MOD_INIT): Likewise.
33093 * commands/loadenv.c (options): Likewise.
33094 * commands/ls.c (options): Likewise.
33095 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33096 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33097 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33098 * commands/parttool.c (helpmsg): Likewise.
33099 * commands/probe.c (options): Likewise.
33100 * commands/read.c (GRUB_MOD_INIT): Likewise.
33101 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33102 * commands/search.c (options): Likewise.
33103 * commands/sleep.c (options): Likewise.
33104 * commands/test.c (GRUB_MOD_INIT): Likewise.
33105 * commands/true.c (GRUB_MOD_INIT): Likewise.
33106 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33107 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33108 * lib/arg.c (help_options): Likewise.
33109 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33110 `$(XGETTEXT)'.
33111 * po/POTFILES: Add `commands/loadenv.c'.
33112
33113 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33114
33115 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33116 instead of specifying them explicit.
33117
33118 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33119
33120 * NEWS: Add grub-probe support for GNU/Hurd.
33121
33122 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33123
33124 * NEWS: gettext was added after 1.97.
33125
33126 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33127
33128 * util/mkisofs/msdos_partition.h: New file (based on
33129 include/grub/msdos_partition.h).
33130 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33131 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33132 (ld_options, main): Recognize --protective-msdos-label.
33133 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33134 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33135 (padblock_write): If `use_protective_msdos_label' is set, patch a
33136 protective DOS-style label in the output image.
33137
33138 * util/grub-mkrescue.in: Use --protective-msdos-label.
33139
33140 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33141
33142 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33143 boot.
33144
33145 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33146
33147 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33148 variables.
33149 (ld_options, main): Recognize `--embedded-boot'.
33150 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33151 declarations.
33152 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33153 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33154 (padblock_write): Likewise. Rewrite to support embedded boot image.
33155
33156 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33157 for BIOS-based disk boot instead of only ElTorito.
33158
33159 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33160
33161 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33162 build (not needed for bootstrap).
33163
33164 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33165
33166 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33167 from i386-pc build (not needed for bootstrap).
33168 Rewrite a pair of strings.
33169
33170 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33171
33172 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33173
33174 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33175
33176 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33177
33178 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33179
33180 * kern/env.c (grub_env_context_open): Mark exported variable for
33181 reexport.
33182
33183 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33184
33185 * kern/env.c (grub_env_export): Create nonexistent variables before
33186 exporting.
33187
33188 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33189
33190 * include/grub/auth.h: Include `<grub/i18n.h>'.
33191 (GRUB_GET_PASSWORD): Gettextizze string.
33192 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33193 menu_text.c.
33194 (grub_utf8_to_ucs4_alloc): Fix indentation.
33195 (grub_print_ucs4): Likewise.
33196 (grub_getstringwidth): Likewise.
33197 (print_message_indented): New declaration.
33198 * normal/auth.c: Include `<grub/i18n.h>'.
33199 (grub_auth_check_authentication): Gettexttize string.
33200 * normal/cmdline.c: Include `<grub/i18n.h>'.
33201 (grub_cmdline_get): Gettextizze.
33202 * normal/color.c: Include `<grub/i18n.h>'.
33203 (grub_parse_color_name_pair): Gettexttize strings.
33204 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33205 string (use `print_message_indented').
33206 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33207 `include/grub/normal.h'.
33208 (print_message_indented): Renamed to ...
33209 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33210 used in normal/main.c).
33211 (print_message): Use `grub_print_message_indented' instead of
33212 `print_message_indented'.
33213 (print_timeout): Likewise.
33214 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33215 (grub_normal_print_device_info): Gettexttize strings.
33216 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33217
33218 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33219
33220 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33221 of arguments. Return number of tokens and not arguments. All users
33222 updated.
33223
33224 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33225
33226 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33227 non-MSDOS paritions.
33228
33229 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33230
33231 * include/grub/types.h (UNUSED): Removed since it conflicts with
33232 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33233 Reported by Grégoire Sutre.
33234
33235 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33236
33237 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33238 (grub_print_ucs4_alloc): Likewise.
33239 (grub_getstringwidth): Likewise.
33240 * normal/main.c (grub_normal_init_page): Gettextize version string.
33241 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33242 (getstringwidth): Renamed to ...
33243 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33244 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33245 (grub_print_ucs4): Remove `static' qualifer (now used in
33246 normal/main.c).
33247 * po/POTFILES: Add normal/main.c.
33248
33249 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33250
33251 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33252 (print_message_indented): Add `margin_left' and `margin_right'
33253 parameters.
33254 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33255 strings.
33256 (print_timeout): Use `print_message_indented' to print the message.
33257 Deletes `second_stage' parameter.
33258 (run_menu): Update `print_timeout' calls.
33259
33260 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33261
33262 Fix console palette on OpenFirmware.
33263
33264 * term/ieee1275/ofconsole.c (MAX): Removed.
33265 (colors): Redone based on VGA palette.
33266 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33267 colors are supported.
33268 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33269
33270 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33271
33272 Fix potential EfiEmu double prepare.
33273
33274 * efiemu/main.c (prepared): New variable
33275 (grub_efiemu_unload): Set prepare to '0'.
33276 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33277
33278 set_virtual_address_map support.
33279
33280 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33281 prototype.
33282 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33283 prototype.
33284 (grub_efiemu_crc32): Likewise.
33285 (grub_efiemu_crc64): Likewise.
33286 (grub_efiemu_set_virtual_address_map): Likewise.
33287 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33288 New definition.
33289 (grub_autoefi_set_virtual_address_map): Likewise.
33290 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33291 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33292 Restructure flow to accomodate it.
33293 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33294 (grub_efiemu_crc): Recompute CRC32.
33295 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33296 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33297 * efiemu/symbols.c (relocated_handle): New variable.
33298 (grub_efiemu_free_syms): Free relocated_handle.
33299 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33300 (grub_efiemu_write_sym_markers): New function.
33301 (grub_efiemu_set_virtual_address_map): Likewise.
33302
33303 Newer XNU parameters.
33304
33305 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33306 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33307 (grub_xnu_fill_devicetree): New prototype.
33308 (grub_xnu_heap_real_start): New variable.
33309 * loader/xnu.c (get_name_ptr): New function.
33310 (grub_xnu_load_driver): Fill namelen and name.
33311
33312 64-bit xnu support.
33313
33314 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33315 and 'loader/macho64.c'.
33316 * conf/i386-pc.rmk: Likewise.
33317 * conf/x86_64-efi.rmk: Likewise.
33318 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33319 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33320 * include/grub/macho.h (grub_macho_segment64): New structure.
33321 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33322 (grub_macho_size32): ... to this.
33323 (grub_macho32_get_entry_point): Renamed from ...
33324 (grub_macho_get_entry_point32): ... to this.
33325 (grub_macho_contains_macho64): New prototype.
33326 (grub_macho_size64): Likewise.
33327 (grub_macho_get_entry_point64): Likewise.
33328 (grub_macho32_load): Renamed from ...
33329 (grub_macho_load32): ... to this.
33330 (grub_macho32_filesize): Renamed from ...
33331 (grub_macho_filesize32): ... to this.
33332 (grub_macho32_readfile): Renamed from ...
33333 (grub_macho_readfile32): ... to this.
33334 (grub_macho_filesize64): New prototype.
33335 (grub_macho_readfile64): Likewise.
33336 (grub_macho_parse32): Likewise.
33337 (grub_macho_parse64): Likewise.
33338 * loader/macho.c: Split into ...
33339 * loader/machoXX.c: ... and this. Replace 32 with XX.
33340 * loader/macho32.c: New file.
33341 * loader/macho64.c: Likewise.
33342 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33343 (grub_cmd_xnu_kernel): Make 32-bit only.
33344 (grub_cmd_xnu_kernel64): New function.
33345 (grub_xnu_load_driver): Support Mach-O 64.
33346 (grub_cmd_xnu_mkext): Likewise.
33347 * util/grub.d/30_os-prober.in (osx_entry): New function.
33348 Generate entries for 64-bit boot too.
33349
33350 Eliminate ad-hoc tree format in XNU and EfiEmu.
33351
33352 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33353 * efiemu/pnvram.c: Rewritten to use environment variables.
33354 All users updated.
33355
33356 Inline utf16_to_utf8.
33357
33358 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33359 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33360 All users updated.
33361 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33362
33363 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33364 * commands/usbtest.c (grub_usb_get_string): ... move here.
33365 (usb_print_str): Fix error handling.
33366 * include/grub/usb.h (grub_usb_get_string): Remove.
33367
33368 UTF-8 to UTF-16 transformation.
33369
33370 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33371 (charset_mod_SOURCES): New variable.
33372 (charset_mod_CFLAGS): Likewise.
33373 (charset_mod_LDFLAGS): Likewise.
33374 * include/grub/utf.h: New file.
33375 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33376
33377 Support for device properties.
33378
33379 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33380 (grub_xnu_devprop_device_header): Likewise.
33381 (grub_xnu_devprop_device_descriptor): Likewise.
33382 (grub_xnu_devprop_add_device): New prototype.
33383 (grub_xnu_devprop_remove_device): Likewise.
33384 (grub_xnu_devprop_remove_property): Likewise.
33385 (grub_xnu_devprop_add_property_utf8): Likewise.
33386 (grub_xnu_devprop_add_property_utf16): Likewise.
33387 (grub_cpu_xnu_init): Likewise.
33388 (grub_cpu_xnu_fini): Likewise.
33389 (grub_cpu_xnu_unload): Likewise.
33390 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33391 (property_descriptor): Likewise.
33392 (devices): New variable.
33393 (grub_xnu_devprop_remove_property): New function.
33394 (grub_xnu_devprop_add_device): Likewise.
33395 (grub_xnu_devprop_remove_device): Likewise.
33396 (grub_xnu_devprop_add_property): Likewise.
33397 (grub_xnu_devprop_add_property_utf8): Likewise.
33398 (grub_xnu_devprop_add_property_utf16): Likewise.
33399 (hextoval): Likewise.
33400 (grub_cpu_xnu_fill_devprop): Likewise.
33401 (grub_cmd_devprop_load): Likewise.
33402 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33403 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33404 (cmd_devprop_load): New variable.
33405 (grub_cpu_xnu_init): New function.
33406 (grub_cpu_xnu_fini): Likewise.
33407 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33408 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33409 (grub_cmd_xnu_devtree): Likewise.
33410 (hextoval): New function.
33411 (unescape): Likewise.
33412 (grub_xnu_fill_devicetree): Likewise.
33413
33414 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33415 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33416
33417 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33418
33419 Workaround for broken ATI VBE.
33420
33421 * video/i386/pc/vbe.c (last_set_mode): New variable.
33422 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33423 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33424 (grub_video_vbe_setup): Don't check for reserved flag.
33425
33426 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33427
33428 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33429 the `find' command.
33430
33431 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33432
33433 UUID support for HFS.
33434
33435 * fs/hfs.c (grub_hfs_uuid): New function.
33436 (grub_hfs_fs): New value .uuid.
33437 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33438
33439 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33440
33441 Fix a segfault with parsing unknown long options.
33442
33443 * util/grub-mkrelpath.c (options): Zero terminate it.
33444
33445 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33446
33447 * include/grub/misc.h (grub_puts): New declaration.
33448 (grub_puts_): Likewise.
33449 * kern/misc.c (grub_puts): New definition.
33450 (grub_puts_): Likewise.
33451
33452 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33453
33454 * util/grub-probe.c (probe): Improve error message.
33455
33456 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33457
33458 * loader/i386/multiboot_elfxx.c
33459 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33460 initialization.
33461
33462 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33463
33464 Relocator framework
33465
33466 * loader/i386/xnu_helper.S: Removed. All users updated.
33467 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33468 (relocator_mod_SOURCES): New variable.
33469 (relocator_mod_CFLAGS): Likewise.
33470 (relocator_mod_LDFLAGS): Likewise.
33471 (relocator_mod_ASFLAGS): Likewise.
33472 * conf/x86_64.rmk: Likewise.
33473 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33474 (grub_multiboot_payload_entry_offset): Likewise.
33475 (grub_multiboot_forward_relocator): Likewise.
33476 (grub_multiboot_forward_relocator_end): Likewise.
33477 (grub_multiboot_backward_relocator): Likewise.
33478 (grub_multiboot_backward_relocator_end): Likewise.
33479 (grub_multiboot_payload_eip): New variable.
33480 (grub_multiboot_payload_orig): Likewise.
33481 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33482 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33483 * include/grub/i386/memory.h
33484 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33485 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33486 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33487 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33488 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33489 * include/grub/i386/relocator.h: New file.
33490 * include/grub/x86_64/relocator.h: Likewise.
33491 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33492 (XNU_RELOCATOR): New macro.
33493 (grub_xnu_launcher_start): Remove.
33494 (grub_xnu_launcher_end): Likewise.
33495 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33496 (grub_xnu_heap_real_start): Remove.
33497 (grub_xnu_heap_start): Change to void *. All users updated.
33498 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33499 * lib/i386/relocator.c: New file.
33500 * lib/i386/relocator_asm.S: Likewise.
33501 * lib/i386/relocator_backward.S: Likewise.
33502 * lib/mips/relocator.c: Likewise.
33503 * lib/mips/relocator_asm.S: Likewise.
33504 * lib/relocator.c: Likewise.
33505 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33506 (entry): Removed.
33507 (playground): Likewise.
33508 (grub_multiboot_payload_orig): New variable.
33509 (grub_multiboot_payload_dest): Likewise.
33510 (grub_multiboot_payload_size): Likewise.
33511 (grub_multiboot_payload_eip): Likewise.
33512 (grub_multiboot_payload_esp): Likewise.
33513 (grub_multiboot_boot): Use grub_relocator32_boot.
33514 (grub_multiboot_unload): Free relocators.
33515 (grub_multiboot): Setup stack. Use relocators.
33516 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33517 (grub_multiboot_load_elfXX): Use relocators.
33518 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33519 (grub_multiboot_payload_size): Likewise.
33520 (grub_multiboot_payload_dest): Likewise.
33521 (grub_multiboot_payload_entry_offset): Likewise.
33522 (grub_multiboot_forward_relocator): Likewise.
33523 (grub_multiboot_backward_relocator): Likewise.
33524 (grub_multiboot_real_boot): Likewise.
33525 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33526 (grub_xnu_entry_point): Likewise.
33527 (grub_xnu_arg1): Likewise.
33528 (grub_xnu_stack): Likewise.
33529 (grub_xnu_launch): Removed.
33530 (grub_xnu_boot_resume): New function.
33531 (grub_xnu_boot): Use relocators.
33532 * loader/i386/xnu_helper.S: Removed.
33533 * loader/xnu.c (grub_xnu_heap_start): New variable.
33534 (grub_xnu_heap_size): Likewise.
33535 (grub_xnu_heap_malloc): Use relocators.
33536 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33537
33538 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33539
33540 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33541 anything.
33542
33543 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33544
33545 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33546 GRUB_ERR_NONE before calling grub_env_set.
33547
33548 2009-12-12 Robert Millan <rmh@aybabtu.com>
33549
33550 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33551 * genmk.rb (video): New variable.
33552 (CLEANFILES, VIDEOFILES): Add #{video}.
33553 (#{video}): New target rule.
33554 * genvideolist.sh: New file.
33555 * Makefile.in (pkglib_DATA): Add video.lst.
33556 (video.lst): New target rule.
33557 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33558 `video.lst'.
33559 * util/grub.d/30_os-prober.in: Replace `vbe' with
33560 ${GRUB_VIDEO_BACKEND}.
33561
33562 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33563
33564 * THANKS: Add David Miller.
33565
33566 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33567
33568 libpciaccess support.
33569
33570 * Makefile.in (LIBPCIACCESS): New variable.
33571 (enable_grub_emu_pci): Likewise.
33572 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33573 util/pci.c and commands/lspci.c.
33574 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33575 * configure.ac (grub-emu-pci): New option.
33576 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33577 (grub_pci_device_unmap_range): Likewise.
33578 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33579 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33580 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33581 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33582 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33583 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33584 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33585 * include/grub/pciutils.h: New file.
33586 * util/pci.c: Likewise.
33587
33588 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33589
33590 * util/misc.c: Don't include <errno.h> twice.
33591
33592 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33593
33594 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33595 name in an error message.
33596 (grub_biosdisk_rw): Likewise.
33597
33598 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33599
33600 Eliminate NTFS 4Gib barrier.
33601
33602 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33603 (read_run_data): Likewise.
33604 (grub_ntfs_read_run_list): Likewise.
33605 (grub_ntfs_read_block): Likewise.
33606 (grub_ntfs_iterate_dir): Likewise.
33607 (read_mft): Likewise.
33608 (read_data): Likewise.
33609 Use COM_LOG_LEN.
33610 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33611 to avoid 64-bit division
33612 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33613 (grub_ntfs_rlst): Use grub_disk_addr_t.
33614
33615 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33616
33617 Eliminate grub-fstest 4Gib barrier.
33618
33619 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33620 (read_file): Fix error reporting.
33621
33622 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33623
33624 Eliminate hexdump 4Gib barrier.
33625
33626 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33627 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33628
33629 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33630
33631 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33632 Fixes amarsh bug.
33633
33634 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33635
33636 Remove miscellaneous files in distclean target.
33637
33638 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33639
33640 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33641
33642 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33643 if they're already set. This resolves the conflict between my
33644 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33645 fixing the --grub-probe option again.
33646 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33647 change on 2009-10-06, so that we now once again source
33648 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33649
33650 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33651
33652 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33653 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33654 `util/devicemap.c'.
33655
33656 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33657
33658 * include/grub/misc.h (grub_printf_): New declaration.
33659 * kern/misc.c (grub_printf_): New definition.
33660 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33661 instead of `grub_printf' and `_'.
33662 * normal/menu_entry.c (store_completion): Likewise.
33663 (run): Likewise.
33664 (grub_menu_entry_run): Likewise.
33665 * normal/menu_text.c (grub_wait_after_message): Likewise.
33666 (notify_booting): Likewise.
33667 (notify_fallback): Likewise.
33668 (notify_execution_failure): Likewise.
33669
33670 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33671
33672 * configure.ac: Check for vasprintf.
33673 * util/misc.c (asprintf): Move allocation from here ...
33674 (vasprintf): ... to here. New function.
33675 (xasprintf): New function.
33676 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33677 prototypes.
33678 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33679 * util/grub-mkfont.c (write_font): Likewise.
33680 * util/grub-probe.c (probe): Likewise.
33681 * util/hostdisk.c (make_device_name): Likewise.
33682
33683 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33684
33685 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33686 anything even prefixed with 'cdrom' as a cdrom.
33687
33688 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33689
33690 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33691 mount points.
33692
33693 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33694
33695 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33696 grub_gettext_msg_list.
33697 (grub_gettext_gettranslation_from_position): Return const char *
33698 and not char *.
33699 (grub_gettext_translate): Add the translated strings into a list,
33700 returns from the list if existing there.
33701 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33702 (grub_gettext_delete_list): Delete the list.
33703 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33704 lang environment variable is changed.
33705 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33706
33707 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33708
33709 Rename kernel.mod to kernel.img.
33710
33711 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33712 (kernel_mod_EXPORTS): Rename to ...
33713 (kernel_img_EXPORTS): ... this.
33714 (kernel_mod_SOURCES): Rename to ...
33715 (kernel_img_SOURCES): ... this.
33716 (kernel_mod_HEADERS): Rename to ...
33717 (kernel_img_HEADERS): ... this. All users updated.
33718 (kernel_mod_CFLAGS): Rename to ...
33719 (kernel_img_CFLAGS): ... this.
33720 (kernel_mod_ASFLAGS): Rename to ...
33721 (kernel_img_ASFLAGS): ... this.
33722 (kernel_mod_LDFLAGS): Rename to ...
33723 (kernel_img_LDFLAGS): ... this.
33724 * conf/x86_64-efi.rmk: Likewise.
33725 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33726 (read_kernel_image): ... this. All users updated.
33727 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33728
33729 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33730
33731 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33732 (print_spaces): New function.
33733 (grub_print_ucs4): New function.
33734 (getstringwidth): New function.
33735 (print_message_indented): New function.
33736 (print_message): Gettexttize strings using print_message_indented.
33737 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33738 width.
33739 (get_entry_number): Gettextize and uses dynamic terminal width.
33740 (notify_booting, notify_fallback, notify_execution_failure):
33741 Gettextize.
33742 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33743 string.
33744 (run): Likewise.
33745 (grub_menu_entry_run): Likewise.
33746 * PO/POTFILES: Add normal/menu_entry.c.
33747
33748 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33749
33750 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33751
33752 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33753
33754 * util/grub-install.in: Install gettext .mo files.
33755 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33756
33757 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33758
33759 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33760 grub_dprintf.
33761
33762 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33763
33764 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33765 non-firmware-dependant one in realmode.S takes precedence.
33766
33767 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33768
33769 * commands/halt.c: Replace misc arch-specific headers with
33770 `<grub/misc.h>'.
33771 * commands/reboot.c: Likewise.
33772 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33773 `<grub/misc.h>'.
33774 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33775 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33776 (kernel_img_SOURCES): ... to here.
33777
33778 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33779 * include/grub/i386/pc/init.h: Likewise.
33780 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33781 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33782
33783 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33784
33785 * include/grub/i386/halt.h: Remove.
33786 * include/grub/i386/reboot.h: Likewise.
33787
33788 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33789
33790 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33791
33792 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33793 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33794 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33795 "progname.h"
33796 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33797 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33798 (usage): Add missing comma in printf.
33799
33800 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33801
33802 Use the same reboot approach on i386 coreboot and qemu as we do on
33803 BIOS.
33804
33805 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33806 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33807 * kern/i386/reboot.c: Remove.
33808 * include/grub/i386/reboot.h (grub_reboot): Export function.
33809 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33810 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33811 0xf000:0xfff0 instead of 0xffff:0x0000.
33812 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33813 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33814
33815 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33816
33817 Fix $srcdir != $objdir build.
33818
33819 * Makefile.in (po/%.po): Rewrite as ...
33820 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33821
33822 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33823
33824 Fix GNU/Hurd grub-install crash.
33825 * util/grub-probe.c (probe): Try to access `path' only when it is not
33826 NULL.
33827
33828 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33829
33830 Correct module naming.
33831
33832 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33833 (GRUB_MOD_INIT(efi_uga)): ... to this
33834 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33835 (GRUB_MOD_FINI(efi_uga)): ... to this
33836 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33837 (GRUB_MOD_INIT(efi_gop)): ... to this
33838 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33839 (GRUB_MOD_FINI(efi_gop)): ... to this
33840
33841 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33842
33843 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33844 translatable.
33845 (usage): Translate `arg' strings using gettext().
33846 Thanks to Jordi Mallach for the suggestion.
33847
33848 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33849
33850 GOP support. Based on patch from Bean
33851 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33852
33853 * video/efi_gop.c: New file.
33854 * include/grub/efi/graphics_output.h: Likewise.
33855 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33856 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33857 variables.
33858 * conf/x86_64-efi.rmk: Likewise.
33859
33860 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33861
33862 Rename efi_fb to efi_uga.
33863
33864 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33865 'efi_uga.mod'.
33866 (efi_fb_mod_SOURCES): Rename this ...
33867 (efi_uga_mod_SOURCES): ... to this.
33868 (efi_fb_mod_CFLAGS): Rename this ...
33869 (efi_uga_mod_CFLAGS): ... to this.
33870 (efi_fb_mod_LDFLAGS): Rename this ...
33871 (efi_uga_mod_LDFLAGS): ... to this.
33872 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33873 'efi_uga.mod'.
33874 (efi_fb_mod_SOURCES): Rename this ...
33875 (efi_uga_mod_SOURCES): ... to this.
33876 (efi_fb_mod_CFLAGS): Rename this ...
33877 (efi_uga_mod_CFLAGS): ... to this.
33878 (efi_fb_mod_LDFLAGS): Rename this ...
33879 (efi_uga_mod_LDFLAGS): ... to this.
33880 * video/efi_fb.c: Move this ...
33881 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33882
33883 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33884
33885 * po/README: New file. Explain our PO file workflow.
33886
33887 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33888
33889 * po/ChangeLog: Remove. Move relevant entries back to ...
33890 * ChangeLog: ... here.
33891 * po/ca.po: Remove (now handled by TLP).
33892 * po/id.po: Likewise.
33893 * po/zh_CN.po: Likewise.
33894 * Makefile.in (LINGUAS): Initialize in a way that supports
33895 empty set.
33896
33897 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33898
33899 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33900 reliing on po/LINGUAS.
33901 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33902 (po/%.po): ... this.
33903
33904 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33905
33906 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33907 (main): Use `program_name' instead of nonexistent `progname'.
33908
33909 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33910
33911 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33912 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33913
33914 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33915
33916 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33917 commit.
33918 * conf/i386-efi.rmk: Likewise.
33919 * conf/i386-ieee1275.rmk: Likewise.
33920 * conf/powerpc-ieee1275.rmk: Likewise.
33921 * conf/sparc64-ieee1275.rmk: Likewise.
33922 * conf/x86_64-efi.rmk: Likewise.
33923
33924 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33925
33926 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33927
33928 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33929
33930 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33931
33932 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33933
33934 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33935 (grub_mkdevicemap_SOURCES): New variable.
33936 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33937 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33938 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33939 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33940 (grub_mkdevicemap_SOURCES): Remove.
33941 * conf/i386-efi.rmk: Likewise.
33942 * conf/i386-ieee1275.rmk: Likewise.
33943 * conf/i386-pc.rmk: Likewise.
33944 * conf/powerpc-ieee1275.rmk: Likewise.
33945 * conf/sparc64-ieee1275.rmk: Likewise.
33946 * conf/x86_64-efi.rmk: Likewise.
33947 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33948 (usage): Fix strings to use `program_name'.
33949 (main): Initialize gettext.
33950 * util/grub-editenv.c: Likewise.
33951 * util/grub-emu.c: Likewise.
33952 * util/grub-fstest.c: Likewise.
33953 * util/grub-mkdevicemap.c: Likewise.
33954 * util/grub-mkfont.c: Likewise.
33955 * util/grub-mkrelpath.c: Likewise.
33956 * util/grub-pe2elf.c: Likewise.
33957 * util/grub-probe.c: Likewise.
33958 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33959 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33960 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33961
33962 * util/misc.c: Include `"progname.h"'.
33963 (progname): Remove variable.
33964 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33965
33966 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33967
33968 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33969 printf and print a newline after the menuentry header line.
33970 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33971
33972 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33973
33974 autoconf >= 2.60 support $(localedir).
33975
33976 * INSTALL: Note that autoconf 2.60 is required.
33977 * configure.ac (AC_PREREQ): Bump to 2.60.
33978 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33979 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33980
33981 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
33982
33983 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
33984 aclocal is run.
33985
33986 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33987
33988 * normal/main.c (grub_normal_read_line): Fix off-by-one
33989 buffer overflow.
33990
33991 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
33992
33993 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
33994 "parser.grub" in grub_command_execute() call.
33995
33996 2009-11-24 Carles Pina i Estany <carles@pina.cat>
33997
33998 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
33999 * conf/i386-efi.rmk: Likewise.
34000 * conf/i386-ieee1275.rmk: Likewise.
34001 * conf/i386-pc.rmk: Likewise.
34002 * conf/powerpc-ieee1275.rmk: Likewise.
34003 * conf/sparc64-ieee1275.rmk: Likewise.
34004 * conf/x86_64-efi.rmk: Likewise.
34005 * gettext/gettex.c: Include <grub/i18n.h>.
34006 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34007 here ...
34008 * include/grub/i18n.h: ... to here
34009 * include/grub/i18n.h: ... to here.
34010 * kern/misc.c: Include <grub/i18n.h>
34011 (grub_gettext_dummy): Move above user.
34012
34013 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34014
34015 * util/Makefile.in (install-local): Convert a `for' into a normal
34016 shell expansion.
34017
34018 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34019
34020 * autogen.sh: Add automake call.
34021 * config.guess: Remove.
34022 * config.sub: Likewise.
34023 * install-sh: Likewise.
34024
34025 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34026
34027 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34028
34029 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34030
34031 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34032 function to a normal shell `for'.
34033
34034 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34035
34036 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34037
34038 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34039
34040 * util/grub-mkrelpath.c: New file.
34041 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34042 (grub_mkrelpath_SOURCES): New variable.
34043 * include/grub/util/misc.h: New function prototype.
34044 * util/misc.c (make_system_path_relative_to_its_root): New function.
34045
34046 * util/grub-mkconfig_lib.in (bindir): New variable.
34047 (grub_mkrelpath): Likewise.
34048 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34049
34050 * util/probe.c (probe): Make the file path relative to its root.
34051 Change a info message to use the GRUB path. Enable again the
34052 check if we can read the file with GRUB facilities.
34053
34054 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34055 to its root.
34056
34057 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34058
34059 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34060 platform.
34061
34062 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34063
34064 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34065 strncmp().
34066
34067 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34068
34069 * util/getroot.c (grub_util_is_dmraid): New function.
34070 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34071 devices as normal ones, not as LVM.
34072
34073 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34074
34075 * conf/common.rmk: Add grub-gettext_lib target and updates
34076 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34077 LDFLAGS.
34078 * gettext/gettext.c: New file. (Reads mo files).
34079 * include/grub/file.h (grub_file_pread): New prototype.
34080 * include/grub/i18n.h (_): New prototype.
34081 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34082 prototypes.
34083 * kern/misc.c (grub_gettext_dummy): New function.
34084 * normal/menu_text.c: Include <grub/i18n.h>.
34085 * normal/menu_text.c (print_timeout): Gettexttize string.
34086 * normal/menu_text.c (print_message): Gettexttize string.
34087 * po/POTFILES: Add `normal/menu_text.c'.
34088 * po/ca.po: Add new translations.
34089 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34090 gettext module and defines locale_dir and lang in grub.cfg.
34091 * NEWS: Add gettext support.
34092
34093 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34094
34095 * util/hostdisk.c: Include `<grub/i18n.h>'.
34096 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34097 (make_device_name): Rewrite using asprintf.
34098 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34099 (find_system_device): If a device is not found, generate one just
34100 by reusing the OS path name.
34101 (read_device_map): Make it permissible for device.map not to exist.
34102
34103 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34104
34105 * script/sh/execute.c: Move from here ...
34106 * script/execute.c: ... to here. Update all users.
34107 * script/sh/function.c: Move from here ...
34108 * script/function.c: ... to here. Update all users.
34109 * script/sh/lexer.c: Move from here ...
34110 * script/lexer.c: ... to here. Update all users.
34111 * script/sh/main.c: Move from here ...
34112 * script/main.c: ... to here. Update all users.
34113 * script/sh/parser.y: Move from here ...
34114 * script/parser.y: ... to here. Update all users.
34115 * script/sh/script.c: Move from here ...
34116 * script/script.c: ... to here. Update all users.
34117
34118 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34119
34120 * configure.ac: Detect all `emu' platforms. Define
34121 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34122 --enable-grub-emu logic. Disable include/grub/machine
34123 symlink on `emu' platforms.
34124
34125 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34126 * gensymlist.sh.in: Likewise.
34127
34128 * include/grub/i386/coreboot/machine.h: Remove file.
34129 * include/grub/i386/efi/machine.h: Likewise.
34130 * include/grub/i386/ieee1275/machine.h: Likewise.
34131 * include/grub/i386/pc/machine.h: Likewise.
34132 * include/grub/i386/qemu/machine.h: Likewise.
34133 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34134 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34135 * include/grub/x86_64/efi/machine.h: Likewise.
34136
34137 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34138 * commands/halt.c: Likewise.
34139 * commands/reboot.c: Likewise.
34140 * include/grub/autoefi.h: Likewise.
34141 * include/grub/i386/at_keyboard.h: Likewise.
34142 * include/grub/i386/kernel.h: Likewise.
34143 * include/grub/i386/loader.h: Likewise.
34144 * include/grub/i386/pc/memory.h: Likewise.
34145 * kern/dl.c: Likewise.
34146 * kern/i386/coreboot/init.c: Likewise.
34147 * loader/i386/bsd.c: Likewise.
34148 * loader/i386/linux.c: Likewise.
34149 * loader/multiboot_loader.c: Likewise.
34150 * term/i386/pc/serial.c: Likewise.
34151 * term/usb_keyboard.c: Likewise.
34152
34153 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34154 `<grub/machine/machine.h>'
34155 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34156 * util/misc.c: Remove `<grub/machine/machine.h>' and
34157 `<grub/machine/time.h>'.
34158
34159 * Makefile.in (enable_grub_emu): Remove variable.
34160 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34161
34162 * conf/any-emu.rmk: New file.
34163 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34164 (grub_emu_init.c): Move from here ...
34165 * conf/any-emu.rmk: ... to here.
34166
34167 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34168 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34169 * conf/any-emu.rmk: ... to here.
34170
34171 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34172
34173 * include/grub/parser.h (grub_parser_register): Document need
34174 of `name' parameter.
34175 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34176 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34177 "sh" to "grub".
34178
34179 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34180
34181 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34182 `$(XGETTEXT)'.
34183 * include/grub/i18n.h (N_): New macro.
34184 * util/mkisofs/mkisofs.h: Likewise.
34185 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34186 around N_().
34187 (usage): Use gettext() to translate help strings when printing them.
34188
34189 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34190
34191 Based on patch from Bean
34192 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34193
34194 * video/efi_fb.c: New file.
34195 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34196 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34197 variables.
34198 * conf/x86_64-efi.rmk: Likewise.
34199
34200 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34201
34202 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34203 * util/i386/pc/grub-setup.c: Likewise.
34204
34205 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34206
34207 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34208 <hurd/fs.h>
34209 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34210 file_get_storage_info to implement grub_guess_root_device.
34211
34212 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34213
34214 * Makefile.in (target): Use make's builtin $(shell) function
34215 instead of calling directly $(SHELL) to create the locale directories,
34216 inside the $(foreach) function.
34217
34218 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34219
34220 * util/grub-mkrescue.in: Print an error and usage if output option
34221 has not been given.
34222
34223 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34224
34225 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34226 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34227 root and /boot are on different devices.
34228
34229 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34230
34231 Fix build for srcdir != objdir.
34232
34233 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34234 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34235 $(srcdir).
34236 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34237 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34238 reference for input.
34239
34240 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34241
34242 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34243 or hardlinking it). Remove -J option, Joliet is not compatible with
34244 multiple source directories.
34245
34246 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34247 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34248
34249 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34250 (process_input_dir): New function. Process an arbitrary input
34251 directory.
34252 Misc adjustments to support both "override mode" and system-wide mode.
34253
34254 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34255
34256 * configure.ac (UNIFONT_BDF): Rename to ...
34257 (FONT_SOURCE): ... this. Update all users.
34258
34259 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34260
34261 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34262 to the list of unifont files to look for.
34263
34264 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34265
34266 Patch from Joe Auricchio <jauricchio@gmail.com>
34267 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34268 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34269 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34270
34271 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34272
34273 * Makefile.in (install-local): Add a missing backslash.
34274
34275 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34276
34277 * include/grub/x86_64/io.h: New file.
34278
34279 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34280
34281 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34282 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34283 Include `"progname.h"'.
34284 (main): Initialize gettext.
34285 * util/i386/pc/grub-setup.c: Gettexttize.
34286 * util/i386/pc/grub-mkimage.c: Likewise.
34287
34288 * Makefile.in (po/*.po): Redefine as ...
34289 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34290
34291 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34292
34293 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34294
34295 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34296 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34297 (program_name): Remove.
34298 (main): Initialize gettext support.
34299 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34300 Include `<libintl.h>'.
34301 (_): New macro.
34302
34303 * util/mkisofs/eltorito.c: Gettexttize.
34304 * util/mkisofs/joliet.c: Likewise.
34305 * util/mkisofs/mkisofs.c: Likewise.
34306 * util/mkisofs/multi.c: Likewise.
34307 * util/mkisofs/rock.c: Likewise.
34308 * util/mkisofs/tree.c: Likewise.
34309 * util/mkisofs/write.c: Likewise.
34310
34311 * po/POTFILES: Update with new files.
34312
34313 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34314
34315 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34316 * util/mkisofs/iso9660.h: Likewise.
34317 * util/mkisofs/joliet.c: Likewise.
34318 * util/mkisofs/mkisofs.c: Likewise.
34319 * util/mkisofs/mkisofs.h: Likewise.
34320 * util/mkisofs/rock.c: Likewise.
34321 * util/mkisofs/tree.c: Likewise.
34322 * util/mkisofs/write.c: Likewise.
34323
34324 * util/mkisofs/eltorito.c (rcsid): Remove.
34325 * util/mkisofs/hash.c: Likewise.
34326 * util/mkisofs/joliet.c: Likewise.
34327 * util/mkisofs/name.c: Likewise.
34328 * util/mkisofs/rock.c: Likewise.
34329 * util/mkisofs/tree.c: Likewise.
34330 * util/mkisofs/write.c: Likewise.
34331
34332 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34333
34334 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34335 instead of static allocation.
34336 * util/mkisofs/match.h: Likewise.
34337
34338 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34339
34340 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34341 and `util/grub.d/10_linux.in'.
34342 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34343 translatable Shell files.
34344
34345 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34346
34347 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34348
34349 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34350
34351 * INSTALL: Document Automake is needed for bootstrap.
34352 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34353 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34354 Add gettext initialization.
34355 (kfreebsd_entry): Make menuentry output translatable.
34356
34357 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34358
34359 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34360 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34361 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34362 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34363 (LINGUAS): Auto-generate using `po/LINGUAS'.
34364 * po/LINGUAS: New file.
34365
34366 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34367
34368 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34369 other things).
34370 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34371 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34372 bindtextdomain() calls for gettext initialization.
34373
34374 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34375
34376 * gnulib/progname.c: New file (imported from Gnulib).
34377 * gnulib/progname.h: Likewise.
34378 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34379 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34380 (usage): Replace `progname' with `program_name'.
34381 (main): Use set_program_name() for program name initialization.
34382
34383 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34384
34385 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34386 from here ...
34387 * Makefile.in (CPPFLAGS): ... to here.
34388
34389 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34390
34391 * aclocal.m4: Move from here ...
34392 * acinclude.m4: ... to here.
34393 * autogen.sh: Add call to `aclocal'.
34394 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34395
34396 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34397
34398 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34399 (LINGUAS): New variable.
34400 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34401 (install-local): Install MO files.
34402 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34403 * include/grub/i18n.h: New file.
34404 * po/POTFILES: New file.
34405 * po/ca.po: New file.
34406 * util/grub.d/10_linux.in (bindir): New variable.
34407 Add gettext initialization.
34408 (linux_entry): Make menuentry output translatable.
34409 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34410 (usage): Make --help output translatable.
34411 (main): Initialize gettext.
34412
34413 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34414
34415 * import_gcry.py: New file (written by Vladimir with minor
34416 adjustments).
34417 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34418 ciphers.
34419 * INSTALL: Document that Python is required for bootstrap.
34420
34421 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 Import ciphers from libgcrypt 1.4.4.
34424
34425 * lib/libgcrypt/cipher/ChangeLog
34426 * lib/libgcrypt/cipher/ac.c
34427 * lib/libgcrypt/cipher/arcfour.c
34428 * lib/libgcrypt/cipher/bithelp.h
34429 * lib/libgcrypt/cipher/blowfish.c
34430 * lib/libgcrypt/cipher/camellia-glue.c
34431 * lib/libgcrypt/cipher/camellia.c
34432 * lib/libgcrypt/cipher/camellia.h
34433 * lib/libgcrypt/cipher/cast5.c
34434 * lib/libgcrypt/cipher/cipher.c
34435 * lib/libgcrypt/cipher/crc.c
34436 * lib/libgcrypt/cipher/des.c
34437 * lib/libgcrypt/cipher/dsa.c
34438 * lib/libgcrypt/cipher/ecc.c
34439 * lib/libgcrypt/cipher/elgamal.c
34440 * lib/libgcrypt/cipher/hash-common.c
34441 * lib/libgcrypt/cipher/hash-common.h
34442 * lib/libgcrypt/cipher/hmac-tests.c
34443 * lib/libgcrypt/cipher/md.c
34444 * lib/libgcrypt/cipher/md4.c
34445 * lib/libgcrypt/cipher/md5.c
34446 * lib/libgcrypt/cipher/primegen.c
34447 * lib/libgcrypt/cipher/pubkey.c
34448 * lib/libgcrypt/cipher/rfc2268.c
34449 * lib/libgcrypt/cipher/rijndael-tables.h
34450 * lib/libgcrypt/cipher/rijndael.c
34451 * lib/libgcrypt/cipher/rmd.h
34452 * lib/libgcrypt/cipher/rmd160.c
34453 * lib/libgcrypt/cipher/rsa.c
34454 * lib/libgcrypt/cipher/seed.c
34455 * lib/libgcrypt/cipher/serpent.c
34456 * lib/libgcrypt/cipher/sha1.c
34457 * lib/libgcrypt/cipher/sha256.c
34458 * lib/libgcrypt/cipher/sha512.c
34459 * lib/libgcrypt/cipher/tiger.c
34460 * lib/libgcrypt/cipher/twofish.c
34461 * lib/libgcrypt/cipher/whirlpool.c
34462
34463 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34464
34465 Fix build for systems without error().
34466
34467 * gnulib/error.c: New file (imported from Gnulib).
34468 * gnulib/error.h: Likewise.
34469 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34470 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34471 (this variable is now used by error()).
34472
34473 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34474
34475 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34476 instead of relying that char is signed.
34477
34478 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34479
34480 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34481 blocksize different from specified.
34482 (grub_pxefs_read): Likewise.
34483
34484 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34485
34486 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34487
34488 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34489 (grub_ata_readwrite): Likewise. Update 2 format strings.
34490 (grub_atapi_read): Likewise.
34491
34492 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34493 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34494 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34495 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34496 (ata_mod_LDFLAGS): Move from here ...
34497 * conf/i386.rmk: ... to here ...
34498 * conf/x86_64-efi.rmk: ... and here.
34499 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34500 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34501
34502 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34503
34504 Relicense multiboot.h, with RMS' blessing.
34505
34506 * include/multiboot.h: Change to X11 license.
34507
34508 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34509
34510 Support --version in grub-mkisofs.
34511
34512 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34513 (OPTION_VERSION): New macro.
34514 (ld_options): Recognize --version.
34515 (usage): Move `program_name' from here ...
34516 (program_name): ... to here. Add `static' qualifier.
34517 (main): Recognize `OPTION_VERSION'.
34518
34519 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34520
34521 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34522 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34523
34524 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34525
34526 Fix help2man generation for mkisofs.
34527
34528 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34529 (usage): Send output to stdout (rather than stderr).
34530
34531 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34532
34533 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34534 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34535 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34536 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34537 (bin_SCRIPTS): Add `grub-mkfloppy'.
34538 (grub_mkfloppy_SOURCES): New variable.
34539
34540 * util/grub-mkrescue.in: New file.
34541 * util/i386/pc/grub-mkfloppy.in: New file.
34542
34543 * util/i386/coreboot/grub-mkrescue.in: Remove.
34544 * util/i386/pc/grub-mkrescue.in: Remove.
34545
34546 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34547
34548 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34549 from here ...
34550 * include/multiboot.h (struct multiboot_header): ... to here. Update
34551 all users.
34552 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34553 from here ...
34554 * include/multiboot.h (struct multiboot_info): ... to here. Update
34555 all users.
34556 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34557 from here ...
34558 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34559 Update all users.
34560 * include/grub/multiboot.h (struct grub_mod_list): Move
34561 from here ...
34562 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34563 Update all users.
34564
34565 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34566
34567 * include/multiboot2.h (multiboot_word): Rename from this ...
34568 (multiboot2_word): ... to this. Update all users.
34569 (multiboot_header): Rename from this ...
34570 (multiboot2_header): ... to this. Update all users.
34571 (multiboot_tag_header): Rename from this ...
34572 (multiboot2_tag_header): ... to this. Update all users.
34573 (multiboot_tag_start): Rename from this ...
34574 (multiboot2_tag_start): ... to this. Update all users.
34575 (multiboot_tag_name): Rename from this ...
34576 (multiboot2_tag_name): ... to this. Update all users.
34577 (multiboot_tag_module): Rename from this ...
34578 (multiboot2_tag_module): ... to this. Update all users.
34579 (multiboot_tag_memory): Rename from this ...
34580 (multiboot2_tag_memory): ... to this. Update all users.
34581 (multiboot_tag_unused): Rename from this ...
34582 (multiboot2_tag_unused): ... to this. Update all users.
34583 (multiboot_tag_end): Rename from this ...
34584 (multiboot2_tag_end): ... to this. Update all users.
34585
34586 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34587
34588 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34589 this platform we should support Multiboot1 first.
34590
34591 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34592 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34593 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34594
34595 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34596
34597 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34598 of write calls (converting them to fwrite() if they aren't already).
34599 (get_torito_desc): Likewise.
34600 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34601
34602 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34603
34604 * util/i386/pc/grub-install.in: Move from here ...
34605 * util/grub-install.in: ... to here. Update all users.
34606
34607 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34608
34609 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34610
34611 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34612
34613 Support for El Torito without floppy emulation.
34614
34615 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34616 (init_boot_catalog): Improve error handling.
34617 (get_torito_desc): Don't use floppy emulation unless requested by
34618 user. Patch boot information table when requested via
34619 `-boot-info-table'.
34620 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34621 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34622 (use_boot_info_table): New variables.
34623 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34624 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34625 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34626 `--eltorito-emul-floppy'.
34627 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34628 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34629 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34630 (use_boot_info_table, get_731): New prototypes.
34631 * util/mkisofs/write.c (get_731): New function.
34632
34633 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34634
34635 Fix the generation of the man page.
34636
34637 * util/pc/i386/grub-install.in: Source
34638 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34639
34640 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34641
34642 Large file support for grub-mkisofs.
34643
34644 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34645 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34646 (session_start): Upgrade type to `uint64_t'. Update all users.
34647 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34648 (struct directory_entry): Upgrade type of `starting_block' and
34649 `size' to `uint64_t'. Update all users.
34650 (struct deferred): Remove unused structure.
34651 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34652 Update all users.
34653 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34654 file is larger than `UINT32_MAX'.
34655 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34656 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34657 return value.
34658 (struct deferred_write): Upgrade type of `extent' and `size' to
34659 `uint64_t'. Update all users.
34660 (last_extent_written): Upgrade type to `uint64_t'. Update all
34661 users.
34662 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34663 Update all users. Upgrade type of `remain' to `int64_t' and
34664 `use' to `size_t'. Use error() to handle fread() errors.
34665 (write_files): Rely on write_one_file() rather than calling
34666 xfwrite() directly.
34667
34668 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34669
34670 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34671
34672 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34673
34674 * util/mkisofs/fnmatch.c: Remove.
34675 * util/mkisofs/getopt1.c: Likewise.
34676 * util/mkisofs/getopt.c: Likewise.
34677 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34678 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34679 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34680 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34681 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34682
34683 * configure.ac: Detect `mingw32msvc' host_os.
34684 Check for lstat(), getuid() and getgid().
34685
34686 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34687 instances of `u_char' with `uint8_t'.
34688
34689 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34690 [!HAVE_GETUID] (getuid): New function (stub).
34691 [!HAVE_GETGID] (getgid): Likewise.
34692 [!HAVE_LSTAT] (lstat): Likewise.
34693 [!S_IROTH] (S_IROTH): New macro (dummy).
34694 [!S_IRGRP] (S_IRGRP): Likewise.
34695
34696 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34697
34698 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34699 conditional expression).
34700
34701 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34702
34703 Import from Gnulib.
34704
34705 * gnulib/fnmatch.c: New file.
34706 * gnulib/fnmatch.h: Likewise.
34707 * gnulib/fnmatch_loop.c: Likewise.
34708 * gnulib/getopt.c: Likewise.
34709 * gnulib/getopt.h: Likewise.
34710 * gnulib/getopt1.c: Likewise.
34711 * gnulib/getopt_int.h: Likewise.
34712 * gnulib/gettext.h: Likewise.
34713
34714 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34715
34716 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34717 * normal/handler.c (read_handler_list): Likewise.
34718
34719 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34720
34721 Misc cleanup.
34722
34723 * kern/command.c (grub_register_command_prio): Use
34724 grub_zalloc() instead of explicitly zeroing data.
34725 * kern/list.c: Include `<grub/mm.h>'.
34726 (grub_named_list_find): Replace `0' with `NULL'.
34727 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34728 (fs_module_list): Change type to `grub_named_list_t'. Update all
34729 users.
34730 * normal/dyncmd.c (read_command_list): Add space between function
34731 call and parenthesis.
34732 * normal/handler.c (read_handler_list): Likewise.
34733
34734 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34735
34736 * normal/auth.c (punishment_delay): Moved from here ...
34737 (grub_auth_strcmp): ... to here (inside function).
34738
34739 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34740
34741 * include/grub/list.h (struct grub_named_list): Remove `const'
34742 qualifier from `name'.
34743 (struct grub_prio_list): Likewise.
34744
34745 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34746
34747 * normal/auth.c: Include `<grub/time.h>'.
34748 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34749
34750 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34751
34752 * normal/auth.c (punishment_delay): New variable.
34753 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34754 (grub_auth_check_authentication): Punish failed login attempts with
34755 an incremental (2^N) delay.
34756
34757 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34758
34759 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34760 path with $(srcdir).
34761
34762 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34763
34764 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34765
34766 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34767
34768 * util/i386/coreboot/grub-mkrescue.in: New file.
34769 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34770 variables.
34771
34772 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34773 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34774 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34775 requirements.
34776 * util/mkisofs/defaults.h: New file.
34777 * util/mkisofs/eltorito.c: Likewise.
34778 * util/mkisofs/exclude.h: Likewise.
34779 * util/mkisofs/fnmatch.c: Likewise.
34780 * util/mkisofs/getopt.c: Likewise.
34781 * util/mkisofs/getopt1.c: Likewise.
34782 * util/mkisofs/hash.c: Likewise.
34783 * util/mkisofs/include/fctldefs.h: Likewise.
34784 * util/mkisofs/include/mconfig.h: Likewise.
34785 * util/mkisofs/include/prototyp.h: Likewise.
34786 * util/mkisofs/include/statdefs.h: Likewise.
34787 * util/mkisofs/iso9660.h: Likewise.
34788 * util/mkisofs/joliet.c: Likewise.
34789 * util/mkisofs/match.c: Likewise.
34790 * util/mkisofs/match.h: Likewise.
34791 * util/mkisofs/mkisofs.c: Likewise.
34792 * util/mkisofs/mkisofs.h: Likewise.
34793 * util/mkisofs/multi.c: Likewise.
34794 * util/mkisofs/name.c: Likewise.
34795 * util/mkisofs/rock.c: Likewise.
34796 * util/mkisofs/tree.c: Likewise.
34797 * util/mkisofs/write.c: Likewise.
34798
34799 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34800
34801 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34802 being insecure.
34803
34804 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34805
34806 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34807 `grub-mkimage' (and use $0 when possible).
34808
34809 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34810
34811 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34812 error message for excessively large memory map.
34813
34814 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34815
34816 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34817 executable bit.
34818
34819 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34820
34821 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34822 message for coreboot users.
34823
34824 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34825
34826 Fix build with GNU gold.
34827
34828 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34829 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34830 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34831 link addresses.
34832 * aclocal.m4: Likewise.
34833
34834 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34835
34836 * configure.ac (AC_PREREQ): Bump to 2.59d.
34837 * INSTALL: Make it more clear when Autoconf and Ruby are
34838 needed and when to run `./autogen.sh'.
34839
34840 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34841
34842 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34843 OSes.
34844
34845 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34846
34847 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34848
34849 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34850
34851 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34852 giving it to GNU Mach.
34853
34854 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34855
34856 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34857 GNU partition number to get internal GRUB partition number.
34858
34859 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34860
34861 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34862 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34863
34864 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34865
34866 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34867 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34868 case.
34869
34870 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34871
34872 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34873
34874 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34875
34876 Fix build problem.
34877
34878 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34879 `-isystem=$(srcdir)/include'.
34880
34881 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34882
34883 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34884 checked (grub-install doesn't currently rely on it).
34885
34886 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34887
34888 Revert SVN r2660.
34889
34890 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34891 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34892 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34893 * conf/i386-ieee1275.rmk: Likewise.
34894 * conf/i386-pc.rmk: Likewise.
34895 * conf/powerpc-ieee1275.rmk: Likewise.
34896 * conf/sparc64-ieee1275.rmk: Likewise.
34897 * conf/x86_64-efi.rmk: Likewise.
34898
34899 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34900
34901 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34902
34903 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34904
34905 * include/grub/misc.h: Stop checking for APPLE_CC.
34906
34907 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34910 doesn't cause an infinite call loop.
34911
34912 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34913
34914 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34915 strings.
34916
34917 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34920 variable.
34921 * Makefile.in: Likewise.
34922
34923 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34924
34925 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34926
34927 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34928
34929 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34930
34931 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34932
34933 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34934
34935 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34936
34937 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34938 from here ...
34939 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34940
34941 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34942
34943 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34944 in $(MAKEINFO) invocation. This makes it clear in output that
34945 errors are being ignored.
34946
34947 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34948
34949 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34950 from here ...
34951 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34952 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34953 * conf/i386-ieee1275.rmk: Likewise.
34954 * conf/i386-pc.rmk: Likewise.
34955 * conf/powerpc-ieee1275.rmk: Likewise.
34956 * conf/sparc64-ieee1275.rmk: Likewise.
34957 * conf/x86_64-efi.rmk: Likewise.
34958
34959 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34960
34961 * util/grub-editenv.c (main): If only a command is given, use
34962 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34963 (usage): FILENAME is now optional and has a default.
34964
34965 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34966
34967 Improve grub-mkconfig performance when there are several menu
34968 entries on a single filesystem.
34969
34970 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34971 prepare_grub_to_access_device.
34972 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34973 * util/grub.d/30_os-prober.in: Likewise.
34974
34975 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34976
34977 * util/grub.d/10_freebsd.in: Remove.
34978 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34979 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34980
34981 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34982
34983 * docs/grub.cfg: Fix example usage of *BSD loaders.
34984
34985 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34986
34987 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
34988 grub_util_error() call.
34989
34990 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
34991
34992 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
34993 `reserved_first_sector' member.
34994 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
34995 `reserved_first_sector' to 1.
34996 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
34997 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
34998 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
34999 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35000 filesystems which begin at first sector.
35001 (options): New option --skip-fs-probe.
35002 (main): Handle --skip-fs-probe and pass it to setup().
35003
35004 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35005
35006 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35007 (memset): Fix function prototype.
35008
35009 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35010 2009-10-25 Vasily Averin <vvs@parallels.com>
35011
35012 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35013 `dirent.direntlen == 0'.
35014
35015 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35016
35017 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35018 `cpio'.
35019 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35020
35021 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35022
35023 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35024 `__trampoline_setup' and `__ucmpdi2'.
35025 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35026 that libgcc provides.
35027
35028 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35029
35030 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35031 * include/grub/sparc64/libgcc.h (memset): Likewise.
35032 * include/grub/misc.h (memset, memcmp): New function prototypes.
35033
35034 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35035
35036 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35037 `cpio'.
35038 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35039
35040 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35041
35042 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35043 * docs/grub.cfg: Compensate for recent change in multiboot
35044 loader (since 2009-08-14 it won't pass filename to payload).
35045 * util/grub.d/10_hurd.in: Likewise.
35046
35047 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35048
35049 * config.guess: Update to latest version from config git
35050 repository.
35051 * config.sub: Likewise.
35052
35053 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35054
35055 Fix build on sparc64.
35056
35057 * configure.ac: Perform checks for libgcc symbols before
35058 adding `-nostdlib' to LDFLAGS.
35059
35060 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35061
35062 Let user specify OpenBSD root device.
35063
35064 * loader/i386/bsd.c (openbsd_root): New variable.
35065 (openbsd_opts): New option 'root'.
35066 (OPENBSD_ROOT_ARG): New macro.
35067 (grub_openbsd_boot): Use 'openbsd_root'.
35068 (grub_cmd_openbsd): Fill 'openbsd_root'.
35069
35070 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35071
35072 * NEWS: Misc adjustments.
35073
35074 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35075
35076 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35077
35078 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35079
35080 * configure.ac: Bump version to 1.97.
35081
35082 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35083
35084 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35085 -mno-3dnow on x86 architectures. Some toolchains enable these
35086 features by default, but they rely on registers that aren't enabled
35087 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35088
35089 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35090
35091 Make entry text a bit more readable.
35092
35093 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35094
35095 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35096
35097 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35098
35099 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35100
35101 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35102 operations.
35103
35104 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35105
35106 * configure.ac: Add missing dollar.
35107
35108 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35109
35110 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35111
35112 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35113 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35114 exports.
35115 * include/grub/sparc64/libgcc.h: Likewise. Use
35116 preprocessor conditionals.
35117
35118 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35119
35120 * conf/common.rmk (grub-dumpbios): Remove rule.
35121 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35122 * util/grub-dumpbios.in: Remove file.
35123
35124 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35125
35126 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35127 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35128
35129 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35130 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35131 users.
35132
35133 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35134 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35135 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35136 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35137 users.
35138
35139 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35140
35141 * term/tparm.c: Switch to GPLv3.
35142
35143 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35144
35145 * include/grub/i386/cpuid.h: Add header protection.
35146
35147 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35148
35149 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35150
35151 * include/grub/i386/cpuid.h: New file.
35152 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35153 (has_longmode): Rename to ...
35154 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35155 `static' attribute.
35156 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35157 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35158 on a CPU that doesn't implement AMD64 instruction set.
35159
35160 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35161
35162 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35163 that version.texi is rebuilt on version number changes.
35164
35165 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35166
35167 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35168 Fixes bug #27602.
35169
35170 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35171
35172 * util/i386/pc/grub-install.in: Source
35173 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35174 that the --grub-probe option will work.
35175 * util/sparc64/ieee1275/grub-install.in: Likewise.
35176
35177 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35178
35179 * configure.ac: Bump version to 1.97~beta4.
35180
35181 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35182
35183 Resync grub-mkdevicemap in x86_64-efi.
35184
35185 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35186 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35187 `util/devicemap.c'.
35188
35189 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35190
35191 * util/grub-editenv.c (create_envblk_file): Write new block with a
35192 .new suffix and then rename it into place, to ensure atomic
35193 creation.
35194
35195 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35196
35197 Do not automatically install headers.
35198
35199 * Makefile.in (include_DATA): Remove. Update all users.
35200
35201 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35202
35203 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35204 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35205
35206 * util/osdetect.lua: Remove.
35207 * script/lua/lauxlib.c: Likewise.
35208 * script/lua/ldebug.c: Likewise.
35209 * script/lua/grub_main.c: Likewise.
35210 * script/lua/lauxlib.h: Likewise.
35211 * script/lua/ldebug.h: Likewise.
35212 * script/lua/ltablib.c: Likewise.
35213 * script/lua/liolib.c: Likewise.
35214 * script/lua/lstrlib.c: Likewise.
35215 * script/lua/lualib.h: Likewise.
35216 * script/lua/ldo.c: Likewise.
35217 * script/lua/ldump.c: Likewise.
35218 * script/lua/ldo.h: Likewise.
35219 * script/lua/loslib.c: Likewise.
35220 * script/lua/lundump.c: Likewise.
35221 * script/lua/grub_lib.c: Likewise.
35222 * script/lua/ldblib.c: Likewise.
35223 * script/lua/lundump.h: Likewise.
35224 * script/lua/lmem.c: Likewise.
35225 * script/lua/grub_lib.h: Likewise.
35226 * script/lua/lmathlib.c: Likewise.
35227 * script/lua/lstate.c: Likewise.
35228 * script/lua/ltm.c: Likewise.
35229 * script/lua/lvm.c: Likewise.
35230 * script/lua/lmem.h: Likewise.
35231 * script/lua/lstate.h: Likewise.
35232 * script/lua/ltm.h: Likewise.
35233 * script/lua/ltable.c: Likewise.
35234 * script/lua/lvm.h: Likewise.
35235 * script/lua/llex.c: Likewise.
35236 * script/lua/lgc.c: Likewise.
35237 * script/lua/grub_lua.h: Likewise.
35238 * script/lua/loadlib.c: Likewise.
35239 * script/lua/lfunc.c: Likewise.
35240 * script/lua/lopcodes.c: Likewise.
35241 * script/lua/lparser.c: Likewise.
35242 * script/lua/ltable.h: Likewise.
35243 * script/lua/llex.h: Likewise.
35244 * script/lua/lgc.h: Likewise.
35245 * script/lua/lfunc.h: Likewise.
35246 * script/lua/lbaselib.c: Likewise.
35247 * script/lua/lopcodes.h: Likewise.
35248 * script/lua/lparser.h: Likewise.
35249 * script/lua/lzio.c: Likewise.
35250 * script/lua/linit.c: Likewise.
35251 * script/lua/lobject.c: Likewise.
35252 * script/lua/llimits.h: Likewise.
35253 * script/lua/lstring.c: Likewise.
35254 * script/lua/lzio.h: Likewise.
35255 * script/lua/lapi.c: Likewise.
35256 * script/lua/lcode.c: Likewise.
35257 * script/lua/lua.h: Likewise.
35258 * script/lua/lobject.h: Likewise.
35259 * script/lua/lstring.h: Likewise.
35260 * script/lua/lapi.h: Likewise.
35261 * script/lua/lcode.h: Likewise.
35262 * script/lua/luaconf.h: Likewise.
35263
35264 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35265
35266 * docs/grub.texi (Command-line and menu entry commands): Document
35267 date and echo commands.
35268
35269 2009-09-24 Pavel Roskin <proski@gnu.org>
35270
35271 * include/grub/kernel.h (struct grub_module_header): Remove
35272 `grub_module_header_types'. Make `type' unsigned. Make `size'
35273 32-bit on all platforms.
35274 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35275 8-bit field. Use grub_host_to_target32() for `size'.
35276 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35277 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35278 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35279
35280 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35281
35282 Fix "lost keypress" bug in at_keyboard.
35283
35284 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35285 Checks for readyness of input buffer (without flushing it).
35286 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35287 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35288
35289 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35290
35291 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35292 size check within GRUB_MACHINE_PCBIOS section.
35293
35294 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35295
35296 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35297 return value.
35298 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35299 KEYBOARD_ISREADY check.
35300 (grub_at_keyboard_checkkey): Rename to ...
35301 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35302 Remove gratuitous cast.
35303
35304 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35305
35306 * configure.ac: Call AC_PROG_MKDIR_P.
35307 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35308 version.texi in $(builddir) rather than $(srcdir).
35309 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35310 to makeinfo's @include search path.
35311
35312 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35313
35314 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35315
35316 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35317
35318 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35319 for `*.dpkg-new'.
35320
35321 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35322
35323 Build info documentation. Some code borrowed from Automake.
35324
35325 * configure.ac: Check for makeinfo.
35326 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35327 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35328 docs/version.texi.
35329 (MOSTLYCLEANFILES): Add vti.tmp.
35330 (docs/version.texi, docs/stamp-vti): Update automatically.
35331 (docs/grub.info): Build info documentation. Use --force and ignore
35332 errors for now.
35333 (all-local): Add $(INFOS).
35334 (install-local): Install info files.
35335 (uninstall): Uninstall info files.
35336 * docs/version.texi: Remove from revision control. This file is
35337 automatically generated on build now.
35338 * gendistlist.sh: Add `*.info'.
35339
35340 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35341
35342 * kern/term.c: Fix indentation.
35343
35344 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35345
35346 * util/hostdisk.c: Fix a comment.
35347
35348 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35349
35350 Fix regression introduced in r2539.
35351
35352 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35353 to 0xA1.
35354
35355 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35356
35357 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35358 os-prober. Under normal operation, it does not print anything to
35359 stderr; if it does, we need to debug it, and throwing away stderr
35360 makes that excessively difficult.
35361
35362 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35363
35364 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35365
35366 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35367
35368 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35369 AC_LANG_PROGRAM from autoconf.
35370 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35371 prototypes (fixes warning).
35372
35373 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35374 `--disable-werror' was used.
35375
35376 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35377
35378 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35379 uninitialized `lastaddr'.
35380
35381 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35382
35383 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35384
35385 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35386
35387 * commands/test.c (get_fileinfo): Return immediately if
35388 grub_fs_probe fails.
35389
35390 2009-09-14 José Martínez <xosemp@gmail.com>
35391
35392 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35393
35394 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35395
35396 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35397 output.
35398
35399 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35400
35401 * configure.ac: Remove --enable-grub-pe2elf. Only build
35402 grub-pe2elf when needed by the build system itself.
35403 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35404
35405 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35406
35407 * configure.ac: Bump version to 1.97~beta3.
35408 * docs/version.texi: Likewise.
35409
35410 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35411
35412 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35413 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35414 from here ...
35415 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35416 (grub_linux_setup_video): ... to here (with some adjustments).
35417
35418 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35419
35420 Fix memory corruption issue (spotted by Colin Watson).
35421
35422 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35423 causing returned size to be stored in an incorrect memory location.
35424 Fix use of uninitialized value when storing the returned size.
35425
35426 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35427
35428 Change clean rules to properly remove files
35429
35430 * genmk.rb: add new clean rules
35431 * Makefile.in (clean): add the new targets
35432 (mostlyclean): likewise
35433
35434 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35435
35436 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35437 to grub_uint64_t.
35438 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35439 non-resident files.
35440
35441 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35442
35443 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35444 part of bug #27349.
35445
35446 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35447
35448 * util/grub-mkconfig.in: Make the created config mode 400 and
35449 print a warning if it fails.
35450
35451 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35452
35453 * util/grub.d/40_custom.in: Ask user to type custom entries below
35454 comment, rather than below 'exec tail' line.
35455
35456 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35457
35458 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35459 visible in grub.cfg.
35460
35461 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35462
35463 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35464 file.
35465
35466 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35467
35468 * docs/grub.cfg: Add an example menu entry for memtest86+.
35469
35470 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35471
35472 * config.guess: Update to latest version from config git.
35473 * config.sub: Likewise.
35474
35475 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35476
35477 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35478 unknown-command case. Fixes bug #27320.
35479
35480 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35481
35482 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35483 `help' if the command exists.
35484
35485 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35486
35487 * INSTALL: Require GCC 4.1.3 or later.
35488
35489 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35490
35491 * Makefile.in (RMKFILES): add i386-qemu.rmk
35492 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35493 $(srcdir)/stamp-h.in
35494
35495 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35496
35497 * util/grub-probe.c (probe): Comment out buggy codepath, which
35498 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35499 should be re-enabled after 1.97.
35500
35501 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35502
35503 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35504 find searches for.
35505
35506 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35507
35508 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35509 unnecessary calls to grub_error.
35510
35511 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35512
35513 * NEWS: Mention `keystatus' and Unicode fonts.
35514
35515 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35516
35517 * configure.ac: Bump version to 1.97~beta2.
35518 * docs/version.texi: Likewise.
35519
35520 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35521
35522 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35523 containing unwind information in some cases where it previously did
35524 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35525 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35526 discussion.
35527
35528 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35529
35530 Embedding loadenv module into grub-emu
35531
35532 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35533 commands/loadenv.c
35534 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35535 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35538 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35539 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35540
35541 2009-09-03 Magnus Granberg <zorry@ume.nu>
35542
35543 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35544 include -fPIE in the default specs.
35545 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35546 to TARGET_CFLAGS.
35547
35548 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35549
35550 * INSTALL: Note that GNU Bison 2.3 or later is required.
35551
35552 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35553
35554 * kern/i386/pc/startup.S: Fix typo.
35555
35556 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35557
35558 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35559 according to GCS.
35560
35561 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35562
35563 * docs/grub.texi (Naming convention): Describe one-based partition
35564 numbering.
35565 (Device syntax): Likewise.
35566 (File name syntax): Likewise.
35567 (Block list syntax): Likewise.
35568 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35569 menu.lst.
35570 (File name syntax): Likewise.
35571 (Command-line and menu entry commands): Document acpi, blocklist,
35572 crc, export, insmod, keystatus, ls, set, and unset commands.
35573
35574 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35575
35576 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35577 to avoid implying that only one of --shift, --ctrl, or --alt may be
35578 used.
35579
35580 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35581
35582 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35583 rather than comparing against S_IFREG, which will almost never work.
35584
35585 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35586
35587 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35588 (write_blocklists): Likewise.
35589
35590 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35591
35592 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35593 argument to grub_printf.
35594
35595 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35596
35597 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35598 non GNU test.
35599
35600 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35601
35602 * kern/file.c (grub_file_read): Spelling fix
35603
35604 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35605
35606 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35607 loading of headers in some cases.
35608
35609 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35610
35611 * configure.ac: Bump version to 1.97~beta1.
35612 * docs/version.texi: Likewise.
35613
35614 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35615
35616 * include/grub/i386/xnu.h: Add license header.
35617 include grub/err.h explicitly.
35618
35619 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35620
35621 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35622 to `ufs' in the vfs.root.mountfrom kernel parameter.
35623
35624 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35625
35626 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35627
35628 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35629 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35630
35631 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35632 `ARRAY_SIZE' macro.
35633
35634 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35635
35636 * kern/file.c (grub_file_read): Check offset.
35637 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35638 * fs/jfs.c (grub_jfs_read_file): Likewise.
35639 * fs/ntfs.c (grub_ntfs_read): Likewise.
35640 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35641 * fs/minix.c (grub_minix_read_file): Correct offset check.
35642 * fs/ufs.c (grub_ufs_read_file): Likewise.
35643
35644 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35645
35646 * term/i386/pc/console.c (bios_data_area): Cast
35647 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35648
35649 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35650
35651 1-bit optimised blitters.
35652
35653 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35654 prototype.
35655 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35656 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35657 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35658 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35659 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35660 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35661 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35662 function.
35663 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35664 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35665 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35666 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35667 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35668 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35669 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35670 when possible.
35671 * video/video.c (grub_video_get_blit_format): Return
35672 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35673
35674 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35675
35676 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35677 the first argument to grub_printf.
35678
35679 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35680 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35681
35682 Add `getkeystatus' terminal method. Add a new `keystatus' command
35683 to query it.
35684
35685 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35686 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35687 modifier key bitmasks.
35688 (struct grub_term_input): Add `getkeystatus' member.
35689 (grub_getkeystatus): Add prototype.
35690 * kern/term.c (grub_getkeystatus): New function.
35691
35692 * include/grub/i386/pc/memory.h
35693 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35694 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35695 Data Area layout.
35696 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35697 (grub_console_term_input): Set `getkeystatus' member.
35698 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35699 constants.
35700 (grub_usb_keyboard_getreport): Likewise.
35701 (grub_usb_keyboard_checkkey): Likewise.
35702 (grub_usb_keyboard_getkeystatus): New function.
35703 (grub_usb_keyboard_term): Set `getkeystatus' member.
35704
35705 * commands/keystatus.c: New file.
35706 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35707 (keystatus_mod_SOURCES): New variable.
35708 (keystatus_mod_CFLAGS): Likewise.
35709 (keystatus_mod_LDFLAGS): Likewise.
35710 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35711 commands/keystatus.c.
35712 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35714 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35716 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35717 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35718
35719 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35720
35721 Split befs.mod and afs.mod into *_be.mod and *.mod
35722
35723 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35724 (grub_fstest_SOURCES): Likewise.
35725 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35726 (afs_be_mod_SOURCES): New variable.
35727 (afs_be_mod_CFLAGS): Likewise.
35728 (afs_be_mod_LDFLAGS): Likewise.
35729 (befs_be_mod_SOURCES): Likewise.
35730 (befs_be_mod_CFLAGS): Likewise.
35731 (befs_be_mod_LDFLAGS): Likewise.
35732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35733 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35734 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35735 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35736 (grub_emu_SOURCES): Likewise.
35737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35738 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35739 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35740 * fs/afs_be.c: New file.
35741 * fs/befs_be.c: New file.
35742 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35743 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35744 (U16): Replaced with ...
35745 (grub_afs_to_cpu16): ...this. All users updated.
35746 (U32): Replaced with ...
35747 (grub_afs_to_cpu32): ...this. All users updated.
35748 (U64): Replaced with ...
35749 (grub_afs_to_cpu64): ...this. All users updated.
35750 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35751 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35752 (grub_afs_validate_sblock): Check only one endianness.
35753 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35754 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35755 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35756 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35757 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35758 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35759 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35760 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35761
35762 2009-08-26 Bean <bean123ch@gmail.com>
35763
35764 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35765 64-bit number.
35766 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35767 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35768 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35769
35770 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35771
35772 NetBSD memory map support.
35773
35774 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35775 (grub_netbsd_btinfo_mmap_header): New structure.
35776 (grub_netbsd_btinfo_mmap_entry): Likewise.
35777 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35778
35779 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35780
35781 Enable bsd.mod on coreboot.
35782
35783 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35784 (bsd_mod_SOURCES): New variable.
35785 (bsd_mod_CFLAGS): Likewise.
35786 (bsd_mod_LDFLAGS): Likewise.
35787 (bsd_mod_ASFLAGS): Likewise.
35788 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35789 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35790
35791 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35792
35793 Cleanup NetBSD root support.
35794
35795 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35796 grub_bsd_get_device.
35797 Fix typo.
35798
35799 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35800
35801 * util/grub.d/00_header.in: Move check for the video backend of
35802 gfxterm from here ...
35803 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35804 a suitable video backend.
35805
35806 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35807
35808 Fix breakage in grub-setup.
35809
35810 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35811 "msdos_partition_map".
35812
35813 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35814
35815 Fix breakage in normal/auth.c.
35816
35817 * normal/auth.c (grub_iswordseparator): New function.
35818
35819 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35820
35821 Authentication support.
35822
35823 * commands/password.c: New file.
35824 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35825 (password_mod_SOURCES): New variable.
35826 (password_mod_CFLAGS): Likewise.
35827 (password_mod_LDFLAGS): Likewise.
35828 (normal_mod_SOURCES): Add normal/auth.c.
35829 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35830 normal/auth.c.
35831 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35832 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35833 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35835 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35836 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35837 * include/grub/auth.h: New file.
35838 * include/grub/err.h (grub_err_t): New enum value
35839 GRUB_ERR_ACCESS_DENIED.
35840 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35841 'users'.
35842 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35843 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35844 users updated.
35845 * normal/auth.c: New file.
35846 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35847 (grub_cmdline_run): Don't allow to go to command line without
35848 authentication.
35849 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35850 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35851 menuentry without superuser rights.
35852 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35853 user isn't a superuser.
35854
35855 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35856
35857 Save space by inlining misc.c functions.
35858
35859 * kern/misc.c (grub_iswordseparator): Made static.
35860 * kern/misc.c (grub_strcat): Moved from here ...
35861 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35862 * kern/misc.c (grub_strncat): Moved from here ...
35863 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35864 * kern/misc.c (grub_strcasecmp): Moved from here ...
35865 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35866 * kern/misc.c (grub_strncasecmp): Moved from here ...
35867 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35868 * kern/misc.c (grub_isalpha): Moved from here ...
35869 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35870 * kern/misc.c (grub_isdigit): Moved from here ...
35871 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35872 * kern/misc.c (grub_isgraph): Moved from here ...
35873 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35874 * kern/misc.c (grub_tolower): Moved from here ...
35875 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35876
35877 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35878
35879 * script/sh/function.c (grub_script_function_find): Cut error message
35880 not to flood terminal.
35881 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35882 limit.
35883 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35884
35885 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35886
35887 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35888 `report' grub_uint8_t *.
35889 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35890 Use a 50-millisecond timeout rather than just repeating
35891 grub_usb_keyboard_getreport 50 times.
35892 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35893
35894 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35895
35896 Rename *_partition_map to part_*
35897
35898 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35899 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35900 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35901 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35902 All users updated.
35903 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35904 All users updated.
35905 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35906 * util/grub-probe.c (probe_partmap): Don't transform partition name
35907 to get module name.
35908
35909 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35910
35911 Fix OpenBSD and NetBSD support.
35912
35913 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35914 memory address conflict.
35915 (OPENBSD_MMAP_ACPI): New definition.
35916 (OPENBSD_MMAP_NVS): Likewise.
35917 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35918 and OPENBSD_MMAP_NVS.
35919 Add memory map terminator
35920 Explicit cast when calling grub_unix_real_boot.
35921 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35922
35923 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35924
35925 Let user specify NetBSD root device.
35926
35927 * loader/i386/bsd.c (netbsd_root): New variable.
35928 (netbsd_opts): New option 'root'.
35929 (NETBSD_ROOT_ARG): New macro.
35930 (grub_netbsd_boot): Use 'netbsd_root'.
35931 (grub_bsd_unload): Free 'netbsd_root'.
35932 (grub_cmd_netbsd): Fill 'netbsd_root'.
35933
35934 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35935
35936 Support for 64-bit NetBSD.
35937
35938 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35939 point when booting non-FreeBSD.
35940
35941 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35942
35943 Support --no-smp and --no-acpi for NetBSD.
35944
35945 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35946 (NETBSD_AB_NOACPI): Likewise.
35947 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35948 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35949
35950 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35951
35952 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35953 errors.
35954 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35955 errors. Call grub_error when needed.
35956
35957 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35958
35959 * commands/search.c (search_fs): Try searching without autoload first.
35960 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35961 filesystem module explicitly for faster booting.
35962
35963 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35964
35965 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35966
35967 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35968
35969 * util/grub.d/30_os-prober.in: Disable os-prober if
35970 `GRUB_DISABLE_OS_PROBER' was set to true.
35971
35972 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35973
35974 * partmap/pc.c: Rename to ...
35975 * partmap/msdos.c: ... this. Update all users.
35976 (grub_pc_partition_map): Rename to ...
35977 (grub_msdos_partition_map): ... this. Update all users.
35978
35979 * parttool/pcpart.c: Rename to ...
35980 * parttool/msdospart.c: ... this. Update all users.
35981
35982 * include/grub/pc_partition.h: Rename to ...
35983 * include/grub/msdos_partition.h: ... this. Update all users.
35984 (grub_pc_partition_bsd_entry): Rename to ...
35985 (grub_msdos_partition_bsd_entry): ... this. Update all users.
35986 (grub_pc_partition_disk_label): Rename to ...
35987 (grub_msdos_partition_disk_label): ... this. Update all users.
35988 (grub_pc_partition_entry): Rename to ...
35989 (grub_msdos_partition_entry): ... this. Update all users.
35990 (grub_pc_partition_mbr): Rename to ...
35991 (grub_msdos_partition_mbr): ... this. Update all users.
35992 (grub_pc_partition): Rename to ...
35993 (grub_msdos_partition): ... this. Update all users.
35994 (grub_pc_partition_is_empty): Rename to ...
35995 (grub_msdos_partition_is_empty): ... this. Update all users.
35996 (grub_pc_partition_is_extended): Rename to ...
35997 (grub_msdos_partition_is_extended): ... this. Update all users.
35998 (grub_pc_partition_is_bsd): Rename to ...
35999 (grub_msdos_partition_is_bsd): ... this. Update all users.
36000
36001 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36002 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36003 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36004 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36005 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36006 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36007 (gpt_mod_LDFLAGS): Rename to ...
36008 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36009 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36010 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36011 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36012 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36013 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36014 (part_gpt_mod_LDFLAGS): ... this.
36015 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36016 `pcpart.mod' to `msdospart.mod'.
36017 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36018 to ...
36019 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36020 (msdospart_mod_LDFLAGS): ... this.
36021
36022 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36023
36024 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36025 (openbsd_opts): Likewise.
36026 (netbsd_opts): Likewise.
36027 (freebsd_flags): Added 0 terminator.
36028 (openbsd_flags): Likewise.
36029 (netbsd_flags): Likewise.
36030 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36031 (grub_cmd_freebsd): Transformed into extended command.
36032 (grub_cmd_openbsd): Likewise.
36033 (grub_cmd_netbsd): Likewise.
36034 (cmd_freebsd): Changed type to grub_extcmd_t.
36035 (cmd_openbsd): Likewise.
36036 (cmd_netbsd): Likewise.
36037 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36038 grub_cmd_openbsd as extended commands.
36039 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36040 cmd_netbsd and cmd_openbsd
36041
36042 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36043
36044 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36045
36046 2009-08-21 Pavel Roskin <proski@gnu.org>
36047
36048 * Makefile.in (install-local): When checking if a file is in the
36049 build directory, use "test -e" to detect symlinks.
36050
36051 * Makefile.in (install-local): Remove all files in
36052 $(DESTDIR)$(pkglibdir) before installing new files there.
36053
36054 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36055
36056 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36057 grub-mkelfimage.
36058
36059 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36060
36061 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36062 explicitly specified by the user.
36063
36064 2009-08-18 Pavel Roskin <proski@gnu.org>
36065
36066 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36067 grub_uint8_t pointer for data.
36068 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36069 Likewise.
36070 * video/fb/fbutil.c: Remove unnecessary casts.
36071
36072 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36073
36074 VBE cleanup.
36075
36076 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36077 (grub_vbe_set_video_mode): Save active mode info
36078 only after setting the mode.
36079 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36080 second argument.
36081
36082 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36083
36084 Rename variables for clarity.
36085
36086 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36087 (active_vbe_mode_info): ... this. All users updated.
36088 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36089 All users updated.
36090 (initial_mode): Rename to ...
36091 (initial_vbe_mode): ... this. All users updated.
36092 (mode_in_use): Rename to ..
36093 (vbe_mode_in_use): ... this. All users updated.
36094 (mode_list): Rename to ..
36095 (vbe_mode_list): ... this. All users updated.
36096 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36097 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36098 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36099 'mode_list_size' to 'vbe_mode_list_size'.
36100 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36101 'best_mode_info' to 'best_vbe_mode_info' and
36102 'best_mode' to 'best_vbe_mode'
36103
36104 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36105
36106 Remove duplicate grub_video_fb_get_video_ptr.
36107
36108 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36109 (grub_video_fb_get_video_ptr): ... this.
36110 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36111 * video/fb/fbutil.c: Add comment about addressing.
36112 (get_data_ptr): Rename to ...
36113 (grub_video_fb_get_video_ptr): ... this. All users updated.
36114 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36115
36116 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36117
36118 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36119 grub_dprintf() that was just added.
36120
36121 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36122
36123 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36124 (DEFAULT_VIDEO_MODE): Remove macros.
36125 (grub_linux_boot): Remove assumption that Linux has FB support,
36126 and use "text" as default video mode.
36127
36128 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36129
36130 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36131 grub_dprintf.
36132 * fs/fat.c (grub_fat_read_data): Likewise.
36133
36134 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36135
36136 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36137 payload.
36138 (grub_module): Likewise.
36139
36140 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36141
36142 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36143 mbi->cmdline but free playground.
36144
36145 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36146
36147 Handle group offset on UFS1.
36148
36149 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36150 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36151
36152 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36153
36154 Split ufs.mod into ufs1.mod and ufs2.mod.
36155
36156 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36157 (grub_fstest_SOURCES): Likewise.
36158 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36159 (ufs_mod_SOURCES): Remove.
36160 (ufs_mod_CFLAGS): Likewise.
36161 (ufs_mod_LDFLAGS): Likewise.
36162 (ufs1_mod_SOURCES): New variable.
36163 (ufs1_mod_CFLAGS): Likewise.
36164 (ufs1_mod_LDFLAGS): Likewise.
36165 (ufs2_mod_SOURCES): New variable.
36166 (ufs2_mod_CFLAGS): Likewise.
36167 (ufs2_mod_LDFLAGS): Likewise.
36168 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36169 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36170 Likewise.
36171 (grub_emu_SOURCES): Likewise.
36172 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36173 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36174 (grub_setup_SOURCES): Likewise.
36175 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36176 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36177 (grub_setup_SOURCES): Likewise.
36178 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36179 Likewise.
36180 * fs/ufs2.c: New file.
36181 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36182
36183 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36184
36185 Framebuffer split.
36186
36187 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36188 subsystem at the end.
36189 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36190 (video_fb_mod_SOURCES): New variable.
36191 (video_fb_mod_CFLAGS): Likewise.
36192 (video_fb_mod_LDFLAGS): Likewise.
36193 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36194 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36195 * video/i386/pc/vbeblit.c: Moved from here ...
36196 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36197 * video/i386/pc/vbefill.c: Moved from here ...
36198 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36199 * video/i386/pc/vbeutil.c: Moved from here ...
36200 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36201 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36202 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36203 * include/grub/i386/pc/vbefill.h: Moved from here ...
36204 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36205 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36206 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36207 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36208 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36209 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36210 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36211 (grub_video_adapter): Added 'get_info_and_fini'.
36212 (grub_video_get_info_and_fini): New prototype.
36213 (grub_video_set_mode): make modestring const char *.
36214 * loader/i386/linux.c (grub_linux_setup_video): Use
36215 grub_video_get_info_and_fini.
36216 (grub_linux_boot): Move modesetting just before booting.
36217 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36218 grub_video_get_info_and_fini.
36219 * video/i386/pc/vbe.c: Moved framebuffer part ...
36220 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36221 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36222 grub_video_fbstd_colors and grub_video_fb_set_palette.
36223 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36224 grub_video_fb_init.
36225 (grub_video_vbe_fini): Use grub_video_fb_fini.
36226 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36227 render_target and use grub_video_fb_set_active_render_target and
36228 grub_video_fb_set_palette.
36229 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36230 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36231 (grub_video_vbe_adapter): Use framebuffer.
36232 * video/video.c (grub_video_get_info_and_fini): New function.
36233 (grub_video_set_mode): Make modestring const char *.
36234 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36235 values are already initialised.
36236
36237 2009-08-14 Pavel Roskin <proski@gnu.org>
36238
36239 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36240 ABS and APPLE_CC.
36241 * boot/i386/pc/diskboot.S: Likewise.
36242 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36243 sectors allow compilation on MacOSX.
36244 * conf/i386-pc.rmk: Enable unconditional compilation of
36245 lnxboot.img.
36246
36247 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36248
36249 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36250 * util/grub.d/00_header.in: Enter interruptible sleep if
36251 GRUB_HIDDEN_TIMEOUT is set.
36252
36253 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36254
36255 * include/grub/symbol.h: Add the LOCAL macro.
36256 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36257 starting with "L_".
36258
36259 2009-08-13 Pavel Roskin <proski@gnu.org>
36260
36261 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36262 any modern compilers we support.
36263
36264 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36265 Use local labels starting with "L_" so that Apple assembler
36266 knows they are local.
36267
36268 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36269
36270 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36271 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36272 (bsd_kernel_types): ... this enum.
36273
36274 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36275 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36276 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36277
36278 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36279 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36280 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36281 messages.
36282
36283 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36284
36285 * util/grub-dumpdevtree: Moved from here ...
36286 * util/i386/efi/grub-dumpdevtree: ... to here.
36287 (hexify): New function. Converts a string to its hex version.
36288 Generate hex versions of "efi" and "device-properties" by calling
36289 hexify() on the ASCII strings rather than by hardcoding numbers.
36290
36291 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36292
36293 * fs/jfs.c: Update copyright year.
36294
36295 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36296
36297 * util/grub.d/00_header.in: Fix a comment.
36298 * util/grub.d/10_linux.in: Likewise.
36299 * util/grub.d/10_windows.in: Likewise.
36300 * util/grub.d/10_hurd.in: Likewise.
36301
36302 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36303
36304 * util/grub-mkconfig.in: Allow the user to specify the used font
36305 with GRUB_FONT.
36306
36307 2009-08-08 Pavel Roskin <proski@gnu.org>
36308
36309 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36310 available, xfs.mod needs it now.
36311
36312 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36313 the "g" modifier in sed when the intention is to strip something
36314 once. This fixes comparison of kernels with multiple dashes.
36315
36316 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36317 on it. Add missing space before closing bracket. Fix
36318 misleading formatting.
36319
36320 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36321
36322 * docs/grub.texi: Major overhaul. Remove all sections that are
36323 specific to GRUB Legacy, or mostly composed of Legacy-specific
36324 information.
36325
36326 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36327
36328 * docs/version.texi: New file. Provides version information for
36329 grub.texi.
36330
36331 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36332
36333 * docs/grub.texi: Update CVS information to SVN.
36334 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36335
36336 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36337
36338 * util/grub-mkconfig.in: Remove a wrong `fi'.
36339
36340 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36341
36342 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36343 (grub_jfs_uuid): New function.
36344 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36345
36346 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36347
36348 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36349 of it to ...
36350 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36351 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36352
36353 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36354
36355 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36356 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36357 Update all users.
36358
36359 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36360 not just "vmlinu[zx]".
36361 Moved from here ...
36362 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36363 all users.
36364
36365 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36366 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36367 all users.
36368
36369 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36370
36371 * util/grub.d/10_freebsd.in: Use an absolute device path for
36372 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36373
36374 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36375
36376 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36377 handling of multiple abstraction modules.
36378
36379 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36380
36381 Fix a bug resulting in black screen when loading Linux using a
36382 packed video mode.
36383
36384 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36385 function.
36386
36387 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36388 (grub_vbe_bios_getset_dac_palette_width): New function.
36389 (grub_vbe_bios_get_dac_palette_width)
36390 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36391 grub_vbe_bios_getset_dac_palette_width()).
36392
36393 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36394 check for return status.
36395 (grub_vbe_get_video_mode_info): When getting information for a packed
36396 mode (<= 8 bpp), obtain DAC palette width using
36397 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36398 {red,green,blue}_mark_size.
36399
36400 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36401
36402 * commands/search.c (options): Fix help output to match actual code.
36403
36404 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36405
36406 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36407 of homegrown code.
36408
36409 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36410
36411 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36412 on XFS or ReiserFS.
36413
36414 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36415
36416 Support Apple partition map with sector size different from 512 bytes.
36417
36418 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36419 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36420 and 'apart.partmap_size'.
36421
36422 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36423 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36424
36425 Fix cpuid command.
36426
36427 * commands/i386/cpuid.c (options): New variable.
36428 (grub_cmd_cpuid): Return real error.
36429 (GRUB_MOD_INIT(cpuid)): Declare options.
36430
36431 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36432
36433 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36434 valid.
36435
36436 2009-07-31 Bean <bean123ch@gmail.com>
36437
36438 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36439 log2_inode.
36440 (grub_fshelp_node): Move inode field to the end.
36441 (grub_xfs_data): Remove inode field.
36442 (grub_xfs_inode_block): Calculate inode size using sblock.
36443 (grub_xfs_inode_offset): Likewise.
36444 (grub_xfs_read_inode): Calculate inode size using sblock.
36445 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36446 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36447 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36448 to match inode size.
36449 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36450 not accessible when data is null.
36451 (grub_xfs_open): Likewise.
36452
36453 2009-07-31 Bean <bean123ch@gmail.com>
36454
36455 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36456 Don't change pv->disk if it's already set.
36457
36458 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36459 (grub_raid_register): ... here.
36460 (grub_raid_rescan): Removed.
36461
36462 * include/grub/raid.h (grub_raid_rescan): Removed.
36463
36464 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36465 (fstest): Replace grub_raid_rescan with module fini function followed
36466 by init function.
36467
36468 * util/grub-probe.c: Add include file <grub/raid.h>.
36469 (probe_raid_level): New function.
36470 (probe): Detect abstraction by walking the disk device, support two
36471 level of abstraction (LVM on RAID) when detecting partition map.
36472
36473 2009-07-31 Pavel Roskin <proski@gnu.org>
36474
36475 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36476 to grub_zalloc(), it was erroneous.
36477 Reported by Bean <bean123ch@gmail.com>
36478
36479 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36480
36481 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36482 embedding zone, not only the first one.
36483
36484 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36485
36486 * term/gfxterm.c (clear_char): New function.
36487 (grub_virtual_screen_setup): Use clear_char.
36488 (scroll_up): Likewise.
36489 (grub_virtual_screen_cls): Likewise.
36490
36491 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36492
36493 * util/deviceiter.c (get_acceleraid_disk_name): New static
36494 function.
36495 (grub_util_iterate_devices): Handle Accelraid devices.
36496 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36497
36498 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36499
36500 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36501 separator for the suggested gfxpayload string (';' collides with the
36502 parser and needs escaping).
36503
36504 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36505
36506 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36507 Clear direction flag before jumping to OS.
36508 (grub_multiboot2_real_boot): Likewise.
36509
36510 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36511
36512 * util/i386/pc/grub-install: Fix parsing of --disk-module
36513 option.
36514
36515 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36516
36517 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36518 when embedding.
36519
36520 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36521
36522 * util/grub-mkconfig.in (package_version): New variable.
36523 Use it do display the version.
36524
36525 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36526
36527 * kern/file.c (grub_file_open): Revert to previous check with
36528 grub_errno.
36529
36530 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36531
36532 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36533 from help line. It's out of sync with code.
36534
36535 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36536
36537 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36538 entries on failed boot.
36539
36540 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36541
36542 * kern/file.c (grub_file_open): Fix an error check.
36543
36544 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36545
36546 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36547 partition map couldn't be identified.
36548
36549 2009-07-23 Pavel Roskin <proski@gnu.org>
36550
36551 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36552 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36553 case of little endian words becomes just an optimization.
36554 Respect const modifier.
36555 (md5_final): Use code that doesn't depend on endianness.
36556
36557 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36558 to avoid loss of upper bits if align is unsigned and shorter
36559 than addr.
36560
36561 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36562
36563 UUID support for UFS
36564
36565 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36566 (grub_ufs_uuid): New function.
36567 (grub_ufs_fs): add .uuid
36568
36569 2009-07-21 Pavel Roskin <proski@gnu.org>
36570
36571 * kern/dl.c (grub_dl_check_header): Make static.
36572
36573 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36574
36575 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36576 add drivemap for Vista. It breaks Windows 7.
36577
36578 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36579
36580 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36581 128 bytes
36582
36583 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36584
36585 Add BFS support
36586
36587 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36588 (grub_fstest_SOURCES): Likewise.
36589 (pkglib_MODULES): Add befs.mod.
36590 (befs_mod_SOURCES): New variable.
36591 (befs_mod_CFLAGS): Likewise.
36592 (befs_mod_LDFLAGS): Likewise.
36593 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36594 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36595 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36596 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36597 (grub_setup_SOURCES): Likewise.
36598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36599 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36600 (grub_setup_SOURCES): Likewise.
36601 * fs/befs.c: New file.
36602 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36603 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36604 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36605 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36606 (B_KEY_INDEX_ALIGN): New declaration.
36607 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36608 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36609 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36610 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36611 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36612 (grub_afs_mount) [MODE_BFS]: Likewise.
36613 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36614 (grub_afs_fs): Use GRUB_AFS_FSNAME
36615 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36616 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36617 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36618 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36619
36620 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36621
36622 * util/getroot.c (find_root_device): Add support for MacOSX.
36623 * util/hostdisk.c: Likewise.
36624
36625 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36626
36627 * font/font.c (find_glyph): Check whether a font is present to avoid
36628 segmentation fault.
36629
36630 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36631
36632 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36633
36634 2009-07-20 Pavel Roskin <proski@gnu.org>
36635
36636 * configure.ac: Trim excessively wordy excuses.
36637
36638 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36639
36640 Add symlink, mtime and label support to AtheFS.
36641
36642 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36643 (grub_afs_iterate_dir): Handle symlinks.
36644 (grub_afs_open): Use grub_afs_read_symlink.
36645 (grub_afs_dir): Likewise.
36646 Pass mtime.
36647 (grub_afs_label): New function.
36648 (grub_afs_fs): Add grub_afs_label.
36649 (grub_afs_read_symlink): New function.
36650
36651 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36652
36653 Fix AtheFS support.
36654
36655 * fs/afs.c: Fix comments style.
36656 (grub_afs_blockrun): Declare as packed.
36657 (grub_afs_datastream): Likewise.
36658 (grub_afs_bnode): Likewise.
36659 (grub_afs_btree): Likewise.
36660 (grub_afs_sblock): Likewise.
36661 Declare `name' as char.
36662 (grub_afs_inode): Declare as packed.
36663 Change void *vnode to grub_uint32_t unused.
36664 (grub_afs_iterate_dir): Check that key_size is positive.
36665 (grub_afs_mount): Don't read superblock twice.
36666 (grub_afs_dir): Don't free node in case of error,
36667 grub_fshelp_find_file already handles this.
36668 (grub_afs_open): Likewise.
36669
36670 2009-07-19 Pavel Roskin <proski@gnu.org>
36671
36672 * Makefile.in: Remove LIBLZO and enable_lzo.
36673 * conf/i386-pc.rmk: Remove lzo support.
36674 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36675 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36676 support.
36677 * kern/i386/pc/lzo1x.S: Remove.
36678 * kern/i386/pc/startup.S: Remove lzo support.
36679 * util/i386/pc/grub-mkimage.c: Likewise.
36680
36681 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36682
36683 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36684 * fs/xfs.c (grub_xfs_dir): Likewise.
36685 * fs/afs.c (grub_afs_dir): Likewise.
36686 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36687 (grub_iso9660_open): Likewise.
36688 * fs/jfs.c (grub_jfs_open): Likewise.
36689 * fs/ext2.c (grub_ext2_dir): Likewise.
36690 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36691 * script/sh/lexer.c (grub_script_yylex): Likewise.
36692
36693 2009-07-16 Pavel Roskin <proski@gnu.org>
36694
36695 * configure.ac: Never add "-c" to CFLAGS.
36696
36697 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36698
36699 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36700 grub_cv_cc_efiemu should be used.
36701
36702 * configure.ac: Typo fixes.
36703
36704 * kern/mm.c (grub_zalloc): New function.
36705 (grub_debug_zalloc): Likewise.
36706 * include/grub/mm.h: Declare grub_zalloc() and
36707 grub_debug_zalloc().
36708 * util/misc.c (grub_zalloc): New function.
36709 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36710 instead of grub_malloc(), remove unneeded initializations.
36711 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36712 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36713 * commands/parttool.c (grub_cmd_parttool): Likewise.
36714 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36715 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36716 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36717 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36718 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36719 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36720 (grub_cmd_efiemu_pnvram): Likewise.
36721 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36722 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36723 (grub_iso9660_iterate_dir): Likewise.
36724 * fs/jfs.c (grub_jfs_opendir): Likewise.
36725 * fs/ntfs.c (list_file): Likewise.
36726 (grub_ntfs_mount): Likewise.
36727 * kern/disk.c (grub_disk_open): Likewise.
36728 * kern/dl.c (grub_dl_load_core): Likewise.
36729 * kern/elf.c (grub_elf_file): Likewise.
36730 * kern/env.c (grub_env_context_open): Likewise.
36731 (grub_env_set): Likewise.
36732 (grub_env_set_data_slot): Likewise.
36733 * kern/file.c (grub_file_open): Likewise.
36734 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36735 * loader/i386/multiboot.c (grub_module): Likewise.
36736 * loader/xnu.c (grub_xnu_create_key): Likewise.
36737 (grub_xnu_create_value): Likewise.
36738 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36739 (read_config_file): Likewise.
36740 * normal/menu_entry.c (make_screen): Likewise.
36741 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36742 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36743 * script/sh/script.c (grub_script_parse): Likewise.
36744 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36745 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36746 * video/readers/png.c (grub_png_output_byte): Likewise.
36747 (grub_video_reader_png): Likewise.
36748
36749 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36750
36751 Enable all targets that can be built by default
36752
36753 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36754 grub-mkfont and grub-fstest if they can be built
36755
36756 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36757
36758 Fix hang and segmentation fault in grub-emu-usb
36759
36760 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36761 * util/usb.c (grub_libusb_devices): likewise
36762 (grub_libusb_init): rename to ...
36763 (GRUB_MOD_INIT (libusb)):...this
36764 (grub_libusb_fini): rename to ..
36765 (GRUB_MOD_FINI (libusb)):...this
36766 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36767 * include/grub/disk.h (grub_raid_init): removed, it's useless
36768 (grub_raid_fini): likewise
36769 (grub_lvm_init): likewise
36770 (grub_lvm_fini): likewise
36771 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36772 by grub_init_all
36773
36774 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36775
36776 Fix libusb
36777
36778 * Makefile.in (LIBUSB): new macro
36779 * genmk.rb (Utility/print_tail): new method
36780 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36781 (top level): call util.print_tail at the end.
36782
36783 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36784
36785 Make FreeBSD accept zpool.cache
36786
36787 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36788 type is /boot/zfs/zpool.cache
36789
36790 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36791
36792 Fix 64-bit efiemu
36793
36794 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36795 correct wrong typedef
36796 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36797
36798 2009-07-15 Pavel Roskin <proski@gnu.org>
36799
36800 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36801 * kern/disk.c (struct grub_disk_cache): Likewise.
36802
36803 * commands/probe.c (options): Typo fix.
36804
36805 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36806 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36807 accordingly.
36808 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36809
36810 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36811 the end of "Error" to make the message more readable.
36812
36813 * boot/i386/pc/boot.S (kernel_segment): Remove.
36814 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36815 for destination.
36816
36817 * boot/i386/pc/boot.S (boot_version): Remove.
36818 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36819 Remove.
36820
36821 * include/grub/i386/pc/boot.h: Sort all offsets.
36822 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36823 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36824 * boot/i386/pc/boot.S: Assert location of every offset listed in
36825 include/grub/i386/pc/boot.h.
36826
36827 2009-07-13 Pavel Roskin <proski@gnu.org>
36828
36829 * include/grub/i386/coreboot/machine.h: Rename
36830 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36831 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36832 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36833
36834 * kern/dl.c: Force native word size to suppress warnings when
36835 compiling grub-emu.
36836
36837 * kern/device.c (grub_device_iterate): Change struct part_ent to
36838 hold the name, not a pointer to it. Use one grub_malloc() per
36839 partition, not two. Free partition_name if grub_malloc() fails.
36840 Set ents to NULL only before grub_partition_iterate() is called.
36841
36842 2009-07-11 Bean <bean123ch@gmail.com>
36843
36844 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36845 childname.
36846
36847 2009-07-10 Bean <bean123ch@gmail.com>
36848 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36849
36850 * kern/ieee1275/openfw.c (grub_children_iterate)
36851 (grub_devalias_iterate): Fix size evaluation for property or path
36852 strings, which was broken since r2132.
36853
36854 2009-07-07 Pavel Roskin <proski@gnu.org>
36855
36856 * commands/search.c (search_file): Merge into ...
36857 (search_fs): ... this. Accept search type as argument.
36858 (grub_cmd_search): Pass search type to search_fs().
36859
36860 * include/grub/util/console.h: New file.
36861 * util/console.c: Use it instead of grub/machine/console.h.
36862 * util/grub-emu.c: Likewise.
36863
36864 * lib/arg.c (find_long_option): Remove.
36865 (find_long): Add `len' argument, make `s' const char *.
36866 (grub_arg_parse): Parse long options in place, not in a
36867 temporary buffer.
36868
36869 2009-07-06 Pavel Roskin <proski@gnu.org>
36870
36871 * commands/search.c (search_fs): Fix potential NULL pointer
36872 dereference.
36873
36874 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36875 function pointer.
36876
36877 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36878
36879 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36880 comparison.
36881
36882 2009-07-05 Pavel Roskin <proski@gnu.org>
36883
36884 * include/grub/i386/linux.h (struct linux_kernel_params):
36885 Restore padding3, it's still needed.
36886
36887 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36888 FreeBSD.
36889 * util/osdetect.lua: Likewise.
36890
36891 2009-07-05 Bean <bean123ch@gmail.com>
36892
36893 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36894
36895 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36896 (grub_lua_getenv): Likewise.
36897 (grub_lua_setenv): Likewise.
36898 (save_errno): New function.
36899 (push_result): Likewise.
36900 (grub_lua_enum_device): Likewise.
36901 (grub_lua_enum_file): Likewise.
36902 (grub_lua_file_open): Likewise.
36903 (grub_lua_file_close): Likewise.
36904 (grub_lua_file_seek): Likewise.
36905 (grub_lua_file_read): Likewise.
36906 (grub_lua_file_getline): Likewise.
36907 (grub_lua_file_getsize): Likewise.
36908 (grub_lua_file_getpos): Likewise.
36909 (grub_lua_file_eof): Likewise.
36910 (grub_lua_file_exist): Likewise.
36911 (grub_lua_add_menu): Likewise.
36912
36913 * script/lua/grub_lua.h (isupper): New inline function.
36914 (islower): Likewise.
36915 (ispunct): Likewise.
36916 (isxdigit): Likewise.
36917 (strcspn): Change to normal function.
36918 (strpbkr): New function declaration.
36919 (memchr): Likewise.
36920
36921 * script/lua/grub_main.c (scan_str): New function.
36922 (strcspn): Likewise.
36923 (strpbrk): Likewise.
36924 (memchr): Likewise.
36925
36926 * script/lua/linit.c (lualibs): Enable the string library.
36927
36928 * util/osdetect.lua: New file.
36929
36930 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36931
36932 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36933 `capabilities' member.
36934
36935 2009-07-02 Pavel Roskin <proski@gnu.org>
36936
36937 * genparttoollist.sh: Add missing newline at the end.
36938
36939 2009-07-01 Pavel Roskin <proski@gnu.org>
36940
36941 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36942
36943 * util/hostdisk.c (open_device): Remove `const' from
36944 `sysctl_size', as sysctlbyname() can change it (in this case it
36945 doesn't actually happen).
36946
36947 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36948 using signed long int constants.
36949
36950 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36951 constant to avoid a warning on FreeBSD.
36952
36953 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36954 where it's needed.
36955
36956 * Makefile.in: Install include/grub/machine symlink.
36957
36958 * Makefile.in: When installing symlinks, use "cp -fR", which
36959 works on FreeBSD and MacOSX.
36960 From Yves Blusseau <cl7m42e02@sneakemail.com>
36961
36962 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36963 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36964
36965 * util/misc.c: Move grub_reboot() and grub_halt() ...
36966 * util/grub-emu.c: ... here. Make main_env static.
36967 * include/grub/util/misc.h: Remove main_env.
36968
36969 * kern/mm.c: Use correct format to print size_t.
36970
36971 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36972 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36973 * kern/powerpc/dl.c: Likewise.
36974 * kern/sparc64/dl.c: Likewise.
36975 * kern/x86_64/dl.c: Likewise.
36976
36977 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36978
36979 Fix grub-emu build on sparc64-ieee1275.
36980
36981 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
36982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
36983
36984 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36985
36986 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
36987 (grub_reboot, grub_halt): New functions.
36988
36989 * util/i386/pc/misc.c: Delete. Update all users.
36990 * util/sparc64/ieee1275/misc.c: Likewise.
36991 * util/powerpc/ieee1275/misc.c: Likewise.
36992
36993 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36994
36995 * conf/i386.rmk (setjmp_mod_SOURCES)
36996 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
36997 * conf/common.rmk (setjmp_mod_SOURCES)
36998 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
36999 to use $(target_cpu).
37000 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37001 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37002 * conf/powerpc-ieee1275.rmk: Likewise.
37003 * conf/sparc64-ieee1275.rmk: Likewise.
37004
37005 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37006 $(target_cpu) for kern/$(target_cpu)/dl.c.
37007 * conf/i386-efi.rmk: Likewise.
37008 * conf/i386-ieee1275.rmk: Likewise.
37009 * conf/x86_64-efi.rmk: Likewise.
37010 * conf/i386-coreboot.rmk: Likewise.
37011 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37012 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37013 kern/$(target_cpu)/cache.S.
37014 * conf/sparc64-ieee1275.rmk: Likewise.
37015
37016 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37017
37018 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37019 type to `grub_uint8_t', and adjust `padding9' accordingly.
37020
37021 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37022
37023 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37024
37025 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37026 assembly in final jump, using register constraints.
37027
37028 (grub_linux_boot): For text mode, initialize `have_vga' using
37029 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37030
37031 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37032 right before the final jump.
37033
37034 Set `video_mode' to 0x3.
37035
37036 Document initialization of `video_page', `video_mode' and
37037 `video_ega_bx'.
37038
37039 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37040
37041 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37042 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37043 and set GRUB_LINUX_FLAG_QUIET appropriately.
37044
37045 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37046
37047 Fix build on Debian / sparc.
37048
37049 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37050
37051 2009-06-28 Pavel Roskin <proski@gnu.org>
37052
37053 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37054 fix a warning.
37055
37056 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37057
37058 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37059
37060 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37061 `err'.
37062
37063 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37064
37065 Revert r2338.
37066
37067 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37068 file can't be opened. grub_file_open() is already supposed to set
37069 grub_errno / grub_errmsg appropriately.
37070 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37071
37072 2009-06-27 Pavel Roskin <proski@gnu.org>
37073 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37074
37075 * include/grub/dl.h: Include grub/elf.h.
37076 (struct grub_dl): Add symtab field.
37077 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37078 GRUB_MODULES_MACHINE_READONLY.
37079 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37080 of the header for read-only modules.
37081 (grub_dl_unload): Free mod->symtab for read-only modules.
37082 * kern/i386/dl.c: Use mod->symtab.
37083 * kern/powerpc/dl.c: Likewise.
37084 * kern/sparc64/dl.c: Likewise.
37085 * kern/x86_64/dl.c: Likewise.
37086
37087 * conf/i386-qemu.rmk: New file.
37088 * kern/i386/qemu/startup.S: Likewise.
37089 * kern/i386/qemu/mmap.c: Likewise.
37090 * boot/i386/qemu/boot.S: Likewise.
37091 * include/grub/i386/qemu/time.h: Likewise.
37092 * include/grub/i386/qemu/serial.h: Likewise.
37093 * include/grub/i386/qemu/kernel.h: Likewise.
37094 * include/grub/i386/qemu/console.h: Likewise.
37095 * include/grub/i386/qemu/boot.h: Likewise.
37096 * include/grub/i386/qemu/init.h: Likewise.
37097 * include/grub/i386/qemu/machine.h: Likewise.
37098 * include/grub/i386/qemu/loader.h: Likewise.
37099 * include/grub/i386/qemu/memory.h: Likewise.
37100
37101 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37102 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37103 [qemu] (pkglib_IMAGES): Add `boot.img'.
37104 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37105 [qemu] (boot_img_FORMAT): New variables.
37106 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37107 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37108 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37109 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37110 [qemu] (kernel_img_FORMAT): New variables.
37111
37112 * configure.ac: Recognise `i386-qemu'.
37113
37114 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37115 (for no compression).
37116 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37117 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37118 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37119 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37120 ifdefs).
37121
37122 2009-06-27 Pavel Roskin <proski@gnu.org>
37123
37124 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37125 read.
37126 * efiemu/prepare32.c: Likewise.
37127 * efiemu/prepare64.c: Likewise.
37128
37129 2009-06-26 Pavel Roskin <proski@gnu.org>
37130
37131 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37132 * include/grub/elf.h: Define symbols without "32" or "64" based
37133 on GRUB_TARGET_WORDSIZE.
37134 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37135 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37136 ELF definitions.
37137 * efiemu/loadcore64.c: Likewise.
37138 * loader/i386/bsd32.c: Likewise.
37139 * loader/i386/bsd64.c: Likewise.
37140 * kern/dl.c: Remove own ELF definitions.
37141 * util/i386/efi/grub-mkimage.c: Likewise.
37142
37143 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37144
37145 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37146 segment 0x0 unconditionally, because the reference generated by
37147 GAS is an absolute address.
37148
37149 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37150
37151 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37152 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37153
37154 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37155
37156 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37157 indexes. Check for -f explicitly.
37158 (search_file): Improve error message.
37159 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37160
37161 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37162
37163 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37164 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37165
37166 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37167
37168 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37169 * conf/i386-ieee1275.rmk: Likewise.
37170 * conf/i386-coreboot.rmk: Likewise.
37171
37172 * kern/i386/pc/startup.S (grub_stop): Remove function.
37173 * kern/i386/ieee1275/startup.S: Likewise.
37174 * kern/i386/coreboot/startup.S: Likewise.
37175 * kern/i386/misc.S (grub_stop): New function.
37176
37177 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37178
37179 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37180 * kern/i386/realmode.S (real_to_prot): ... to here.
37181
37182 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37183
37184 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37185 with `kernel.img'.
37186 (kernel_elf_SOURCES): Rename to ...
37187 (kernel_img_SOURCES): ... this.
37188 (kernel_elf_HEADERS): Rename to ...
37189 (kernel_img_HEADERS): ... this. Update all users.
37190 (kernel_elf_ASFLAGS): Rename to ...
37191 (kernel_img_ASFLAGS): ... this.
37192 (kernel_elf_CFLAGS): Rename to ...
37193 (kernel_img_CFLAGS): ... this.
37194 (kernel_elf_LDFLAGS): Rename to ...
37195 (kernel_img_LDFLAGS): ... this.
37196 * conf/i386-coreboot.rmk: Likewise.
37197 * conf/powerpc-ieee1275.rmk: Likewise.
37198
37199 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37200 with "kernel.img".
37201
37202 2009-06-21 Pavel Roskin <proski@gnu.org>
37203
37204 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37205 to match nested functions.
37206 * loader/sparc64/ieee1275/linux.c: Likewise.
37207
37208 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37209
37210 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37211
37212 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37213 all i386 platforms.
37214
37215 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37216
37217 Fix asm file handling on ELF, and remove workarounds.
37218
37219 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37220 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37221 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37222 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37223
37224 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37225
37226 Load BSD ELF modules
37227
37228 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37229 and loader/i386/bsd64.c
37230 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37231 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37232 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37233 (grub_freebsd_load_elfmodule32): New declaration
37234 (grub_freebsd_load_elfmoduleobj64): Likewise
37235 (grub_freebsd_load_elf_meta32): Likewise
37236 (grub_freebsd_load_elf_meta64): Likewise
37237 (grub_freebsd_add_meta): Likewise
37238 (grub_freebsd_add_meta_module): Likewise
37239 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37240 (grub_freebsd_add_meta_module): Likewise and move module-specific
37241 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37242 (grub_cmd_freebsd): Add elf-kernel specific parts
37243 based on grub_freebsd_add_meta_module
37244 (grub_cmd_freebsd_module): Add type parsing moved from
37245 grub_freebsd_add_meta_module
37246 (grub_cmd_freebsd_module_elf): New function
37247 (cmd_freebsd_module_elf): New variable
37248 (GRUB_MOD_INIT): Register freebsd_module_elf
37249 * loader/i386/bsd32.c: New file
37250 * loader/i386/bsd64.c: Likewise
37251 * loader/i386/bsdXX.c: Likewise
37252 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37253 (grub_elf64_load): Likewise
37254 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37255 All users updated
37256 (grub_elf64_load_hook_t): Likewise
37257
37258 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37259
37260 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37261 variable.
37262 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37263 don't write a menu entry for recovery mode.
37264
37265 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37266
37267 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37268 after it's no longer needed.
37269
37270 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37271
37272 * include/grub/i386/loader.h (grub_linux_prot_size)
37273 (grub_linux_tmp_addr, grub_linux_real_addr)
37274 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37275 GRUB_MACHINE_PCBIOS.
37276 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37277 common grub_util_info() call to ...
37278 (generate_image): ... here.
37279 Fix use of uninitialized memory, comparison of signed with
37280 unsigned integers and memory leak.
37281 Remove bogus module address message.
37282
37283 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37284
37285 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37286 grub_raid_register
37287 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37288
37289 2009-06-19 Pavel Roskin <proski@gnu.org>
37290
37291 * configure.ac: Remove stray AC_MSG_CHECKING.
37292
37293 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37294
37295 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37296
37297 2009-06-18 Pavel Roskin <proski@gnu.org>
37298
37299 * conf/common.rmk: Add fs_file.mod.
37300 * disk/fs_file.c: New file.
37301 * include/grub/disk.h (enum grub_disk_dev_id): Add
37302 GRUB_DISK_DEVICE_FILE_ID.
37303
37304 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37305
37306 Fix build with Apple's toolchain. Part 2
37307
37308 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37309 a fake start
37310
37311 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37312
37313 Fix build with Apple's toolchain. Part 1
37314
37315 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37316 for long calls
37317 * configure.ac: remove a leftover AC_MSG_RESULT
37318 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37319 Apple's toolchain
37320
37321 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37322
37323 Fix warnings
37324
37325 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37326 (decomp_block): initialize ch
37327 use grub_memcpy instead of memcpy
37328
37329 2009-06-17 Pavel Roskin <proski@gnu.org>
37330
37331 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37332 version, use declarations needed to use vga_text as the startup
37333 console.
37334
37335 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37336 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37337 the kernel.
37338 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37339 and grub_at_keyboard_fini(), it's done on module load and
37340 unload.
37341
37342 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37343
37344 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37345 file can't be found.
37346 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37347
37348 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37349
37350 Fix newline handling
37351
37352 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37353 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37354 (grub_script_yylex): don't segfault on unterminated script
37355 newline terminates command and variable
37356
37357 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37358
37359 avoid double grub_adjust_range call. Bug reported by David Simner
37360
37361 * kern/disk.c (grub_disk_write): change to raw disk access before
37362 calling disk_read
37363
37364 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37365
37366 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37367 spaces, for the benefit of help2man.
37368 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37369
37370 2009-06-16 Pavel Roskin <proski@gnu.org>
37371
37372 * kern/i386/halt.c: Include grub/machine/init.h.
37373 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37374
37375 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37376
37377 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37378 drivemap menuentry.
37379
37380 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37381
37382 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37383 `echo' command.
37384
37385 2009-06-16 Pavel Roskin <proski@gnu.org>
37386
37387 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37388 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37389 save %dx, we only need %dl and we never change it.
37390 * boot/i386/pc/cdboot.S: Don't set the root drive.
37391 * boot/i386/pc/pxeboot.S: Likewise.
37392 * include/grub/i386/pc/boot.h: Remove
37393 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37394 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37395 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37396 * kern/i386/pc/init.c (make_install_device): Remove references
37397 to grub_root_drive.
37398 * kern/i386/pc/startup.S: Likewise.
37399 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37400
37401 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37402
37403 xnu_uuid command
37404
37405 * commands/xnu_uuid.c: new file
37406 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37407 (xnu_uuid_mod_SOURCES): new variable
37408 (xnu_uuid_mod_CFLAGS): likewise
37409 (xnu_uuid_mod_LDFLAGS): likewise
37410 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37411 * conf/i386-ieee1275.rmk: likewise
37412 * conf/i386-pc.rmk: likewise
37413 * conf/powerpc-ieee1275.rmk: likewise
37414 * conf/sparc64-ieee1275.rmk: likewise
37415 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37416
37417 2009-06-16 Pavel Roskin <proski@gnu.org>
37418
37419 * configure.ac: Avoid '==' in test command, it's not portable.
37420
37421 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37422
37423 Probe command
37424
37425 * commands/probe.c: new file
37426 * conf/common.rmk (pkglib_MODULES): add probe.mod
37427 (probe_mod_SOURCES): new variable
37428 (probe_mod_CFLAGS): likewise
37429 (probe_mod_LDFLAGS): likewise
37430 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37431 * conf/i386-ieee1275.rmk: likewise
37432 * conf/i386-pc.rmk: likewise
37433 * conf/powerpc-ieee1275.rmk: likewise
37434 * conf/sparc64-ieee1275.rmk: likewise
37435
37436 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37437
37438 Fix handling of string like \"hello\" and "a
37439 b"
37440
37441 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37442 (grub_script_yylex): fix parsing of quoting, escaping and newline
37443
37444 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37445
37446 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37447 handling
37448
37449 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37450
37451 * util/grub-mkconfig.in: Fix parsing of --output option.
37452
37453 2009-06-12 Pavel Roskin <proski@gnu.org>
37454
37455 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37456 genmk.rb don't need to be generated or installed.
37457
37458 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37459
37460 * commands/i386/pc/drivemap_int13h.S: add more comments
37461
37462 2009-06-11 Pavel Roskin <proski@gnu.org>
37463
37464 * Makefile.in (uninstall): Uninstall manuals.
37465
37466 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37467 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37468 and update-grub_lib in two places.
37469 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37470
37471 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37472 a compiler warning.
37473
37474 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37475 `entry_lo' to fix variable shadowing.
37476
37477 2009-06-11 Christian Franke <franke@computer.org>
37478
37479 * kern/misc.c (__enable_execute_stack): Add missing return type
37480 to prevent gcc warning.
37481
37482 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37483
37484 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37485
37486 2009-06-11 Pavel Roskin <proski@gnu.org>
37487
37488 * Makefile.in: Don't rely on any scripts being executable.
37489 Always use $(SHELL) to run shell scripts.
37490
37491 * configure.ac: Always define ___main if using -nostdlib. This
37492 fixes tests on Cygwin.
37493
37494 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37495
37496 UDF fix
37497
37498 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37499 is in bytes and not in blocks
37500
37501 2009-06-11 Pavel Roskin <proski@gnu.org>
37502
37503 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37504 warning.
37505
37506 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37507
37508 * util/grub.d/30_os-prober.in: Fix a comment. Source
37509 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37510 to set the root device. Place drivemap command in the generated
37511 chain entry.
37512
37513 2009-06-11 Pavel Roskin <proski@gnu.org>
37514
37515 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37516 have long been resolved.
37517
37518 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37519
37520 * util/grub.d/10_linux.in: Capitalise "Linux".
37521
37522 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37523
37524 2009-06-11 Pavel Roskin <proski@gnu.org>
37525
37526 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37527 fix a gcc warning and ensure that the function won't ever exit.
37528
37529 * kern/i386/ieee1275/init.c: Add missing prototype for
37530 grub_stop_floppy().
37531
37532 * loader/ieee1275/multiboot2.c [__i386__]: Include
37533 grub/cpu/multiboot.h.
37534
37535 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37536 casts to short - they are not portable and cause warnings. Fix
37537 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37538
37539 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37540
37541 Drivemap fixes
37542
37543 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37544 new function
37545 (grub_get_root_biosnumber_saved): new variable
37546 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37547 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37548 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37549 %dx after the call if necessary
37550 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37551 (boot_mod_SOURCES): remove
37552 (boot_mod_CFLAGS): remove
37553 (boot_mod_LDFLAGS): remove
37554 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37555 (boot_mod_SOURCES): new variable
37556 (boot_mod_CFLAGS): likewise
37557 (boot_mod_LDFLAGS): likewise
37558 * conf/i386-efi.rmk: likewise
37559 * conf/i386-ieee1275.rmk: likewise
37560 * conf/i386-pc.rmk: likewise
37561 * conf/powerpc-ieee1275.rmk: likewise
37562 * conf/sparc64-ieee1275.rmk: likewise
37563 * conf/x86_64-efi.rmk: likewise
37564 * include/grub/i386/pc/biosnum.h: new file
37565 * lib/i386/pc/biosnum.c: likewise
37566 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37567 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37568 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37569
37570 2009-06-10 Pavel Roskin <proski@gnu.org>
37571
37572 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37573 Use separate variables. Read only the file size at the end, but
37574 not the checksum that we don't use.
37575
37576 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37577 Adjust all callers.
37578
37579 * kern/ieee1275/openfw.c: Remove libc includes.
37580 * kern/ieee1275/cmain.c: Likewise.
37581 * include/grub/ieee1275/ieee1275.h: Likewise.
37582
37583 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37584 compiler warnings.
37585
37586 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37587
37588 * Makefile.in: Remove all trailing whitespace.
37589 * conf/i386-pc.rmk: Likewise.
37590 * conf/powerpc-ieee1275.rmk: Likewise.
37591 * conf/sparc64-ieee1275.rmk: Likewise.
37592 * docs/grub.texi: Likewise.
37593 * docs/texinfo.tex: Likewise.
37594 * disk/fs_uuid.c: Likewise.
37595 * disk/lvm.c: Likewise.
37596 * disk/scsi.c: Likewise.
37597 * disk/ata.c: Likewise.
37598 * disk/ieee1275/ofdisk.c: Likewise.
37599 * disk/i386/pc/biosdisk.c: Likewise.
37600 * disk/host.c: Likewise.
37601 * disk/raid.c: Likewise.
37602 * disk/efi/efidisk.c: Likewise.
37603 * disk/usbms.c: Likewise.
37604 * disk/memdisk.c: Likewise.
37605 * disk/loopback.c: Likewise.
37606 * kern/powerpc/dl.c: Likewise.
37607 * kern/device.c: Likewise.
37608 * kern/dl.c: Likewise.
37609 * kern/sparc64/dl.c: Likewise.
37610 * kern/ieee1275/ieee1275.c: Likewise.
37611 * kern/term.c: Likewise.
37612 * kern/fs.c: Likewise.
37613 * kern/i386/dl.c: Likewise.
37614 * kern/i386/pc/startup.S: Likewise.
37615 * kern/i386/pc/init.c: Likewise.
37616 * kern/i386/pc/mmap.c: Likewise.
37617 * kern/i386/pc/lzo1x.S: Likewise.
37618 * kern/i386/ieee1275/init.c: Likewise.
37619 * kern/i386/realmode.S: Likewise.
37620 * kern/i386/tsc.c: Likewise.
37621 * kern/partition.c: Likewise.
37622 * kern/corecmd.c: Likewise.
37623 * kern/file.c: Likewise.
37624 * kern/efi/efi.c: Likewise.
37625 * kern/efi/init.c: Likewise.
37626 * kern/efi/mm.c: Likewise.
37627 * kern/main.c: Likewise.
37628 * kern/err.c: Likewise.
37629 * kern/env.c: Likewise.
37630 * kern/disk.c: Likewise.
37631 * kern/generic/millisleep.c: Likewise.
37632 * kern/generic/rtc_get_time_ms.c: Likewise.
37633 * kern/misc.c: Likewise.
37634 * kern/parser.c: Likewise.
37635 * genmk.rb: Likewise.
37636 * configure.ac: Likewise.
37637 * boot/i386/pc/diskboot.S: Likewise.
37638 * boot/i386/pc/pxeboot.S: Likewise.
37639 * boot/i386/pc/boot.S: Likewise.
37640 * boot/i386/pc/lnxboot.S: Likewise.
37641 * boot/i386/pc/cdboot.S: Likewise.
37642 * parttool/pcpart.c: Likewise.
37643 * video/readers/tga.c: Likewise.
37644 * video/video.c: Likewise.
37645 * video/bitmap.c: Likewise.
37646 * lib/envblk.c: Likewise.
37647 * lib/i386/setjmp.S: Likewise.
37648 * fs/xfs.c: Likewise.
37649 * fs/afs.c: Likewise.
37650 * fs/fat.c: Likewise.
37651 * fs/ntfs.c: Likewise.
37652 * fs/udf.c: Likewise.
37653 * fs/affs.c: Likewise.
37654 * fs/iso9660.c: Likewise.
37655 * fs/hfs.c: Likewise.
37656 * fs/fshelp.c: Likewise.
37657 * fs/ext2.c: Likewise.
37658 * fs/jfs.c: Likewise.
37659 * fs/reiserfs.c: Likewise.
37660 * fs/hfsplus.c: Likewise.
37661 * fs/minix.c: Likewise.
37662 * fs/cpio.c: Likewise.
37663 * fs/sfs.c: Likewise.
37664 * fs/ufs.c: Likewise.
37665 * efiemu/prepare.c: Likewise.
37666 * efiemu/loadcore_common.c: Likewise.
37667 * efiemu/runtime/efiemu.sh: Likewise.
37668 * efiemu/runtime/efiemu.S: Likewise.
37669 * efiemu/runtime/efiemu.c: Likewise.
37670 * efiemu/pnvram.c: Likewise.
37671 * efiemu/main.c: Likewise.
37672 * efiemu/i386/pc/cfgtables.c: Likewise.
37673 * efiemu/i386/loadcore64.c: Likewise.
37674 * efiemu/i386/loadcore32.c: Likewise.
37675 * efiemu/loadcore.c: Likewise.
37676 * efiemu/symbols.c: Likewise.
37677 * efiemu/mm.c: Likewise.
37678 * include/grub/autoefi.h: Likewise.
37679 * include/grub/datetime.h: Likewise.
37680 * include/grub/term.h: Likewise.
37681 * include/grub/hfs.h: Likewise.
37682 * include/grub/lvm.h: Likewise.
37683 * include/grub/i386/tsc.h: Likewise.
37684 * include/grub/i386/linux.h: Likewise.
37685 * include/grub/i386/xnu.h: Likewise.
37686 * include/grub/i386/efiemu.h: Likewise.
37687 * include/grub/i386/pc/biosdisk.h: Likewise.
37688 * include/grub/i386/pc/memory.h: Likewise.
37689 * include/grub/i386/pc/vbe.h: Likewise.
37690 * include/grub/parttool.h: Likewise.
37691 * include/grub/video.h: Likewise.
37692 * include/grub/memory.h: Likewise.
37693 * include/grub/fs.h: Likewise.
37694 * include/grub/partition.h: Likewise.
37695 * include/grub/xnu.h: Likewise.
37696 * include/grub/efi/api.h: Likewise.
37697 * include/grub/efi/pe32.h: Likewise.
37698 * include/grub/efi/memory.h: Likewise.
37699 * include/grub/multiboot.h: Likewise.
37700 * include/grub/usbdesc.h: Likewise.
37701 * include/grub/multiboot2.h: Likewise.
37702 * include/grub/acpi.h: Likewise.
37703 * include/grub/efiemu/efiemu.h: Likewise.
37704 * include/grub/disk.h: Likewise.
37705 * include/grub/ieee1275/ieee1275.h: Likewise.
37706 * include/grub/net.h: Likewise.
37707 * include/grub/machoload.h: Likewise.
37708 * include/grub/macho.h: Likewise.
37709 * include/multiboot.h: Likewise.
37710 * genmoddep.awk: Likewise.
37711 * normal/main.c: Likewise.
37712 * normal/menu_entry.c: Likewise.
37713 * normal/menu_viewer.c: Likewise.
37714 * normal/completion.c: Likewise.
37715 * normal/cmdline.c: Likewise.
37716 * normal/misc.c: Likewise.
37717 * normal/datetime.c: Likewise.
37718 * bus/usb/usbtrans.c: Likewise.
37719 * bus/usb/ohci.c: Likewise.
37720 * bus/usb/uhci.c: Likewise.
37721 * bus/usb/usb.c: Likewise.
37722 * mmap/efi/mmap.c: Likewise.
37723 * mmap/i386/pc/mmap_helper.S: Likewise.
37724 * mmap/i386/pc/mmap.c: Likewise.
37725 * mmap/i386/mmap.c: Likewise.
37726 * mmap/i386/uppermem.c: Likewise.
37727 * mmap/mmap.c: Likewise.
37728 * commands/acpi.c: Likewise.
37729 * commands/echo.c: Likewise.
37730 * commands/blocklist.c: Likewise.
37731 * commands/loadenv.c: Likewise.
37732 * commands/usbtest.c: Likewise.
37733 * commands/boot.c: Likewise.
37734 * commands/parttool.c: Likewise.
37735 * commands/search.c: Likewise.
37736 * commands/cat.c: Likewise.
37737 * commands/i386/pc/play.c: Likewise.
37738 * commands/i386/pc/drivemap.c: Likewise.
37739 * commands/i386/pc/vbeinfo.c: Likewise.
37740 * commands/i386/pc/acpi.c: Likewise.
37741 * commands/i386/pc/vbetest.c: Likewise.
37742 * commands/ls.c: Likewise.
37743 * commands/cmp.c: Likewise.
37744 * commands/test.c: Likewise.
37745 * commands/efi/acpi.c: Likewise.
37746 * commands/gptsync.c: Likewise.
37747 * commands/help.c: Likewise.
37748 * partmap/amiga.c: Likewise.
37749 * partmap/apple.c: Likewise.
37750 * partmap/acorn.c: Likewise.
37751 * partmap/pc.c: Likewise.
37752 * partmap/sun.c: Likewise.
37753 * partmap/gpt.c: Likewise.
37754 * script/sh/lexer.c: Likewise.
37755 * script/sh/function.c: Likewise.
37756 * font/font.c: Likewise.
37757 * font/font_cmd.c: Likewise.
37758 * loader/powerpc/ieee1275/linux.c: Likewise.
37759 * loader/efi/chainloader.c: Likewise.
37760 * loader/multiboot_loader.c: Likewise.
37761 * loader/macho.c: Likewise.
37762 * loader/i386/multiboot.c: Likewise.
37763 * loader/i386/linux.c: Likewise.
37764 * loader/i386/pc/linux.c: Likewise.
37765 * loader/i386/pc/multiboot2.c: Likewise.
37766 * loader/i386/pc/chainloader.c: Likewise.
37767 * loader/i386/pc/xnu.c: Likewise.
37768 * loader/i386/bsd_trampoline.S: Likewise.
37769 * loader/i386/efi/linux.c: Likewise.
37770 * loader/i386/multiboot_elfxx.c: Likewise.
37771 * loader/i386/bsd_helper.S: Likewise.
37772 * loader/i386/bsd.c: Likewise.
37773 * loader/i386/linux_trampoline.S: Likewise.
37774 * loader/i386/xnu_helper.S: Likewise.
37775 * loader/i386/xnu.c: Likewise.
37776 * loader/i386/bsd_pagetable.c: Likewise.
37777 * loader/i386/multiboot_helper.S: Likewise.
37778 * loader/xnu.c: Likewise.
37779 * loader/xnu_resume.c: Likewise.
37780 * io/gzio.c: Likewise.
37781 * term/efi/console.c: Likewise.
37782 * term/terminfo.c: Likewise.
37783 * term/ieee1275/ofconsole.c: Likewise.
37784 * term/i386/pc/serial.c: Likewise.
37785 * term/i386/pc/vesafb.c: Likewise.
37786 * term/i386/pc/vga.c: Likewise.
37787 * term/usb_keyboard.c: Likewise.
37788 * term/gfxterm.c: Likewise.
37789 * aclocal.m4: Likewise.
37790 * util/lvm.c: Likewise.
37791 * util/grub.d/30_os-prober.in: Likewise.
37792 * util/grub.d/10_hurd.in: Likewise.
37793 * util/console.c: Likewise.
37794 * util/grub-macho2img.c: Likewise.
37795 * util/grub-probe.c: Likewise.
37796 * util/hostfs.c: Likewise.
37797 * util/i386/pc/grub-mkimage.c: Likewise.
37798 * util/i386/pc/grub-setup.c: Likewise.
37799 * util/i386/efi/grub-mkimage.c: Likewise.
37800 * util/grub-mkconfig.in: Likewise.
37801 * util/raid.c: Likewise.
37802 * util/resolve.c: Likewise.
37803 * util/grub-mkdevicemap.c: Likewise.
37804 * util/grub-emu.c: Likewise.
37805 * util/getroot.c: Likewise.
37806 * util/hostdisk.c: Likewise.
37807 * util/usb.c: Likewise.
37808 * util/grub-editenv.c: Likewise.
37809 * util/misc.c: Likewise.
37810
37811 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37812
37813 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37814 `genparttoollist.sh'.
37815 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37816 Add `*.sh' to the list find searches for and change `mdate.sh'
37817 to `mdate-sh'.
37818
37819 2009-06-10 Pavel Roskin <proski@gnu.org>
37820
37821 * include/grub/multiboot2.h: Provide compatibility defines for
37822 multiboot2.h.
37823 * include/multiboot2.h: Include stdint.h only if needed, using
37824 angle brackets.
37825 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37826 grub/multiboot2.h.
37827 * loader/ieee1275/multiboot2.c: Likewise.
37828 * loader/multiboot2.c: Likewise.
37829 * loader/multiboot_loader.c: Likewise.
37830
37831 * configure.ac: Use -nostdlib when probing for the target. It
37832 should not be required to have libc for the target.
37833
37834 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37835 they fail without libc headers for the target.
37836 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37837 exports.
37838 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37839 preprocessor conditionals.
37840
37841 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37842 build system doesn't need to be aware of the tar.c internals.
37843
37844 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37845
37846 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37847
37848 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37849
37850 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37851 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37852
37853 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37854
37855 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37856 aren't available if ata.mod gets used.
37857
37858 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37859
37860 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37861 initialising controller.
37862 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37863
37864 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37865
37866 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37867 to choose between ata and biosdisk module on i386-pc.
37868
37869 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37870
37871 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37872 Subclass and Programming Interface fields in terms of the 3 byte
37873 Class Code register.
37874 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37875
37876 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37877 interface is OHCI. Add grub_dprintf for symmetry with
37878 bus/usb/uhci.c.
37879 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37880 interface is UHCI. Add interf variable for programming
37881 interface. Print interface with class/subclass.
37882
37883 * bus/usb/ohci.c: Set interf with correct field.
37884
37885 * bus/usb/uhci.c: Remove unneeded doubled lines.
37886 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37887 Remove whitespace inside comment.
37888
37889 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37890
37891 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37892 as fallback an equivalent option without depth.
37893
37894 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37895
37896 Not fail if unable to retrieve C/H/S on LBA disks
37897
37898 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37899 if unable to retrieve C/H/S on LBA disks
37900
37901 2009-06-08 Pavel Roskin <proski@gnu.org>
37902
37903 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37904 about aliasing.
37905
37906 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37907
37908 * Makefile.in (uninstall): Remove all $lib_DATA files.
37909
37910 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37911
37912 Bugfix: install on partitionless device
37913
37914 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37915 is a whole disk
37916
37917 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37918
37919 * Makefile.in (uninstall): Remove all $include_DATA files.
37920
37921 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37922
37923 * commands/true.c: New file. Implement the true and false commands.
37924 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37925 (true_mod_SOURCES): New variable.
37926 (true_mod_CFLAGS): Likewise.
37927 (true_mod_LDFLAGS): Likewise.
37928
37929 2009-06-05 Colin D Bennett <colin@gibibit.com>
37930
37931 Optimized font character lookup using binary search instead of linear
37932 search. Fonts now are required to have the character index ordered by
37933 code point.
37934
37935 * font/font.c (load_font_index): Verify that fonts have ordered
37936 character indices.
37937 (find_glyph): Use binary search instead of linear search to find a
37938 character in a font.
37939
37940 2009-06-05 Michael Scherer <misc@mandriva.org>
37941
37942 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37943 uses case sensitive btree.
37944 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37945 only for case insensitive filesystems.
37946
37947 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37948
37949 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37950 * conf/common.rmk (search_mod_CFLAGS): likewise
37951
37952 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37953
37954 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37955 compensate a compiler bug
37956
37957 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37958
37959 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37960 instead of '\b'
37961
37962 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37963
37964 Definitions for creating asm symbols with Apple's CC
37965
37966 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37967 [APPLE_CC] (VARIABLE): likewise
37968
37969 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37970
37971 Disable lnxboot.img when compiled
37972 with Apple's CC
37973
37974 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37975 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37976 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37977 [! APPLE_CC] (CODE_LENG): skip
37978 [! APPLE_CC] (setup_sects): likewise
37979 [! APPLE_CC]: skip filling
37980
37981 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37982
37983 Address in trampolines based on 32-bit registers when compiled
37984 with Apple's CC
37985
37986 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
37987 for addresses
37988 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
37989
37990 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37991
37992 Avoid aliases when compiling with Apple's CC for PCBIOS machine
37993
37994 * kern/misc.c [APPLE_CC] (memcpy): new function
37995 [APPLE_CC] (memmove): likewise
37996 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
37997 (memcpy): define alias conditionally on !APPLE_CC
37998 (memset): likewise
37999 (abort): likewise
38000 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38001 APPLE_CC are defined
38002 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38003 (grub_assert_fail): make prototype conditional
38004
38005 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38006
38007 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38008
38009 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38010 grub-macho2img
38011 (CLEANFILES): add grub-macho2img
38012 (grub_macho2img_SOURCES): new variable
38013 * kern/i386/pc/startup.S (bss_start): new variable
38014 (bss_end): likewise
38015 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38016 * util/grub-macho2img.c: new file
38017
38018 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38019
38020 Use objconv when compiling with Apple's CC
38021
38022 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38023 (efiemu64.o): likewise
38024 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38025 when compiling with Apple's CC
38026 (efiemu64_s.o): likewise
38027 * configure.ac: check for objconv when compiling with Apple's CC
38028 * genmk.rb: use objconv for modules when compiled with Apple's CC
38029
38030 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38031
38032 Define segment as well as section when compiling with
38033 Apple's CC
38034
38035 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38036 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38037 (efiemu_convert_pointer): likewise
38038 (efiemu_set_virtual_address_map): likewise
38039 (efiemu_convert_pointer): likewise
38040 (efiemu_getcrc32): likewise
38041 (init_crc32_table): likewise
38042 (reflect): likewise
38043 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38044 (GRUB_MOD_DEP): likewise
38045
38046 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38047
38048 Allow a compilation without -mcmodel=large
38049
38050 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38051 when compiled without -mcmodel=large
38052 (filter_memory_map): remove memory post 4 GiB when compiled
38053 without -mcmodel=large
38054 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38055 TARGET_CFLAGS when -mcmodel=large isn't supported
38056
38057 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38058
38059 Remove nested functions in efiemu core
38060
38061 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38062
38063 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38064
38065 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38066
38067 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38068 temporary storage
38069 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38070 using Apple's CC
38071 (grub_cpu_is_tsc_supported): likewise
38072 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38073
38074 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38075
38076 Absolute addressing through constant with Apple's cc
38077
38078 * kern/i386/pc/startup.S: Define necessary constants
38079 and address through it when using ABS with Apple's CC
38080 * boot/i386/pc/diskboot.S: likewise
38081 * boot/i386/pc/boot.S: likewise
38082 * boot/i386/pc/lnxboot.S: likewise
38083 * boot/i386/pc/cdboot.S: likewise
38084 * mmap/i386/pc/mmap_helper.S: likewise
38085 * commands/i386/pc/drivemap_int13h.S: likewise
38086
38087 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38088
38089 Check if compiler is apple cc
38090
38091 * Makefile.in (ASFLAGS): new variable
38092 (TARGET_ASFLAGS): likewise
38093 (TARGET_MODULE_FORMAT): likewise
38094 (TARGET_APPLE_CC): likewise
38095 (OBJCONV): likewise
38096 (TARGET_IMG_CFLAGS): likewise
38097 (TARGET_CPPFLAGS): add includedir
38098 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38099 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38100 Check for linker script only if compiler isn't Apple's CC
38101 (TARGET_MODULE_FORMAT): set
38102 (TARGET_APPLE_CC): likewise
38103 (TARGET_ASFLAGS): likewise
38104 (ASFLAGS): likewise
38105 Check for objcopy only if compiler isn't Apple's CC
38106 Check for BSS symbol only if compiler isn't Apple's CC
38107 * genmk.rb: adapt nm options if we use Apple's utils
38108 * aclocal.m4 (grub_apple_cc): new test
38109 (grub_apple_target_cc): likewise
38110
38111 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38112
38113 Simplify sed expressions and improve awk
38114
38115 * Makefile.in (install-local): simplify sed expression
38116 * gencmdlist.sh: likewise
38117 * genmoddep.awk: avoid adding module as a dependency of itself
38118
38119 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38120
38121 Add missing start symbols
38122
38123 * boot/i386/pc/boot.S: add start
38124 * boot/i386/pc/pxeboot.S: likewise
38125
38126 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38127
38128 Fix wrong assumptions with grub-mkimage on EFI
38129
38130 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38131 (relocate_addresses): consider both r_addend and value at offset
38132 (make_mods_section): zerofill modinfo and header
38133 (convert_elf): write prefix here
38134
38135 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38136
38137 Use .asciz instead of .string
38138
38139 * i386/pc/diskboot.S: use .asciz instead of .string
38140 * i386/pc/boot.S: likewise
38141 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38142 (GRUB_MOD_NAME): likewise
38143
38144 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38145
38146 gfxpayload support
38147
38148 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38149 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38150 (grub_video_setup): remove
38151 (grub_video_set_mode): new prototype
38152 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38153 (vid_mode): remove
38154 (linux_vesafb_res): compile only on PCBIOS
38155 (grub_linux_boot): support gfxpayload
38156 * loader/i386/pc/xnu.c (video_hook): new function
38157 (grub_xnu_set_video): support gfxpayload
38158 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38159 (DEFAULT_VIDEO_HEIGHT): likewise
38160 (DEFAULT_VIDEO_FLAGS): likewise
38161 (DEFAULT_VIDEO_MODE): new definition
38162 (video_hook): new function
38163 (grub_gfxterm_init): use grub_video_set_mode
38164 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38165 loading xnu
38166 * video/video.c (grub_video_setup): removed
38167 (grub_video_set_mode): new function based on grub_gfxterm_init and
38168 grub_video_setup
38169
38170 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38171
38172 Avoid calling biosdisk in drivemap
38173
38174 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38175 (revparse_biosdisk): likewise
38176 (list_mappings): derive name from id directly
38177 (grub_cmd_drivemap): use tryparse_diskstring
38178
38179 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38180
38181 Script fixes
38182
38183 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38184 (grub_lexer_param): add tokenonhold
38185 (grub_script_create_cmdline): remove cmdline. All callers updated
38186 (grub_script_function_create): make functionname
38187 grub_script_arg. All callers updated
38188 (grub_script_execute_argument_to_string): new prototype
38189 * kern/parser.c (state_transitions): reorder
38190 (grub_parser_cmdline_state): fix a bug and make more compact
38191 * script/sh/execute.c (grub_script_execute_argument_to_string):
38192 make global
38193 (grub_script_execute_cmdline): use new format
38194 * script/sh/function.c (grub_script_function_create): make functionname
38195 grub_script_arg. All callers updated
38196 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38197 (grub_script_yylex): remove
38198 (grub_script_yylex2): renamed to ...
38199 (grub_script_yylex): ...renamed
38200 parse the expressions like a${b}c
38201 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38202 (GRUB_PARSER_TOKEN_VAR): remove
38203 (GRUB_PARSER_TOKEN_NAME): likewise
38204 ("if"): declare as typeless
38205 ("while"): likewise
38206 ("function"): likewise
38207 ("else"): likewise
38208 ("then"): likewise
38209 ("fi"): likewise
38210 (text): remove
38211 (argument): likewise
38212 (script): accept empty scripts and make exit on error
38213 (arguments): use GRUB_PARSER_TOKEN_ARG
38214 (function): likewise
38215 (command): move error handling to script
38216 (menuentry): move grub_script_lexer_ref before
38217 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38218 argument. All callers updated
38219
38220 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38221
38222 Prevent GRUB from probing floppies during boot.
38223
38224 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38225 * commands/search.c (options): Add --no-floppy.
38226 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38227 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38228 --no-floppy when searching for UUIDs.
38229
38230 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38231
38232 Simplify the code duplication in commands/search.c.
38233
38234 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38235 (search_fs): ... this. Update all users.
38236
38237 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38238
38239 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38240
38241 2009-05-28 Pavel Roskin <proski@gnu.org>
38242
38243 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38244 Remove the original symlink explicitly.
38245
38246 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38247 just one slash. That's how grub_fshelp_find_file() does it.
38248
38249 2009-05-26 Pavel Roskin <proski@gnu.org>
38250
38251 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38252 to `str'.
38253
38254 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38255 possibly unused.
38256
38257 2009-05-25 Christian Franke <franke@computer.org>
38258
38259 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38260 register.
38261 (grub_atapi_identify): Add wait after drive select.
38262 (grub_ata_identify): Do more strict status register check before
38263 calling grub_atapi_identify (). Suppress error message if status
38264 register is 0x00 after command failure. Add status register
38265 check after PIO read to avoid bogus identify due to stuck DRQ.
38266 Thanks to Pavel Roskin for testing.
38267 (grub_device_initialize): Remove unsafe status register check.
38268 Thanks to 'phcoder' for problem report and patch.
38269 Prevent sign extension in debug message.
38270
38271 2009-05-23 Colin D Bennett <colin@gibibit.com>
38272
38273 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38274 definition file, and functions defined in `normal/menu.c' have had
38275 their prototypes moved to `include/grub/menu.h' for consistency.
38276
38277 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38278 from normal.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
38286 * include/grub/normal.h: Re-ordered and grouped function
38287 prototypes by file that the function is defined in.
38288 (grub_menu_execute_callback): Removed; moved to menu.h.
38289 (grub_menu_get_entry): Likewise.
38290 (grub_menu_get_timeout): Likewise.
38291 (grub_menu_set_timeout): Likewise.
38292 (grub_menu_execute_entry): Likewise.
38293 (grub_menu_execute_with_fallback): Likewise.
38294 (grub_menu_entry_run): Likewise.
38295 (grub_menu_addentry): Renamed from this ...
38296 (grub_normal_add_menu_entry): ... to this.
38297
38298 * normal/main.c (grub_menu_addentry): Renamed from this ...
38299 (grub_normal_add_menu_entry): ... to this.
38300
38301 * script/sh/execute.c (grub_script_execute_menuentry): Update
38302 reference to renamed grub_menu_addentry function.
38303
38304 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38305
38306 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38307
38308 2009-05-22 Pavel Roskin <proski@gnu.org>
38309
38310 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38311 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38312 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38313 compiling for the i386 targets, but not for the utilities.
38314
38315 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38316 to grub_uint8_t.
38317 (grub_root_drive): Likewise.
38318 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38319 remove alignment.
38320 (grub_root_drive): Change size to byte.
38321 (grub_start_addr): Remove.
38322 (grub_end_addr): Likewise.
38323 (grub_apm_bios_info): Likewise.
38324
38325 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38326
38327 * normal/i386: Remove.
38328 * normal/powerpc: Likewise.
38329 * normal/sparc64: Likewise.
38330 * normal/x86_64: Likewise.
38331
38332 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38333
38334 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38335 * loader/i386/linux_trampoline.S: Fix indentation
38336 * loader/i386/xnu_helper.S: Likewise
38337
38338 2009-05-18 Colin D Bennett <colin@gibibit.com>
38339
38340 Display error messages when parsing a Lua statement fails.
38341 Previously, executing a syntactically invalid statement like
38342 ")foo" or "bar;" would silently fail.
38343
38344 * script/lua/grub_main.c (handle_lua_error): New function.
38345 (grub_lua_parse_line): Improved reporting of Lua parser and
38346 execution errors.
38347
38348 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38349
38350 Remove -Werror which causes build to fail on some systems
38351
38352 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38353 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38354 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38355
38356 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38357
38358 trampoline for linux on 64-bit platform
38359
38360 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38361 loader/i386/efi/linux_trampoline.S
38362 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38363 declaration
38364 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38365 here
38366 * loader/i386/linux_trampoline.S: moved here
38367 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38368 trampoline
38369 (jumpvector): removed
38370 (grub_linux_trampoline_start): new declaration
38371 (grub_linux_trampoline_end): likewise
38372 (grub_linux_boot): use trampoline when on 64-bit platform
38373 * loader/i386/linux.c: likewise
38374
38375 2009-05-16 Pavel Roskin <proski@gnu.org>
38376
38377 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38378 const to avoid a warning.
38379 (grub_lua_setenv): Likewise.
38380 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38381 lmsg to fix a warning.
38382
38383 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38384
38385 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38386 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38387 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38388 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38389 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38390 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38391 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38392 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38393
38394 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38395
38396 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38397
38398 2009-05-16 Bean <bean123ch@gmail.com>
38399
38400 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38401 (lua_mod_SOURCES): New variable.
38402 (lua_mod_CFLAGS): Likewise.
38403 (lua_mod_LDFLAGS): Likewise.
38404
38405 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38406 (setjmp_mod_SOURCES): New variable.
38407 (setjmp_mod_CFLAGS): Likewise.
38408 (setjmp_LDFLAGS): Likewise.
38409
38410 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38411 (setjmp_mod_SOURCES): New variable.
38412 (setjmp_mod_CFLAGS): Likewise.
38413 (setjmp_LDFLAGS): Likewise.
38414
38415 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38416 (setjmp_mod_SOURCES): New variable.
38417 (setjmp_mod_CFLAGS): Likewise.
38418 (setjmp_LDFLAGS): Likewise.
38419
38420 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38421 (setjmp_mod_SOURCES): New variable.
38422 (setjmp_mod_CFLAGS): Likewise.
38423 (setjmp_LDFLAGS): Likewise.
38424
38425 * normal/i386/setjmp.S: Moved from here ...
38426 * lib/i386/setjmp.S: ... Moved here
38427 * normal/x86_64/setjmp.S: Moved from here ...
38428 * lib/x86_64/setjmp.S: ... Moved here
38429 * normal/powerpc/setjmp.S: Moved from here ...
38430 * lib/powerpc/setjmp.S: ... Moved here
38431 * normal/sparc64/setjmp.S: Moved from here ...
38432 * lib/sparc64/setjmp.S: ... Moved here
38433
38434 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38435 returns_twice in mingw.
38436
38437 * script/lua/grub_lib.c: New file.
38438 * script/lua/grub_lib.h: Likewise.
38439 * script/lua/grub_lua.h: Likewise.
38440 * script/lua/grub_main.c: Likewise.
38441 * script/lua/lapi.c: Likewise.
38442 * script/lua/lapi.h: Likewise.
38443 * script/lua/lauxlib.c: Likewise.
38444 * script/lua/lauxlib.h: Likewise.
38445 * script/lua/lbaselib.c: Likewise.
38446 * script/lua/lcode.c: Likewise.
38447 * script/lua/lcode.h: Likewise.
38448 * script/lua/ldblib.c: Likewise.
38449 * script/lua/ldebug.c: Likewise.
38450 * script/lua/ldebug.h: Likewise.
38451 * script/lua/ldo.c: Likewise.
38452 * script/lua/ldo.h: Likewise.
38453 * script/lua/ldump.c: Likewise.
38454 * script/lua/lfunc.c: Likewise.
38455 * script/lua/lfunc.h: Likewise.
38456 * script/lua/lgc.c: Likewise.
38457 * script/lua/lgc.h: Likewise.
38458 * script/lua/linit.c: Likewise.
38459 * script/lua/liolib.c: Likewise.
38460 * script/lua/llex.c: Likewise.
38461 * script/lua/llex.h: Likewise.
38462 * script/lua/llimits.h: Likewise.
38463 * script/lua/lmathlib.c: Likewise.
38464 * script/lua/lmem.c: Likewise.
38465 * script/lua/lmem.h: Likewise.
38466 * script/lua/loadlib.c: Likewise.
38467 * script/lua/lobject.c: Likewise.
38468 * script/lua/lobject.h: Likewise.
38469 * script/lua/lopcodes.c: Likewise.
38470 * script/lua/lopcodes.h: Likewise.
38471 * script/lua/loslib.c: Likewise.
38472 * script/lua/lparser.c: Likewise.
38473 * script/lua/lparser.h: Likewise.
38474 * script/lua/lstate.c: Likewise.
38475 * script/lua/lstate.h: Likewise.
38476 * script/lua/lstring.c: Likewise.
38477 * script/lua/lstring.h: Likewise.
38478 * script/lua/lstrlib.c: Likewise.
38479 * script/lua/ltable.c: Likewise.
38480 * script/lua/ltable.h: Likewise.
38481 * script/lua/ltablib.c: Likewise.
38482 * script/lua/ltm.c: Likewise.
38483 * script/lua/ltm.h: Likewise.
38484 * script/lua/lua.h: Likewise.
38485 * script/lua/luaconf.h: Likewise.
38486 * script/lua/lualib.h: Likewise.
38487 * script/lua/lundump.c: Likewise.
38488 * script/lua/lundump.h: Likewise.
38489 * script/lua/lvm.c: Likewise.
38490 * script/lua/lvm.h: Likewise.
38491 * script/lua/lzio.c: Likewise.
38492 * script/lua/lzio.h: Likewise.
38493
38494 2009-05-16 Bean <bean123ch@gmail.com>
38495
38496 * include/grub/kernel.h (grub_module_header_types): Add type
38497 OBJ_TYPE_CONFIG.
38498
38499 * kern/main.c (grub_load_config): New function.
38500 (grub_main): Call grub_load_config to read boot config.
38501
38502 * grub-mkimage (generate_image): New parameter config_path.
38503 (options): New option --config.
38504 (main): Parse --config option, and pass it to generate_image.
38505
38506 2009-05-14 Christian Franke <franke@computer.org>
38507
38508 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38509 This fixes build on Cygwin.
38510
38511 2009-05-14 Pavel Roskin <proski@gnu.org>
38512
38513 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38514 jump. This saves two bytes, so the typical case of 2 swapped
38515 drives would fit 32 bytes.
38516
38517 2009-05-13 Pavel Roskin <proski@gnu.org>
38518
38519 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38520 grub_uint32_t to avoid a warning.
38521
38522 * loader/i386/linux.c (allocate_pages): When assigning
38523 real_mode_mem, cast through grub_size_t to fix a warning. The
38524 code already makes sure that the value would fit a pointer.
38525 (grub_linux_setup_video): Cast render_target->data to
38526 grub_size_t to fix a warning.
38527
38528 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38529
38530 * commands/i386/pc/drivemap.c: New file - implement drivemap
38531 command.
38532 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38533 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38534
38535 2009-05-13 Pavel Roskin <proski@gnu.org>
38536
38537 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38538 embedding_area_exists.
38539
38540 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38541
38542 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38543 it easier to understand / work with.
38544 Improve warning messages for cases where there's no embedding area,
38545 or when it is too small (or core.img too large).
38546
38547 2009-05-13 Pavel Roskin <proski@gnu.org>
38548
38549 * loader/i386/pc/multiboot2.c: Add necessary includes for
38550 grub_multiboot2_real_boot().
38551
38552 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38553 PX record is always little-endian. We only need the lower 2
38554 bytes of the mode.
38555
38556 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38557 facilitate code reuse.
38558 (grub_cpio_mount): Use "struct head", not a char buffer. This
38559 fixes a warning reported by gcc 4.4.
38560
38561 * kernel/disk.c (grub_disk_read): Use void pointer for the
38562 buffer.
38563 (grub_disk_write): Use const void pointer for the buffer.
38564 Adjust all callers. Remove unnecessary casts.
38565
38566 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38567
38568 * util/i386/pc/grub-install.in: Update copyright year.
38569
38570 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38571
38572 gptsync
38573
38574 * commands/gptsync.c: new file
38575 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38576 (gptsync_mod_SOURCES): new variable
38577 (gptsync_mod_CFLAGS): likewise
38578 (gptsync_mod_LDFLAGS): likewise
38579 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38580 new definition
38581 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38582 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38583 * conf/i386-ieee1275.rmk: likewise
38584 * conf/i386-pc.rmk: likewise
38585 * conf/powerpc-ieee1275.rmk: likewise
38586
38587 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38588
38589 Fixed grub-emu
38590
38591 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38592 (grub_dl_ref): likewise
38593
38594 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38595
38596 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38597 split in two functions (one for msdos and one for gpt).
38598
38599 2009-05-08 Pavel Roskin <proski@gnu.org>
38600
38601 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38602 not modified.
38603
38604 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38605 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38606 Initialize them with -1. Add sanity check for bad1. Eliminate
38607 nerr variable.
38608
38609 2009-05-08 David S. Miller <davem@davemloft.net>
38610
38611 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38612
38613 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38614
38615 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38616 existence.
38617
38618 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38619
38620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38621 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38622
38623 2009-05-05 David S. Miller <davem@davemloft.net>
38624
38625 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38626
38627 2009-05-05 Pavel Roskin <proski@gnu.org>
38628
38629 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38630 of grub_dl_ref() and grub_dl_unref().
38631 * commands/parttool.c: Remove preprocessor conditionals around
38632 grub_dl_ref() and grub_dl_unref().
38633 * fs/affs.c: Likewise.
38634 * fs/afs.c: Likewise.
38635 * fs/cpio.c: Likewise.
38636 * fs/ext2.c: Likewise.
38637 * fs/fat.c: Likewise.
38638 * fs/hfs.c: Likewise.
38639 * fs/hfsplus.c: Likewise.
38640 * fs/iso9660.c: Likewise.
38641 * fs/jfs.c: Likewise.
38642 * fs/minix.c: Likewise.
38643 * fs/ntfs.c: Likewise.
38644 * fs/reiserfs.c: Likewise.
38645 * fs/sfs.c: Likewise.
38646 * fs/udf.c: Likewise.
38647 * fs/ufs.c: Likewise.
38648 * fs/xfs.c: Likewise.
38649 * include/grub/dl.h: Likewise.
38650 * loader/xnu.c: Likewise.
38651
38652 2009-05-04 Pavel Roskin <proski@gnu.org>
38653
38654 * commands/acpi.c: Remove unused variable my_mod.
38655 * partmap/amiga.c: Likewise.
38656 * partmap/apple.c: Likewise.
38657 * partmap/gpt.c: Likewise.
38658 * partmap/pc.c: Likewise.
38659 * partmap/sun.c: Likewise.
38660 * term/gfxterm.c: Likewise.
38661 * term/i386/pc/vesafb.c: Likewise.
38662 * term/i386/pc/vga.c: Likewise.
38663
38664 2009-05-04 David S. Miller <davem@davemloft.net>
38665
38666 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38667 pointer args to grub_ieee1275_get_property().
38668
38669 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38670
38671 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38672 devices, and do not traverse down under controller nodes.
38673
38674 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38675 (grub_ofdisk_open): Use it to un-escape "," characters.
38676 * kern/disk.c (find_part_sep): New.
38677 (grub_disk_open): Use it to find the first non-escaped ','
38678 character in the disk name.
38679 * util/ieee1275/devicemap.c (escape_of_path): New.
38680 (grub_util_emit_devicemap_entry): Use it.
38681 * util/sparc64/ieee1275/grub-install.in: Update script to
38682 strip partition specifiers properly by not triggering on
38683 '\' escaped ',' characters.
38684
38685 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38686
38687 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38688 to 0x300.
38689 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38690 resolutions.
38691 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38692 on documentation from Wikipedia).
38693
38694 2009-05-04 Pavel Roskin <proski@gnu.org>
38695
38696 * disk/ata.c: Spelling fixes.
38697 * disk/raid.c: Likewise.
38698 * disk/usbms.c: Likewise.
38699 * disk/dmraid_nvidia.c: Likewise.
38700 * kern/ieee1275/openfw.c: Likewise.
38701 * kern/ieee1275/init.c: Likewise.
38702 * kern/ieee1275/cmain.c: Likewise.
38703 * boot/i386/pc/cdboot.S: Likewise.
38704 * video/readers/png.c: Likewise.
38705 * video/i386/pc/vbe.c: Likewise.
38706 * fs/udf.c: Likewise.
38707 * fs/hfs.c: Likewise.
38708 * fs/reiserfs.c: Likewise.
38709 * efiemu/runtime/efiemu.c: Likewise.
38710 * efiemu/main.c: Likewise.
38711 * efiemu/mm.c: Likewise.
38712 * include/grub/elf.h: Likewise.
38713 * include/grub/xnu.h: Likewise.
38714 * include/grub/usbdesc.h: Likewise.
38715 * include/grub/usb.h: Likewise.
38716 * include/grub/script_sh.h: Likewise.
38717 * include/grub/lib/LzmaEnc.h: Likewise.
38718 * include/grub/efiemu/efiemu.h: Likewise.
38719 * include/grub/command.h: Likewise.
38720 * normal/menu.c: Likewise.
38721 * normal/main.c: Likewise.
38722 * normal/datetime.c: Likewise.
38723 * bus/usb/uhci.c: Likewise.
38724 * mmap/i386/uppermem.c: Likewise.
38725 * mmap/mmap.c: Likewise.
38726 * commands/acpi.c: Likewise.
38727 * commands/test.c: Likewise.
38728 * partmap/apple.c: Likewise.
38729 * font/font.c: Likewise.
38730 * loader/sparc64/ieee1275/linux.c: Likewise.
38731 * loader/macho.c: Likewise.
38732 * loader/i386/bsd_trampoline.S: Likewise.
38733 * loader/i386/bsd.c: Likewise.
38734 * loader/xnu.c: Likewise.
38735 * term/i386/pc/vesafb.c: Likewise.
38736 * term/usb_keyboard.c: Likewise.
38737 * util/resolve.c: Likewise.
38738 * util/getroot.c: Likewise.
38739
38740 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38741
38742 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38743
38744 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38745
38746 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38747 build error.
38748
38749 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38750
38751 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38752 parameter only available on BIOS.
38753
38754 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38755
38756 Removed wrong semicolon in declaration
38757
38758 * grub/misc.h (grub_dprintf): remove semicolon
38759
38760 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38761
38762 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38763 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38764 is done by grub_cmd_linux() now).
38765 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38766 restore video to text mode.
38767 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38768 indicates lack of "vga=" parameter. "vga=0" is mapped to
38769 `GRUB_LINUX_VID_MODE_NORMAL'.
38770
38771 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38772
38773 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38774 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38775 and `normal/script.c'. Add `kern/rescue_reader.c',
38776 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38777 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38778 `grub_script.tab.c'.
38779
38780 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38781 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38782 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38783 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38784 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38785
38786 * Makefile.in: Remove duplicated 2008 in Copyright line.
38787
38788 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38789
38790 * util/misc.c (grub_util_warn): New function. Emits a warning
38791 unconditionally.
38792 * include/grub/util/misc.h (grub_util_warn): New declaration.
38793
38794 * util/i386/pc/grub-install.in: Understand --force and pass it down
38795 to grub-setup.
38796
38797 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38798 down to setup().
38799 (setup): Improve error messages and add warnings when requested to
38800 install in odd layouts. Refuse to install using blocklists unless
38801 --force was set.
38802
38803 2009-05-04 martin f. krafft <madduck@madduck.net>
38804
38805 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38806
38807 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38808
38809 Updated copyright year
38810
38811 * fs/hfsplus.c: updated copyright year
38812
38813 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38814
38815 HFS+ UUID
38816
38817 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38818 in the space previously used by unused3
38819 (grub_hfsplus_uuid): new function
38820 (grub_hfsplus_fs): added uuid field
38821
38822 2009-05-03 Pavel Roskin <proski@gnu.org>
38823
38824 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38825 suppress warnings. It's no longer needed.
38826 * disk/host.c: Likewise.
38827 * disk/ata_pthru.c: Likewise.
38828 * disk/loopback.c: Likewise.
38829 * hook/datehook.c: Likewise.
38830 * parttool/pcpart.c: Likewise.
38831 * fs/i386/pc/pxe.c: Likewise.
38832 * fs/ntfscomp.c: Likewise.
38833 * efiemu/main.c: Likewise.
38834 * mmap/mmap.c: Likewise.
38835 * commands/crc.c: Likewise.
38836 * commands/hexdump.c: Likewise.
38837 * commands/hdparm.c: Likewise.
38838 * commands/acpi.c: Likewise.
38839 * commands/echo.c: Likewise.
38840 * commands/minicmd.c: Likewise.
38841 * commands/blocklist.c: Likewise.
38842 * commands/memrw.c: Likewise.
38843 * commands/loadenv.c: Likewise.
38844 * commands/usbtest.c: Likewise.
38845 * commands/lsmmap.c: Likewise.
38846 * commands/boot.c: Likewise.
38847 * commands/parttool.c: Likewise.
38848 * commands/configfile.c: Likewise.
38849 * commands/search.c: Likewise.
38850 * commands/ieee1275/suspend.c: Likewise.
38851 * commands/cat.c: Likewise.
38852 * commands/i386/pc/pxecmd.c: Likewise.
38853 * commands/i386/pc/play.c: Likewise.
38854 * commands/i386/pc/halt.c: Likewise.
38855 * commands/i386/pc/vbeinfo.c: Likewise.
38856 * commands/i386/pc/vbetest.c: Likewise.
38857 * commands/lspci.c: Likewise.
38858 * commands/date.c: Likewise.
38859 * commands/handler.c: Likewise.
38860 * commands/ls.c: Likewise.
38861 * commands/test.c: Likewise.
38862 * commands/cmp.c: Likewise.
38863 * commands/efi/loadbios.c: Likewise.
38864 * commands/efi/fixvideo.c: Likewise.
38865 * commands/halt.c: Likewise.
38866 * commands/help.c: Likewise.
38867 * commands/reboot.c: Likewise.
38868 * hello/hello.c: Likewise.
38869 * script/sh/main.c: Likewise.
38870 * loader/xnu.c: Likewise.
38871 * term/terminfo.c: Likewise.
38872 * term/i386/pc/serial.c: Likewise.
38873 * term/usb_keyboard.c: Likewise.
38874
38875 2009-05-03 David S. Miller <davem@davemloft.net>
38876
38877 * normal/menu.c: Include grub/parser.h
38878
38879 2009-05-03 Pavel Roskin <proski@gnu.org>
38880
38881 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38882 not char*.
38883 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38884 Suggested by Javier Martín <lordhabbit@gmail.com>
38885
38886 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38887 efiemu??.o doesn't exist.
38888 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38889 copying.
38890
38891 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38892
38893 FreeBSD 64-bit support
38894
38895 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38896 and loader/i386/bsd_trampoline.S
38897 (bsd_mod_ASFLAGS): new variable
38898 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38899 (FREEBSD_MODTYPE_KERNEL64): likewise
38900 (grub_bsd64_trampoline_start): likewise
38901 (grub_bsd64_trampoline_end): likewise
38902 (grub_bsd64_trampoline_selfjump): likewise
38903 (grub_bsd64_trampoline_gdt): likewise
38904 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38905 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38906 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38907 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38908 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38909 of "attrib" member
38910 * loader/i386/bsd_pagetable.c: new file
38911 * loader/i386/bsd_trampoline.S: likewise
38912 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38913 (ALIGN_VAR): likewise
38914 (entry_hi): new variable
38915 (kern_end_mdofs): likewise
38916 (is_64bit): likewise
38917 (grub_freebsd_add_meta): use ALIGN_VAR
38918 (grub_e820_mmap): new declaration
38919 (grub_freebsd_add_mmap): new function
38920 (grub_freebsd_add_meta_module): support 64 bit kernels
38921 (grub_freebsd_list_modules): use ALIGN_VAR
38922 (gdt_descriptor): new declaration
38923 (grub_freebsd_boot): support 64 bit kernels
38924 (grub_bsd_elf64_hook): new function
38925 (grub_bsd_load_elf): support elf64
38926
38927 2009-05-03 Bean <bean123ch@gmail.com>
38928
38929 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38930 after we get the result of if statement.
38931
38932 2009-05-03 Bean <bean123ch@gmail.com>
38933
38934 * Makefile.in (enable_efiemu): New variable.
38935
38936 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38937 set.
38938 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38939 path.
38940 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38941 path, add -mno-red-zone option.
38942 (efiemu64_s.o): Likewise.
38943 (efiemu64.o): Use macro $^ for source file.
38944
38945 * configure.ac (--enable-efiemu): New option.
38946
38947 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38948
38949 xnu support
38950
38951 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38952 (pkglib_MODULES): add xnu.mod
38953 (xnu_mod_SOURCES): new variable
38954 (xnu_mod_CFLAGS): likewise
38955 (xnu_mod_LDFLAGS): likewise
38956 (xnu_mod_ASFLAGS): likewise
38957 * conf/i386-pc.rmk: likewise
38958 * conf/x86_64-efi.rmk: likewise
38959 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38960 new declaration
38961 * include/grub/i386/macho.h: new file
38962 * include/grub/i386/xnu.h: likewise
38963 * include/grub/macho.h: likewise
38964 * include/grub/machoload.h: likewise
38965 * include/grub/x86_64/macho.h: likewise
38966 * include/grub/x86_64/xnu.h: likewise
38967 * include/grub/xnu.h: likewise
38968 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38969 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38970 * loader/i386/efi/xnu.c: new file
38971 * loader/i386/pc/xnu.c: likewise
38972 * loader/i386/xnu.c: likewise
38973 * loader/i386/xnu_helper.S: likewise
38974 * loader/macho.c: likewise
38975 * loader/xnu.c: likewise
38976 * loader/xnu_resume.c: likewise
38977 * util/grub-dumpdevtree: likewise
38978 * include/grub/i386/pit.h: include grub/err.h
38979 (grub_pit_wait): export
38980 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38981
38982 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
38983
38984 Efiemu
38985
38986 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
38987 _linux_efi, linux_efi.
38988 new files in grub-emu
38989 new targets efiemu32.o and efiemu64.o
38990 * loader/linux_normal_efiemu.c: likewise
38991 * loader/i386/efi/linux.c: added preliminary efiemu support
38992 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
38993 files to copy
38994 * include/grub/autoefi.h: new file
38995 * include/grub/i386/efiemu.h: likewise
38996 * include/grub/i386/pc/efiemu.h: likewise
38997 * include/grub/efi/api.h: add LL suffix when necessary
38998 new definitions relating to tables
38999 * include/grub/efiemu/efiemu.h: new file
39000 * include/grub/efiemu/runtime.h: likewise
39001 * efiemu/prepare.c: likewise
39002 * efiemu/loadcore_common.c: likewise
39003 * efiemu/loadcore64.c: likewise
39004 * efiemu/runtime/efiemu.sh: likewise
39005 * efiemu/runtime/efiemu.S: likewise
39006 * efiemu/runtime/efiemu.c: likewise
39007 * efiemu/runtime/config.h: likewise
39008 * efiemu/prepare32.c: likewise
39009 * efiemu/main.c: likewise
39010 * efiemu/modules/pnvram.c: likewise
39011 * efiemu/modules/i386: likewise
39012 * efiemu/modules/i386/pc: likewise
39013 * efiemu/modules/acpi.c: likewise
39014 * efiemu/i386/pc/cfgtables.c: likewise
39015 * efiemu/i386/loadcore64.c: likewise
39016 * efiemu/i386/loadcore32.c: likewise
39017 * efiemu/prepare64.c: likewise
39018 * efiemu/loadcore.c: likewise
39019 * efiemu/symbols.c: likewise
39020 * efiemu/mm.c: likewise
39021 * efiemu/loadcore32.c: likewise
39022
39023 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39024
39025 ACPI spoofing
39026
39027 * commands/acpi.c: new file
39028 * commands/i386/pc/acpi.c: likewise
39029 * commands/efi/acpi.c: likewise
39030 * include/grub/acpi.h: likewise
39031 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39032 (acpi_mod_SOURCES): new variable
39033 (acpi_mod_CFLAGS): likewise
39034 (acpi_mod_LDFLAGS): likewise
39035 * conf/i386-efi.rmk: likewise
39036 * conf/x86_64-efi.rmk: likewise
39037
39038 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39039
39040 Missing part from mmap patch
39041
39042 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39043 (grub_mmap_unregister)
39044 (grub_mmap_free_and_unregister): use grub_mmap_register
39045
39046 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39047
39048 Mmap services
39049
39050 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39051 * loader/i386/linux.c (find_mmap_size): likewise
39052 (allocate_pages): likewise
39053 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39054 (grub_fill_multiboot_mmap): likewise
39055 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39056 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39057 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39058 (OPENBSD_MMAP_RESERVED): likewise
39059 * include/grub/i386/pc/memory.h: include grub/memory.h
39060 (grub_lower_mem): removed
39061 (grub_upper_mem): likewise
39062 (GRUB_MACHINE_MEMORY_ACPI): new definition
39063 (GRUB_MACHINE_MEMORY_NVS): likewise
39064 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39065 (GRUB_MACHINE_MEMORY_HOLE): likewise
39066 (grub_machine_mmap_register): likewise
39067 (grub_machine_mmap_unregister): likewise
39068 (grub_machine_get_upper): likewise
39069 (grub_machine_get_lower): likewise
39070 (grub_machine_get_post64): likewise
39071 * include/grub/i386/efi/memory.h: new file
39072 * include/grub/x86_64/efi/memory.h: likewise
39073 * include/grub/efi/memory.h: likewise
39074 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39075 (mmap_mod_SOURCES): new variable
39076 (mmap_mod_LDFLAGS): likewise
39077 (mmap_mod_ASFLAGS): likewise
39078 * conf/i386-coreboot.rmk: likewise
39079 * conf/i386-ieee1275.rmk: likewise
39080 * conf/i386-efi.rmk: likewise
39081 * conf/x86_64-efi.rmk: likewise
39082 * include/grub/types.h (UINT_TO_PTR): new macro
39083 (PTR_TO_UINT32): likewise
39084 (PTR_TO_UINT64): likewise
39085 * include/grub/memory.h: new file
39086 * mmap/i386/pc/mmap.c: likewise
39087 * mmap/i386/pc/mmap_helper.S: likewise
39088 * mmap/i386/uppermem.c: likewise
39089 * mmap/mmap.c: likewise
39090 * mmap/efi/mmap.c: likewise
39091 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39092 grub_upper_mem
39093 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39094 (grub_upper_mem): likewise
39095 (grub_machine_init): don't use grub_upper_mem,
39096 make grub_lower_mem local
39097 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39098 grub_mmap_iterate and grub_mmap_get_upper
39099 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39100
39101 2009-05-02 Bean <bean123ch@gmail.com>
39102
39103 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39104 script/sh/parser.y.
39105 (pkglib_MODULES): Add normal.mod and sh.mod.
39106 (normal_SOURCES): New variable.
39107 (normal_mod_CFLAGS): Likewise.
39108 (normal_mod_LDFLAGS): Likewise.
39109 (sh_mod_SOURCES): Likewise.
39110 (sh_mod_CFLAGS): Likewise.
39111 (sh_mod_LDFLAGS): Likewise.
39112
39113 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39114 script/sh/lexer.c_DEPENDENCIES.
39115 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39116 kern/rescue_reader.c and kern/rescue_parser.c.
39117 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39118 (grub_emu_SOURCES): Change source files.
39119 (pkglib_MODULES): Remove normal.mod.
39120 (normal_SOURCES): Removed.
39121 (normal_mod_CFLAGS): Likewise.
39122 (normal_mod_LDFLAGS): Likewise.
39123 * conf/i386-coreboot.rmk: Likewise.
39124 * conf/i386-efi.rmk: Likewise.
39125 * conf/i386-ieee1276.rmk: Likewise.
39126 * conf/powerpc-ieee1275.rmk: Likewise.
39127 * conf/sparc64-ieee1275.rmk: Likewise.
39128 * conf/x86_64-efi.rmk: Likewise.
39129
39130 * include/grub/command.h (grub_command_execute): New inline function.
39131
39132 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39133
39134 * include/grub/normal.h: Remove <grub/setjmp.h>.
39135 (grub_fs_module_list): Moved to normal/autofs.c.
39136 (grub_exit_env): Removed.
39137 (grub_command_execute): Likewise.
39138 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39139 parameter script.
39140 (read_command_list): New function declaration.
39141 (read_fs_list): Likewise.
39142
39143 * include/parser.h: Include <grub/reader.h>.
39144 (grub_parser_split_cmdline): Change type of getline parameter.
39145 (grub_parser): New structure.
39146 (grub_parser_class): New variable.
39147 (grub_parser_execute): New function declaration.
39148 (grub_register_rescue_parser): Likewise.
39149 (grub_parser_register): New inline function.
39150 (grub_parser_unregister): Likewise.
39151 (grub_parser_get_current): Likewise.
39152 (grub_parser_set_current): Likewise.
39153
39154 * include/grub/reader.h: New file.
39155 * kern/reader.c: Likewise.
39156 * kern/rescue_parser.c: Likewise.
39157 * kern/rescue_reader.c: Likewise.
39158 * normal/autofs.c: Likewise.
39159 * normal/dyncmd.c: Likewise.
39160
39161 * include/grub/rescue.h: Removed.
39162 * normal/command.h: Likewise.
39163
39164 * include/grub/script.h: Moved to ...
39165 * include/grub/script_sh.h: ... Moved here.
39166 * normal/execute.c: Moved to ...
39167 * script/sh/execute.c: ... Moved here.
39168 * normal/function.c: Moved to ...
39169 * script/sh/function.c: ... Moved here.
39170 * normal/lexer.c: Moved to ...
39171 * script/sh/lexer.c: ... Moved here.
39172 * normal/parser.y: Moved to ...
39173 * script/sh/parser.y: ... Moved here.
39174 * normal/script.c: Moved to ...
39175 * script/sh/script.c: ... Moved here.
39176
39177 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39178 <grub/reader.h>.
39179 (grub_exit_env): Removed.
39180 (fs_module_list): Moved to normal/autofs.c.
39181 (grub_file_getline): Don't handle comment here.
39182 (free_menu): Skip removed field entry->commands.
39183 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39184 script parameter.
39185 (read_config_file): Removed nested parameter, change getline function.
39186 (grub_enter_normal_mode): Removed.
39187 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39188 (read_command_list): Likewise.
39189 (autoload_fs_module): Moved to normal/autofs.c.
39190 (read_fs_list): Likewise.
39191 (reader_nested): New variable.
39192 (grub_normal_execute): Run parser.sh to switch to sh parser.
39193 (grub_cmd_rescue): Removed.
39194 (cmd_normal): Removed.
39195 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39196 rescue command.
39197 (grub_cmdline_run): New function.
39198 (grub_normal_reader_init): Likewise.
39199 (grub_normal_read_line): Likewise.
39200 (grub_env_write_pager): Likewise.
39201 (cmdline): New variable.
39202 (grub_normal_reader): Likewise.
39203 (GRUB_MOD_INIT): Register normal reader and set as current, register
39204 pager hook, register normal command with grub_register_command_prio,
39205 so that it won't show up in command.lst.
39206 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39207 grub_fs_autoload_hook.
39208
39209 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39210 (grub_menu_execute_entry): Replace grub_script_execute with
39211 grub_parser_execute, change parameter to grub_command_execute.
39212
39213 * normal/menu_text.c: Remove <grub/script.h>.
39214
39215 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39216 and <grub/parser.h>.
39217 (run): Change editor_getline to use new parser interface. Change
39218 parameter to grub_command_execute.
39219
39220 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39221 <grub/reader.h> and <grub/parser.h>.
39222 (grub_load_normal_mode): Execute normal command.
39223 (grub_main): Call grub_register_core_commands,
39224 grub_register_rescue_parser and grub_register_rescue_reader, use
39225 grub_reader_loop to enter input loop.
39226
39227 * kern/parser.c (grub_parser_split_cmdline): Change type of
39228 getline parameter.
39229 (grub_parser_class): New variable.
39230 (grub_parser_execute): New function.
39231
39232 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39233 * loader/multiboot2.c: Likewise.
39234 * loader/sparc64/ieee1275/linux.c: Likewise.
39235
39236 * util/grub-emu.c (read_command_list): New dummy function.
39237
39238 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39239
39240 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39241 count to 16 for CCISS and IDA.
39242
39243 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39244
39245 * normal/menu_text.c (grub_wait_after_message): Print a newline
39246 after waiting for user input.
39247
39248 * loader/i386/linux.c: Include `<grub/normal.h>'.
39249 (grub_cmd_linux): Improve the error message about `ask' mode, by
39250 waiting for user input so it's not missed (we can do this, since
39251 user requested interaction).
39252
39253 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39254
39255 Added missing lst to grub-mkrescue
39256
39257 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39258 and ${input_dir}/parttool.lst
39259
39260 2009-04-30 David S. Miller <davem@davemloft.net>
39261
39262 * util/hostdisk.c (device_is_wholedisk): New function.
39263 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39264 zero only if device_is_wholedisk() returns true.
39265
39266 * util/hostdisk.c (convert_system_partition_to_system_disk):
39267 Handle virtual disk devices named /dev/vdiskX as found on sparc
39268 and powerpc.
39269
39270 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39271 lettered partition specifier is found, convert to numbered.
39272
39273 2009-04-29 David S. Miller <davem@davemloft.net>
39274
39275 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39276 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39277
39278 * normal/command.c: Add missing newline at end of file.
39279
39280 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39281 warnings.
39282 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39283 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39284 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39285 ihandles have a 32-bit type but need to be stored in a "void *".
39286
39287 2009-04-28 Pavel Roskin <proski@gnu.org>
39288
39289 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39290 not disk. Adjust all dependencies.
39291 (grub_fs_uuid_close): Use grub_device_close(), not
39292 grub_disk_close().
39293
39294 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39295 parent's partition, don't copy it by reference, as it gets freed
39296 on close.
39297
39298 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39299
39300 Preboot hooks support
39301
39302 * commands/boot.c (struct grub_preboot_t): new declaration
39303 (preboots_head): new variable
39304 (preboots_tail): likewise
39305 (grub_loader_register_preboot_hook): new function
39306 (grub_loader_unregister_preboot_hook): likewise
39307 (grub_loader_set): launch preboot hooks
39308 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39309 (grub_loader_register_preboot_hook): new declaration
39310 (grub_loader_unregister_preboot_hook): likewise
39311
39312 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39313
39314 Warning fix
39315
39316 * disk/scsi.c (grub_scsi_open): added missing cast when
39317 calling grub_dprintf
39318
39319 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39320
39321 Bug and warning fixes
39322
39323 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39324 declaration
39325 * commands/test.c (test_parse): fixed bug with file tests and corrected
39326 declaration of find_file
39327
39328 2009-04-26 Pavel Roskin <proski@gnu.org>
39329
39330 * Makefile.in: Don't install empty manual pages if help2man is
39331 missing. Use help2man option for output, not shell redirection.
39332
39333 2009-04-26 David S. Miller <davem@davemloft.net>
39334
39335 * util/grub-mkdevicemap.c (make_device_map): Add missing
39336 NESTED_FUNC_ATTR to process_device().
39337
39338 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39339
39340 Test command
39341
39342 * commands/test.c: rewritten to use bash-like test
39343
39344 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39345
39346 Parttool autoloading and improvements
39347
39348 * Makefile.in (pkglib_DATA): add parttool.lst
39349 (parttool.lst): new target
39350 * genmk.rb: generate parttool-*
39351 (CLEANFILES): add #{parttool}
39352 (PARTTOOLFILES): new variable
39353 * genparttoollist.sh: new file
39354 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39355 (grub_pcpart_type): likewise
39356 * commands/parttool.c (helpmsg): new variable
39357 (grub_cmd_parttool): output help if not enough arguments are supplied
39358 autoload modules
39359 (GRUB_MOD_INIT(parttool)): use helpmsg
39360
39361 2009-04-24 David S. Miller <davem@davemloft.net>
39362
39363 Avoiding opening same device multiple times in device iterator.
39364
39365 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39366 and use it to build a list of partitions in iterate_disk() and
39367 iterate_partition().
39368
39369 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39370 on disk->data.
39371
39372 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39373 grub_devalias_iterate() result instead of unconditional 0.
39374 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39375 Also, capture hook return value, either directly or via
39376 grub_children_iterate(), and propagate to caller.
39377 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39378 grub_children_iterate): Return value is now 'int' instead of
39379 'grub_err_t'.
39380 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39381 like a proper iterator, stopping when hooks return non-zero.
39382 (grub_devalias_iterate): Likewise.
39383
39384 2009-04-23 David S. Miller <davem@davemloft.net>
39385
39386 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39387
39388 2009-04-22 David S. Miller <davem@davemloft.net>
39389
39390 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39391 is larger than address_cells, use that value for address_cells too.
39392
39393 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39394 IEEE1275_MAX_PATH_LEN): Define.
39395 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39396 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39397 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39398 'devtype'. Explicitly NULL terminate devalias expansion.
39399
39400 * util/sparc64/ieee1275/misc.c: New file.
39401 * util/sparc64/ieee1275/grub-setup.c: New file.
39402 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39403 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39404 * util/sparc64/ieee1275/grub-install.in: New file.
39405 * util/ieee1275/ofpath.c: New file.
39406 * util/ieee1275/devicemap.c: New file.
39407 * util/devicemap.c: New file.
39408 * util/deviceiter.c: New file.
39409 * kern/sparc64/ieee1275/init.c: New file.
39410 * include/grub/util/ofpath.h: New file.
39411 * include/grub/util/deviceiter.h: New file.
39412 * util/grub-mkdevicemap.c: Include deviceiter.h.
39413 Implement using grub_util_emit_devicemap_entry and
39414 grub_util_iterate_devices.
39415 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39416 util/devicemap.c into grub-mkdevicemap
39417 * conf/i386-efi.rmk: Likewise.
39418 * conf/i386-ieee1275.rmk: Likewise.
39419 * conf/i386-pc.rmk: Likewise.
39420 * conf/powerpc-ieee1275.rmk: Likewise.
39421 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39422 images and installation utilities. Build kernel as image
39423 instead of as elf binary. Use common rules as much as possible.
39424
39425 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39426
39427 Correct GPT definition
39428
39429 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39430 of "attrib" member
39431
39432 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39433
39434 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39435
39436 2009-04-19 David S. Miller <davem@davemloft.net>
39437
39438 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39439 (grub_rescue_cmd_linux): Rename to...
39440 (grub_cmd_linux): and fix prototype.
39441 (grub_rescue_cmd_initrd): Rename to...
39442 (grub_cmd_initrd): and fix prototype.
39443 (cmd_linux, cmd_initrd): New.
39444 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39445 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39446
39447 2009-04-17 Pavel Roskin <proski@gnu.org>
39448
39449 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39450 format.
39451 (grub_ohci_transfer): Likewise.
39452
39453 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39454
39455 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39456 return without a value. Fix inconsistent indentation.
39457
39458 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39459 match struct grub_fs.
39460
39461 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39462 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39463 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39464 * commands/lspci.c (grub_lspci_iter): Likewise.
39465
39466 2009-04-16 Bean <bean123ch@gmail.com>
39467
39468 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39469 value.
39470
39471 2009-04-15 Pavel Roskin <proski@gnu.org>
39472
39473 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39474 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39475 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39476 definitions.
39477
39478 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39479
39480 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39481 that no multiple data or metadata areas are supported and `Unknown
39482 metadata header'.
39483
39484 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39485
39486 Move loader out of the kernel
39487
39488 * kern/loader.c: moved to ...
39489 * commands/boot.c: ... moved here
39490 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39491 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39492 * include/grub/kernel.h (grub_machine_fini): export
39493 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39494 (grub_loader_set): likewise
39495 (grub_loader_unset): likewise
39496 (grub_loader_boot): likewise
39497 * conf/common.rmk: new module boot.mod
39498 (pkglib_MODULES): add boot.mod
39499 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39500 (grub_emu_SOURCES): likewise
39501 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39502 (grub_emu_SOURCES): likewise
39503 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39504 (grub_emu_SOURCES): likewise
39505 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39506 (grub_emu_SOURCES): likewise
39507 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39508 (grub_emu_SOURCES): likewise
39509 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39510 (grub_emu_SOURCES): likewise
39511 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39512 (grub_emu_SOURCES): likewise
39513
39514 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39515
39516 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39517
39518 * kern/misc.c (grub_itoa): Removed function
39519 (grub_ltoa): likewise
39520 (grub_vsprintf): use grub_lltoa
39521
39522 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39523
39524 Restore grub-emu
39525
39526 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39527 * conf/i386-coreboot.rmk: likewise
39528 * conf/i386-ieee1275.rmk: likewise
39529 * conf/powerpc-ieee1275.rmk: likewise
39530
39531 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39532
39533 * INSTALL: Add that `./autogen.sh' needs to be run before
39534 `./configure.'.
39535
39536 2009-04-14 Bean <bean123ch@gmail.com>
39537
39538 * Makefile.in (pkglib_DATA): Add handler.lst.
39539 (handler.lst): New rule.
39540
39541 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39542 * conf/i386-coreboot.rmk: Likewise.
39543 * conf/i386-ieee1275.rmk: Likewise.
39544 * conf/i386-efi.rmk: Likewise.
39545 * conf/x86_64-efi.rmk: Likewise.
39546 * conf/powerpc-ieee1275.rmk: Likewise.
39547 * conf/sparc64-ieee1275.rmk: Likewise.
39548
39549 * genhandlerlist.sh: New file.
39550
39551 * genmk.rb: Add rules to generate handler.lst.
39552
39553 * include/grub/normal.h (grub_file_getline): New function definition.
39554 (read_handler_list): Likewise.
39555 (free_handler_list): Likewise.
39556
39557 * include/grub/term.h (grub_term_register_input): Add name parameter
39558 for auto generation of handler.lst.
39559 (grub_term_register_output): Likewise.
39560
39561 * normal/handler.c: New file.
39562
39563 * normal/main.c (get_line): Renamed to grub_file_getline.
39564 (read_config_file): Use the newly renamed grub_file_getline.
39565 (read_command_list): Likewise.
39566 (read_fs_list): Likewise.
39567 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39568 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39569
39570 * term/efi/console.c (grub_console_init): Add name parameter for auto
39571 generation of handler.lst.
39572 * term/gfxterm.c: Likewise.
39573 * term/i386/pc/at_keyboard.c: Likewise.
39574 * term/i386/pc/console.c: Likewise.
39575 * term/i386/pc/serial.c: Likewise.
39576 * term/i386/pc/vesafb.c: Likewise.
39577 * term/i386/pc/vga.c: Likewise.
39578 * term/i386/pc/vga_text.c: Likewise.
39579 * term/ieee1275/ofconsole.c: Likewise.
39580 * term/usb_keyboard.c: Likewise.
39581
39582 2009-04-14 Bean <bean123ch@gmail.com>
39583
39584 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39585 properly with null character.
39586
39587 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39588
39589 * configure: Remove.
39590 * config.h.in: Likewise.
39591 * stamp-h.in: Likewise.
39592 * DISTLIST: Likewise.
39593 * conf/common.mk: Likewise.
39594 * conf/i386-coreboot.mk: Likewise.
39595 * conf/i386-efi.mk: Likewise.
39596 * conf/i386-ieee1275.mk: Likewise.
39597 * conf/i386.mk: Likewise.
39598 * conf/i386-pc.mk: Likewise.
39599 * conf/powerpc-ieee1275.mk: Likewise.
39600 * conf/sparc64-ieee1275.mk: Likewise.
39601 * conf/x86_64-efi.mk: Likewise.
39602
39603 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39604 develop on GRUB.
39605
39606 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39607 David S. Miller <davem@davemloft.net>
39608
39609 * util/hostdisk.c (make_device_name): Fix buffer length
39610 calculations.
39611
39612 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39613
39614 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39615 <sys/param.h> and <sys/sysctl.h>.
39616 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39617 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39618 opening the device and reset them afterwards.
39619
39620 2009-04-13 Pavel Roskin <proski@gnu.org>
39621
39622 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39623 Reported by John Stanley <jpsinthemix@verizon.net>
39624
39625 2009-04-13 Robert Millan <rmh@aybabtu.com>
39626
39627 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39628 that name for menuentries when appropriate.
39629
39630 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39631
39632 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39633
39634 2009-04-13 Robert Millan <rmh@aybabtu.com>
39635
39636 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39637 to Linux, simply abort telling the user it's no longer supported.
39638
39639 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39640
39641 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39642 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39643 `freebsd_loadenv' only when devices.hints exist.
39644
39645 2009-04-13 Pavel Roskin <proski@gnu.org>
39646
39647 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39648
39649 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39650
39651 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39652 partition number.
39653 (grub_drive): Likewise.
39654
39655 2009-04-13 David S. Miller <davem@davemloft.net>
39656
39657 * kern/sparc64/ieee1275/ieee1275.c: New file.
39658 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39659 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39660 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39661 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39662 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39663 grub_ieee1275_alloc_physmem): Declare new exported functions.
39664
39665 * include/grub/sparc64/ieee1275/loader.h: New file.
39666 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39667 * include/grub/sparc64/kernel.h: Likewise.
39668 * loader/sparc64/ieee1275/linux.c: Likewise.
39669
39670 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39671 (grub_fstest_SOURCES): Likewise.
39672
39673 * util/hostdisk.c (make_device_name): Do not make any assumptions
39674 about the length of drive names.
39675
39676 * kern/dl.c (grub_dl_load_file): Close file immediately when
39677 we are done using it.
39678
39679 2009-04-12 David S. Miller <davem@davemloft.net>
39680
39681 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39682 values. Noticed by Pavel Roskin.
39683
39684 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39685 target compiler.
39686
39687 * genmk.rb: Add more flexible image type specification, also
39688 pass --strip-unneeded to objcopy.
39689 * conf/i386-pc.rmk: Use *_FORMAT.
39690 * conf/i386-pc.mk: Rebuilt.
39691
39692 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39693 (OFDISK_HASH_SZ): Define.
39694 (ofdisk_hash): New hash table.
39695 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39696 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39697 instead of device phandle which is not unique.
39698
39699 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39700 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39701 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39702 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39703 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39704 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39705 GRUB_KERNEL_MACHINE_DATA_END): Define.
39706 (grub_kernel_image_size, grub_total_module_size): Declare.
39707
39708 2009-04-12 Pavel Roskin <proski@gnu.org>
39709
39710 * configure.ac: Change the logic when we check for target tools.
39711 Do it when the target is specified and it's different from the
39712 specified value of the host.
39713
39714 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39715
39716 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39717 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39718 GNU/kFreeBSD. Check if a device is a character device. Use
39719 DIOCGMEDIASIZE to get the size.
39720 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39721 support for GNU/kFreeBSD.
39722 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39723 is a character device instead of a block device. Add support for
39724 FreeBSD device names.
39725
39726 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39727 is a character device instead of a block device.
39728
39729 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39730 is a character device instead of a block device.
39731
39732 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39733
39734 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39735 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39736 FreeBSD. Check if a device is a character device. Use
39737 DIOCGMEDIASIZE to get the size.
39738 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39739 support for FreeBSD.
39740 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39741 is a character device instead of a block device. Add support for
39742 FreeBSD device names.
39743
39744 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39745 a character device instead of a block device.
39746 (grub_util_check_char_device): New function.
39747
39748 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39749 a character device instead of a block device.
39750
39751 * include/grub/util/getroot.h (grub_util_check_char_device): New
39752 prototype.
39753
39754 2009-04-11 David S. Miller <davem@davemloft.net>
39755
39756 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39757 static libgcc.
39758 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39759 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39760 function, if present.
39761 (__bswapdi2): Likewise.
39762
39763 * include/grub/sparc64/ieee1275/boot.h: New file.
39764 * boot/sparc64/ieee1275/boot.S: Likewise.
39765 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39766
39767 * kern/misc.c (grub_ltoa): New function.
39768 (grub_vsprintf): Use it to format 'long' integers.
39769
39770 2009-04-10 David S. Miller <davem@davemloft.net>
39771
39772 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39773 slots are of type grub_ieee1275_cell_t.
39774 (grub_nand_read): Likewise.
39775 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39776 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39777 macros are used to compare values in arg/ret block of the call.
39778 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39779 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39780 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39781 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39782 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39783 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39784 grub_ieee1275_close, grub_ieee1275_set_property,
39785 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39786 grub_ieee1275_cell_t.
39787 * kern/ieee1275/openfw.c (grub_map): Likewise.
39788 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39789 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39790
39791 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39792 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39793 (grub_devalias_iterate): Likewise.
39794
39795 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39796
39797 UFS improvements
39798
39799 * fs/ufs.c (INODE_NBLOCKS): new definition
39800 (struct grub_ufs_dirent): added fields for non-BSD dirents
39801 (grub_ufs_get_file_block): fixed double indirect handling
39802 (grub_ufs_lookup_symlink): use more robust way to determine whether
39803 symlink is inline
39804 (grub_ufs_find_file): support for non-BSD dirents
39805 (grub_ufs_dir): support for non-BSD dirents
39806
39807 2009-04-10 Bean <bean123ch@gnail.com>
39808
39809 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39810 attribute, otherwise the size would be wrong for i386 platform.
39811
39812 * include/grub/pci.h (grub_pci_read_word): New inline function.
39813 (grub_pci_read_byte): Likewise.
39814 (grub_pci_write): Likewise.
39815 (grub_pci_write_word): Likewise.
39816 (grub_pci_write_byte): Likewise.
39817
39818 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39819
39820 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39821 (find_framebuf): Scan pci to locate the frame buffer address.
39822
39823 * commands/efi/fixvideo.c: New file.
39824
39825 * commands/efi/loadbios.c: Likewise.
39826
39827 * commands/memrw.c: Likewise.
39828
39829 * util/grub-dumpbios.in: Likewise.
39830
39831 * conf/common.rmk (grub-dumpbios): New utility.
39832 (pkglib_MODULES): New module memrw.mod.
39833 (memrw_mod_SOURCE): New macro.
39834 (memrw_mod_CFLAGS): Likewise.
39835 (memrw_mod_LDFLAGS): Likewise.
39836
39837 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39838 fixvideo.mod.
39839 (loadbios_mod_SOURCE): New macro.
39840 (loadbios_mod_CFLAGS): Likewise.
39841 (loadbios_mod_LDFLAGS): Likewise.
39842 (fixvideo_mod_SOURCE): Likewise.
39843 (fixvideo_mod_CFLAGS): Likewise.
39844 (fixvideo_mod_LDFLAGS): Likewise.
39845
39846 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39847 fixvideo.mod.
39848 (loadbios_mod_SOURCE): New macro.
39849 (loadbios_mod_CFLAGS): Likewise.
39850 (loadbios_mod_LDFLAGS): Likewise.
39851 (fixvideo_mod_SOURCE): Likewise.
39852 (fixvideo_mod_CFLAGS): Likewise.
39853 (fixvideo_mod_LDFLAGS): Likewise.
39854
39855 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39856
39857 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39858
39859 2009-04-07 David S. Miller <davem@davemloft.net>
39860
39861 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39862 support for R_SPARC_OLO10 relocations. Fix compile warning for
39863 R_SPARC_WDISP30 case.
39864 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39865
39866 2009-04-06 Pavel Roskin <proski@gnu.org>
39867
39868 * include/grub/misc.h (ARRAY_SIZE): New macro.
39869 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39870 New macro.
39871 * loader/i386/linux.c (allocate_pages): Use free_pages().
39872 (grub_linux_unload): Don't use free_pages().
39873 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39874 wrong index. Treat all other modes as text modes.
39875 (grub_cmd_linux): Initialize vid_mode unconditionally to
39876 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39877
39878 * commands/help.c (print_command_help): Use cmd->prio, not
39879 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39880
39881 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39882
39883 Parttool
39884
39885 * parttool/pcpart.c: new file
39886 * commands/parttool.c: likewise
39887 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39888 (parttool_mod_SOURCES): new variable
39889 (parttool_mod_CFLAGS): likewise
39890 (parttool_mod_LDFLAGS): likewise
39891 (pcpart_mod_SOURCES): likewise
39892 (pcpart_mod_CFLAGS): likewise
39893 (pcpart_mod_LDFLAGS): likewise
39894 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39895 and parttool/pcpart.c
39896 * conf/i386-efi.rmk: likewise
39897 * conf/i386-ieee1275.rmk: likewise
39898 * conf/i386-pc.rmk: likewise
39899 * conf/powerpc-ieee1275.rmk: likewise
39900 * conf/sparc64-ieee1275.rmk: likewise
39901 * conf/x86_64-ieee1275.rmk: likewise
39902
39903 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39904
39905 Support for mtime and further expandability of dir command
39906
39907 * include/grub/lib/datetime.h: moved to ...
39908 * include/grub/datetime.h: ... moved here and added
39909 declaration of grub_unixtime2datetime. All users updated
39910 * include/grub/fs.h: new syntax for dir and mtime functions in
39911 struct grub_fs
39912 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39913 and GRUB_FSHELP_FLAGS_MASK
39914 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39915 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39916 (grub_ext2_mtime): new function
39917 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39918 (grub_hfsplus_mtime): new function
39919 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39920 (GRUB_UFS_ATTR_FILE): likewise
39921 (GRUB_UFS_ATTR_LNK): likewise
39922 (struct grub_ufs_sblock): new fields mtime
39923 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39924 all users updated
39925 (grub_ufs_dir): mtime support
39926 (grub_ufs_mtime): new function
39927 * fs/affs.c (grub_affs_dir): use new dir syntax
39928 * fs/afs.c (grub_afs_dir): likewise
39929 * fs/cpio.c (grub_cpio_dir): likewise
39930 * fs/fat.c (grub_fat_find_dir): likewise
39931 * fs/hfs.c (grub_hfs_dir): likewise
39932 * fs/iso9660.c (grub_iso9660_dir): likewise
39933 * fs/jfs.c (grub_jfs_dir): likewise
39934 * fs/minix.c (grub_minix_dir): likewise
39935 * fs/ntfs.c (grub_ntfs_dir): likewise
39936 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39937 * fs/sfs.c (grub_sfs_dir): likewise
39938 * fs/xfs.c (grub_xfs_dir): likewise
39939 * util/hostfs.c (grub_hostfs_dir): likewise
39940 * lib/datetime.c: moved to ...
39941 * normal/datetime.c: ... moved here
39942 (grub_unixtime2datetime): new function
39943 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39944 * normal/completion.c (iterate_dir): use new dir syntax
39945 * normal/misc.c (grub_normal_print_device_info): tell the
39946 last modification time of a volume
39947 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39948 * conf/common.rmk: added lib/datetime.c to ls.mod
39949 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39950 (normal_mod_SOURCES): likewise
39951 (datetime_mod_SOURCES): Removed lib/datetime.c
39952 * conf/i386-efi.rmk: likewise
39953 * conf/i386-ieee1275.rmk: likewise
39954 * conf/i386-pc.rmk: likewise
39955 * conf/powerpc-ieee1275.rmk: likewise
39956 * conf/sparc64-ieee1275.rmk: likewise
39957 * conf/x86_64-efi.rmk: likewise
39958
39959 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39960
39961 Trim trailing spaces in FAT label and support mtools-like labels
39962
39963 * fs/fat.c (grub_fat_iterate_dir): New function based
39964 on grub_fat_find_dir
39965 (grub_fat_find_dir): use grub_fat_iterate_dir
39966 (grub_fat_label): likewise
39967
39968 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39969
39970 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39971 and command.h
39972 remove extraneous kernel_elf_HEADERS
39973
39974 2009-04-04 Bean <bean123ch@gnail.com>
39975
39976 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39977
39978 * util/misc.c: Likewise.
39979
39980 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39981
39982 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
39983 instead of grub_printf.
39984
39985 2009-04-03 Robert Millan <rmh@aybabtu.com>
39986
39987 * loader/i386/linux.c (grub_linux_setup_video): Fill
39988 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
39989 values from `mode info' structure instead of hardcoded
39990 values.
39991
39992 2009-04-01 Pavel Roskin <proski@gnu.org>
39993
39994 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
39995 unused now.
39996 * genmk.rb: Likewise.
39997 * configure.ac: Likewise.
39998
39999 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40000
40001 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40002 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40003
40004 2009-04-01 David S. Miller <davem@davemloft.net>
40005
40006 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40007 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40008 (grub_setjmp): Mark with 'returns_twice' attribute.
40009 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40010 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40011 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40012
40013 2009-04-01 Robert Millan <rmh@aybabtu.com>
40014
40015 Reapply fix from 2008-07-28 which was accidentally reverted; also
40016 perform the same fix to a similar check in same function.
40017
40018 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40019 with the same number are found, just use issue a warning with
40020 grub_dprintf(), as this error has been reported to be non-fatal.
40021
40022 2009-03-31 Pavel Roskin <proski@gnu.org>
40023
40024 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40025 for cross-compilation.
40026
40027 2009-03-30 Robert Millan <rmh@aybabtu.com>
40028
40029 Fix i386-ieee1275 build.
40030
40031 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40032 Remove declaration.
40033
40034 2009-03-30 Pavel Roskin <proski@gnu.org>
40035
40036 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40037 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40038 zero-terminated, rely only on the strlen value. Fix comparison
40039 of strings differing in length.
40040
40041 2009-03-30 Robert Millan <rmh@aybabtu.com>
40042
40043 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40044 checking for abi version. Improve error messages on BIOS to notify
40045 user about `linux16' command.
40046
40047 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40048
40049 Leak fixes
40050
40051 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40052 in case of collision
40053 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40054
40055 2009-03-29 Robert Millan <rmh@aybabtu.com>
40056
40057 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40058 set `vid_mode' accordingly.
40059 (grub_linux_boot): Process `vid_mode' and set video mode.
40060
40061 2009-03-29 Robert Millan <rmh@aybabtu.com>
40062
40063 * util/grub.d/10_linux.in (linux_entry): New function.
40064 Factorize generation of Linux boot entries.
40065
40066 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40067
40068 Make the format of Environment Block plain text. The boot loader
40069 part is not tested well yet.
40070
40071 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40072 (buffer): Removed.
40073 (envblk): Likewise.
40074 (usage): Remove "info" and "clear". Add "unset". Update the
40075 description of "set", as this does not delete variables any
40076 longer.
40077 (create_envblk_file): Complete rewrite.
40078 (open_envblk_file): Likewise.
40079 (cmd_info): Removed.
40080 (cmd_list): Likewise.
40081 (cmd_set): Likewise.
40082 (cmd_clear): Likewise.
40083 (list_variables): New function.
40084 (write_envblk): Likewise.
40085 (set_variables): Likewise.
40086 (unset_variables): Likewise.
40087 (main): Complete rewrite.
40088
40089 * commands/loadenv.c (buffer): Removed.
40090 (envblk): Likewise.
40091 (open_envblk_file): New function.
40092 (read_envblk_file): Complete rewrite.
40093 (grub_cmd_load_env): Likewise.
40094 (grub_cmd_list_env): Likewise.
40095 (struct blocklist): New struct.
40096 (free_blocklists): New function.
40097 (check_blocklists): Likewise.
40098 (write_blocklists): Likewise.
40099 (grub_cmd_save_env): Complete rewrite.
40100
40101 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40102 a plain text signature.
40103 (GRUB_ENVBLK_MAXLEN): Removed.
40104 (struct grub_envblk): Complete rewrite.
40105 (grub_envblk_find): Removed.
40106 (grub_envblk_insert): Likewise.
40107 (grub_envblk_open): New prototype.
40108 (grub_envblk_set): Likewise.
40109 (grub_envblk_delete): Put const to VALUE.
40110 (grub_envblk_iterate): Put const to NAME and VALUE.
40111 (grub_envblk_close): New prototype.
40112 (grub_envblk_buffer): New inline function.
40113 (grub_envblk_size): Likewise.
40114
40115 * lib/envblk.c: Include grub/mm.h.
40116 (grub_env_find): Removed.
40117 (grub_envblk_open): New function.
40118 (grub_envblk_close): Likewise.
40119 (escaped_value_len): Likewise.
40120 (find_next_line): Likewise.
40121 (grub_envblk_insert): Removed.
40122 (grub_envblk_set): New function.
40123 (grub_envblk_delete): Complete rewrite.
40124 (grub_envblk_iterate): Likewise.
40125
40126 2009-03-28 Robert Millan <rmh@aybabtu.com>
40127
40128 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40129 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40130 variables. Use 16-bit loader.
40131 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40132 loader.
40133 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40134 (grub_linux16_boot): ... this. Update all users.
40135 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40136 (grub_linux_boot): ... this. Update all users.
40137
40138 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40139 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40140 commands to `linux16' and `initrd16'.
40141 (GRUB_MOD_FINI(linux)): Rename to ...
40142 (GRUB_MOD_FINI(linux16)): ... this.
40143
40144 2009-03-24 Pavel Roskin <proski@gnu.org>
40145
40146 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40147 not just for compilation.
40148
40149 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40150
40151 Move multiboot helper out of kernel
40152
40153 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40154 `loader/i386/multiboot_helper.S'.
40155 * conf/i386-coreboot.rmk: Likewise
40156 * conf/i386-ieee1275.rmk: Likewise
40157
40158 * kern/i386/loader.S: Move multiboot helpers from here...
40159 * loader/i386/multiboot_helper.S: ...moved here
40160 * include/grub/i386/loader.h: Move declarations of multiboot
40161 helpers from here...
40162 * include/grub/i386/multiboot.h: ...moved here
40163 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40164
40165 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40166
40167 * kern/env.c (grub_env_context_open): Added an argument to specify
40168 whether a new context inherits exported variables from current
40169 one. This is useful when making a sandbox to interpret a config
40170 file.
40171 All callers updated.
40172
40173 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40174
40175 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40176
40177 * kern/env.c (grub_env_context_close): Fix memory leaks.
40178
40179 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40180
40181 * normal/main.c (grub_normal_execute): Added an argument
40182 BATCH to specify if an interactive interface should be provided
40183 after reading a config file.
40184 All callers updated.
40185 (read_command_list): Prevent being executed twice.
40186 (read_fs_list): Likewise.
40187
40188 * include/grub/normal.h (grub_normal_execute): Updated the
40189 prototype.
40190
40191 2009-03-22 Pavel Roskin <proski@gno.org>
40192
40193 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40194 _start.
40195 * kern/i386/pc/startup.S: Likewise.
40196 * kern/i386/efi/startup.S: Likewise.
40197 * kern/i386/ieee1275/startup.S: Likewise.
40198 * kern/i386/coreboot/startup.S: Likewise.
40199 * kern/x86_64/efi/startup.S: Likewise.
40200
40201 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40202 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40203 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40204
40205 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40206
40207 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40208
40209 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40210 limit detection.
40211 Use vaddr of correct segment for entry_point.
40212
40213 2009-03-21 Bean <bean123ch@gmail.com>
40214
40215 * commands/blocklist.c: Add include file <grub/command.h>, remove
40216 <grub/normal.h> and <grub/arg.h>.
40217 (grub_cmd_blocklist): Use the new command interface.
40218 (GRUB_MOD_INIT): Likewise.
40219 (GRUB_MOD_FINI): Likewise.
40220 * commands/boot.c: Likewise.
40221 * commands/cat.c: Likewise.
40222 * commands/cmp.c: Likewise.
40223 * commands/configfile.c: Likewise.
40224 * commands/crc.c: Likewise.
40225 * commands/echo.c: Likewise.
40226 * commands/halt.c: Likewise.
40227 * commands/handler.c: Likewise.
40228 * commands/hdparm.c: Likewise.
40229 * commands/help.c: Likewise.
40230 * commands/hexdump.c: Likewise.
40231 * commands/loadenv.c: Likewise.
40232 * commands/ls.c: Likewise.
40233 * commands/lsmmap.c: Likewise.
40234 * commands/lspci.c: Likewise.
40235 * commands/loadenv.c: Likewise.
40236 * commands/read.c: Likewise.
40237 * commands/reboot.c: Likewise.
40238 * commands/search.c: Likewise.
40239 * commands/sleep.c: Likewise.
40240 * commands/test.c: Likewise.
40241 * commands/usbtest.c: Likewise.
40242 * commands/videotest.c: Likewise.
40243 * commands/i386/cpuid.c: Likewise.
40244 * commands/i386/pc/halt.c: Likewise.
40245 * commands/i386/pc/play.c: Likewise.
40246 * commands/i386/pc/pxecmd.c: Likewise.
40247 * commands/i386/pc/vbeinfo.c: Likewise.
40248 * commands/i386/pc/vbetest.c: Likewise.
40249 * commands/ieee1275/suspend.c: Likewise.
40250 * disk/loopback.c: Likewise.
40251 * font/font_cmd.c: Likewise.
40252 * hello/hello.c: Likewise.
40253 * loader/efi/appleloader.c: Likewise.
40254 * loader/efi/chainloader.c: Likewise.
40255 * loader/i386/bsd.c: Likewise.
40256 * loader/i386/efi/linux.c: Likewise.
40257 * loader/i386/ieee1275/linux.c: Likewise.
40258 * loader/i386/linux.c: Likewise.
40259 * loader/i386/pc/chainloader.c: Likewise.
40260 * loader/i386/pc/linux.c: Likewise.
40261 * loader/powerpc/ieee1275/linux.c: Likewise.
40262 * loader/multiboot_loader.c: Likewise.
40263 * term/gfxterm.c: Likewise.
40264 * term/i386/pc/serial.c: Likewise.
40265 * term/terminfo.c: Likewise.
40266
40267 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40268 * term/i386/pc/vga.c: Likewise.
40269 * video/readers/jpeg.c: Likewise.
40270 * video/readers/png.c: Likewise.
40271 * video/readers/tga.c: Likewise.
40272
40273 * util/grub-fstest (cmd_loopback): Removed.
40274 (cmd_blocklist): Likewise.
40275 (cmd_ls): Likewise.
40276 (grub_register_command): Likewise.
40277 (grub_unregister_command): Likewise.
40278 (execute_command): Use grub_command_find to locate command and execute
40279 it.
40280
40281 * include/grub/efi/chainloader.h: Removed.
40282 * loader/efi/chainloader_normal.c: Likewise.
40283 * loader/i386/bsd_normal.c: Likewise.
40284 * loader/i386/pc/chainloader_normal.c: Likewise.
40285 * loader/i386/pc/multiboot_normal.c: Likewise.
40286 * loader/linux_normal.c: Likewise.
40287 * loader/multiboot_loader_normal.c: Likewise.
40288 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40289
40290 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40291 and grub_register_command_p1.
40292
40293 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40294 kern/command.c, lib/arg.c and commands/extcmd.c.
40295 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40296 (minicmd_mod_SOURCES): New variable.
40297 (minicmd_mod_CFLAGS): Likewise.
40298 (minicmd_mod_LDFLAGS): Likewise.
40299 (extcmd_mod_SOURCES): Likewise.
40300 (extcmd_mod_CFLAGS): Likewise.
40301 (extcmd_mod_LDFLAGS): Likewise.
40302 (boot_mod_SOURCES): Removed.
40303 (boot_mod_CFLAGS): Likewise.
40304 (boot_mod_LDFLAGS): Likewise.
40305
40306 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40307 kern/corecmd.c.
40308 (kernel_img_HEADERS): Add command.h.
40309 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40310 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40311 and lib/arg.c.
40312 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40313 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40314 remove the corresponding normal mode command.
40315 (normal_mod_SOURCES): Remove normal/arg.c.
40316 * conf/i386-coreboot.rmk: Likewise.
40317 * conf/i386-efi.rmk: Likewise.
40318 * conf/i386-ieee1275.rmk: Likewise.
40319 * conf/powerpc-ieee1275.rmk: Likewise.
40320 * conf/x86_64-efi.rmk: Likewise.
40321
40322 * include/grub/arg.h: Move from here ...
40323 * include/grub/lib/arg.h: ... to here.
40324
40325 * normal/arg.c: Move from here ...
40326 * lib/arg.c: ... to here.
40327
40328 * commands/extcmd.c: New file.
40329 * commands/minicmd.c: Likewise.
40330 * include/grub/command.h: Likewise.
40331 * include/grub/extcmd.h: Likewise.
40332 * kern/command.c: Likewise.
40333 * kern/corecmd.c: Likewise.
40334
40335 * kern/list.c (grub_list_iterate): Return int instead of void.
40336 (grub_list_insert): New function.
40337 (grub_prio_list_insert): Likewise.
40338
40339 * kern/rescue.c (grub_rescue_command): Removed.
40340 (grub_rescue_command_list): Likewise.
40341 (grub_rescue_register_command): Likewise.
40342 (grub_rescue_unregister_command): Likewise.
40343 (grub_rescue_cmd_boot): Move to minicmd.c
40344 (grub_rescue_cmd_help): Likewise.
40345 (grub_rescue_cmd_info): Likewise.
40346 (grub_rescue_cmd_boot): Likewise.
40347 (grub_rescue_cmd_testload): Likewise.
40348 (grub_rescue_cmd_dump): Likewise.
40349 (grub_rescue_cmd_rmmod): Likewise.
40350 (grub_rescue_cmd_lsmod): Likewise.
40351 (grub_rescue_cmd_exit): Likewise.
40352 (grub_rescue_print_devices): Moved to corecmd.c.
40353 (grub_rescue_print_files): Likewise.
40354 (grub_rescue_cmd_ls): Likewise.
40355 (grub_rescue_cmd_insmod): Likewise.
40356 (grub_rescue_cmd_set): Likewise.
40357 (grub_rescue_cmd_unset): Likewise.
40358 (attempt_normal_mode): Use grub_command_find to get normal module.
40359 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40360 commands, remove grub_rescue_register_command calls.
40361
40362 * normal/command.c (grub_register_command): Removed.
40363 (grub_unregister_command): Likewise.
40364 (grub_command_find): Likewise.
40365 (grub_iterate_commands): Likewise.
40366 (rescue_command): Likewise.
40367 (export_command): Moved to corecmd.c.
40368 (set_command): Removed.
40369 (unset_command): Likewise.
40370 (insmod_command): Likewise.
40371 (rmmod_command): Likewise.
40372 (lsmod_command): Likewise.
40373 (grub_command_init): Likewise.
40374
40375 * normal/completion.c (iterate_command): Use cmd->prio to check for
40376 active command.
40377 (complete_arguments): Use grub_extcmd_t structure to find options.
40378 (grub_normal_do_completion): Change function grub_iterate_commands to
40379 grub_command_iterate.
40380
40381 * normal/execute.c (grub_script_execute_cmd): No need to parse
40382 argument here.
40383
40384 * normal/main.c (grub_dyncmd_dispatcher): New function.
40385 (read_command_list): Register unload commands as dyncmd.
40386 (grub_cmd_normal): Use new command interface, register rescue,
40387 unregister normal at entry, register normal, unregister rescue at exit.
40388
40389 * include/grub/list.h (grub_list_test_t): New type.
40390 (grub_list_iterate): Return int instead of void.
40391 (grub_list_insert): New function.
40392 (GRUB_AS_NAMED_LIST_P): New macro.
40393 (GRUB_AS_PRIO_LIST): Likewise.
40394 (GRUB_AS_PRIO_LIST_P): Likewise.
40395 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40396 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40397 (grub_prio_list): New structure.
40398 (grub_prio_list_insert): New function.
40399 (grub_prio_list_remove): New inline function.
40400
40401 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40402 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40403 (GRUB_COMMAND_FLAG_MENU): Likewise.
40404 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40405 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40406 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40407 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40408 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40409 (grub_command): Likewise.
40410 (grub_register_command): Likewise.
40411 (grub_command_find): Likewise.
40412 (grub_iterate_commands): Likewise.
40413 (grub_command_init): Likewise.
40414 (grub_arg_parse): Likewise.
40415 (grub_arg_show_help): Likewise.
40416
40417 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40418 (grub_rescue_unregister_command): Likewise.
40419
40420 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40421 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40422 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40423
40424 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40425 grub_rescue_cmd_initrd.
40426 * include/grub/i386/loader.h: Likewise.
40427 * include/grub/x86_64/loader.h: Likewise.
40428
40429 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40430
40431 2009-03-21 Bean <bean123ch@gmail.com>
40432
40433 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40434 instead of stat in mingw environment.
40435
40436 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40437
40438 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40439
40440 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40441 AC_CONFIG_LINKS.
40442
40443 2009-03-21 Bean <bean123ch@gmail.com>
40444
40445 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40446 out of range error.
40447
40448 2009-03-18 Michel Dänzer <michel@daenzer.net>
40449
40450 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40451 checking inode flags for EXT4_EXTENTS_FLAG.
40452
40453 2009-03-18 Robert Millan <rmh@aybabtu.com>
40454
40455 * loader/i386/linux.c: Include `<grub/video.h>' and
40456 `<grub/i386/pc/vbe.h>'..
40457 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40458 (grub_linux32_boot): Attempt to configure video settings with
40459 grub_linux_setup_video().
40460 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40461 to avoid grub_console_fini() which would step out of graphical mode
40462 unconditionally.
40463
40464 2009-03-14 Robert Millan <rmh@aybabtu.com>
40465
40466 Fix build on powerpc.
40467 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40468
40469 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40470
40471 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40472 background image command.
40473
40474 2009-03-12 Colin D Bennett <colin@gibibit.com>
40475
40476 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40477 (grub_gfxterm_putchar): Extract pairs of identical calls to
40478 draw_cursor out of conditional blocks.
40479
40480 2009-03-11 Pavel Roskin <proski@gnu.org>
40481
40482 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40483 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40484
40485 2009-03-11 Robert Millan <rmh@aybabtu.com>
40486
40487 * loader/i386/multiboot_elfxx.c
40488 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40489
40490 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40491
40492 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40493 `kern/handler.c'.
40494
40495 2009-03-11 Robert Millan <rmh@aybabtu.com>
40496
40497 * loader/i386/multiboot.c (code_size): New variable.
40498 (grub_multiboot): Define offsets by adding to `code_size' rather
40499 than subtracting from `grub_multiboot_payload_size'. Provide
40500 4-byte alignment to MBI and others by increasing
40501 `boot_loader_name_length' appropriately.
40502
40503 * loader/i386/multiboot_elfxx.c
40504 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40505
40506 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40507
40508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40509 `fs/ext2.c'.
40510
40511 2009-03-08 Robert Millan <rmh@aybabtu.com>
40512
40513 Make loader/i386/linux.c usable on i386-pc again.
40514
40515 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40516 memory to heap.
40517 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40518 `#error' stanza.
40519
40520 2009-03-07 Bean <bean123ch@gmail.com>
40521
40522 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40523 allocation.
40524
40525 2009-03-06 Robert Millan <rmh@aybabtu.com>
40526
40527 Fix display issue on terminals with screen size other than 80x25
40528 (e.g. gfxterm with resolution higher than 640x480).
40529
40530 * normal/main.c (grub_normal_init_page): Display title text in a
40531 position relative to the center of the terminal instead of relying
40532 on a hardcoded offset.
40533
40534 2009-03-04 Robert Millan <rmh@aybabtu.com>
40535
40536 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40537 installed.
40538
40539 * Makefile.in (host_kernel): New variable.
40540 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40541 scripts instead of just the windows one.
40542 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40543
40544 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40545
40546 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40547 `kern/handler.c'.
40548 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40549 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40550 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40552 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40553 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40554
40555 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40556
40557 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40558 or if there's no space for the disk label and print the partition number on a
40559 invalid magic.
40560
40561 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40562
40563 * util/misc.c: Include <time.h>.
40564 (grub_millisleep): New function.
40565
40566 2009-03-04 Bean <bean123ch@gmail.com>
40567
40568 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40569 another option -mno-red-zone.
40570
40571 * commands/handler.c: Change module description.
40572
40573 * kern/handler.c: Add missing space at the end of description line.
40574
40575 * kern/list.c: Likewise.
40576
40577 2009-03-03 Robert Millan <rmh@aybabtu.com>
40578
40579 Move more components to the relocation area, and fix mbi pointer
40580 handling to use the destination rather than the origin (thanks to
40581 Vladimir Serbinenko for spotting).
40582
40583 * loader/i386/multiboot.c (mbi_dest): New variable.
40584 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40585 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40586 relocation area.
40587
40588 2009-03-01 Bean <bean123ch@gmail.com>
40589
40590 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40591 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40592 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40593 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40594
40595 * loader/i386/efi/linux.c (acpi_guid): New variable.
40596 (acpi_guid): Likewise.
40597 (EBDA_SEG_ADDR): New constant.
40598 (LOW_MEM_ADDR): Likewise.
40599 (FAKE_EBDA_SEG): Likewise.
40600 (fake_bios_data): New function.
40601 (grub_linux_boot): Call fake_bios_data.
40602
40603 2009-03-01 Bean <bean123ch@gmail.com>
40604
40605 * commands/terminal.c: Removed.
40606
40607 * commands/handler.c: New file.
40608
40609 * include/grub/list.h: Likewise.
40610
40611 * include/grub/handler.h: Likewise.
40612
40613 * kern/list.c: Likewise.
40614
40615 * kern/handler.c: Likewise.
40616
40617 * kern/term.h: Include header file <grub/handler.h>.
40618 (grub_term_input): Move next field to the beginning.
40619 (grub_term_output): Likewise.
40620 (grub_term_input_class): New variable.
40621 (grub_term_output_class): Likewise.
40622 (grub_term_register_input): Changed to inline function.
40623 (grub_term_register_output): Likewise.
40624 (grub_term_unregister_input): Likewise.
40625 (grub_term_unregister_output): Likewise.
40626 (grub_term_set_current_input): Likewise.
40627 (grub_term_set_current_output): Likewise.
40628 (grub_term_get_current_input): Likewise.
40629 (grub_term_get_current_output): Likewise.
40630 (grub_term_iterate_input): Removed.
40631 (grub_term_iterate_output): Likewise.
40632
40633 * kern/term.c (grub_term_list_input): Removed.
40634 (grub_term_list_output): Likewise.
40635 (grub_term_input_class): New variable.
40636 (grub_term_output_class): Likewise.
40637 (grub_cur_term_input): Change variable as macro.
40638 (grub_cur_term_output): Likewise.
40639 (grub_term_register_input): Removed.
40640 (grub_term_register_output): Likewise.
40641 (grub_term_unregister_input): Likewise.
40642 (grub_term_unregister_output): Likewise.
40643 (grub_term_set_current_input): Likewise.
40644 (grub_term_set_current_output): Likewise.
40645 (grub_term_iterate_input): Likewise.
40646 (grub_term_iterate_output): Likewise.
40647 (grub_term_get_current_input): Likewise.
40648 (grub_term_get_current_output): Likewise.
40649
40650 * util/grub-editenv.c: Include header file <grub/handler.h>.
40651 (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/grub-fstest.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 * util/grub-probe.c (grub_term_get_current_input): Removed.
40662 (grub_term_get_current_output): Likewise.
40663 (grub_term_input_class): New variable.
40664 (grub_term_output_class): Likewise.
40665
40666 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40667 (grub_term_get_current_output): Likewise.
40668 (grub_term_input_class): New variable.
40669 (grub_term_output_class): Likewise.
40670
40671 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40672 (terminal_mod_SOURCES): Likewise.
40673 (terminal_mod_CFLAGS): Likewise.
40674 (terminal_mod_LDFLAGS): Likewise.
40675
40676 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40677 handler.c.
40678 (kernel_img_SOURCES): Add list.c and handler.c.
40679 (kernel_img_HEADERS): Add list.h and handler.h.
40680
40681 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40682 handler.c.
40683 (kernel_mod_SOURCES): Add list.c and handler.c.
40684 (kernel_mod_HEADERS): Add list.h and handler.h.
40685
40686 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40687 handler.c.
40688 (kernel_elf_SOURCES): Add list.c and handler.c.
40689 (kernel_elf_HEADERS): Add list.h and handler.h.
40690
40691 * conf/i386-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 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40697 handler.c.
40698 (kernel_mod_SOURCES): Add list.c and handler.c.
40699 (kernel_mod_HEADERS): Add list.h and handler.h.
40700
40701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40702 handler.c.
40703 (kernel_elf_SOURCES): Add list.c and handler.c.
40704 (kernel_elf_HEADERS): Add list.h and handler.h.
40705
40706 2009-02-27 Robert Millan <rmh@aybabtu.com>
40707
40708 Factorize elf32 / elf64 code in Multiboot loader. This will
40709 prevent it from getting out of sync again.
40710
40711 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40712 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40713 grub_multiboot_load_elf64): Move from here ...
40714 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40715 grub_multiboot_load_elf): ... to here (new file).
40716
40717 2009-02-27 Robert Millan <rmh@aybabtu.com>
40718
40719 * util/grub.d/10_linux.in: Rename "single-user mode" to
40720 "recovery mode".
40721
40722 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40723
40724 Don't leak in SCSI code.
40725 * disk/scsi.c (grub_scsi_close): free `scsi'.
40726
40727 2009-02-27 Robert Millan <rmh@aybabtu.com>
40728
40729 * loader/i386/pc/multiboot.c: Move from here ...
40730 * loader/i386/multiboot.c: ... to here. Update all users.
40731
40732 2009-02-27 Robert Millan <rmh@aybabtu.com>
40733
40734 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40735 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40736
40737 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40738
40739 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40740 b-tree.
40741
40742 2009-02-27 Robert Millan <rmh@aybabtu.com>
40743
40744 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40745 `0x' qualifier as 0 when base is specified as parameter).
40746
40747 2009-02-24 Bean <bean123ch@gmail.com>
40748
40749 * configure.ac: Check for -mcmodel=large in x86_64 target.
40750
40751 * include/grub/efi/api.h (efi_call_10): New macro.
40752 (efi_wrap_10): New function.
40753
40754 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40755 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40756 (GRUB_PE32_REL_BASED_LOW): Likewise.
40757 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40758 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40759 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40760 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40761 (GRUB_PE32_REL_BASED_REL): Likewise.
40762 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40763 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40764 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40765
40766 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40767 issue.
40768
40769 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40770 (efi_wrap_10): New function.
40771
40772 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40773
40774 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40775 MB/MBP model (NV chipset).
40776 (devdata_devs): Add devpath_5 to the list.
40777
40778 * load/i386/efi/linux.c (video_base): Remove variable.
40779 (RGB_MASK): New macro.
40780 (RGB_MAGIC): Likewise.
40781 (LINE_MIN): Likewise.
40782 (LINE_MAX): Likewise.
40783 (FBTEST_STEP): Likewise.
40784 (FBTEST_COUNT): Likewise.
40785 (fb_list): New variable.
40786 (grub_find_video_card): Remove function.
40787 (find_framebuf): New function.
40788 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40789 line length.
40790
40791 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40792 problem for x86_64.
40793
40794 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40795
40796 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40797
40798 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40799 coding tool name.
40800
40801 2009-02-22 Robert Millan <rmh@aybabtu.com>
40802
40803 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40804 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40805 in our relocation, instead of using it directly from heap. Also
40806 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40807
40808 2009-02-21 Robert Millan <rmh@aybabtu.com>
40809
40810 Implement USB keyboard support (based on patch by Marco Gerards)
40811
40812 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40813 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40814 (usb_keyboard_mod_LDFLAGS): New variables.
40815
40816 * term/usb_keyboard.c: New file.
40817
40818 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40819
40820 Corrected wrong declaration
40821
40822 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40823
40824 2009-02-14 Christian Franke <franke@computer.org>
40825
40826 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40827 (grub_lspci_iter): Print class code and programming interface byte.
40828
40829 2009-02-14 Christian Franke <franke@computer.org>
40830
40831 * gendistlist.sh: Ignore `.svn' directories.
40832
40833 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40834
40835 * fs/fat.c: Add 2009 to Copyright line.
40836
40837 2009-02-14 Christian Franke <franke@computer.org>
40838
40839 * commands/hdparm.c: New file. Provides `hdparm' command
40840 which sends ATA commands via grub_disk_ata_pass_through ().
40841
40842 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40843
40844 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40845 and <grub/cpu/io.h> to include/grub/ata.h.
40846 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40847 (GRUB_CDROM_SECTOR_SIZE): Remove.
40848 (GRUB_ATA_*): Move to include/grub/ata.h.
40849 (GRUB_ATAPI_*): Likewise.
40850 (enum grub_ata_commands): Likewise.
40851 (enum grub_ata_timeout_milliseconds): Likewise.
40852 (struct grub_ata_device): Likewise.
40853 (grub_ata_regset): Likewise.
40854 (grub_ata_regget): Likewise.
40855 (grub_ata_regset2): Likewise.
40856 (grub_ata_regget2): Likewise.
40857 (grub_ata_check_ready): Likewise.
40858 (grub_ata_wait_not_busy): Remove static, exported in
40859 include/grub/ata.h.
40860 (grub_ata_wait_drq): Likewise.
40861 (grub_ata_pio_read): Likewise.
40862
40863 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40864 function for hdparm.mod.
40865
40866 * include/grub/ata.h: New file, contains declarations from
40867 disk/ata.c.
40868 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40869
40870 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40871 (grub_disk_ata_pass_through): New exported variable.
40872
40873 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40874
40875 2009-02-13 Colin D Bennett <colin@gibibit.com>
40876
40877 Support multiple fallback entries, and provide an API to support
40878 executing default+fallback menu entries. Renamed the `terminal' menu
40879 viewer to `text'.
40880
40881 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40882 variable declaration.
40883 (grub_menu_execute_callback): New structure declaration.
40884 (grub_menu_execute_callback_t): New typedef.
40885 (grub_menu_execute_with_fallback): New function declaration.
40886 (grub_menu_get_entry): Likewise.
40887 (grub_menu_get_timeout): Likewise.
40888 (grub_menu_set_timeout): Likewise.
40889
40890 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40891
40892 * normal/menu.c (grub_wait_after_message): Moved to
40893 `normal/menu_text.c'.
40894 (draw_border): Likewise.
40895 (print_message): Likewise.
40896 (print_entry): Likewise.
40897 (print_entries): Likewise.
40898 (grub_menu_init_page): Likewise.
40899 (get_entry_number): Likewise.
40900 (print_timeout): Likewise.
40901 (run_menu): Likewise.
40902 (grub_menu_execute_entry): Likewise.
40903 (show_text_menu): Likewise.
40904 (get_and_remove_first_entry_number): New function.
40905 (grub_menu_execute_with_fallback): Likewise.
40906 (get_entry): Renamed to ...
40907 (grub_menu_get_entry): .. this and made it global.
40908 (get_timeout): Renamed to ...
40909 (grub_menu_get_timeout): ... this and made it global.
40910 (set_timeout): Renamed to ...
40911 (grub_menu_set_timeout): ... this and made it global.
40912 (grub_normal_terminal_menu_viewer): Renamed to ...
40913 (grub_normal_text_menu_viewer): ... this.
40914
40915 * normal/menu_text.c: New file. Extracted text-menu-specific code
40916 from normal/menu.c.
40917
40918 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40919 (normal_mod_SOURCES): Likewise.
40920
40921 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40922 (normal_mod_SOURCES): Likewise.
40923
40924 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40925 (normal_mod_SOURCES): Likewise.
40926
40927 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40928 (normal_mod_SOURCES): Likewise.
40929
40930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40931 (normal_mod_SOURCES): Likewise.
40932
40933 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40934 (normal_mod_SOURCES): Likewise.
40935
40936 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40937 (normal_mod_SOURCES): Likewise.
40938
40939 2009-02-11 Robert Millan <rmh@aybabtu.com>
40940
40941 * util/grub.d/00_header.in: Update old reference to `font' command.
40942
40943 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40944
40945 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40946
40947 Based on patch from Javier Martín.
40948
40949 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40950
40951 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40952 to avoid false positives with FAT.
40953 (grub_fstest_SOURCES): Likewise.
40954 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40955 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40957 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40958 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40959 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40960
40961 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40962
40963 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40964 bpb.version_specific.fat12_or_fat16.fstype and
40965 bpb.version_specific.fat32.fstype.
40966
40967 2009-02-08 Robert Millan <rmh@aybabtu.com>
40968
40969 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40970
40971 2009-02-08 Robert Millan <rmh@aybabtu.com>
40972
40973 * Makefile.in (host_os, host_cpu): New variables.
40974 (target_os): Remove. Update all users.
40975
40976 2009-02-08 Marco Gerards <marco@gnu.org>
40977
40978 * Makefile.in (enable_grub_emu_usb): New variable.
40979 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40980 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40981 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
40982 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
40983 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
40984 `usbtest.mod' and `usbms.mod'.
40985 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
40986 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
40987 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
40988 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
40989 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
40990 variables.
40991
40992 * disk/usbms.c: New file.
40993
40994 * include/grub/usb.h: Likewise.
40995
40996 * include/grub/usbtrans.h: Likewise.
40997
40998 * include/grub/usbdesc.h: Likewise.
40999
41000 * bus/usb/usbtrans.c: Likewise.
41001
41002 * bus/usb/ohci.c: Likewise.
41003
41004 * bus/usb/uhci.c: Likewise.
41005
41006 * bus/usb/usbhub.c: Likewise.
41007
41008 * bus/usb/usb.c: Likewise.
41009
41010 * commands/usbtest.c: Likewise.
41011
41012 * util/usb.c: Likewise.
41013
41014 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41015
41016 * configure.ac: Test for libusb presence.
41017
41018 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41019
41020 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41021
41022 * kern/mm.c: Add more comments.
41023
41024 2009-02-08 Robert Millan <rmh@aybabtu.com>
41025
41026 Patch from Javier Martín.
41027 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41028 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41029
41030 2009-02-08 Robert Millan <rmh@aybabtu.com>
41031
41032 * fs/cpio.c: Split tar functionality to ...
41033 * fs/tar.c: ... here (new file). Update all users.
41034
41035 2009-02-07 Robert Millan <rmh@aybabtu.com>
41036
41037 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41038 backward-incompatible features.
41039
41040 Based on patch from Javier Martín, with some adjustments.
41041
41042 2009-02-07 Michael Scherer <misc@mandriva.org>
41043
41044 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41045
41046 2009-02-07 Robert Millan <rmh@aybabtu.com>
41047
41048 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41049 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41050 after the RAID stuff.
41051
41052 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41053
41054 Fixes problem when running vbetest command as reported by
41055 Vladimir Serbinenko <phcoder@gmail.com>.
41056
41057 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41058
41059 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41060
41061 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41062 /dev/md/NpN style mdraid devices.
41063
41064 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41065
41066 * util/unifont2pff.rb: Remove.
41067
41068 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41069
41070 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41071 `#'.
41072
41073 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41074
41075 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41076 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41077 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41080 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41081 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41082
41083 2009-02-02 Christian Franke <franke@computer.org>
41084
41085 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41086
41087 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41088
41089 * INSTALL: Note that we now require at least autoconf 2.59 and
41090 that LZO is optional.
41091
41092 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41093
41094 Base on patch on bug #24154 created by Tomas Tintera
41095 <trosos@seznam.cz>.
41096
41097 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41098
41099 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41100
41101 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41102 <bero@arklinux.org>.
41103
41104 * normal/parser.y (script_init): Add missing semicolon.
41105
41106 2009-01-31 Colin D Bennett <colin@gibibit.com>
41107
41108 * normal/main.c: Add include to grub/menu_viewer.h.
41109 (free_menu_entry_classes): Added.
41110 (grub_normal_menu_addentry): Added class property handling.
41111 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41112 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41113
41114 * normal/menu_viewer.c: New file.
41115
41116 * normal/menu.c (run_menu_entry): Renamed to ...
41117 (grub_menu_execute_entry): ... this and made it as global.
41118 (grub_menu_run): Renamed to ...
41119 (show_text_menu): ... this and made it local.
41120 (show_text_menu): Adapt to new function names.
41121 (grub_normal_terminal_menu_viewer): New global variable.
41122
41123 * include/grub/menu.h: New file.
41124
41125 * include/grub/menu_viewer.h: New file.
41126
41127 * include/grub/normal.h: Added include to grub/menu.h.
41128 (grub_menu_entry): Moved to include/grub/menu.h.
41129 (grub_menu_entry_t): Likewise.
41130 (grub_menu): Likewise.
41131 (grub_menu_t): Likewise.
41132 (grub_normal_terminal_menu_viewer): Added.
41133 (grub_menu_execute_entry): Likewise.
41134 (grub_menu_run): Removed.
41135
41136 * DISTLIST: Added include/grub/menu.h.
41137 Added include/grub/menu_viewer.h.
41138 Added normal/menu_viewer.c.
41139
41140 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41141
41142 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41143 arglist for menutitle arguments.
41144
41145 * normal/main.c (grub_normal_menu_addentry): Likewise.
41146
41147 * normal/parser.y (menuentry): Likewise.
41148
41149 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41150
41151 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41152 (grub_script_create_cmdmenu): Likewise.
41153
41154 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41155
41156 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41157 changes.
41158
41159 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41160
41161 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41162
41163 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41164
41165 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41166
41167 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41168
41169 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41170
41171 2009-01-30 Christian Franke <franke@computer.org>
41172
41173 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41174 in option help text.
41175
41176 2009-01-27 Pavel Roskin <proski@gnu.org>
41177
41178 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41179
41180 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41181
41182 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41183
41184 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41185
41186 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41187 unregister function.
41188
41189 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41190
41191 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41192
41193 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41194
41195 * util/grub-mkfont.c (usage): Fix typo.
41196
41197 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41198
41199 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41200
41201 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41202
41203 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41204
41205 * kern/misc.c (grub_strcasecmp): New function.
41206 (grub_strcasecmp): Use grub_size_t instead of int for length.
41207 Fix return value.
41208 * include/grub/misc.h: Update function prototypes.
41209
41210 2009-01-26 Robert Millan <rmh@aybabtu.com>
41211
41212 * configure.ac: Fix cross-compilation check.
41213
41214 2009-01-22 Christian Franke <franke@computer.org>
41215
41216 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41217 (precision) digit string. Allow `.format2' without `format1' (width).
41218 Limit input chars for `%s' output to `format2' if specified. This is
41219 compatible with standard printf ().
41220
41221 2009-01-22 Christian Franke <franke@computer.org>
41222
41223 * disk/ata.c (grub_ata_wait_status): Replace by ...
41224 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41225 other status bits may be invalid while BSY is asserted.
41226 (grub_ata_check_ready): New function.
41227 (grub_ata_cmd): Removed.
41228 (grub_ata_wait_drq): New function.
41229 (grub_ata_strncpy): Remove inline.
41230 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41231 and error check now done by grub_ata_wait_drq ().
41232 (grub_ata_pio_write): Likewise.
41233 (grub_atapi_identify): Set DEV before check for !BSY. Use
41234 grub_ata_wait_drq () to wait for data.
41235 (grub_ata_device_initialize): Add status register check to
41236 detect missing SATA slave devices. Add debug messages.
41237 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41238 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41239 transfer loop by grub_ata_pio_write ().
41240 (grub_ata_identify): Set DEV before check for !BSY. Use
41241 grub_ata_wait_drq () to wait for data.
41242 (grub_ata_setaddress): Set DEV before check for !BSY.
41243 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41244 read/write in one loop. Fix invalid command on write. Fix incomplete
41245 command on (size % batch) == 0. Add missing error check after write of
41246 last block. Add debug messages.
41247 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41248
41249 2009-01-19 Christian Franke <franke@computer.org>
41250
41251 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41252 (GRUB_ATAPI_IREASON_*): Likewise.
41253 (grub_ata_pio_write): Fix timeout error return.
41254 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41255 (grub_atapi_wait_drq): New function.
41256 (grub_atapi_packet): New parameter `size'.
41257 Use grub_atapi_wait_drq () and direct write instead of
41258 grub_ata_pio_write ().
41259 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41260 reads the number of bytes requested by the device for each DRQ
41261 assertion.
41262 (grub_atapi_write): Remove old implementation, return not
41263 implemented instead.
41264
41265 2009-01-19 Christian Franke <franke@computer.org>
41266
41267 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41268 of 512 to calculate data size.
41269 (grub_scsi_read12): Likewise.
41270 (grub_scsi_write10): Likewise.
41271 (grub_scsi_write12): Likewise.
41272 (grub_scsi_read): Adjust size according to blocksize.
41273 Add checks for invalid blocksize and unaligned transfer.
41274
41275 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41276
41277 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41278
41279 * term/gfxterm.c (write_char): Fix background rendering for wide
41280 width glyphs.
41281
41282 2009-01-19 Robert Millan <rmh@aybabtu.com>
41283
41284 * config.guess: Update to latest version from config git.
41285 * config.sub: Likewise.
41286
41287 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41288
41289 * Makefile.in: Change font compilation to use new grub-mkfont instead
41290 of java version.
41291
41292 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41293 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41294 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41295 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41296 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41297 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41298 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41299 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41300 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41301
41302 2009-01-16 Christian Franke <franke@computer.org>
41303
41304 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41305 (enum grub_ata_timeout_milliseconds): New enum.
41306 (grub_ata_wait_status): Add parameter milliseconds.
41307 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41308 recovery from timed-out commands.
41309 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41310 return grub_errno instead of REG_ERROR.
41311 (grub_ata_pio_write): Add parameter milliseconds.
41312 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41313 Pass milliseconds to grub_ata_wait_status () and
41314 grub_ata_pio_read ().
41315 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41316 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41317 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41318 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41319 It is not suitable for device detection, because DEV bit is ignored,
41320 the command may run too long, and not all devices set the signature
41321 properly.
41322 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41323 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41324 Fix device selection, DEV bit must be set first to address the registers
41325 of the correct device.
41326 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41327 grub_ata_pio_read/write ().
41328 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41329 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41330
41331 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41332
41333 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41334
41335 2009-01-13 Bean <bean123ch@gmail.com>
41336
41337 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41338
41339 2009-01-13 Bean <bean123ch@gmail.com>
41340
41341 * Makefile.in: (enable_grub_mkfont): New variable.
41342 (freetype_cflags): Likewise.
41343 (freetype_libs): Likewise.
41344
41345 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41346 (grub_mkfont_SOURCES): New variable.
41347 (grub_mkfont_CFLAGS): Likewise.
41348 (grub_mkfont_LDFLAGS): Likewise.
41349
41350 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41351 library if `--enable-grub-mkfont' is requested.
41352 (enable_grub_mkfont): New variable.
41353 (freetype_cflags): Likewise.
41354 (freetype_libs): Likewise.
41355
41356 * util/grub-mkfont.c: New file.
41357
41358 2009-01-12 Christian Franke <franke@computer.org>
41359
41360 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41361 mode check. Fix setting of compat_use[].
41362
41363 2009-01-10 Robert Millan <rmh@aybabtu.com>
41364
41365 Update a few copyright years which we forgot to do in 2008 (only for
41366 files whose changes made in 2008 were copyright-significant)
41367
41368 * Makefile.in: Add 2008 to Copyright line.
41369 * disk/ieee1275/ofdisk.c: Likewise.
41370 * disk/efi/efidisk.c: Likewise.
41371 * kern/dl.c: Likewise.
41372 * kern/sparc64/ieee1275/init.c: Likewise.
41373 * kern/mm.c: Likewise.
41374 * kern/efi/mm.c: Likewise.
41375 * boot/i386/pc/boot.S: Likewise.
41376 * genfslist.sh: Likewise.
41377 * fs/iso9660.c: Likewise.
41378 * fs/hfs.c: Likewise.
41379 * fs/jfs.c: Likewise.
41380 * fs/minix.c: Likewise.
41381 * fs/ufs.c: Likewise.
41382 * gensymlist.sh.in: Likewise.
41383 * genkernsyms.sh.in: Likewise.
41384 * include/grub/misc.h: Likewise.
41385 * include/grub/types.h: Likewise.
41386 * include/grub/symbol.h: Likewise.
41387 * include/grub/elf.h: Likewise.
41388 * include/grub/kernel.h: Likewise.
41389 * include/grub/disk.h: Likewise.
41390 * include/grub/dl.h: Likewise.
41391 * include/grub/i386/linux.h: Likewise.
41392 * include/grub/i386/pc/biosdisk.h: Likewise.
41393 * include/grub/efi/api.h: Likewise.
41394 * include/grub/efi/pe32.h: Likewise.
41395 * include/grub/util/misc.h: Likewise.
41396 * normal/execute.c: Likewise.
41397 * normal/arg.c: Likewise.
41398 * normal/completion.c: Likewise.
41399 * normal/lexer.c: Likewise.
41400 * normal/parser.y: Likewise.
41401 * normal/misc.c: Likewise.
41402 * commands/i386/pc/vbeinfo.c: Likewise.
41403 * commands/hexdump.c: Likewise.
41404 * commands/terminal.c: Likewise.
41405 * commands/ls.c: Likewise.
41406 * commands/help.c: Likewise.
41407 * partmap/pc.c: Likewise.
41408 * loader/efi/chainloader.c: Likewise.
41409 * loader/multiboot_loader.c: Likewise.
41410 * loader/i386/pc/multiboot2.c: Likewise.
41411 * term/efi/console.c: Likewise.
41412 * term/i386/pc/serial.c: Likewise.
41413 * util/lvm.c: Likewise.
41414 * util/console.c: Likewise.
41415 * util/i386/efi/grub-mkimage.c: Likewise.
41416 * util/raid.c: Likewise.
41417
41418 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41419
41420 * commands/videotest.c: Removed include to grub/machine/memory.h.
41421
41422 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41423 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41424 (video_mod_SOURCES): Removed.
41425 (video_mod_CFLAGS): Likewise.
41426 (video_mod_LDFLAGS): Likewise.
41427 (gfxterm_mod_SOURCES): Likewise.
41428 (gfxterm_mod_CFLAGS): Likewise.
41429 (gfxterm_mod_LDFLAGS): Likewise.
41430 (videotest_mod_SOURCES): Likewise.
41431 (videotest_mod_CFLAGS): Likewise.
41432 (videotest_mod_LDFLAGS): Likewise.
41433 (bitmap_mod_SOURCES): Likewise.
41434 (bitmap_mod_CFLAGS): Likewise.
41435 (bitmap_mod_LDFLAGS): Likewise.
41436 (tga_mod_SOURCES): Likewise.
41437 (tga_mod_CFLAGS): Likewise.
41438 (tga_mod_LDFLAGS): Likewise.
41439 (jpeg_mod_SOURCES): Likewise.
41440 (jpeg_mod_CFLAGS): Likewise.
41441 (jpeg_mod_LDFLAGS): Likewise.
41442 (png_mod_SOURCES): Likewise.
41443 (png_mod_CFLAGS): Likewise.
41444 (png_mod_LDFLAGS): Likewise.
41445
41446 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41447 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41448 (video_mod_SOURCES): Added.
41449 (video_mod_CFLAGS): Likewise.
41450 (video_mod_LDFLAGS): Likewise.
41451 (videotest_mod_SOURCES): Likewise.
41452 (videotest_mod_CFLAGS): Likewise.
41453 (videotest_mod_LDFLAGS): Likewise.
41454 (bitmap_mod_SOURCES): Likewise.
41455 (bitmap_mod_CFLAGS): Likewise.
41456 (bitmap_mod_LDFLAGS): Likewise.
41457 (tga_mod_SOURCES): Likewise.
41458 (tga_mod_CFLAGS): Likewise.
41459 (tga_mod_LDFLAGS): Likewise.
41460 (jpeg_mod_SOURCES): Likewise.
41461 (jpeg_mod_CFLAGS): Likewise.
41462 (jpeg_mod_LDFLAGS): Likewise.
41463 (png_mod_SOURCES): Likewise.
41464 (png_mod_CFLAGS): Likewise.
41465 (png_mod_LDFLAGS): Likewise.
41466 (gfxterm_mod_SOURCES): Likewise.
41467 (gfxterm_mod_CFLAGS): Likewise.
41468 (gfxterm_mod_LDFLAGS): Likewise.
41469
41470 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41471 grub/machine/console.h.
41472
41473 2009-01-04 Jerone Young <jerone@gmail.com>
41474
41475 Make on screen instructions clearer
41476
41477 Based on patch created by Jidanni <jidanni@jidanni.org>
41478
41479 * normal/menu.c: print clearer instructions on the screen
41480
41481 2009-01-02 Colin D Bennett <colin@gibibit.com>
41482
41483 New font engine.
41484
41485 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41486 build system and fixed gfxterm.c to work with different sized fonts.
41487
41488 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41489
41490 * configure: Re-generated.
41491
41492 * DISTLIST: Removed font/manager.c.
41493 Added font/font.c.
41494 Added font/font_cmd.c.
41495
41496 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41497 compilation.
41498
41499 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41500
41501 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41502
41503 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41504
41505 * normal/menu.c: Likewise.
41506
41507 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41508 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41509
41510 * include/grub/font.h: Replaced with new file.
41511
41512 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41513 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41514 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41515 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41516 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41517 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41518 fg_red, fg_green, fg_blue, fg_alpha.
41519 (grub_video_adapter): Removed blit_glyph.
41520 (grub_video_blit_glyph): Removed.
41521
41522 * font/manager.c: Removed file.
41523
41524 * font/font.c: New file.
41525
41526 * font/font_cmd.c: Likewise.
41527
41528 * video/video.c (grub_video_blit_glyph): Removed.
41529
41530 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41531 (grub_video_vbe_map_rgba): Likewise.
41532 (grub_video_vbe_unmap_color_int): Likewise.
41533 (grub_video_vbe_blit_glyph): Removed.
41534 (grub_video_vbe_adapter): Removed blit_glyph.
41535
41536 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41537 (get_pixel): Likewise.
41538 (set_pixel): Likewise.
41539
41540 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41541
41542 * term/gfxterm.c: Adapted to new font engine.
41543
41544 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41545
41546 * term/i386/pc/vga.c: Likewise.
41547
41548 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41549
41550 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41551
41552 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41553
41554 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41555
41556 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41557
41558 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41559
41560 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41561
41562 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41563
41564 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41565
41566 * util/grub.d/00_header.in: Changed to use new loadfont command.
41567
41568 * util/grub-mkconfig_lib.in: Changed font extension.
41569
41570 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41571
41572 * util/getroot.c (grub_util_get_grub_dev): Add support for
41573 /dev/md/dNNpNN style partitionable mdraid devices.
41574
41575 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41576
41577 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41578 at a time limit of the PXE TFTP API correctly.
41579 (grub_pxefs_close): Likewise.
41580
41581 2008-11-29 Robert Millan <rmh@aybabtu.com>
41582
41583 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41584 grub_ata_device_initialize() calls.
41585
41586 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41587
41588 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41589 iteration failed.
41590 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41591
41592 2008-11-28 Robert Millan <rmh@aybabtu.com>
41593
41594 Fix build on powerpc-ieee1275. Based on patch created by
41595 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41596 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41597 `kern/ieee1275/mmap.c'.
41598 * include/grub/powerpc/ieee1275/memory.h: New file.
41599
41600 Provide grub-install on coreboot.
41601 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41602 (grub_install_SOURCES): New variable.
41603 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41604 usable on coreboot.
41605
41606 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41607
41608 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41609 to `grub_term_input_t'.
41610 (grub_term_get_current_output): Change return type to
41611 `grub_term_output_t'.
41612
41613 2008-11-22 Robert Millan <rmh@aybabtu.com>
41614
41615 Fix breakage on coreboot due to declaration mismatch.
41616 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41617 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41618 grub_vga_text_cls().
41619
41620 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41621 comments. Avoid copying one more byte than necessary (just in case).
41622
41623 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41624 to 0x200000 (avoids trouble with some OFW implementations, and matches
41625 with the one in Yaboot).
41626 Reported by Manoel Abranches
41627
41628 2008-11-20 Robert Millan <rmh@aybabtu.com>
41629
41630 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41631 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41632
41633 * util/grub-mkconfig_lib.in (grub_warn): New function.
41634 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41635 warnings, to obtain consistent formatting.
41636 * util/grub.d/00_header.in: Likewise.
41637 * util/update-grub_lib.in: Likewise.
41638
41639 * loader/i386/linux.c (allocate_pages): Fix a warning.
41640 Move comment text to `#error' stanza.
41641
41642 Harmonize ieee1275's grub_available_iterate() with the generic
41643 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41644 build problem on i386-ieee1275):
41645 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41646 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41647 parameter `type'. Update all users of this function.
41648 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41649 `kern/ieee1275/mmap.c'.
41650 * kern/ieee1275/init.c
41651 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41652 with ...
41653 (grub_machine_mmap_iterate): ... this.
41654 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41655 return type to `grub_err_t'. Update all implementations of this
41656 function prototype.
41657 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41658 Likewise.
41659
41660 Add `lsmmap' command (lists firmware-provided memory map):
41661 * commands/lsmmap.c: New file.
41662 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41663 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41664 variables.
41665 * conf/powerpc-ieee1275.rmk: Likewise.
41666 * conf/i386-coreboot.rmk: Likewise.
41667 * conf/i386-ieee1275.rmk: Likewise.
41668
41669 2008-11-19 Robert Millan <rmh@aybabtu.com>
41670
41671 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41672 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41673 constraints to initrd allocation (based on code from
41674 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41675 for Linux to find it.
41676
41677 2008-11-14 Robert Millan <rmh@aybabtu.com>
41678
41679 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41680 order to cope with duplicate slashes.
41681
41682 2008-11-14 Robert Millan <rmh@aybabtu.com>
41683
41684 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41685 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41686 don't want to mess with lower memory, because it is used in the Linux
41687 loader.
41688
41689 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41690 an appropriate place in lower memory, between 0x10000 and 0x90000,
41691 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41692 is in our heap (probably as a result of it being corrupted during
41693 decompression). Add #error instance with comment to explain why this
41694 loader isn't currently usable on PC/BIOS.
41695
41696 2008-11-14 Robert Millan <rmh@aybabtu.com>
41697
41698 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41699 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41700
41701 2008-11-12 Robert Millan <rmh@aybabtu.com>
41702
41703 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41704
41705 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41706 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41707 from here ...
41708 * include/grub/i386/pc/memory.h: ... to here.
41709
41710 2008-11-12 Robert Millan <rmh@aybabtu.com>
41711
41712 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41713 split).
41714
41715 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41716 (grub_console_cur_color, grub_console_real_putchar)
41717 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41718 (grub_console_setcolorstate, grub_console_setcolor)
41719 (grub_console_getcolor): Move from here ...
41720 * include/grub/i386/vga_common.h: ... to here (new file).
41721
41722 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41723 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41724 `<grub/i386/io.h>'.
41725 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41726 `<grub/i386/vga_common.h>'.
41727
41728 2008-11-12 Robert Millan <rmh@aybabtu.com>
41729
41730 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41731 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41732 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41733 variables.
41734 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41735 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41736
41737 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41738 grub_console_init() with call to grub_vga_text_init().
41739 (grub_machine_fini): Replace call to
41740 grub_console_fini() with call to grub_vga_text_fini() and
41741 grub_at_keyboard_fini().
41742
41743 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41744 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41745 (grub_console_setcolorstate, grub_console_setcolor)
41746 (grub_console_getcolor): New function prototypes.
41747
41748 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41749 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41750 (grub_vga_text_setcursor): Static-ize.
41751 (grub_vga_text_term): New structure.
41752 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41753
41754 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41755 (grub_console_cur_color, grub_console_standard_color)
41756 (grub_console_normal_color, grub_console_highlight_color)
41757 (map_char, grub_console_putchar, grub_console_getcharwidth)
41758 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41759 (grub_console_getcolor): Move from here ...
41760 * term/i386/vga_common.c: ... to here (same function names).
41761
41762 2008-11-12 Robert Millan <rmh@aybabtu.com>
41763
41764 Use newly-added Multiboot support in coreboot.
41765
41766 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41767 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41768
41769 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41770 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41771 (codestart): Store the MBI in `startup_multiboot_info' when we're
41772 being loaded using Multiboot.
41773
41774 * kern/i386/coreboot/init.c (grub_machine_init): Move
41775 grub_at_keyboard_init() call to beginning of function (useful for
41776 debugging). Call grub_machine_mmap_init() before attempting to use
41777 grub_machine_mmap_iterate().
41778 (grub_lower_mem, grub_upper_mem): Move from here ...
41779 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41780 here (new file).
41781
41782 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41783 function prototype.
41784
41785 2008-11-12 Robert Millan <rmh@aybabtu.com>
41786
41787 Fix a regression introduced by the at_keyboard.mod split. Because
41788 some terminals are default on some platforms and non-default on
41789 others, the first terminal being registered determines which is
41790 going to be default.
41791
41792 * kern/term.c (grub_term_register_input): If this is the first
41793 terminal being registered, set it as the current one.
41794 (grub_term_register_output): Likewise.
41795
41796 * term/efi/console.c (grub_console_init): Do not call
41797 grub_term_set_current_output() or grub_term_set_current_input().
41798 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41799 * term/i386/pc/console.c (grub_console_init): Likewise.
41800 (grub_console_fini): Do not call grub_term_set_current_input()
41801 (but leave grub_term_set_current_output() to restore text mode).
41802
41803 2008-11-10 Robert Millan <rmh@aybabtu.com>
41804
41805 * util/grub.d/00_header.in: Add backward compatibility check for
41806 versions of terminal.mod that don't understand `terminal_input' or
41807 `terminal_output'.
41808
41809 2008-11-09 Robert Millan <rmh@aybabtu.com>
41810
41811 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41812 `terminal_input' / `terminal_output', not `terminal'.
41813
41814 2008-11-08 Robert Millan <rmh@aybabtu.com>
41815
41816 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41817 (DISTCLEANFILES): Add `build_env.mk'.
41818
41819 2008-11-08 Robert Millan <rmh@aybabtu.com>
41820
41821 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41822 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41823 members. Update all users.
41824 * util/console.c (grub_ncurses_term): Split in ...
41825 (grub_ncurses_term_input): ... this, and ...
41826 (grub_ncurses_term_output): ... this. Update all users.
41827 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41828
41829 2008-11-08 Robert Millan <rmh@aybabtu.com>
41830
41831 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41832 (PKGDATA): Add $(pkgdata_SRCDIR).
41833 (pkglib_BUILDDIR): New variable.
41834 (pkgdata_SRCDIR): New variable.
41835 (build_env.mk): New target.
41836 (include_DATA): New variable.
41837 (install-local): Install $(include_DATA) files in $(includedir).
41838
41839 2008-11-07 Pavel Roskin <proski@gnu.org>
41840
41841 * gendistlist.sh: Use C locale for sorting to ensure consistent
41842 output on all systems.
41843
41844 * util/grub.d/00_header.in: Remove incorrect space before
41845 "serial".
41846
41847 2008-11-07 Robert Millan <rmh@aybabtu.com>
41848
41849 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41850 per specification.
41851 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41852 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41853 (based on find_multi_boot1_header).
41854 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41855 using find_multi_boot2_header(), and abort if neither Multiboot or
41856 Multiboot headers were found.
41857
41858 2008-11-07 Robert Millan <rmh@aybabtu.com>
41859
41860 Modularize at_keyboard.mod:
41861
41862 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41863 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41864 (at_keyboard_mod_LDFLAGS): New variables.
41865
41866 Actual terminal split:
41867
41868 * include/grub/term.h (struct grub_term): Split in ...
41869 (struct grub_term_input): ... this, and ...
41870 (struct grub_term_output): ... this. Update all users.
41871 (grub_term_set_current): Split in ...
41872 (grub_term_set_current_input): ... this, and ...
41873 (grub_term_set_current_output): ... this.
41874 (grub_term_get_current): Split in ...
41875 (grub_term_get_current_input): ... this, and ...
41876 (grub_term_get_current_output): ... this.
41877 (grub_term_register): Split in ...
41878 (grub_term_register_input): ... this, and ...
41879 (grub_term_register_output): ... this.
41880 (grub_term_unregister): Split in ...
41881 (grub_term_unregister_input): ... this, and ...
41882 (grub_term_unregister_output): ... this.
41883 (grub_term_iterate): Split in ...
41884 (grub_term_iterate_input): ... this, and ...
41885 (grub_term_iterate_output): ... this.
41886
41887 * kern/term.c (grub_term_list): Split in ...
41888 (grub_term_list_input): ... this, and ...
41889 (grub_term_list_output): ... this. Update all users.
41890 (grub_cur_term): Split in ...
41891 (grub_cur_term_input): ... this, and ...
41892 (grub_cur_term_output): ... this. Update all users.
41893 (grub_term_set_current): Split in ...
41894 (grub_term_set_current_input): ... this, and ...
41895 (grub_term_set_current_output): ... this.
41896 (grub_term_get_current): Split in ...
41897 (grub_term_get_current_input): ... this, and ...
41898 (grub_term_get_current_output): ... this.
41899 (grub_term_register): Split in ...
41900 (grub_term_register_input): ... this, and ...
41901 (grub_term_register_output): ... this.
41902 (grub_term_unregister): Split in ...
41903 (grub_term_unregister_input): ... this, and ...
41904 (grub_term_unregister_output): ... this.
41905 (grub_term_iterate): Split in ...
41906 (grub_term_iterate_input): ... this, and ...
41907 (grub_term_iterate_output): ... this.
41908
41909 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41910 a check for input and one for output (and only attempt to get keys
41911 from user when input works).
41912
41913 * util/grub-probe.c (grub_term_get_current): Split in ...
41914 (grub_term_get_current_input): ... this, and ...
41915 (grub_term_get_current_output): ... this.
41916 * util/grub-fstest.c: Likewise.
41917 * util/i386/pc/grub-setup.c: Likewise.
41918 * util/grub-editenv.c: Likewise.
41919
41920 Portability adjustments:
41921
41922 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41923 `term/i386/pc/at_keyboard.c'.
41924 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41925 grub_keyboard_controller_init() (now handled by terminal .init).
41926 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41927 grub_at_keyboard_init().
41928 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41929 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41930 at_keyboard.mod via input terminal interface).
41931 * include/grub/i386/coreboot/console.h: Convert into a stub for
41932 `<grub/i386/pc/console.h>'.
41933
41934 Migrate full terminals to new API:
41935
41936 * term/efi/console.c (grub_console_term): Split into ...
41937 (grub_console_term_input): ... this, and ...
41938 (grub_console_term_output): ... this. Update all users.
41939 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41940 (grub_ofconsole_init): Split into ...
41941 (grub_ofconsole_init_input): ... this, and ...
41942 (grub_ofconsole_init_output): ... this.
41943 (grub_ofconsole_term): Split into ...
41944 (grub_ofconsole_term_input): ... this, and ...
41945 (grub_ofconsole_term_output): ... this. Update all users.
41946 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41947 (grub_serial_term_input): ... this, and ...
41948 (grub_serial_term_output): ... this. Update all users.
41949 * term/i386/pc/console.c (grub_console_term): Split into ...
41950 (grub_console_term_input): ... this, and ...
41951 (grub_console_term_output): ... this. Update all users.
41952 (grub_console_term_input): Only enable it on PC/BIOS platform.
41953 (grub_console_init): Remove grub_keyboard_controller_init() call.
41954
41955 Migrate input terminals to new API:
41956
41957 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41958 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41959 i386-specific anyway).
41960 (grub_console_checkkey): Rename to ...
41961 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41962 users.
41963 (grub_keyboard_controller_orig): New variable.
41964 (grub_console_getkey): Rename to ...
41965 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41966 users.
41967 (grub_keyboard_controller_init): Static-ize. Save original
41968 controller value so that it can be restored ...
41969 (grub_keyboard_controller_fini): ... here (new function).
41970 (grub_at_keyboard_term): New structure.
41971 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41972 functions.
41973
41974 Migrate output terminals to new API:
41975
41976 * term/i386/pc/vga.c (grub_vga_term): Change type to
41977 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41978 members. Update all users.
41979 * term/gfxterm.c (grub_video_term): Change type to
41980 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41981 members. Update all users.
41982 * include/grub/i386/pc/console.h (grub_console_checkkey)
41983 (grub_console_getkey): Do not export (no longer needed by gfxterm,
41984 etc).
41985
41986 Migrate `terminal' command and userland tools to new API:
41987
41988 * commands/terminal.c (grub_cmd_terminal): Split into ...
41989 (grub_cmd_terminal_input): ... this, and ...
41990 (grub_cmd_terminal_output): ... this.
41991 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
41992 `terminal_input' and `terminal_output'.
41993 * util/grub.d/00_header.in: Adjust `terminal' calls to new
41994 `terminal_input' / `terminal_output' API.
41995 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
41996 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
41997 provided ${GRUB_TERMINAL}, convert it).
41998
41999 2008-11-04 Robert Millan <rmh@aybabtu.com>
42000
42001 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42002 for FreeBSD.
42003 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42004
42005 2008-11-03 Bean <bean123ch@gmail.com>
42006
42007 * kern/elf.c (grub_elf32_load): Revert to previous code.
42008 (grub_elf64_load): Likewise.
42009
42010 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42011
42012 2008-11-01 Robert Millan <rmh@aybabtu.com>
42013
42014 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42015 (TARGET_CPPFLAGS): Likewise.
42016 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42017
42018 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42019
42020 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42021
42022 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42023
42024 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42025 addition of objects until the code is not going to be able to fail.
42026
42027 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42028
42029 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42030 (add a missing NULL check, and correct them by moving the pointer
42031 operations after the actual check).
42032
42033 2008-10-29 Robert Millan <rmh@aybabtu.com>
42034
42035 * util/i386/pc/grub-install.in: Handle empty string as output from
42036 make_system_path_relative_to_its_root().
42037
42038 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42039
42040 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42041 circular metadata worst case scenario. If the metadata is circular
42042 then copy the wrap in place.
42043 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42044 project lib/format_text/layout.h
42045 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42046
42047 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42048
42049 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42050
42051 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42052
42053 * util/update-grub_lib.in: Mention filename in warning message.
42054
42055 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42056
42057 * NEWS: Update for rename of update-grub to grub-mkconfig.
42058
42059 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42060
42061 * util/update-grub_lib.in: Copy to ...
42062 * util/grub-mkconfig_lib.in: ... this. Update all users.
42063 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42064 * util/update-grub.in: Rename to ...
42065 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42066 option. Add `--output' option to allow users to specify the generated
42067 configuration file. Default to stdout.
42068 (update_grub_dir): Rename to ...
42069 (grub_mkconfig_dir): ... this.
42070 (grub_cfg): Default to an empty string.
42071 * conf/common.rmk (update-grub): Rename to ...
42072 (grub-mkconfig): ... this.
42073 (update-grub_lib): Copy to ...
42074 (grub-mkconfig_lib): ... this.
42075 (update-grub_SCRIPTS): Copy to ...
42076 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42077 (update-grub_DATA): Rename to ...
42078 (grub-mkconfig_DATA): ... this.
42079
42080 2008-09-28 Robert Millan <rmh@aybabtu.com>
42081
42082 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42083 to `modified'. Add the real `created' field.
42084 (grub_iso9660_uuid): Use `modified' rather than `created' for
42085 constructing the UUID.
42086
42087 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42088
42089 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42090 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42091
42092 2008-09-28 Bean <bean123ch@gmail.com>
42093
42094 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42095 Thanks to Christian Franke for finding this bug.
42096
42097 2008-09-25 Robert Millan <rmh@aybabtu.com>
42098
42099 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42100 instances of grub_util_get_disk_name() (see previous commit).
42101
42102 2008-09-25 Robert Millan <rmh@aybabtu.com>
42103
42104 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42105 `util/i386/get_disk_name.c'.
42106 * conf/i386-efi.rmk: Likewise.
42107 * conf/x86_64-efi.rmk: Likewise.
42108 * conf/i386-coreboot.rmk: Likewise.
42109 * conf/i386-ieee1275.rmk: Likewise.
42110 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42111 `util/ieee1275/get_disk_name.c'.
42112 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42113 * util/ieee1275/get_disk_name.c: Remove file.
42114 * util/i386/get_disk_name.c: Remove file.
42115 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42116 "hd%d" for device.map entries, rather than using
42117 grub_util_get_disk_name().
42118
42119 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42120
42121 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42122 warning.
42123 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42124
42125 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42126
42127 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42128 Changed to 0x5100.
42129 (GRUB_TERM_PPAGE): Changed to 0x4900.
42130
42131 2008-09-24 Robert Millan <rmh@aybabtu.com>
42132
42133 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42134 macros (they were i386-pc specific).
42135 * include/grub/sparc64/ieee1275/console.h: Likewise.
42136 * include/grub/efi/console.h: Likewise.
42137
42138 2008-09-22 Bean <bean123ch@gmail.com>
42139
42140 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42141 resident and in attribute list.
42142
42143 * include/grub/ntfs.h (BMP_LEN): Removed.
42144
42145 2008-09-22 Bean <bean123ch@gmail.com>
42146
42147 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42148 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42149
42150 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42151 error occurs, as grub_disk_open will call grub_disk_close, which will
42152 call p->close (scsi).
42153
42154 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42155
42156 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42157 (AC_PREREQ): Bumped to 2.59.
42158 (AC_TRY_COMPILE): Replace obsolete macro with ...
42159 (AC_COMPILE_IFELSE): ... this.
42160 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42161 (AC_LINK_IFELSE): ... this.
42162
42163 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42164
42165 * autogen.sh: Add a call to `gendistlist.sh'.
42166
42167 2008-09-19 Christian Franke <franke@computer.org>
42168
42169 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42170 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42171 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42172 Export __enable_execute_stack() to modules.
42173 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42174 New function.
42175
42176 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42177
42178 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42179 Sort the list.
42180
42181 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42182
42183 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42184 #include <grub/util/hostdisk.h>.
42185
42186 2008-09-08 Robert Millan <rmh@aybabtu.com>
42187
42188 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42189 segments when their filesz is zero (grub_file_read() interprets
42190 zero-size as "read until EOF", which results in memory corruption).
42191 Use `lowest_segment' rather than 0 for calculating the current
42192 segment load address.
42193
42194 2008-09-08 Robert Millan <rmh@aybabtu.com>
42195
42196 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42197 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42198 clobbered useful information.
42199
42200 2008-09-08 Robert Millan <rmh@aybabtu.com>
42201
42202 * include/grub/util/biosdisk.h: Move to ...
42203 * include/grub/util/hostdisk.h: ... here. Update all users.
42204 * util/biosdisk.c: Move to ...
42205 * util/hostdisk.c: ... here. Update all users.
42206
42207 2008-09-07 Robert Millan <rmh@aybabtu.com>
42208
42209 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42210 variables.
42211 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42212 and length can be stored directly in the `mbi->mmap_addr' and
42213 `mbi->mmap_length' struct fields.
42214
42215 2008-09-07 Robert Millan <rmh@aybabtu.com>
42216
42217 * conf/i386.rmk: New file. Provides declaration for building
42218 `cpuid.mod'.
42219 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42220 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42221 variables.
42222 Include `conf/i386.mk'.
42223 * conf/i386-efi.rmk: Likewise.
42224 * conf/x86_64-efi.rmk: Likewise.
42225 * conf/i386-coreboot.rmk: Likewise.
42226 * conf/i386-ieee1275.rmk: Likewise.
42227
42228 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42229
42230 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42231 Adds optimization support for BGR based modes.
42232
42233 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42234 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42235 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42236 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42237 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42238 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42239 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42240 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42241 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42242 (grub_video_i386_vbeblit_index_index): Likewise.
42243 (grub_video_i386_vbeblit_replace_directN): Added.
42244 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42245 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42246 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42247 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42248 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42249 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42250 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42251 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42252 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42253 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42254 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42255 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42256 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42257
42258 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42259 (grub_video_i386_vbefill_R8G8B8): Likewise.
42260 (grub_video_i386_vbefill_index): Likewise.
42261 (grub_video_i386_vbefill_direct32): Added.
42262 (grub_video_i386_vbefill_direct24): Likewise.
42263 (grub_video_i386_vbefill_direct16): Likewise.
42264 (grub_video_i386_vbefill_direct8): Likewise.
42265
42266 * include/grub/video.h (grub_video_blit_format): Removed
42267 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42268 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42269 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42270 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42271 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42272
42273 * video/video.c (grub_video_get_blit_format): Updated to use new
42274 blit formats. Added handling for 16 bit color modes.
42275
42276 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42277 fillers.
42278 (common_blitter): Updated to use new blitters.
42279
42280 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42281 Removed.
42282 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42283 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42284 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42285 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42286 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42287 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42288 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42289 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42290 (grub_video_i386_vbeblit_index_index): Likewise.
42291 (grub_video_i386_vbeblit_replace_directN): Added.
42292 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42293 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42294 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42295 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42296 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42297 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42298 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42299 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42300 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42301 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42302 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42303 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42304 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42305
42306 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42307 (grub_video_i386_vbefill_R8G8B8): Likewise.
42308 (grub_video_i386_vbefill_index): Likewise.
42309 (grub_video_i386_vbefill_direct32): Added.
42310 (grub_video_i386_vbefill_direct24): Likewise.
42311 (grub_video_i386_vbefill_direct16): Likewise.
42312 (grub_video_i386_vbefill_direct8): Likewise.
42313
42314 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42315 types.
42316
42317 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42318 types.
42319
42320 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42321 blitter types.
42322
42323 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42324 types.
42325
42326 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42327
42328 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42329 RAID level 1.
42330
42331 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42332
42333 * fs/iso9660.c (grub_iso9660_date): New structure.
42334 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42335 (grub_iso9660_uuid): New function.
42336
42337 2008-09-05 Bean <bean123ch@gmail.com>
42338
42339 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42340
42341 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42342 insensitive bit for names in Win32 and Win32 & DOS namespace.
42343
42344 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42345
42346 * include/grub/types.h (LONG_MAX): Likewise.
42347
42348 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42349
42350 * util/getroot.c: Include <config.h>.
42351 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42352 add support for /dev/md/N devices and handle LVM double dash escaping.
42353
42354 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42355
42356 * config.guess: Update to latest version from config git.
42357 * config.sub: Likewise.
42358
42359 2008-09-03 Robert Millan <rmh@aybabtu.com>
42360
42361 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42362 `disk->total_sectors'.
42363
42364 2008-09-01 Colin D Bennett <colin@gibibit.com>
42365
42366 * include/grub/normal.h: Fixed incorrect comment for
42367 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42368
42369 2008-09-01 Colin D Bennett <colin@gibibit.com>
42370
42371 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42372 values with defines.
42373
42374 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42375 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42376 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42377 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42378 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42379 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42380 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42381 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42382 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42383 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42384 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42385 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42386 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42387 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42388 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42389 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42390 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42391 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42392 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42393
42394 2008-08-31 Robert Millan <rmh@aybabtu.com>
42395
42396 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42397 declaration.
42398 (grub_multiboot): Fix a few warnings.
42399
42400 2008-08-31 Robert Millan <rmh@aybabtu.com>
42401
42402 * loader/i386/pc/multiboot.c: Update comment not to say that
42403 boot_device support is unimplemented.
42404
42405 2008-08-31 Robert Millan <rmh@aybabtu.com>
42406
42407 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42408 or memory map support are unimplemented.
42409
42410 2008-08-31 Colin D Bennett <colin@gibibit.com>
42411
42412 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42413
42414 2008-08-31 Colin D Bennett <colin@gibibit.com>
42415
42416 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42417 total video memory in 'vbeinfo' output; show color format details for
42418 each video mode.
42419
42420 2008-08-30 Pavel Roskin <proski@gnu.org>
42421
42422 * util/genmoddep.c: Remove for real this time.
42423 * DISTLIST: Remove util/genmoddep.c.
42424
42425 2008-08-30 Robert Millan <rmh@aybabtu.com>
42426
42427 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42428 as required by Multiboot spec (it was already 4-byte aligned, but
42429 only by chance).
42430
42431 2008-08-29 Pavel Roskin <proski@gnu.org>
42432
42433 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42434 * kern/powerpc/ieee1275/startup.S: ... this.
42435 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42436 * DISTLIST: Likewise.
42437
42438 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42439 grub/cpu/kernel.h. Add start label for consistency with other
42440 platforms. Add grub_prefix immediately after start. Add jump
42441 to the code after grub_prefix.
42442 * include/grub/powerpc/kernel.h: Provide valid values for
42443 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42444
42445 2008-08-29 Bean <bean123ch@gmail.com>
42446
42447 * configure.ac: Change host_os to cygwin for mingw.
42448 (asprintf): New check for function.
42449
42450 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42451 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42452
42453 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42454 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42455 sync, sleep and grub_util_get_disk_size for mingw.
42456
42457 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42458 to get size in mingw.
42459 (open_device): Use flag O_BINARY if it's defined.
42460 (find_root_device): Add dummy code for mingw.
42461
42462 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42463 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42464 (get_scsi_disk_name): Return 0 for mingw.
42465
42466 * util/hostfs.c: #include <grub/util/misc.h>.
42467 (grub_hostfs_open): Use "rb" flag to open file, use
42468 grub_util_get_disk_size to get disk size for mingw.
42469
42470 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42471 (asprintf): New function if HAVE_ASPRINTF is not set.
42472 (sync): New function for mingw.
42473 (sleep): Likewise.
42474 (grub_util_get_disk_size): Likewise.
42475
42476 2008-08-28 Pavel Roskin <proski@gnu.org>
42477
42478 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42479 kern/time.c.
42480
42481 2008-08-28 Robert Millan <rmh@aybabtu.com>
42482
42483 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42484
42485 2008-08-28 Robert Millan <rmh@aybabtu.com>
42486
42487 Change find_grub_drive() syntax so it doesn't prevent it from
42488 detecting NULL names as errors.
42489
42490 * util/biosdisk.c (find_grub_drive): Move free slot search code
42491 from here ...
42492 (find_free_slot): ... to here.
42493 (read_device_map): Use find_free_slot() to search for free slots.
42494
42495 2008-08-27 Marco Gerards <marco@gnu.org>
42496
42497 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42498 (scsi_mod_SOURCES): New variable.
42499 (scsi_mod_CFLAGS): Likewise
42500 (scsi_mod_LDFLAGS): Likewise.
42501
42502 * disk/scsi.c: New file.
42503
42504 * include/grub/scsi.h: Likewise.
42505
42506 * include/grub/scsicmd.h: Likewise.
42507
42508 * disk/ata.c: Include <grub/scsi.h>.
42509 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42510 instead.
42511 (grub_ata_iterate): Skip ATAPI devices.
42512 (grub_ata_open): Only handle ATAPI devices.
42513 (struct grub_atapi_read): Removed.
42514 (grub_atapi_readsector): Likewise.
42515 (grub_ata_read): No longer handle ATAPI devices.
42516 (grub_ata_write): Likewise.
42517 (grub_atapi_iterate): New function.
42518 (grub_atapi_read): Likewise.
42519 (grub_atapi_write): Likewise.
42520 (grub_atapi_open): Likewise.
42521 (grub_atapi_close): Likewise.
42522 (grub_atapi_dev): New variable.
42523 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42524 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42525
42526 * include/grub/disk.h (enum grub_disk_dev_id): Add
42527 `GRUB_DISK_DEVICE_SCSI_ID'.
42528
42529 2008-08-26 Robert Millan <rmh@aybabtu.com>
42530
42531 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42532 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42533 descriptive.
42534
42535 2008-08-23 Bean <bean123ch@gmail.com>
42536
42537 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42538 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42539 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42540 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42541 dm_nv.mod.
42542 (raid5rec_mod_SOURCES): New macro.
42543 (raid5rec_mod_CFLAGS): Likewise.
42544 (raid5rec_mod_LDFLAGS): Likewise.
42545 (raid6rec_mod_SOURCES): Likewise.
42546 (raid6rec_mod_CFLAGS): Likewise.
42547 (raid6rec_mod_LDFLAGS): Likewise.
42548 (mdraid_mod_SOURCES): Likewise.
42549 (mdraid_mod_CFLAGS): Likewise.
42550 (mdraid_mod_LDFLAGS): Likewise.
42551 (dm_nv_mod_SOURCES): Likewise.
42552 (dm_nv_mod_CFLAGS): Likewise.
42553 (dm_nv_mod_LDFLAGS): Likewise.
42554
42555 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42556 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42557 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42558
42559 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42560 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42561
42562 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42563
42564 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42565
42566 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42567
42568 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42569
42570 * disk/raid5_recover.c: New file.
42571
42572 * disk/raid6_recover.c: Likewise.
42573
42574 * disk/mdraid_linux.c: Likewise.
42575
42576 * disk/dmraid_nvidia.c: Likewise.
42577
42578 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42579 ULONG_MAX.
42580
42581 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42582 calculate the size of raid device.
42583 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42584 different layout of raid5.
42585 (grub_raid_scan_device): Remove code specific to mdraid.
42586 (grub_raid_list): New variable.
42587 (free_array): New function.
42588 (grub_raid_register): Likewise.
42589 (grub_raid_unregister): Likewise.
42590 (grub_raid_rescan): Likewise.
42591 (GRUB_MOD_INIT): Don't iterate device here.
42592 (GRUB_MOD_FINI): Use free_array to release resource.
42593
42594 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42595 (grub_raid5_recover_func_t): New function variable type.
42596 (grub_raid6_recover_func_t): Likewise.
42597 (grub_raid5_recover_func): New variable.
42598 (grub_raid6_recover_func): Likewise.
42599 (grub_raid_register): New function.
42600 (grub_raid_unregister): Likewise.
42601 (grub_raid_rescan): Likewise.
42602 (grub_raid_block_xor): Likewise.
42603
42604 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42605 (CMD_CRC): New macro.
42606 (part): Removed.
42607 (read_file): Handle device as well as file.
42608 (cmd_crc): New function.
42609 (fstest): Handle multiple disks.
42610 (options): Remove part, raw and long, add root and diskcount.
42611 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42612 (main): Find the first non option entry and ignore subsequent options,
42613 add handling for the new options, support multiple disks.
42614
42615 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42616
42617 2008-08-23 Bean <bean123ch@gmail.com>
42618
42619 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42620
42621 * genfslist.sh: Ignore kernel.mod.
42622
42623 * genpartmaplist.sh: Likewise.
42624
42625 2008-08-23 Robert Millan <rmh@aybabtu.com>
42626
42627 * util/getroot.c (find_root_device): Skip anything that starts with
42628 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42629
42630 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42631
42632 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42633 * util/grub.d/00_header.in: Allow the administrator to change default
42634 gfxmode via ${GRUB_GFXMODE}.
42635
42636 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42637
42638 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42639
42640 2008-08-21 Robert Millan <rmh@aybabtu.com>
42641
42642 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42643 loader.
42644 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42645 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42646
42647 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42648
42649 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42650 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42651
42652 2008-08-19 Robert Millan <rmh@aybabtu.com>
42653
42654 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42655 (struct grub_virtual_screen): Remove `cursor_color'.
42656 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42657 initialization.
42658 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42659
42660 2008-08-18 Robert Millan <rmh@aybabtu.com>
42661
42662 Unify (identical) linux_normal.c files.
42663 * loader/i386/efi/linux_normal.c: Move from here ...
42664 * loader/linux_normal.c: ... to here. Update all users.
42665 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42666 * loader/i386/ieee1275/linux_normal.c: Likewise.
42667
42668 2008-08-18 Robert Millan <rmh@aybabtu.com>
42669
42670 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42671 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42672 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42673 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42674 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42675 New macros.
42676 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42677 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42678 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42679 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42680 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42681 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42682 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42683 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42684 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42685 portably using grub_getxy().
42686 Replace `-EFI' with `-bzImage' in boot message.
42687
42688 2008-08-17 Robert Millan <rmh@aybabtu.com>
42689
42690 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42691
42692 2008-08-17 Robert Millan <rmh@aybabtu.com>
42693
42694 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42695
42696 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42697 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42698 (grub_machine_mmap_iterate): New function declaration.
42699 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42700 structure.
42701 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42702 macros.
42703
42704 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42705 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42706 Move e820 parsing from here ...
42707 * kern/i386/pc/mmap.c: New file.
42708 (grub_machine_mmap_iterate): ... to here.
42709
42710 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42711 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42712 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42713 (grub_available_iterate): Redeclare to return `void', and redeclare
42714 its hook to use grub_uint64_t as addr and size parameters, and rename
42715 to ...
42716 (grub_machine_mmap_iterate): ... this. Update all users.
42717
42718 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42719 to make it more readable. Rename to ...
42720 (grub_machine_mmap_iterate): ... this.
42721
42722 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42723 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42724 (grub_multiboot): Allocate an extra region after the payload, and fill
42725 it with a Multiboot memory map. Adjust a.out loader to calculate size
42726 with the extra space.
42727 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42728 with the extra space.
42729
42730 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42731
42732 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42733
42734 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42735
42736 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42737 mdate-sh to the list `find' searches for.
42738 * DISTLIST: Regenerated.
42739
42740 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42741
42742 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42743 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42744 genmoddep.awk, gensymlist.sh.in.
42745 (DISTDIRS): Add bus, docs, hook, lib.
42746 * DISTLIST: Regenerated.
42747 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42748
42749 2008-08-16 Robert Millan <rmh@aybabtu.com>
42750
42751 * disk/raid.c (grub_raid_init): Handle/report errors set by
42752 grub_device_iterate().
42753 * disk/lvm.c (grub_lvm_init): Likewise.
42754
42755 2008-08-15 Bean <bean123ch@gmail.com>
42756
42757 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42758 and datehook.mod.
42759 (datetime_mod_SOURCES): New macro.
42760 (datetime_mod_CFLAGS): Likewise.
42761 (datetime_mod_LDFLAGS): Likewise.
42762 (date_mod_SOURCES): Likewise.
42763 (date_mod_CFLAGS): Likewise.
42764 (date_mod_LDFLAGS): Likewise.
42765 (datehook_mod_SOURCES): Likewise.
42766 (datehook_mod_CFLAGS): Likewise.
42767 (datehook_mod_LDFLAGS): Likewise.
42768
42769 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42770 and datehook.mod.
42771 (datetime_mod_SOURCES): New macro.
42772 (datetime_mod_CFLAGS): Likewise.
42773 (datetime_mod_LDFLAGS): Likewise.
42774 (date_mod_SOURCES): Likewise.
42775 (date_mod_CFLAGS): Likewise.
42776 (date_mod_LDFLAGS): Likewise.
42777 (datehook_mod_SOURCES): Likewise.
42778 (datehook_mod_CFLAGS): Likewise.
42779 (datehook_mod_LDFLAGS): Likewise.
42780
42781 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42782 and datehook.mod.
42783 (datetime_mod_SOURCES): New macro.
42784 (datetime_mod_CFLAGS): Likewise.
42785 (datetime_mod_LDFLAGS): Likewise.
42786 (date_mod_SOURCES): Likewise.
42787 (date_mod_CFLAGS): Likewise.
42788 (date_mod_LDFLAGS): Likewise.
42789 (datehook_mod_SOURCES): Likewise.
42790 (datehook_mod_CFLAGS): Likewise.
42791 (datehook_mod_LDFLAGS): Likewise.
42792
42793 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42794 and datehook.mod.
42795 (datetime_mod_SOURCES): New macro.
42796 (datetime_mod_CFLAGS): Likewise.
42797 (datetime_mod_LDFLAGS): Likewise.
42798 (date_mod_SOURCES): Likewise.
42799 (date_mod_CFLAGS): Likewise.
42800 (date_mod_LDFLAGS): Likewise.
42801 (datehook_mod_SOURCES): Likewise.
42802 (datehook_mod_CFLAGS): Likewise.
42803 (datehook_mod_LDFLAGS): Likewise.
42804
42805 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42806 and datehook.mod.
42807 (datetime_mod_SOURCES): New macro.
42808 (datetime_mod_CFLAGS): Likewise.
42809 (datetime_mod_LDFLAGS): Likewise.
42810 (date_mod_SOURCES): Likewise.
42811 (date_mod_CFLAGS): Likewise.
42812 (date_mod_LDFLAGS): Likewise.
42813 (datehook_mod_SOURCES): Likewise.
42814 (datehook_mod_CFLAGS): Likewise.
42815 (datehook_mod_LDFLAGS): Likewise.
42816
42817 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42818
42819 * commands/date.c: New file.
42820
42821 * hook/datehook.c: Likewise.
42822
42823 * include/grub/lib/datetime.h: Likewise.
42824
42825 * include/grub/i386/cmos.h: Likewise.
42826
42827 * lib/datetime.c: Likewise.
42828
42829 * lib/i386/datetime.c: Likewise.
42830
42831 * lib/efi/datetime.c: Likewise.
42832
42833 2008-08-14 Robert Millan <rmh@aybabtu.com>
42834
42835 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42836 (grub_mkelfimage_SOURCES): New variable.
42837 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42838
42839 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42840 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42841 * conf/powerpc-ieee1275.rmk: Likewise.
42842 * conf/i386-ieee1275.rmk: Likewise.
42843
42844 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42845 * kern/i386/coreboot/init.c: Likewise.
42846
42847 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42848 with `<grub/cpu/kernel.h>'.
42849 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42850 to ...
42851 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42852 * kern/i386/coreboot/startup.S: Likewise.
42853
42854 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42855 (GRUB_MOD_GAP): Remove.
42856 * include/grub/powerpc/kernel.h: New file.
42857 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42858 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42859 * include/grub/i386/kernel.h: New file.
42860 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42861 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42862 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42863
42864 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42865 `grub-mkelfimage'.
42866 Use --directory when invoking grub_mkimage.
42867
42868 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42869 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42870 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42871 and GRUB_KERNEL_CPU_PREFIX.
42872
42873 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42874
42875 * include/grub/err.h (grub_err_printf): New function prototype.
42876 * util/misc.c (grub_err_printf): New function.
42877 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42878 grub_printf.
42879 * kern/err.c (grub_print_error): Use grub_err_printf.
42880
42881 2008-08-13 Robert Millan <rmh@aybabtu.com>
42882
42883 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42884
42885 2008-08-13 Robert Millan <rmh@aybabtu.com>
42886
42887 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42888 boot entry.
42889
42890 2008-08-12 Robert Millan <rmh@aybabtu.com>
42891
42892 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42893 of the relocation code from here ...
42894 (grub_multiboot): ... to here.
42895 (forward_relocator, backward_relocator): Move from here ...
42896 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42897 (grub_multiboot_backward_relocator): ... to here.
42898 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42899 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42900 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42901 (grub_multiboot_forward_relocator_end)
42902 (grub_multiboot_backward_relocator)
42903 (grub_multiboot_backward_relocator_end): New variables.
42904
42905 2008-08-12 Bean <bean123ch@gmail.com>
42906
42907 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42908
42909 2008-08-11 Robert Millan <rmh@aybabtu.com>
42910
42911 * kern/i386/linuxbios/startup.S: Move from here ...
42912 * kern/i386/coreboot/startup.S: ... to here.
42913
42914 * kern/i386/linuxbios/init.c: Move from here ...
42915 * kern/i386/coreboot/init.c: ... to here.
42916
42917 * kern/i386/linuxbios/table.c: Move from here ...
42918 * kern/i386/coreboot/mmap.c: ... to here.
42919
42920 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42921
42922 2008-08-11 Robert Millan <rmh@aybabtu.com>
42923
42924 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42925 errors. Leave it to the upper layer to handle them.
42926
42927 2008-08-09 Christian Franke <franke@computer.org>
42928
42929 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42930 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42931 Install `grub.d/10_windows' only on Cygwin.
42932 * configure.ac: Add subst of `target_os'.
42933 Check `target_os' also before setting TARGET_OBJ2ELF.
42934 Add `--enable-grub-pe2elf'.
42935
42936 2008-08-08 Robert Millan <rmh@aybabtu.com>
42937
42938 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42939 (grub_last_time): Change type to grub_uint64_t.
42940 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42941 (grub_disk_close): Likewise.
42942
42943 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42944 (run_menu): Migrate code from to using grub_get_time_ms().
42945
42946 * util/misc.c (grub_get_time_ms): New function.
42947
42948 2008-08-08 Marco Gerards <marco@gnu.org>
42949
42950 * disk/ata.c (grub_ata_regget): Change return type to
42951 `grub_uint8_t'.
42952 (grub_ata_regget2): Likewise.
42953 (grub_ata_wait_status): New function.
42954 (grub_ata_wait_busy): Removed function, updated all users to use
42955 `grub_ata_wait_status'.
42956 (grub_ata_wait_drq): Likewise.
42957 (grub_ata_cmd): New function.
42958 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42959 error handling.
42960 (grub_ata_pio_write): Add error handling.
42961 (grub_atapi_identify): Likewise.
42962 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42963 handling.
42964 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42965 handling. Actually use the detected registers. Reorder the
42966 detection logic such that it is easier to read.
42967 (grub_ata_pciinit): Do not assign the same ID to each controller.
42968 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42969 handling.
42970 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42971
42972 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42973
42974 2008-08-08 Marco Gerards <marco@gnu.org>
42975
42976 * NEWS: Update.
42977
42978 2008-08-07 Bean <bean123ch@gmail.com>
42979
42980 * include/grub/x86_64/pci.h: New file.
42981
42982 2008-08-07 Christian Franke <franke@computer.org>
42983
42984 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
42985 (TIMER2_GATE): Likewise.
42986 (grub_pit_wait): Add enable/disable of the timer2 gate
42987 bit of port 0x61. This fixes a possible infinite loop.
42988
42989 2008-08-07 Bean <bean123ch@gmail.com>
42990
42991 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
42992 kern/i386/tsc.c and kern/i386/pit.c.
42993
42994 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
42995 x86_64 platform.
42996
42997 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
42998 <grub/i386/tsc.h>.
42999
43000 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43001
43002 2008-08-07 Bean <bean123ch@gmail.com>
43003
43004 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43005
43006 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43007
43008 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43009 multiple inclusion. Add #include <grub/types.h>.
43010
43011 2008-08-06 Christian Franke <franke@computer.org>
43012
43013 * conf/common.rmk: Build and install `10_windows'.
43014 * util/grub.d/10_windows.in: New script.
43015
43016 2008-08-06 Pavel Roskin <proski@gnu.org>
43017
43018 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43019
43020 2008-08-06 Robert Millan <rmh@aybabtu.com>
43021
43022 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43023 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43024
43025 2008-08-06 Bean <bean123ch@gmail.com>
43026
43027 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43028 (grub_pxefs_fs_int): Remove dummy definition.
43029 (grub_pxefs_open): Use data->block_size to store the current block
43030 size setting.
43031 (grub_pxefs_read): Use block size stored in data->block_size. As the
43032 value of grub_pxe_blksize can be changed after the file is opened.
43033
43034 2008-08-06 Bean <bean123ch@gmail.com>
43035
43036 * fs/i386/pc/pxe.c (curr_file): new variable.
43037 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43038 require the dummy internal file system anymore.
43039 (grub_pxefs_read): Removed.
43040 (grub_pxefs_close): Likewise.
43041 (grub_pxefs_fs_int): Likewise.
43042 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43043 connection when we switch file.
43044 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43045
43046 2008-08-06 Robert Millan <rmh@aybabtu.com>
43047
43048 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43049 `halt.mod'.
43050 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43051 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43052
43053 * kern/i386/halt.c: New file.
43054 * kern/i386/reboot.c: Likewise.
43055 * include/grub/i386/reboot.h: Likewise.
43056 * include/grub/i386/halt.h: Likewise.
43057
43058 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43059 Include `<grub/cpu/halt.h>'.
43060 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43061 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43062
43063 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43064 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43065 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43066 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43067 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43068 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43069 from here ...
43070 * include/grub/i386/at_keyboard.h: ... to here.
43071
43072 2008-08-05 Robert Millan <rmh@aybabtu.com>
43073
43074 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43075 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43076 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43077 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43078 `kern/generic/millisleep.c'.
43079
43080 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43081 instead of grub_get_rtc().
43082 (grub_tsc_init): Initialize `tsc_boot_time'.
43083
43084 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43085 (grub_machine_init): Use grub_tsc_init() rather than
43086 installing an RTC-based handler via grub_install_get_time_ms().
43087
43088 * kern/i386/pit.c: New file.
43089 * include/grub/i386/pit.h: Likewise.
43090
43091 2008-08-05 Bean <bean123ch@gmail.com>
43092
43093 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43094
43095 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43096 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43097 (pxe_mod_SOURCES): New macro.
43098 (pxe_mod_CFLAGS): Likewise.
43099 (pxe_mod_LDFLAGS): Likewise.
43100 (pxecmd_mod_SOURCES): Likewise.
43101 (pxecmd_mod_CFLAGS): Likewise.
43102 (pxecmd_mod_LDFLAGS): Likewise.
43103
43104 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43105 (grub_pxe_call): Likewise.
43106
43107 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43108
43109 * commands/i386/pc/pxecmd.c: New file.
43110
43111 * fs/i386/pc/pxe.c: Likewise.
43112
43113 * include/grub/i386/pc/pxe.h: Likewise.
43114
43115 2008-08-05 Bean <bean123ch@gmail.com>
43116
43117 * util/console.c (grub_console_cur_color): New variable.
43118 (grub_console_standard_color): Likewise.
43119 (grub_console_normal_color): Likewise.
43120 (grub_console_highlight_color): Likewise.
43121 (color_map): Likewise.
43122 (use_color): Likewise.
43123 (NUM_COLORS): New macro.
43124 (grub_ncurses_setcolorstate): Handle color properly.
43125 (grub_ncurses_setcolor): Don't change color here, just remember the
43126 settings, color will be set in grub_ncurses_setcolorstate.
43127 (grub_ncurses_getcolor): New function.
43128 (grub_ncurses_init): Initialize color pairs.
43129 (grub_ncurses_term): New member grub_ncurses_getcolor.
43130
43131 2008-08-05 Colin D Bennett <colin@gibibit.com>
43132
43133 High resolution timer support. Implemented for x86 CPUs using TSC.
43134 Extracted generic grub_millisleep() so it's linked in only as needed.
43135 This requires a Pentium compatible CPU; if the RDTSC instruction is
43136 not supported, then it falls back on the generic grub_get_time_ms()
43137 implementation that uses the machine's RTC.
43138
43139 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43140 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43141 `kern/generic/millisleep.c'.
43142
43143 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43144 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43145
43146 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43147 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43148
43149 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43150
43151 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43152 `kern/generic/millisleep.c'.
43153
43154 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43155
43156 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43157
43158 * kern/generic/rtc_get_time_ms.c: New file.
43159
43160 * kern/generic/millisleep.c: New file.
43161
43162 * kern/misc.c: Don't include
43163 <kern/time.h> anymore.
43164 (grub_millisleep_generic): Removed.
43165
43166 * commands/sleep.c (grub_interruptible_millisleep): Uses
43167 grub_get_time_ms() instead of grub_get_rtc().
43168
43169 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43170 function.
43171 (grub_cpu_is_cpuid_supported): New inline function.
43172 (grub_cpu_is_tsc_supported): New inline function.
43173 (grub_tsc_init): New function prototype.
43174 (grub_tsc_get_time_ms): New function prototype.
43175
43176 * kern/i386/tsc.c (grub_get_time_ms): New file.
43177
43178 * include/grub/time.h: Include <grub/types.h.
43179 (grub_millisleep_generic): Removed.
43180 (grub_get_time_ms): New prototype.
43181 (grub_install_get_time_ms): New prototype.
43182 (grub_rtc_get_time_ms): New prototype.
43183
43184 * kern/time.c (grub_get_time_ms): New function.
43185 (grub_install_get_time_ms): New function.
43186
43187 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43188 <grub/time.h> anymore.
43189 (grub_millisleep): Removed.
43190 (grub_machine_init): Call grub_tsc_init.
43191
43192 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43193 get_time_ms() implementation.
43194
43195 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43196 (ieee1275_get_time_ms): New function.
43197 (grub_machine_init): Install get_time_ms() implementation.
43198
43199 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43200 (grub_machine_init): Call grub_tsc_init().
43201 (grub_millisleep): Removed.
43202
43203 * kern/ieee1275/init.c (grub_millisleep): Removed.
43204 (grub_machine_init): Install ieee1275_get_time_ms()
43205 implementation.
43206 (ieee1275_get_time_ms): New function.
43207 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43208 real work.
43209
43210 2008-08-05 Marco Gerards <marco@gnu.org>
43211
43212 * disk/ata.c: Include <grub/pci.h>.
43213 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43214 (grub_ata_initialize): Rewritten.
43215 (grub_ata_device_initialize): New function.
43216
43217 2008-08-04 Pavel Roskin <proski@gnu.org>
43218
43219 * kern/main.c: Include grub/mm.h.
43220
43221 2008-08-04 Robert Millan <rmh@aybabtu.com>
43222
43223 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43224 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43225 corruption problem).
43226
43227 2008-08-04 Robert Millan <rmh@aybabtu.com>
43228
43229 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43230 warnings introduced in my last commit.
43231
43232 2008-08-03 Robert Millan <rmh@aybabtu.com>
43233
43234 Make PCI available on all i386 architectures.
43235
43236 * include/grub/i386/pc/pci.h: Move from here ...
43237 * include/grub/i386/pci.h: ... to here.
43238
43239 * include/grub/i386/pc/pci.h: Remove.
43240 * include/grub/i386/efi/pci.h: Remove.
43241 * include/grub/x86_64/efi/pci.h: Remove.
43242
43243 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43244 `<grub/cpu/pci.h>'.
43245
43246 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43247 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43248 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43249
43250 * conf/i386-ieee1275.rmk: Likewise.
43251
43252 2008-08-03 Robert Millan <rmh@aybabtu.com>
43253
43254 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43255 (grub_console_setcursor): Make it possible to set cursor off.
43256
43257 2008-08-03 Robert Millan <rmh@aybabtu.com>
43258
43259 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43260 of modules instead of assuming which platform provides what.
43261 * util/update-grub.in: Likewise.
43262
43263 2008-08-03 Robert Millan <rmh@aybabtu.com>
43264
43265 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43266 instead of `grub_install_dos_part' to determine whether a drive needs
43267 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43268 because it can be overridden when loading GRUB via Multiboot).
43269
43270 2008-08-02 Robert Millan <rmh@aybabtu.com>
43271
43272 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43273
43274 2008-08-02 Robert Millan <rmh@aybabtu.com>
43275
43276 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43277 of informational grub_dprintf() calls.
43278
43279 2008-08-02 Robert Millan <rmh@aybabtu.com>
43280
43281 * disk/memdisk.c (memdisk_size): Don't initialize.
43282 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43283
43284 * include/grub/i386/pc/kernel.h
43285 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43286 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43287 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43288 (grub_arch_memdisk_size): Remove.
43289
43290 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43291 field (was only used to transfer a constant). Add `type' field to
43292 support multiple module types.
43293 (grub_module_iterate): New function.
43294
43295 * kern/device.c (grub_device_open): Do not hide error messages
43296 when grub_disk_open() fails. Use grub_print_error() instead.
43297
43298 * kern/i386/pc/init.c (grub_arch_modules_addr)
43299 (grub_arch_memdisk_size): Remove functions.
43300 (grub_arch_modules_addr): Return the module address in high memory
43301 (now that it isn't copied anymore).
43302
43303 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43304 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43305 decompression routine (grub_total_module_size already includes that
43306 now). Don't copy modules back to low memory.
43307
43308 * kern/main.c: Include `<grub/mm.h>'.
43309 (grub_load_modules): Split out (and use) ...
43310 (grub_module_iterate): ... this function, which iterates through
43311 module objects and runs a hook.
43312 Comment out grub_mm_init_region() call, as it would cause non-ELF
43313 modules to be overwritten.
43314
43315 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43316 the memdisk image in its own region, make it part of the module list.
43317 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43318 (main): Parse --memdisk|-m option, and pass user-provided path as
43319 parameter to generate_image().
43320 (add_segments): Pass `memdisk_path' down to load_modules().
43321 (load_modules): Embed memdisk image in module section when requested.
43322 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43323 `header.type' instead of `header.offset'.
43324
43325 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43326 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43327 (memdisk_mod_LDFLAGS): New variables.
43328 * conf/i386-coreboot.rmk: Likewise.
43329 * conf/i386-ieee1275.rmk: Likewise.
43330
43331 2008-08-02 Robert Millan <rmh@aybabtu.com>
43332
43333 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43334 (backward_relocator): New variables. Used to allocate and relocate
43335 the payload, respectively.
43336 (grub_multiboot_load_elf32): Load into heap instead of requested
43337 address, install the appropriate relocator code in each bound of
43338 the payload, and set the entry point such that
43339 grub_multiboot_real_boot() will jump to one of them.
43340
43341 * kern/i386/loader.S (grub_multiboot_payload_size)
43342 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43343 (grub_multiboot_payload_entry_offset): New variables.
43344 (grub_multiboot_real_boot): Set cpu context to what the relocator
43345 expects, and jump to the relocator instead of the payload.
43346
43347 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43348 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43349 (grub_multiboot_payload_entry_offset): Export.
43350
43351 2008-08-01 Bean <bean123ch@gmail.com>
43352
43353 * normal/menu_entry.c (editor_getline): Don't return the original
43354 string as result, as it will be released by lexer once it has done
43355 using it.
43356
43357 2008-08-01 Robert Millan <rmh@aybabtu.com>
43358
43359 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43360 within menuentries, not before them.
43361 util/grub.d/10_hurd.in: Likewise.
43362
43363 2008-08-01 Bean <bean123ch@gmail.com>
43364
43365 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43366 (bufio_mod_SOURCES): New macro.
43367 (bufio_mod_CFLAGS): Likewise.
43368 (bufio_mod_LDFLAGS): Likewise.
43369
43370 * include/grub/bufio.h: New file.
43371
43372 * io/bufio.c: Likewise.
43373
43374 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43375 (grub_video_reader_png): Use grub_buffile_open to open file.
43376
43377 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43378 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43379
43380 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43381 (grub_video_reader_tga): Use grub_buffile_open to open file.
43382
43383 * font/manager.c: Include <grub/bufio.h>.
43384 (add_font): Use grub_buffile_open to open file.
43385
43386 2008-07-31 Robert Millan <rmh@aybabtu.com>
43387
43388 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43389 ELF segments, use a macro for arbitrarily accessing any of them instead
43390 of preparing a pointer that allows access to one at a time.
43391 (grub_multiboot_load_elf64): Likewise.
43392
43393 2008-07-31 Bean <bean123ch@gmail.com>
43394
43395 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43396 GRUB_KERNEL_MACHINE_DATA_END.
43397
43398 2008-07-30 Robert Millan <rmh@aybabtu.com>
43399
43400 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43401 Increase from 0x50 to 0x60.
43402 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43403 use UUIDs to identify the root drive for them. If that's not
43404 possible, abort.
43405 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43406 check, for cross-disk installs.
43407
43408 2008-07-30 Robert Millan <rmh@aybabtu.com>
43409
43410 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43411 is non-empty, use it to set the `prefix' environment variable instead
43412 of the usual approach.
43413 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43414 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43415 environment variable instead of dummy make_install_device().
43416
43417 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43418 (start): Insert a data section, with `grub_prefix' variable.
43419 * kern/i386/linuxbios/startup.S: Likewise.
43420
43421 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43422 New variable reference.
43423 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43424 New macro. Defines offset of `grub_prefix' within startup.S (relative
43425 to `start').
43426 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43427 section within startup.S (relative to `start').
43428 * include/grub/i386/coreboot/kernel.h: Likewise.
43429
43430 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43431 Overwrite grub_prefix with its contents, at the beginning of the
43432 first segment.
43433 (main): Understand -p|--prefix.
43434
43435 2008-07-30 Robert Millan <rmh@aybabtu.com>
43436
43437 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43438
43439 2008-07-30 Robert Millan <rmh@aybabtu.com>
43440
43441 * term/i386/pc/vga_text.c (grub_console_cls): Use
43442 grub_console_gotoxy() to go back to beginning of the screen.
43443 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43444
43445 2008-07-29 Christian Franke <franke@computer.org>
43446
43447 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43448 Add conversion of emulated mount points on Cygwin.
43449
43450 2008-07-29 Christian Franke <franke@computer.org>
43451
43452 * util/update-grub.in: Add a check for admin
43453 group on Cygwin.
43454 Remove old `grub.cfg.new' before creation.
43455 Add `-f' to `mv' to handle the different filesystem
43456 semantics of Windows.
43457
43458 2008-07-29 Bean <bean123ch@gmail.com>
43459
43460 * normal/main.c (get_line): Fix buffer overflow bug.
43461
43462 2008-07-28 Robert Millan <rmh@aybabtu.com>
43463
43464 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43465 (struct grub_apple_header): New struct. Describes the layout of
43466 the partmap header.
43467 (apple_partition_map_iterate): Check the header magic as well as the
43468 partition magic (which was already being checked).
43469
43470 2008-07-28 Pavel Roskin <proski@gnu.org>
43471
43472 * genmk.rb: Add a warning to the beginning of the output that
43473 it's a generated file and should not be edited.
43474
43475 2008-07-28 Robert Millan <rmh@aybabtu.com>
43476
43477 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43478 with the same number are found, just use issue a warning with
43479 grub_dprintf(), as this error has been reported to be non-fatal.
43480
43481 2008-07-27 Robert Millan <rmh@aybabtu.com>
43482
43483 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43484 information.
43485
43486 2008-07-27 Bean <bean123ch@gmail.com>
43487
43488 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43489 (grub_fat_find_dir): Ignore case when comparing filename.
43490
43491 2008-07-27 Bean <bean123ch@gmail.com>
43492
43493 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43494 smallino, as it's more descriptive, and i8count can be confused with
43495 the other field count.
43496 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43497 inode type.
43498
43499 2008-07-27 Bean <bean123ch@gmail.com>
43500
43501 * commands/crc.c: New file.
43502
43503 * lib/crc.c: Likewise.
43504
43505 * include/grub/lib/crc.h: Likewise.
43506
43507 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43508
43509 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43510 (hexdump): Move this function to ...
43511
43512 * lib/hexdump.c: ... here.
43513
43514 * include/grub/hexdump.h: Renamed to ...
43515
43516 * include/grub/lib/hexdump.h: ... this.
43517
43518 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43519
43520 * util/grub-editenv.c: Likewise.
43521
43522 * include/envblk.h: Renamed to ...
43523
43524 * include/lib/envblk.h: ... this.
43525
43526 * util/envblk.c: Renamed to ...
43527
43528 * lib/envblk.c: ... this.
43529
43530 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43531 lib/hexdump.c.
43532 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43533 (pkglib_MODULES): Add crc.mod.
43534 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43535 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43536 (crc_mod_SOURCES): New macro.
43537 (crc_mod_CFLAGS): Likewise.
43538 (crc_mod_LDFLAGS): Likewise.
43539
43540 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43541
43542 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43543
43544 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43545
43546 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43547
43548 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43549
43550 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43551
43552 * commands/help.c: Include <grub/term.h>.
43553 (TERM_WIDTH): Removed. Updated all users.
43554
43555 2008-07-27 Pavel Roskin <proski@gnu.org>
43556
43557 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43558 spurious warnings about a comment within a comment.
43559
43560 2008-07-25 Robert Millan <rmh@aybabtu.com>
43561
43562 * util/getroot.c (find_root_device): Skip devices that match
43563 /dev/dm-[0-9]. This lets the real device be found for any type of
43564 abstraction (LVM, EVMS, RAID..).
43565 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43566 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43567 device is found first, find_root_device() will now skip it.
43568
43569 2008-07-24 Pavel Roskin <proski@gnu.org>
43570
43571 * include/grub/types.h: Use __builtin_bswap32() and
43572 __builtin_bswap64() with gcc 4.3 and newer.
43573
43574 2008-07-24 Christian Franke <franke@computer.org>
43575
43576 * util/i386/pc/grub-install.in: If `--debug' is specified,
43577 pass `--verbose' to grub-setup.
43578 Abort script if make_system_path_relative_to_its_root() fails.
43579
43580 2008-07-24 Bean <bean123ch@gmail.com>
43581
43582 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43583 variable `target_platform' should be `platform'.
43584
43585 2008-07-24 Bean <bean123ch@gmail.com>
43586
43587 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43588 (grub_png_init_fixed_block): New function.
43589 (grub_png_decode_image_data): Handle fixed huffman code compression.
43590
43591 2008-07-24 Bean <bean123ch@gmail.com>
43592
43593 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43594 (grub_pe2elf_SOURCES): New macro.
43595 (CLEANFILES): Add grub-pe2elf.
43596
43597 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43598 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43599 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43600 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43601 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43602 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43603 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43604 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43605 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43606 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43607 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43608 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43609 (GRUB_PE32_DT_FUNCTION): Likewise.
43610 (GRUB_PE32_REL_I386_DIR32): Likewise.
43611 (GRUB_PE32_REL_I386_REL32): Likewise.
43612 (grub_pe32_symbol): New structure.
43613 (grub_pe32_reloc): Likewise.
43614
43615 * util/grub-pe2elf.c: New file.
43616
43617 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43618 start symbol in non pc platform.
43619
43620 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43621
43622 The following patches are from Christian Franke.
43623
43624 * include/grub/dl.h: Remove .previous, gas supports this only
43625 for ELF format.
43626
43627 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43628 Remove .type, gas supports this only for ELF format.
43629
43630 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43631 nullbytes in symbol table. This fixes an infinite loop if table is
43632 zero filled.
43633
43634 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43635 TARGET_IMG_LDFLAGS and EXEEXT.
43636
43637 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43638 TARGET_IMG_LDFLAGS_AC.
43639 (grub_CHECK_STACK_ARG_PROBE): New function.
43640
43641 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43642
43643 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43644
43645 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43646 to set TARGET_IMG_LD* accordingly.
43647 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43648 Add call to grub_CHECK_STACK_ARG_PROBE.
43649 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43650
43651 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43652
43653 * genmk.rb: Add EXEEXT to CLEANFILES.
43654
43655 2008-07-23 Robert Millan <rmh@aybabtu.com>
43656
43657 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43658 define the codes for arrows and lines used for the menu).
43659 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43660 as well.
43661
43662 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43663 fonts, because the latter are too slow.
43664
43665 2008-07-21 Bean <bean123ch@gmail.com>
43666
43667 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43668 a20. Run keyboard test last, as it will cause macbook to halt.
43669
43670 2008-07-18 Pavel Roskin <proski@gnu.org>
43671
43672 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43673 load foreign architecture modules correctly anyway. Keep
43674 support for loading host architecture modules, whether we
43675 compile them or not.
43676
43677 2008-07-17 Pavel Roskin <proski@gnu.org>
43678
43679 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43680 change target_cpu. The compiler default can mismatch target_cpu
43681 in any case.
43682
43683 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43684 * kern/efi/efi.c: Likewise.
43685
43686 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43687 target compiler is functional.
43688 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43689 are set up.
43690
43691 * configure.ac: Default to efi platform for x86_64-apple. Allow
43692 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43693 adjustments from the rest, only do them if target is not
43694 explicitly given. Merge other adjustments with the final sanity
43695 check. Remove an extraneous check for supported CPU. Be
43696 specific which CPU and which platform is not supported.
43697
43698 * configure.ac: Default to pc platform for x86_64.
43699
43700 2008-07-17 Robert Millan <rmh@aybabtu.com>
43701
43702 Partial LinuxBIOS -> Coreboot rename.
43703
43704 * conf/i386-linuxbios.rmk: Renamed to ...
43705 * conf/i386-coreboot.rmk: ... this.
43706 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43707 * configure.ac: Accept "coreboot" as input platform (but maintain
43708 compatibility with "linuxbios").
43709 * include/grub/i386/linuxbios: Renamed to ...
43710 * include/grub/i386/coreboot: ... this.
43711
43712 2008-07-17 Bean <bean123ch@gmail.com>
43713
43714 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43715 (appleldr_mod_SOURCE): New variable.
43716 (appleldr_mod_CFLAGS): Likewise.
43717 (appleldr_mod_LDFLAGS): Likewise.
43718 (pci_mod_SOURCES): Likewise.
43719 (pci_mod_CFLAGS): Likewise.
43720 (pci_mod_LDFLAGS): Likewise.
43721 (lspci_mod_SOURCES): Likewise.
43722 (lspci_mod_CFLAGS): Likewise.
43723 (lspci_mod_LDFLAGS): Likewise.
43724
43725 * conf/x86_64-efi.rmk: New file.
43726
43727 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43728 macro.
43729 (grub_efidisk_write): Likewise.
43730
43731 * include/efi/api.h (efi_call_0): New macro.
43732 (efi_call_1): Likewise.
43733 (efi_call_2): Likewise.
43734 (efi_call_3): Likewise.
43735 (efi_call_4): Likewise.
43736 (efi_call_5): Likewise.
43737 (efi_call_6): Likewise.
43738
43739 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43740 grub_rescue_cmd_chainloader.
43741
43742 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43743 (grub_pe32_optional_header): Change some fields based on i386 or
43744 x86_64 platform.
43745 (GRUB_PE32_PE32_MAGIC): Likewise.
43746
43747 * include/grub/efi/uga_draw.h: New file.
43748
43749 * include/grub/elf.h (STN_ABS): New constant.
43750 (R_X86_64_NONE): Relocation constant for x86_64.
43751 (R_X86_64_64): Likewise.
43752 (R_X86_64_PC32): Likewise.
43753 (R_X86_64_GOT32): Likewise.
43754 (R_X86_64_PLT32): Likewise.
43755 (R_X86_64_COPY): Likewise.
43756 (R_X86_64_GLOB_DAT): Likewise.
43757 (R_X86_64_JUMP_SLOT): Likewise.
43758 (R_X86_64_RELATIVE): Likewise.
43759 (R_X86_64_GOTPCREL): Likewise.
43760 (R_X86_64_32): Likewise.
43761 (R_X86_64_32S): Likewise.
43762 (R_X86_64_16): Likewise.
43763 (R_X86_64_PC16): Likewise.
43764 (R_X86_64_8): Likewise.
43765 (R_X86_64_PC8): Likewise.
43766
43767 * include/grub/i386/efi/pci.h: New file.
43768
43769 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43770 Change it value based on platform.
43771 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43772 (GRUB_E820_RAM): Likewise.
43773 (GRUB_E820_RESERVED): Likewise.
43774 (GRUB_E820_ACPI): Likewise.
43775 (GRUB_E820_NVS): Likewise.
43776 (GRUB_E820_EXEC_CODE): Likewise.
43777 (GRUB_E820_MAX_ENTRY): Likewise.
43778 (grub_e820_mmap): New structure.
43779 (linux_kernel_header): Change the efi field according to different
43780 kernel version, also field from linux_kernel_header.
43781
43782 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43783
43784 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43785 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43786 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43787 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43788 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43789 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43790 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43791 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43792 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43793 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43794
43795 * include/grub/x86_64/efi/kernel.h: New file.
43796
43797 * include/grub/x86_64/efi/loader.h: Likewise.
43798
43799 * include/grub/x86_64/efi/machine.h: Likewise.
43800
43801 * include/grub/x86_64/efi/pci.h: Likewise.
43802
43803 * include/grub/x86_64/efi/time.h: Likewise.
43804
43805 * include/grub/x86_64/linux.h: Likewise.
43806
43807 * include/grub/x86_64/setjmp.h: Likewise.
43808
43809 * include/grub/x86_64/time.h: Likewise.
43810
43811 * include/grub/x86_64/types.h: Likewise.
43812
43813 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43814 GRUB_TARGET_SIZEOF_VOID_P.
43815
43816 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43817 (grub_efi_locate_handle): Likewise.
43818 (grub_efi_open_protocol): Likewise.
43819 (grub_efi_set_text_mode): Likewise.
43820 (grub_efi_stall): Likewise.
43821 (grub_exit): Likewise.
43822 (grub_reboot): Likewise.
43823 (grub_halt): Likewise.
43824 (grub_efi_exit_boot_services): Likewise.
43825 (grub_get_rtc): Likewise.
43826
43827 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43828 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43829 (grub_efi_allocate_pages): Wrap efi calls.
43830 (grub_efi_free_pages): Wrap efi calls.
43831 (grub_efi_get_memory_map): Wrap efi calls.
43832
43833 * kern/x86_64/dl.c: New file.
43834
43835 * kern/x86_64/efi/callwrap.S: Likewise.
43836
43837 * kern/x86_64/efi/startup.S: Likewise.
43838
43839 * loader/efi/appleloader.c: Likewise.
43840
43841 * loader/efi/chainloader.c (cmdline): New variable.
43842 (grub_chainloader_unload): Wrap efi calls.
43843 (grub_chainloader_boot): Likewise.
43844 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43845 command line.
43846
43847 * loader/efi/chainloader_normal.c (chainloader_command):
43848 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43849 command line.
43850
43851 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43852 method.
43853 (grub_e820_add_region): New function.
43854 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43855 booting.
43856 (grub_find_video_card): New function.
43857 (grub_linux_setup_video): New function.
43858 (grub_rescue_cmd_linux): Probe for video information.
43859
43860 * normal/x86_64/setjmp.S: New file.
43861
43862 * term/efi/console.c (map_char): New function.
43863 (grub_console_putchar): Map unicode char.
43864 (grub_console_checkkey): Wrap efi calls.
43865 (grub_console_getkey): Likewise.
43866 (grub_console_getwh): Likewise.
43867 (grub_console_gotoxy): Likewise.
43868 (grub_console_cls): Likewise.
43869 (grub_console_setcolorstate): Likewise.
43870 (grub_console_setcursor): Likewise.
43871
43872 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43873
43874 2008-07-16 Pavel Roskin <proski@gnu.org>
43875
43876 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43877 format strings.
43878
43879 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43880 pointer, not an integer. This fixes a warning and prevents
43881 precision loss on 64-bit systems.
43882 (relocate_addresses): Remove unneeded cast.
43883
43884 2008-07-15 Pavel Roskin <proski@gnu.org>
43885
43886 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43887
43888 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43889
43890 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43891 Fix comparison between signed and unsigned.
43892
43893 * include/grub/i386/ieee1275/console.h: Declare
43894 grub_console_init() and grub_console_fini().
43895
43896 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43897 It's empty and unused.
43898
43899 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43900 beginning to avoid warnings with some compilers.
43901
43902 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43903 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43904
43905 2008-07-14 Pavel Roskin <proski@gnu.org>
43906
43907 * kern/env.c (grub_register_variable_hook): Don't copy empty
43908 string, it leaks memory. Pass "" to grub_env_set(), it should
43909 handle constant strings.
43910
43911 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43912 * commands/cmp.c (grub_cmd_cmp): Likewise.
43913 * kern/dl.c (grub_dl_flush_cache): Likewise.
43914 (grub_dl_load_core): Likewise.
43915 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43916 (grub_elf64_load_phdrs): Likewise.
43917
43918 2008-07-13 Pavel Roskin <proski@gnu.org>
43919
43920 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43921 between signed and unsigned.
43922 (LzmaEnc_Finish): Fix warning about an unused parameter.
43923
43924 2008-07-13 Bean <bean123ch@gmail.com>
43925
43926 * Makefile.in (enable_lzo): New rule.
43927
43928 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43929
43930 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43931
43932 * boot/i386/pc/lnxboot.S: #include <config.h>.
43933
43934 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43935 its value according to the compression algorithm used, lzo or lzma.
43936
43937 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43938 compression algorithm according to configure macro.
43939
43940 * kern/i386/pc/startup.S (codestart): Likewise.
43941
43942 * kern/i386/pc/lzma_decode.S: New file.
43943
43944 * include/grub/lib/LzFind.h: Likewise.
43945
43946 * include/grub/lib/LzHash.h: Likewise.
43947
43948 * include/grub/lib/LzmaDec.h: Likewise.
43949
43950 * include/grub/lib/LzmaEnc.h: Likewise.
43951
43952 * include/grub/lib/LzmaTypes.h: Likewise.
43953
43954 * lib/LzFind.c: Likewise.
43955
43956 * lib/LzmaDec.c: Likewise.
43957
43958 * lib/LzmaEnc.c: Likewise.
43959
43960 2008-07-13 Bean <bean123ch@gmail.com>
43961
43962 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43963 (grub_ext4_extent_header): New structure.
43964 (grub_ext4_extent): Likewise.
43965 (grub_ext4_extent_idx): Likewise.
43966 (grub_ext4_find_leaf): New function.
43967 (grub_ext2_read_block): Handle extents.
43968
43969 2008-07-12 Robert Millan <rmh@aybabtu.com>
43970
43971 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43972
43973 2008-07-11 Robert Millan <rmh@aybabtu.com>
43974
43975 * util/grub.d/40_custom.in: New file. Example on how to add custom
43976 entries to /etc/grub.d.
43977 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43978 40_custom (implicitly, by merging all the grub.d rules).
43979
43980 2008-07-11 Pavel Roskin <proski@gnu.org>
43981
43982 * commands/read.c (grub_getline): Fix invalid memory access.
43983 Don't add newline to the variable value.
43984
43985 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
43986 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
43987 (serial_hw_get_port): Check validity of the port number.
43988 (grub_cmd_serial): Check return value of serial_hw_get_port().
43989
43990 2008-07-07 Pavel Roskin <proski@gnu.org>
43991
43992 * boot/i386/pc/diskboot.S (notification_string): Replace
43993 "Loading kernel" with just "loading". This is shorter, less
43994 confusing and saves a few bytes for possible future changes.
43995
43996 2008-07-05 Pavel Roskin <proski@gnu.org>
43997
43998 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
43999 size for ATAPI devices, they are undefined. Output sector
44000 number in decimal form.
44001
44002 * disk/ata.c: Use named constants for status bits.
44003
44004 2008-07-04 Pavel Roskin <proski@gnu.org>
44005
44006 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44007 grub_addr_t before casting it to the void pointer to fix a
44008 warning. Non-addressable regions are discarded earlier.
44009 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44010 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44011 (check_signature): Don't shadow table_header.
44012 (grub_linuxbios_table_iterate): Cast numeric constants to
44013 grub_linuxbios_table_header_t.
44014 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44015 grub_stop().
44016
44017 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44018 prevent warnings.
44019
44020 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44021 pointer, which can cause warnings. Support 64-bit addresses.
44022
44023 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44024 of sizeof(long). This fixes PowerPC image generation on x86_64.
44025
44026 2008-07-04 Robert Millan <rmh@aybabtu.com>
44027
44028 This fixes a performance issue when pc & gpt partmap iterators
44029 didn't abort iteration even after our hook found what it was
44030 looking for (often causing expensive probes of non-existent drives).
44031
44032 Some callers relied on previous buggy behaviour, since they would
44033 raise an error when their own hooks caused early abortion of its
44034 iteration.
44035
44036 * kern/device.c (grub_device_open): Improve error message.
44037 * disk/lvm.c (grub_lvm_open): Likewise.
44038 * disk/raid.c (grub_raid_open): Likewise.
44039
44040 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44041 when hook requests it, independently of grub_errno.
44042 (pc_partition_map_probe): Do not fail when find_func() caused
44043 early abortion of pc_partition_map_iterate().
44044
44045 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44046 when hook requests it, independently of grub_errno.
44047 (gpt_partition_map_probe): Do not fail when find_func() caused
44048 early abortion of gpt_partition_map_iterate().
44049
44050 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44051 when hook requests it, independently of grub_errno. Do not fail when
44052 part_map_iterate_hook() caused early abortion of p->iterate().
44053
44054 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44055 when grub_partition_iterate() returned with non-zero.
44056
44057 2008-07-03 Pavel Roskin <proski@gnu.org>
44058
44059 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44060 like we do in grub_ata_pio_read().
44061 (grub_ata_readwrite): Always write individual sectors. Fix the
44062 sector count for the remainder.
44063 (grub_ata_write): Enable writing to ATA devices. Correctly
44064 report error for ATAPI devices.
44065
44066 2008-07-02 Pavel Roskin <proski@gnu.org>
44067
44068 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44069 warning.
44070
44071 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44072 for every read sector, we already increment it for the whole
44073 batch. This fixes reading more than 256 sectors at once.
44074
44075 * util/grub-editenv.c (cmd_info): Cast argument to long
44076 explicitly. ptrdiff_t reduces to int on i386.
44077
44078 * util/grub-editenv.c (main): Be specific which parameter is
44079 missing.
44080
44081 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44082 (memdisk): Make memdisk_orig_addr a pointer.
44083
44084 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44085 for file offsets, use grub_off_t instead. Fix printf format
44086 warnings.
44087
44088 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44089 there. Real unexpected warnings should not drown in the noise
44090 about known problems.
44091
44092 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44093 grub_disk_addr_t for memory addresses.
44094
44095 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44096 explicitly to fix a warning.
44097
44098 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44099
44100 * Makefile.in (MODULE_LDFLAGS): New variable.
44101 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44102 the linker accepts --build-id=none.
44103 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44104 MODULE_LDFLAGS.
44105 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44106
44107 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44108 those in Linux XFS code. Provide a way to access 64-bit parent
44109 inode.
44110 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44111 the end of struct grub_xfs_dir_header.
44112
44113 2008-07-02 Bean <bean123ch@gmail.com>
44114
44115 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44116 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44117 and GRUB_IEEE1275_FLAG_NO_ANSI.
44118
44119 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44120 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44121 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44122
44123 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44124 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44125
44126 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44127 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44128
44129 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44130 esc sequence on non ANSI terminal.
44131 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44132
44133 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44134 beginning of file.
44135
44136 2008-07-02 Bean <bean123ch@gmail.com>
44137
44138 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44139 (grub_editenv_SOURCES): New variable.
44140 (pkglib_MODULES): Add loadenv.mod.
44141 (loadenv_mod_SOURCES): New variable.
44142 (loadenv_mod_CFLAGS): Likewise.
44143 (loadenv_mod_LDFLAGS): Likewise.
44144
44145 * include/grub/envblk.h: New file.
44146
44147 * util/envblk.c: New file.
44148
44149 * util/grub-editenv.c: New file.
44150
44151 * commands/loadenv.c: New file.
44152
44153 2008-07-01 Pavel Roskin <proski@gnu.org>
44154
44155 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44156 not unsigned char. This fixes warnings and is consistent with
44157 other tags.
44158
44159 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44160
44161 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44162
44163 * term/tparm.c (analyze): Always set *popcount.
44164
44165 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44166 cast to fix a warning.
44167
44168 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44169 cast to suppress a warning.
44170
44171 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44172 grub_fshelp_read_file() expects.
44173
44174 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44175 write uuid as a 32-bit value in CPU byte order, so declare and
44176 use it as such.
44177
44178 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44179 long if the format specifier expects it.
44180 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44181 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44182 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44183 long to fix a warning.
44184 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44185 grub_dprintf() arguments to fix warnings.
44186
44187 2008-06-30 Pavel Roskin <proski@gnu.org>
44188
44189 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44190 install_bsd_part immediately before core.img is embedded or
44191 modified on disk. This fixes core.img verification if core.img
44192 cannot be embedded.
44193
44194 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44195 core_path to calculate the blocklist.
44196 Patch from Javier Martín <lordhabbit@gmail.com>
44197
44198 2008-06-29 Robert Millan <rmh@aybabtu.com>
44199
44200 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44201 block to disk block.
44202 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44203 Patch from Niels Böhm <bitbucket@arcor.de>
44204
44205 2008-06-29 Robert Millan <rmh@aybabtu.com>
44206
44207 * util/update-grub_lib.in (font_path): Search for fonts in
44208 /boot/grub first, which is more likely to be readable (we aren't
44209 deciding where fonts live, just looking for them).
44210
44211 2008-06-26 Pavel Roskin <proski@gnu.org>
44212
44213 * util/biosdisk.c (read_device_map): Don't leave dead map
44214 entries for devices failing stat() check.
44215
44216 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44217 core_path_dev for the core.img path on the target device.
44218
44219 2008-06-26 Robert Millan <rmh@aybabtu.com>
44220
44221 * disk/fs_uuid.c: New file.
44222 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44223 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44224 (fs_uuid_mod_LDFLAGS): New variables.
44225 * include/grub/disk.h (grub_disk_dev_id): Add
44226 `GRUB_DISK_DEVICE_UUID_ID'.
44227 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44228 implement iterate().
44229
44230 2008-06-26 Robert Millan <rmh@aybabtu.com>
44231
44232 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44233 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44234 Linux image includes no initrd.
44235
44236 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44237
44238 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44239 call to resolve the core image location that effectively appended the
44240 name twice.
44241
44242 2008-06-21 Robert Millan <rmh@aybabtu.com>
44243
44244 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44245 call from here ...
44246
44247 * util/grub.d/10_hurd.in: ... to here ...
44248 * util/grub.d/10_linux.in: ... and here.
44249
44250 2008-06-19 Robert Millan <rmh@aybabtu.com>
44251
44252 * kern/main.c (grub_main): Export `prefix' variable immediately
44253 after it has been set by grub_machine_set_prefix().
44254
44255 2008-06-19 Robert Millan <rmh@aybabtu.com>
44256
44257 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44258 search result when not saving to variable, not the other way around.
44259 When saving to variable, abort iteration as soon as a match is found.
44260
44261 2008-06-19 Robert Millan <rmh@aybabtu.com>
44262
44263 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44264 check for partition that provides /boot/grub. Its logic is flawed,
44265 as it prevents prepare_grub_to_access_device() from being called
44266 multiple times.
44267
44268 2008-06-19 Robert Millan <rmh@aybabtu.com>
44269
44270 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44271 "insmod" command directly when abstraction modules are needed,
44272 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44273 since it had already been processed).
44274
44275 2008-06-19 Pavel Roskin <proski@gnu.org>
44276
44277 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44278 changed. This is needed in case GRUB_LIBDIR changes.
44279 * conf/i386-ieee1275.rmk: Likewise.
44280 * conf/i386-linuxbios.rmk: Likewise.
44281 * conf/i386-pc.rmk: Likewise.
44282 * conf/powerpc-ieee1275.rmk: Likewise.
44283
44284 2008-06-18 Pavel Roskin <proski@gnu.org>
44285
44286 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44287 kernel_elf_symlist.c to symlist.c for consistency with other
44288 architectures. Update all users.
44289 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44290
44291 2008-06-18 Robert Millan <rmh@aybabtu.com>
44292
44293 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44294 it in prefix.
44295
44296 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44297 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44298 a RAID device, run setup() for all members independently on whether
44299 LVM abstraction is being used.
44300 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44301 If grub-mkimage has set `*install_dos_part == -2', don't override this
44302 value.
44303 Perform *install_dos_part adjustments independently on whether
44304 we're embedding or not.
44305 Clarify error message when image is too big for embedding.
44306 Remove duplicate *install_dos_part stanza.
44307
44308 2008-06-17 Robert Millan <rmh@aybabtu.com>
44309
44310 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44311 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44312 variables.
44313 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44314 values in grub_ofconsole_normal_color and
44315 grub_ofconsole_highlight_color (they're not directly related to
44316 background and foreground).
44317 (grub_ofconsole_setcolorstate): Extract background and foreground
44318 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44319
44320 2008-06-17 Robert Millan <rmh@aybabtu.com>
44321
44322 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44323 /boot/grub for the check in last commit, not /boot (they could be
44324 different partitions).
44325
44326 2008-06-16 Robert Millan <rmh@aybabtu.com>
44327
44328 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44329 asked to setup access for the same partition that provides /boot,
44330 don't bother using UUIDs since our root already has the value we
44331 want.
44332
44333 2008-06-16 Robert Millan <rmh@aybabtu.com>
44334
44335 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44336 I2O devices.
44337 Patch from Sven Mueller <sven@debian.org>.
44338
44339 2008-06-16 Robert Millan <rmh@aybabtu.com>
44340
44341 * util/update-grub.in: Check for $EUID instead of $UID.
44342 Reported by Vincent Zweije.
44343
44344 2008-06-16 Bean <bean123ch@gmail.com>
44345
44346 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44347 (grub_ext2_read_block): Likewise.
44348 (grub_ext2_read_inode): Likewise.
44349 (grub_ext2_mount): Likewise.
44350 (grub_ext2_close): Likewise.
44351 (grub_ext3_get_journal): Removed.
44352
44353 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44354 (grub_reiserfs_read_symlink): Likewise.
44355 (grub_reiserfs_mount): Likewise.
44356 (grub_reiserfs_open): Likewise.
44357 (grub_reiserfs_read): Likewise.
44358 (grub_reiserfs_close): Likewise.
44359 (grub_reiserfs_get_journal): Removed.
44360
44361 * fs/fshelp.c (grub_fshelp_read): Removed.
44362 (grub_fshelp_map_block): Likewise.
44363
44364 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44365 (grub_fshelp_journal): Likewise.
44366 (grub_fshelp_read): Likewise.
44367 (grub_fshelp_map_block): Likewise.
44368
44369 2008-06-16 Pavel Roskin <proski@gnu.org>
44370
44371 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44372 floating point anymore.
44373 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44374
44375 2008-06-15 Pavel Roskin <proski@gnu.org>
44376
44377 * commands/ls.c (grub_ls_list_files): Use integer calculations
44378 for human readable format, avoid floating point use.
44379 * kern/misc.c (grub_ftoa): Remove.
44380 (grub_vsprintf): Remove floating point support.
44381
44382 2008-06-15 Robert Millan <rmh@aybabtu.com>
44383
44384 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44385 devices.
44386 Reported by Max Vozeler.
44387
44388 2008-06-15 Robert Millan <rmh@aybabtu.com>
44389
44390 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44391 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44392 skipped later.
44393 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44394 the beginning of the prefix.
44395
44396 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44397 It is assumed that if we have a memdisk, grub-mkimage has set
44398 grub_prefix to include the "(memdisk)" drive in it.
44399
44400 2008-06-15 Robert Millan <rmh@aybabtu.com>
44401
44402 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44403 Initialize keyboard controller after registering the terminal, so that
44404 grub_printf() can be called from grub_keyboard_controller_init().
44405
44406 2008-06-15 Robert Millan <rmh@aybabtu.com>
44407
44408 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44409 extent-btree which is written as big endian on disk.
44410 Reported by Alain Greppin <al@chilibi.org>.
44411
44412 2008-06-14 Robert Millan <rmh@aybabtu.com>
44413
44414 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44415 * util/i386/pc/grub-install.in (modules): Likewise.
44416
44417 2008-06-13 Pavel Roskin <proski@gnu.org>
44418
44419 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44420
44421 2008-06-13 Bean <bean123ch@gmail.com>
44422
44423 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44424
44425 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44426
44427 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44428 to indicate sparse block.
44429
44430 2008-06-12 Pavel Roskin <proski@gnu.org>
44431
44432 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44433 number, grub_fshelp_read() does it for us.
44434
44435 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44436 linear disk read with journal translation.
44437 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44438 * include/grub/fshelp.h: Declare grub_fshelp_read().
44439
44440 2008-06-09 Pavel Roskin <proski@gnu.org>
44441
44442 * fs/minix.c (grub_minix_mount): Handle error reading
44443 superblock.
44444
44445 2008-06-08 Robert Millan <rmh@aybabtu.com>
44446
44447 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44448 don't append the RAID prefix afterwards.
44449 Reported by Clint Adams.
44450
44451 2008-06-08 Robert Millan <rmh@aybabtu.com>
44452
44453 Based on description from Pavel:
44454 * kern/disk.c (grub_disk_check_range): Rename to ...
44455 (grub_disk_adjust_range): ... this. Add a comment explaining the
44456 tasks performed by this function.
44457
44458 2008-06-08 Robert Millan <rmh@aybabtu.com>
44459
44460 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44461 `num_serial' (for consistency with other variables).
44462 (struct grub_ntfs_data): Add `uuid' member.
44463 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44464 (grub_ntfs_uuid): New function.
44465 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44466
44467 2008-06-07 Pavel Roskin <proski@gnu.org>
44468
44469 * util/biosdisk.c (open_device): Revert last change to the
44470 function, it broke installation. The sector needs to be
44471 different dependent on which device is opened.
44472
44473 2008-06-06 Robert Millan <rmh@aybabtu.com>
44474
44475 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44476 rest of GRUB, and breakage doesn't happen if its value were modified.
44477
44478 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44479 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44480 a constant (same value).
44481 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44482 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44483
44484 2008-06-06 Robert Millan <rmh@aybabtu.com>
44485
44486 * util/biosdisk.c (open_device): Do not modify sector offset when
44487 accessing a partition. kern/disk.c already handles this for us.
44488
44489 2008-06-06 Robert Millan <rmh@aybabtu.com>
44490
44491 * util/grub-emu.c (grub_machine_init): Move code in this function from
44492 here ...
44493 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44494 segfault in case grub_printf() is called).
44495
44496 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44497 grub_probe. Update all users not to explicitly add it again.
44498 (grub_device): New variable; contains corresponding device for grubdir.
44499 (fs_module, partmap_module, devabstraction_module): Pass
44500 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44501 every time.
44502
44503 2008-06-05 Robert Millan <rmh@aybabtu.com>
44504
44505 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44506 is found, print it (same layout as with labels).
44507
44508 2008-06-04 Robert Millan <rmh@aybabtu.com>
44509
44510 * util/biosdisk.c (get_drive): Rename to ...
44511 (find_grub_drive): ... this. Update all users.
44512
44513 (get_os_disk): Rename to ...
44514 (convert_system_partition_to_system_disk): ... this. Update all users.
44515
44516 (find_drive): Rename to ...
44517 (find_system_device): ... this. Update all users.
44518
44519 2008-06-04 Robert Millan <rmh@aybabtu.com>
44520
44521 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44522 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44523 (make_device_map): Likewise.
44524
44525 2008-06-01 Robert Millan <rmh@aybabtu.com>
44526
44527 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44528 before dereferencing it.
44529
44530 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44531 union with fat12/fat16-specific ones. Add some new fields, including
44532 `num_serial' for both versions.
44533 (struct grub_fat_data): Add `uuid' member.
44534 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44535 names. Initialize `data->uuid' using `num_serial'.
44536 (grub_fat_uuid): New function.
44537 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44538
44539 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44540 (grub_reiserfs_uuid): New function.
44541 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44542 member.
44543
44544 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44545 (grub_xfs_uuid): New function.
44546 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44547
44548 2008-06-01 Robert Millan <rmh@aybabtu.com>
44549
44550 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44551 code that is backward compatible with pre-uuid search command.
44552
44553 2008-05-31 Robert Millan <rmh@aybabtu.com>
44554
44555 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44556 floppies after everything else, to ensure floppy drive isn't accessed
44557 unnecessarily (patch from Bean).
44558
44559 2008-05-31 Robert Millan <rmh@aybabtu.com>
44560
44561 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44562 not print device names when we were asked to set a variable.
44563
44564 2008-05-31 Robert Millan <rmh@aybabtu.com>
44565
44566 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44567 using "cursor-on" and "cursor-off" commands (understood at least by
44568 the Open Firmware flavour on OLPC).
44569
44570 2008-05-31 Michael Gorven <michael@gorven.za.net>
44571
44572 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44573 on and off sequences.
44574
44575 2008-05-31 Robert Millan <rmh@aybabtu.com>
44576
44577 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44578 * util/update-grub.in: Likewise.
44579
44580 2008-05-30 Pavel Roskin <proski@gnu.org>
44581
44582 * util/biosdisk.c (linux_find_partition): Simplify logic and
44583 make the code more universal. Keep special processing for
44584 devfs, but use a simple rule for all other devices. If the
44585 device ends with a number, append 'p' and the partition number.
44586 Otherwise, append only the partition number.
44587
44588 2008-05-30 Robert Millan <rmh@aybabtu.com>
44589
44590 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44591 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44592 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44593 the `root' parameter to Linux.
44594
44595 2008-05-30 Robert Millan <rmh@aybabtu.com>
44596
44597 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44598 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44599 --fs_uuid with --fs-uuid.
44600 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44601 all filesystems support them).
44602
44603 2008-05-30 Robert Millan <rmh@aybabtu.com>
44604
44605 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44606 grub_printf() flags, since we're printing in units of 2 bytes.
44607
44608 2008-05-30 Robert Millan <rmh@aybabtu.com>
44609
44610 * util/grub.d/00_header.in: Remove obsolete comment referencing
44611 convert_system_path_to_grub_path().
44612 * util/update-grub.in: Likewise.
44613 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44614 (convert_system_path_to_grub_path): Add a warning message explaining
44615 that this function is deprecated. Rely on is_path_readable_by_grub()
44616 for the readability checks.
44617 (font_path): Use is_path_readable_by_grub() for the readability
44618 check rather than convert_system_path_to_grub_path().
44619
44620 2008-05-30 Robert Millan <rmh@aybabtu.com>
44621
44622 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44623 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44624 converting it first.
44625 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44626 grub.cfg for access to font file, and afterwards call it again to set
44627 the root device.
44628
44629 2008-05-30 Robert Millan <rmh@aybabtu.com>
44630
44631 * commands/search.c (options): Add --fs_uuid option.
44632 (search_fs_uuid): New function.
44633 (grub_cmd_search): Fix --set argument passing.
44634 Use search_fs_uuid() when requested via --fs_uuid.
44635 (grub_search_init): Update help message.
44636 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44637 and redeclare it as an array of 16-bit words.
44638 (grub_ext2_uuid): New function.
44639 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44640 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44641 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44642 (GRUB_DEVICE_BOOT_UUID): New variables.
44643 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44644 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44645 whenever possible.
44646 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44647 just assume `root' variable has the right value.
44648 * util/grub.d/10_linux.in: Likewise.
44649 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44650 via PRINT_FS_UUID.
44651 (main): Recognise `-t fs_uuid' argument.
44652
44653 2008-05-30 Robert Millan <rmh@aybabtu.com>
44654
44655 * util/biosdisk.c (map): Redefine structure to hold information
44656 about GRUB drive name.
44657 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44658 drive names.
44659 (call_hook): Remove.
44660 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44661 member. Assume drive has partitions.
44662 (grub_util_biosdisk_open): Access device names via `.device' struct
44663 member.
44664 (open_device): Likewise.
44665 (find_drive): Likewise.
44666 (read_device_map): Adjust map[] usage to match the new struct
44667 definition. Don't check for duplicates (still possible, but not cheap
44668 anymore).
44669 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44670 (make_device_name): Remove assumption of BIOS-like drive names.
44671
44672 2008-05-30 Pavel Roskin <proski@gnu.org>
44673
44674 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44675 compiling execute.c doesn't need grub_script.tab.h anymore.
44676 (normal/command.c_DEPENDENCIES): Likewise.
44677 (normal/function.c_DEPENDENCIES): Likewise.
44678 * conf/i386-ieee1275.rmk: Likewise.
44679 * conf/i386-linuxbios.rmk: Likewise.
44680 * conf/i386-pc.rmk: Likewise.
44681 * conf/powerpc-ieee1275.rmk: Likewise.
44682 * conf/sparc64-ieee1275.rmk: Likewise.
44683
44684 2008-05-29 Pavel Roskin <proski@gnu.org>
44685
44686 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44687 when scanning metadata for volume group name.
44688
44689 * include/grub/script.h: Don't include grub_script.tab.h. It's
44690 a generated file, which may only be included from the files with
44691 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44692 use union YYSTYPE, as the later allows forward declaration.
44693 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44694
44695 2008-05-29 Robert Millan <rmh@aybabtu.com>
44696
44697 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44698 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44699 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44700 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44701 scan codes.
44702
44703 2008-05-29 Robert Millan <rmh@aybabtu.com>
44704
44705 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44706 control key combinations.
44707
44708 2008-05-29 Robert Millan <rmh@aybabtu.com>
44709
44710 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44711 * util/ieee1275/grub-install.in: ... to here.
44712 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44713 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44714 (grub_install_SOURCES): Likewise.
44715
44716 2008-05-29 Robert Millan <rmh@aybabtu.com>
44717
44718 * fs/affs.c: Update copyright year.
44719 * fs/ext2.c: Likewise.
44720 * fs/fshelp.c: Likewise.
44721 * fs/hfsplus.c: Likewise.
44722 * fs/ntfs.c: Likewise.
44723 * fs/xfs.c: Likewise.
44724 * include/grub/fshelp.h: Likewise.
44725 * util/grub-mkdevicemap.c: Likewise.
44726
44727 2008-05-28 Robert Millan <rmh@aybabtu.com>
44728
44729 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44730 might need to be fatfs to support some firmware implementations
44731 (e.g. OFW or EFI).
44732
44733 2008-05-28 Robert Millan <rmh@aybabtu.com>
44734
44735 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44736 devices.
44737 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44738 (make_device_map): Likewise.
44739
44740 2008-05-20 Bean <bean123ch@gmail.com>
44741
44742 * fs/fshelp.c (grub_fshelp_map_block): New function.
44743 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44744 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44745
44746 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44747 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44748 (grub_fshelp_journal): New structure.
44749 (grub_fshelp_map_block): New function prototype.
44750 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44751 (grub_fshelp_map_block): Likewise.
44752
44753 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44754 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44755 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44756 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44757 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44758 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44759 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44760 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44761 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44762 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44763 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44764 (grub_ext2_sblock): New members for journal support.
44765 (grub_ext3_journal_header): New structure.
44766 (grub_ext3_journal_revoke_header): Likewise.
44767 (grub_ext3_journal_block_tag): Likewise.
44768 (grub_ext3_journal_sblock): Likewise.
44769 (grub_fshelp_node): New members logfile and journal.
44770 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44771 grub_fshelp_map_block to get real block number.
44772 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44773 number.
44774 (grub_ext2_read_inode): Likewise.
44775 (grub_ext3_get_journal): New function.
44776 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44777 (grub_ext2_close): Release memory used by journal.
44778
44779 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44780 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44781 (grub_reiserfs_transaction_header): Renamed to
44782 grub_reiserfs_description_block, replace field data with real_blocks.
44783 (grub_reiserfs_commit_block): New structure.
44784 (grub_reiserfs_data): New member journal.
44785 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44786 number.
44787 (grub_reiserfs_read_symlink): Likewise.
44788 (grub_reiserfs_iterate_dir): Likewise.
44789 (grub_reiserfs_open): Likewise.
44790 (grub_reiserfs_read): Likewise.
44791 (grub_reiserfs_get_journal): New function.
44792 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44793 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44794 using grub_reiserfs_get_journal.
44795 (grub_reiserfs_close): Release memory used by journal.
44796
44797 * fs/affs.c (grub_affs_read_block): Change block type to
44798 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44799
44800 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44801
44802 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44803
44804 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44805
44806 * fs/udf.c (grub_udf_read_block): Change block type to
44807 grub_disk_addr_t. Use type cast to avoid warning.
44808
44809 * fs/xfs.c (grub_xfs_read_block): Likewise.
44810
44811 2008-05-16 Christian Franke <franke@computer.org>
44812
44813 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44814 to ensure that break with ESC will always work.
44815 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44816 Remove ESC from keyboard queue.
44817
44818 2008-05-16 Christian Franke <franke@computer.org>
44819
44820 * util/biosdisk.c: [__CYGWIN__] Add includes.
44821 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44822 (get_os_disk): Move variable declarations to OS specific
44823 parts to avoid warning.
44824 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44825 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44826 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44827 Cygwin.
44828 * util/getroot.c: [__CYGWIN__] Add includes.
44829 (strip_extra_slashes): Fix "/" case.
44830 [__CYGWIN__] (get_win32_path): New function.
44831 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44832 [__CYGWIN__] (find_root_device): Disable.
44833 [__CYGWIN__] (get_bootsec_serial): New function.
44834 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44835 [__linux__] (grub_guess_root_device): Add early returns to simplify
44836 structure.
44837 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44838 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44839 check for Linux only.
44840
44841 2008-05-15 Bean <bean123ch@gmail.com>
44842
44843 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44844 keyboard hang problem in apple's intel mac.
44845
44846 2008-05-09 Robert Millan <rmh@aybabtu.com>
44847
44848 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44849 devices.
44850 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44851 (make_device_map): Likewise.
44852 Reported by Aurelien Jarno <aurel32@debian.org>
44853
44854 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44855
44856 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44857 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44858 (make_device_map): Output entries for xvd type disks.
44859
44860 2008-05-07 Robert Millan <rmh@aybabtu.com>
44861
44862 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44863 devices.
44864 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44865 (make_device_map): Likewise.
44866 Reported by Roland Dreier <rdreier@cisco.com>
44867
44868 2008-05-07 Robert Millan <rmh@aybabtu.com>
44869
44870 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44871 grub_strstr() call. Correct a few mistakes in failure path handling.
44872
44873 2008-05-06 Robert Millan <rmh@aybabtu.com>
44874
44875 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44876 Do not print a trailing slash (therefore, the root directory is an
44877 empty string).
44878 (convert_system_path_to_grub_path): Do not remove trailing slash
44879 from make_system_path_relative_to_its_root() output.
44880
44881 * util/i386/pc/grub-install.in: Add trailing slash to output from
44882 make_system_path_relative_to_its_root().
44883
44884 2008-05-06 Robert Millan <rmh@aybabtu.com>
44885
44886 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44887 ensures that output lines aren't intermangled with those sent to
44888 stderr (via grub_util_info()).
44889 * util/grub-probe.c (grub_refresh): Likewise.
44890 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44891
44892 2008-05-05 Christian Franke <franke@computer.org>
44893
44894 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44895 Add Cygwin device names.
44896 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44897 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44898 (check_device): Return error instead of success on empty name.
44899 (make_device_map): Move label inside linux specific code to
44900 prevent compiler warning.
44901
44902 2008-04-30 Robert Millan <rmh@aybabtu.com>
44903
44904 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44905 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44906 first boot option.
44907 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44908
44909 2008-04-29 Robert Millan <rmh@aybabtu.com>
44910
44911 * docs/grub.cfg: New file (example GRUB configuration).
44912
44913 2008-04-26 Robert Millan <rmh@aybabtu.com>
44914
44915 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44916 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44917 and `disk/ieee1275/nand.c'.
44918
44919 2008-04-25 Bean <bean123ch@gmail.com>
44920
44921 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44922 i386-linuxbios.
44923
44924 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44925 change the buffer size to 4096 for cdrom device.
44926
44927 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44928 and nand.mod.
44929 (_linux_mod_SOURCES): New variable.
44930 (_linux_mod_CFLAGS): Likewise.
44931 (_linux_mod_LDFLAGS): Likewise.
44932 (linux_mod_SOURCES): Likewise.
44933 (linux_mod_CFLAGS): Likewise.
44934 (linux_mod_LDFLAGS): Likewise.
44935 (nand_mod_SOURCES): Likewise.
44936 (nand_mod_CFLAGS): Likewise.
44937 (nand_mod_LDFLAGS): Likewise.
44938
44939 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44940 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44941 type property. (nand device in olpc don't have this property)
44942
44943 * include/grub/disk.h (grub_disk_dev_id): New macro
44944 GRUB_DISK_DEVICE_NAND_ID.
44945
44946 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44947 function prototype.
44948 (grub_rescue_cmd_initrd): Likewise.
44949
44950 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44951 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44952 ofw_cif_handler and ofw_idt, adjust padding number.
44953
44954 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44955 GRUB_MACHINE_IEEE1275 is defined.
44956
44957 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44958 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44959
44960 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44961 on nested function heap_init.
44962 (grub_upper_mem): New variable for i386-ieee1275.
44963 (grub_get_extended_memory): New function for i386-ieee1275.
44964 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44965
44966 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44967 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44968 property.
44969
44970 * loader/i386/ieee1275/linux.c: New file.
44971
44972 * loader/i386/ieee1275/linux_normal.c: New file.
44973
44974 * disk/ieee1275/nand.c: New file.
44975
44976 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44977
44978 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44979 value.
44980 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44981
44982 2008-04-18 Robert Millan <rmh@aybabtu.com>
44983
44984 Restructures early code path on ieee1275 to unify grub_main() as
44985 the first C function that is executed in every platform.
44986
44987 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
44988 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
44989 cmain().
44990 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
44991 * kern/ieee1275/cmain.c (cmain): Rename to ...
44992 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
44993 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
44994 at the beginning.
44995
44996 2008-04-18 Robert Millan <rmh@aybabtu.com>
44997
44998 * util/update-grub.in: Fix syntax error when setting
44999 `GRUB_PRELOAD_MODULES'.
45000 Reported by Stephane Chazelas <stephane@artesyncp.com>
45001
45002 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45003
45004 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45005 section into account, newer toolchains generate unique build ids
45006 * configure.ac: remove the test for --build-id=none acceptance,
45007 we want build ids to be preserved
45008 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45009 far from other sections don't cause the raw binary images grow
45010 size
45011
45012 2008-04-15 Robert Millan <rmh@aybabtu.com>
45013
45014 * disk/lvm.c: Update copyright year.
45015 * kern/misc.c: Likewise.
45016
45017 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45018
45019 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45020 there is no memory left for physical volume name.
45021
45022 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45023
45024 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45025 volume name mapping to support bigger than 9 character names properly.
45026
45027 2008-04-13 Robert Millan <rmh@aybabtu.com>
45028
45029 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45030 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45031
45032 2008-04-13 Christian Franke <franke@computer.org>
45033
45034 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45035 to create a floppy emulation boot CD when non emulation mode
45036 does not work.
45037 Enable Joliet CD filesystem extension.
45038
45039 2008-04-13 Robert Millan <rmh@aybabtu.com>
45040
45041 * kern/misc.c (grub_strncat): Fix off-by-one error.
45042 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45043
45044 * kern/env.c (grub_env_context_close): Clear current context, not
45045 previous one.
45046 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45047
45048 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45049
45050 2008-04-13 Robert Millan <rmh@aybabtu.com>
45051
45052 Improve robustness when handling LVM.
45053
45054 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45055 (and leave `*p' unmodified).
45056 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45057 through it.
45058 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45059 iterating through it.
45060 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45061 through it.
45062 (grub_lvm_scan_device): Check the return value (and fail gracefully
45063 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45064 Don't assume `vg->pvs != NULL' when iterating through it.
45065
45066 2008-04-13 Robert Millan <rmh@aybabtu.com>
45067
45068 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45069 * genmk.rb (partmap): New variable.
45070 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45071 (#{partmap}): New target rule.
45072 * genpartmaplist.sh: New file.
45073 * Makefile.in (pkglib_DATA): Add partmap.lst.
45074 (partmap.lst): New target rule.
45075 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45076 modules (including all partition maps), instead of preloading them.
45077
45078 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45079
45080 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45081 `linux-boot-prober' (if installed) to detect other operating
45082 systems which are installed on the computer and add them to
45083 the boot menu.
45084 * conf/common.rmk: Build and install 30_os-prober.
45085
45086 2008-04-12 Robert Millan <rmh@aybabtu.com>
45087
45088 * kern/powerpc/ieee1275/init.c: Move from here ...
45089 * kern/ieee1275/init.c: ... to here. Update all users.
45090
45091 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45092 * kern/ieee1275/cmain.c: ... to here. Update all users.
45093
45094 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45095 * kern/ieee1275/openfw.c: ... to here. Update all users.
45096
45097 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45098 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45099
45100 2008-04-10 Pavel Roskin <proski@gnu.org>
45101
45102 * configure.ac: Always use "_cv_" in cache variables for
45103 compatibility with Autoconf 2.62.
45104
45105 2008-04-07 Robert Millan <rmh@aybabtu.com>
45106
45107 Revert grub/machine/init.h addition by Pavel (since it breaks on
45108 i386-ieee1275 and others):
45109 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45110 * util/powerpc/ieee1275/misc.c: Likewise.
45111
45112 2008-04-07 Robert Millan <rmh@aybabtu.com>
45113
45114 * util/grub-probe.c (probe): Improve error message.
45115
45116 2008-04-07 Robert Millan <rmh@aybabtu.com>
45117
45118 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45119 (this prevents the presence of a bogus entry from ruining the whole
45120 thing).
45121
45122 2008-04-06 Pavel Roskin <proski@gnu.org>
45123
45124 * util/biosdisk.c: Include grub/util/biosdisk.h.
45125 * util/grub-fstest.c (execute_command): Make static.
45126 * util/grub-mkdevicemap.c (check_device): Likewise.
45127 * util/i386/pc/misc.c: Include grub/machine/init.h.
45128 * util/powerpc/ieee1275/misc.c: Likewise.
45129 * util/lvm.c: Include grub/util/lvm.h.
45130 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45131 grub/cache.h.
45132 * util/raid.c: Include grub/util/raid.h.
45133 (grub_util_getdiskname): Make static.
45134
45135 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45136 grub_hostfs_fini(), as they are called from grub_init_all() and
45137 grub_fini_all() respectively. This fixes an infinite loop in
45138 grub-fstest due to double registration of hostfs.
45139 Reported by Christian Franke <Christian.Franke@t-online.de>
45140
45141 2008-04-05 Pavel Roskin <proski@gnu.org>
45142
45143 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45144 all 8 functions. Otherwise, probe function 0 only.
45145
45146 2008-04-04 Pavel Roskin <proski@gnu.org>
45147
45148 * commands/lspci.c (grub_lspci_iter): Print the bus number
45149 correctly.
45150
45151 * commands/lspci.c (grub_pci_classes): Fix typos.
45152 (grub_lspci_iter): Don't print func twice. Print vendor ID
45153 before device ID, as it's normally done.
45154
45155 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45156 Fix signedness warnings.
45157 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45158 Likewise.
45159 * util/ieee1275/get_disk_name.c: Include config.h so that
45160 _GNU_SOURCE is defined and getline() is declared. Mark an
45161 unused argument as such. Fix a signedness warning.
45162
45163 2008-04-02 Pavel Roskin <proski@gnu.org>
45164
45165 * genkernsyms.sh.in: Use more robust assignments for CC and
45166 srcdir. Quote srcdir.
45167 * gensymlist.sh.in: Likewise. Assert at the compile time that
45168 the symbol table is not empty.
45169
45170 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45171 * fs/cpio.c (grub_cpio_read): Likewise.
45172
45173 2008-04-01 Pavel Roskin <proski@gnu.org>
45174
45175 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45176 * disk/host.c (grub_host_open): Likewise.
45177 * disk/loopback.c (grub_loopback_open): Likewise.
45178 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45179 disk->id as in disk/host.c, not a multi-character constant.
45180
45181 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45182 later is obsolete, potentially dangerous and sets a bad example.
45183 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45184 * util/misc.c (grub_util_get_image_size): Likewise.
45185
45186 * disk/loopback.c (options): Improve help for "--partitions".
45187
45188 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45189 options to align them with the short options, e.g. "echo -e".
45190
45191 2008-03-31 Bean <bean123ch@gmail.com>
45192
45193 * video/reader/png.c (grub_png_data): New member is_16bit and
45194 image_data.
45195 (grub_png_decode_image_header): Detect 16 bit png image.
45196 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45197 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45198 (grub_video_reader_png): Release memory occupied by image_data.
45199
45200 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45201 4096 bytes.
45202 (grub_nfs_mount): Skip the test for sector per cluster.
45203
45204 * include/grub/ntfs.h (MAX_SPC): Removed.
45205
45206 2008-03-31 Bean <bean123ch@gmail.com>
45207
45208 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45209 (grub_probe_SOURCES): Add fs/afs.c.
45210 (grub_fstest_SOURCES): Likewise.
45211 (afs_mod_SOURCES): New variable.
45212 (afs_mod_CFLAGS): Likewise.
45213 (afs_mod_LDFLAGS): Likewise.
45214
45215 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45216 (grub_emu_SOURCES): Likewise.
45217
45218 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45219
45220 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45221
45222 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45223
45224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45225
45226 * fs/afs.c: New file.
45227
45228 2008-03-30 Pavel Roskin <proski@gnu.org>
45229
45230 * disk/host.c: Include grub/misc.h to fix a warning.
45231 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45232 warnings about implicit declarations.
45233
45234 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45235 variable.
45236 * include/grub/i386/loader.h: Change declaration of
45237 grub_linux_boot() to match what grub_loader_set() expects.
45238 * util/getroot.c (grub_guess_root_device): Return const char* to
45239 fix a warning.
45240 * util/grub-probe.c (probe): Fix a warning about uninitialized
45241 abstraction_name variable.
45242 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45243 second argument as unused to fix a warning.
45244
45245 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45246 missing grub_error() call.
45247
45248 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45249 2.60 and newer uses it to define datadir.
45250
45251 * commands/sleep.c: Fix warning about implicit declaration.
45252 * disk/memdisk.c: Likewise.
45253 * loader/aout.c: Likewise.
45254 * loader/i386/bsd_normal.c: Likewise.
45255 * util/grub-probe.c: Likewise.
45256
45257 * commands/i386/cpuid.c (has_longmode): Make static.
45258 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45259 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45260
45261 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45262 GDT. This is more robust, as %ds can change.
45263 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45264 calling real_to_prot().
45265 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45266
45267 2008-03-28 Pavel Roskin <proski@gnu.org>
45268
45269 * kern/i386/pc/startup.S: Assert that uncompressed functions
45270 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45271 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45272 code, as they push parts of the code (error handlers) beyond
45273 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45274 code as correctness and size.
45275
45276 2008-03-28 Pavel Roskin <proski@gnu.org>
45277
45278 * kern/i386/pc/startup.S
45279 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45280 data block address to the real mode, keep offset minimal. This
45281 works around a bug in AWARD BIOS on old Athlon systems, which
45282 makes CD detection hang.
45283
45284 2008-03-26 Pavel Roskin <proski@gnu.org>
45285
45286 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45287 const.
45288 * include/grub/normal.h: Add grub_parse_color_name_pair()
45289 declaration.
45290
45291 2008-03-24 Bean <bean123ch@gmail.com>
45292
45293 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45294 (cd_count): Removed.
45295 (cd_drive): New variable.
45296 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45297 (grub_biosdisk_call_hook): Likewise.
45298 (grub_biosdisk_iterate): Change cdrom detection method.
45299 (grub_biosdisk_open): Replace cd_start with cd_drive.
45300 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45301 detect cdrom device.
45302
45303 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45304 Removed.
45305 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45306 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45307 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45308 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45309 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45310 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45311 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45312 (grub_biosdisk_cdrp): New structure.
45313 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45314
45315 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45316
45317 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45318 device.
45319
45320 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45321 New function.
45322
45323 2008-03-20 Robert Millan <rmh@aybabtu.com>
45324
45325 Remove 2 TiB limit in ata.mod.
45326 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45327 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45328 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45329 grub_uint64_t instead of grub_uint32_t.
45330
45331 2008-03-05 Bean <bean123ch@gmail.com>
45332
45333 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45334 (grub_multiboot): Set boot device.
45335
45336 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45337
45338 2008-03-02 Bean <bean123ch@gmail.com>
45339
45340 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45341 symlink_buffer.
45342
45343 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45344
45345 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45346 texinfo.tex.
45347
45348 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45349 modified.
45350
45351 * docs/fdl.texi: New file.
45352
45353 * docs/mdate-sh: New file. Copied from gnulib.
45354 * docs/texinfo.tex: Likewise.
45355
45356 * config.guess: Updated from gnulib.
45357 * install-sh: Likewise.
45358
45359 2008-02-28 Robert Millan <rmh@aybabtu.com>
45360
45361 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45362 (aout_mod_SOURCES): New variable.
45363 (aout_mod_CFLAGS): Likewise.
45364 (aout_mod_LDFLAGS): Likewise.
45365
45366 * conf/i386-ieee1275.rmk: Likewise.
45367
45368 2008-02-28 Robert Millan <rmh@aybabtu.com>
45369
45370 * util/update-grub.in: Reorganise terminal validity check. Accept
45371 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45372 Based on suggestion by Franklin PIAT.
45373
45374 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45375
45376 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45377 function.
45378 * util/getroot.c (grub_util_check_block_device): New function that
45379 returns the given argument if it is a block device and returns NULL else.
45380 * util/grub-probe.c (argument_is_device): New variable.
45381 (probe): Promote device_name from a variable to an argument. Receive
45382 device_name from grub_util_check_block_device() if path is NULL and from
45383 grub_guess_root_device() else. Do not free() device_name anymore.
45384 (options): Introduce new parameter '-d, --device'.
45385 (main): Add description of the new parameter to the help screen.
45386 Rename path variable to argument. Set argument_is_device if the '-d'
45387 option is given. Pass argument to probe() depending on
45388 argument_is_device.
45389
45390 2008-02-24 Bean <bean123ch@gmail.com>
45391
45392 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45393 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45394 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45395 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45396 (GRUB_ISO9660_VOLDESC_END): Likewise.
45397 (grub_iso9660_primary_voldesc): New member escape.
45398 (grub_iso9660_data): New member joliet.
45399 (grub_iso9660_convert_string): New function.
45400 (grub_iso9660_mount): Detect joliet extension.
45401 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45402 (grub_iso9660_iso9660_label): Likewise.
45403
45404 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45405 (grub_setup_SOURCES): Add fs/udf.c.
45406 (grub_fstest_SOURCES): Likewise.
45407 (udf_mod_SOURCES): New variable.
45408 (udf_mod_CFLAGS): Likewise.
45409 (udf_mod_LDFLAGS): Likewise.
45410
45411 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45412 (grub_emu_SOURCES): Likewise.
45413
45414 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45415
45416 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45417
45418 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45419
45420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45421
45422 * fs/udf.c: New file.
45423
45424 2008-02-24 Robert Millan <rmh@aybabtu.com>
45425
45426 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45427 (normal/lexer.c_DEPENDENCIES): New variables.
45428 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45429 (normal/lexer.c_DEPENDENCIES): Likewise.
45430 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45431 (normal/lexer.c_DEPENDENCIES): Likewise.
45432 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45433 (normal/lexer.c_DEPENDENCIES): Likewise.
45434 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45435 (normal/lexer.c_DEPENDENCIES): Likewise.
45436 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45437 (normal/lexer.c_DEPENDENCIES): Likewise.
45438
45439 2008-02-23 Robert Millan <rmh@aybabtu.com>
45440
45441 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45442 since they were intended to be in hex. This didn't break previously
45443 because of a bug in gpt_partition_map_iterate() (see below).
45444
45445 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45446 when checking the validity of GPT header.
45447 Remove `partno', since it always provides the same information as `i'.
45448
45449 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45450
45451 * include/grub/efi/time.h: Fix a wrong comment.
45452
45453 2008-02-19 Pavel Roskin <proski@gnu.org>
45454
45455 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45456 message.
45457
45458 2008-02-19 Bean <bean123ch@gmail.com>
45459
45460 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45461 (aout_mod_SOURCES): New variable.
45462 (aout_mod_CFLAGS): Likewise.
45463 (aout_mod_LDFLAGS): Likewise.
45464 (_bsd_mod_SOURCES): New variable.
45465 (_bsd_mod_CFLAGS): Likewise.
45466 (_bsd_mod_LDFLAGS): Likewise.
45467 (bsd_mod_SOURCES): New variable.
45468 (bsd_mod_CFLAGS): Likewise.
45469 (bsd_mod_LDFLAGS): Likewise.
45470
45471 * include/grub/aout.h: New file.
45472
45473 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45474
45475 * include/grub/i386/bsd.h: New file.
45476
45477 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45478 to make it public.
45479
45480 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45481 function is called, so that it's possible to change it inside the hook.
45482 (grub_elf64_load): Likewise.
45483 (grub_elf_file): Don't close the file if elf header is not found.
45484 (grub_elf_close): Close the file if grub_elf_file fails (The new
45485 grub_elf_file won't close it).
45486 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45487 (grub_elf64_size): Likewise.
45488
45489 * kern/i386/loader.S (grub_unix_real_boot): New function.
45490
45491 * loader/aout.c: New file.
45492
45493 * loader/i386/bsd.c: New file.
45494
45495 * loader/i386/bsd_normal.c: New file.
45496
45497 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45498
45499 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45500 can test other formats.
45501
45502 2008-02-19 Robert Millan <rmh@aybabtu.com>
45503
45504 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45505 (grub_gpt_partition_type_empty): Redefine with macro from
45506 `<grub/gpt_partition.h>'.
45507 (gpt_partition_map_iterate): Adjust partition type comparison.
45508
45509 Export `entry' as partmap-specific `part.data' struct.
45510 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45511
45512 * include/grub/gpt_partition.h (grub_gpt_header)
45513 (grub_gpt_partentry): ... to here (new file).
45514
45515 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45516
45517 (grub_gpt_partition_type_bios_boot): New const variable, defined
45518 with macro from `<grub/gpt_partition.h>'.
45519
45520 (setup): Replace `first_start' with `embed_region', which keeps
45521 track of the embed region (and is partmap-agnostic).
45522
45523 Replace find_first_partition_start() with find_usable_region(),
45524 which finds a usable region for embedding using partmap-specific
45525 knowledge (supports PC/MSDOS and GPT).
45526
45527 Fix all assumptions that the embed region start at sector 1, using
45528 `embed_region.start' from now on. Similarly, use `embed_region.end'
45529 rather than `first_start' to calculate available size.
45530
45531 In grub_util_info() message, replace "into after the MBR" with an
45532 indication of the specific sector our embed region starts at.
45533
45534 2008-02-19 Robert Millan <rmh@aybabtu.com>
45535
45536 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45537 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45538 `commands/reboot.c'.
45539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45540 (halt_mod_SOURCES): Likewise.
45541 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45542 (halt_mod_SOURCES): Likewise.
45543
45544 2008-02-17 Christian Franke <franke@computer.org>
45545
45546 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45547
45548 2008-02-17 Robert Millan <rmh@aybabtu.com>
45549
45550 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45551 set `first_start' to 0 for non-PC/MSDOS partition maps.
45552
45553 2008-02-16 Robert Millan <rmh@aybabtu.com>
45554
45555 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45556 do not assume partition map is PC/MSDOS before performing checks that
45557 are specific to that layout.
45558
45559 2008-02-13 Robert Millan <rmh@aybabtu.com>
45560
45561 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45562 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45563 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45564
45565 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45566
45567 * configure.ac: Only a cosmetic change on the handling of
45568 -fno-stack-protector.
45569
45570 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45571
45572 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45573 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45574 reboot.c.
45575 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45576 (halt_mod_SOURCES): New variable.
45577 (halt_mod_CFLAGS): Likewise.
45578 (halt_mod_LDFLAGS): Likewise.
45579 (reboot_mod_SOURCES): Likewise.
45580 (reboot_mod_CFLAGS): Likewise.
45581 (reboot_mod_LDFLAGS): Likewise.
45582
45583 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45584 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45585 reboot.c.
45586 (halt_mod_SOURCES): Likewise.
45587 (reboot_mod_SOURCES): Likewise.
45588
45589 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45590 commands/i386/pc/reboot.c by commands/reboot.c.
45591 (reboot_mod_SOURCES): Likewise.
45592
45593 * commands/i386/pc/reboot.c: merge this file ...
45594
45595 * commands/ieee1275/reboot.c: ... and this file ...
45596
45597 * commands/reboot.c: ... to this file.
45598 Add some precompiler directive to include the correct header for
45599 each machine.
45600
45601 * commands/ieee1275/halt.c: move this file ...
45602
45603 * commands/halt.c: ... to here.
45604 Add some precompiler directive to include the correct header for
45605 each machine.
45606
45607 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45608 (grub_halt): Likewise.
45609
45610 * kern/efi/efi.c (grub_reboot): New function.
45611 (grub_halt): Likewise.
45612
45613 2008-02-12 Robert Millan <rmh@aybabtu.com>
45614
45615 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45616 /dev (like it is done for /dev/mapper). This doesn't provide support
45617 for EVMS, but at least it is now easy to identify the problem when it
45618 arises.
45619
45620 2008-02-11 Robert Millan <rmh@aybabtu.com>
45621
45622 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45623 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45624 comparing it with -1, not 0.
45625
45626 2008-02-10 Robert Millan <rmh@aybabtu.com>
45627
45628 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45629 `disk/lvm.c'.
45630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45631 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45632
45633 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45634 `disk/lvm.c' to the end of the list.
45635 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45636 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45637
45638 2008-02-10 Robert Millan <rmh@aybabtu.com>
45639
45640 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45641 grub_print_error() instead. This will let user know why we're entering
45642 rescue mode.
45643 Based on suggestions from Sam Morris.
45644
45645 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45646
45647 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45648 on remaining N args, instead of "--" arg N times.
45649
45650 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45651
45652 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45653 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45654 pattern for unknown glyphs.
45655
45656 2008-02-09 Robert Millan <rmh@aybabtu.com>
45657
45658 * configure.ac: Probe for `help2man'.
45659 * Makefile.in (builddir): New variable.
45660 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45661 or otherwise add a few flags/options to it.
45662 (install-local): For every executable utility or script that is
45663 installed, invoke $(HELP2MAN) to install a manpage based on --help
45664 output.
45665
45666 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45667 that it doesn't prevent --help from working in build tree.
45668
45669 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45670 with `bug-grub@gnu.org'.
45671 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45672 * util/update-grub.in (usage): New function.
45673 Implement proper argument check, with support for --help and --version
45674 (as well as existing -y).
45675
45676 2008-02-09 Christian Franke <franke@computer.org>
45677
45678 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45679 avoid overwriting previous output.
45680 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45681
45682 2008-02-09 Robert Millan <rmh@aybabtu.com>
45683
45684 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45685 drawing the menu.
45686
45687 2008-02-09 Robert Millan <rmh@aybabtu.com>
45688
45689 * commands/sleep.c: New file.
45690 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45691 (sleep_mod_SOURCES): New variable.
45692 (sleep_mod_CFLAGS): Likewise.
45693 (sleep_mod_LDFLAGS): Likewise.
45694
45695 2008-02-09 Robert Millan <rmh@aybabtu.com>
45696
45697 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45698 situations in which we can deduce the RAID size and the superblock
45699 doesn't match it.
45700
45701 2008-02-09 Robert Millan <rmh@aybabtu.com>
45702
45703 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45704 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45705 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45706
45707 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45708 and return a grub_diskmemberlist_t composed of physical array members.
45709 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45710
45711 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45712 prototype.
45713 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45714 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45715 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45716
45717 * util/grub-probe.c (probe): Move partmap probing code from here ...
45718 (probe_partmap): ... to here.
45719 (probe): Use probe_partmap() once for the disk we're probing, and
45720 additionally, when such disk contains a memberlist() struct member,
45721 once for each disk that is contained in the structure returned by
45722 memberlist().
45723
45724 2008-02-09 Robert Millan <rmh@aybabtu.com>
45725
45726 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45727 environment variable to 'all' in order to obtain debug output from
45728 non-util/ code.
45729 * util/i386/pc/grub-setup.c (main): Likewise.
45730
45731 2008-02-08 Robert Millan <rmh@aybabtu.com>
45732
45733 * disk/raid.c (grub_raid_scan_device): Check for
45734 `array->device[sb.this_disk.number]' rather than for
45735 `array->device[sb.this_disk.number]->name', since the latter is not
45736 guaranteed to be accessible.
45737
45738 2008-02-08 Robert Millan <rmh@aybabtu.com>
45739
45740 * disk/raid.c: Update copyright.
45741 * fs/cpio.c: Likewise.
45742 * include/grub/raid.h: Likewise.
45743 * loader/i386/pc/multiboot.c: Likewise.
45744 * util/hostfs.c: Likewise.
45745
45746 2008-02-08 Robert Millan <rmh@aybabtu.com>
45747
45748 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45749 to a grub_disk_t array.
45750 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45751 `device[x]'.
45752 (grub_raid_scan_device): Replace `device[x].name' accesses with
45753 `device[x]->name'. Simplify initialization of `array->device[x]'.
45754
45755 2008-02-08 Robert Millan <rmh@aybabtu.com>
45756
45757 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45758 grub_dprintf() calls.
45759 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45760 error message.
45761
45762 2008-02-07 Christian Franke <franke@computer.org>
45763
45764 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45765 instead of fseek and ftell to support large files.
45766 (grub_hostfs_read): Likewise.
45767
45768 2008-02-07 Robert Millan <rmh@aybabtu.com>
45769
45770 Patch from Jeroen Dekkers.
45771 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45772 failure, since successfully reading all array members might not be
45773 required.
45774
45775 2008-02-06 Robert Millan <rmh@aybabtu.com>
45776
45777 * util/grub-probe.c (probe): Simplify partmap probing (with the
45778 assumption that the first word up to the underscore equals to
45779 the module name).
45780
45781 2008-02-06 Christian Franke <franke@computer.org>
45782
45783 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45784 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45785 last block of a cpio or tar stream.
45786 Check for "TRAILER!!!" instead of any empty data
45787 block to detect last block of a cpio stream.
45788 (grub_cpio_dir): Fix constness of variable np.
45789 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45790 cpio or tar trailer is detected. This fixes a crash
45791 on open of a non existing file.
45792
45793 2008-02-05 Bean <bean123ch@gmail.com>
45794
45795 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45796 address of entry.
45797 (grub_multiboot_load_elf64): Likewise.
45798 (grub_multiboot): Initialize mbi structure.
45799
45800 * util/grub-fstest.c: Don't include unused header file script.h.
45801
45802 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45803 of file.
45804 (grub_fstest_SOURCES): Likewise.
45805
45806 2008-02-05 Robert Millan <rmh@aybabtu.com>
45807
45808 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45809 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45810 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45811 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45812
45813 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45814 (translation_table): Replace hardcoded values with macros
45815 provided by `<grub/term.h>'.
45816
45817 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45818 (keyboard_map): Correct/add a few values, with macros provided
45819 by `<grub/term.h>'.
45820 (keyboard_map_shift): Zero values that don't differ from their
45821 `keyboard_map' equivalents.
45822 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45823 Discard the second scan code that is always sent by Caps lock.
45824 Only use `keyboard_map_shift' when it provides a non-zero value,
45825 otherwise fallback to `keyboard_map'.
45826
45827 2008-02-04 Bean <bean123ch@gmail.com>
45828
45829 * Makefile.in (enable_grub_fstest): New variable.
45830
45831 * conf/common.rmk (grub_fstest_init.lst): New rule.
45832 (grub_fstest_init.h): Likewise.
45833 (grub_fstest_init.c): Likewise.
45834 (util/grub-fstest.c_DEPENDENCIES): New variable.
45835 (grub_fstest_SOURCES): Likewise.
45836
45837 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45838
45839 * util/grub-fstest.c: New file.
45840
45841 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45842
45843 Make grub-setup handle a separate root device.
45844
45845 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45846 so that the root device can be compared with the destination
45847 device.
45848 When embedding the core image, if the root and destination devices
45849 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45850 0xFF.
45851 When not embedding, set ROOT_DRIVE to 0xFF.
45852
45853 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45854
45855 Add support for having a grub directory in a different drive. This
45856 is still only the data handling part.
45857
45858 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45859 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45860 (grub_root_drive): New variable.
45861
45862 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45863 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45864 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45865 as it was.
45866
45867 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45868
45869 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45870 macro.
45871 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45872
45873 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45874 is bogus, because PXE booting does not specify any drive
45875 correctly.
45876
45877 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45878 am not sure if this is really correct.
45879
45880 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45881 is always identical to the boot drive when booting from a CD.
45882
45883 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45884 longer.
45885 (root_drive): New variable.
45886 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45887 (setup_sectors): Push %dx right after popping it, because %dh will
45888 be modified later.
45889 (copy_buffer): Restore %dx.
45890
45891 2008-02-03 Robert Millan <rmh@aybabtu.com>
45892
45893 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45894 use `cdboot.img' for cdrom images.
45895
45896 2008-02-03 Robert Millan <rmh@aybabtu.com>
45897
45898 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45899 only setup gfxterm when `font' command has succeeded.
45900
45901 2008-02-03 Robert Millan <rmh@aybabtu.com>
45902
45903 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45904 (grub_rescue_cmd_multiboot_loader)
45905 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45906
45907 2008-02-03 Pavel Roskin <proski@gnu.org>
45908
45909 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45910 %edx and %esi from stack only after grub_gate_a20() is called.
45911 grub_gate_a20() clobbers %edx.
45912
45913 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45914
45915 * configure.ac (AC_INIT): Bumped to 1.96.
45916
45917 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45918 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45919 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45920 video/readers/png.c.
45921
45922 2008-02-03 Bean <bean123ch@gmail.com>
45923
45924 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45925 (cdboot_img_SOURCES): New variable.
45926 (cdboot_img_ASFLAGS): New variable.
45927 (cdboot_img_LDFLAGS): New variable.
45928
45929 * boot/i386/pc/cdboot.S: New file.
45930
45931 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45932 (cd_count): Likewise.
45933 (grub_biosdisk_get_drive): Add support for cd device.
45934 (grub_biosdisk_call_hook): Likewise.
45935 (grub_biosdisk_iterate): Likewise.
45936 (grub_biosdisk_open): Likewise.
45937 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45938 (grub_biosdisk_rw): Support reading from cd device.
45939 (GRUB_MOD_INIT): Iterate cd devices.
45940
45941 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45942 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45943 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45944
45945 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45946
45947 2008-02-02 Robert Millan <rmh@aybabtu.com>
45948
45949 * commands/read.c: New file.
45950 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45951 (read_mod_SOURCES): New variable.
45952 (read_mod_CFLAGS): Likewise.
45953 (read_mod_LDFLAGS): Likewise.
45954
45955 2008-02-02 Robert Millan <rmh@aybabtu.com>
45956
45957 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45958 determining whether menu has to be displayed.
45959
45960 2008-02-02 Marco Gerards <marco@gnu.org>
45961
45962 * bus/pci.c: New file.
45963
45964 * include/grub/pci.h: Likewise.
45965
45966 * include/grub/i386/pc/pci.h: Likewise.
45967
45968 * commands/lspci.c: Likewise.
45969
45970 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45971 `lspci.mod'.
45972 (pci_mod_SOURCES): New variable.
45973 (pci_mod_CFLAGS): Likewise.
45974 (pci_mod_LDFLAGS): Likewise.
45975 (lspci_mod_SOURCES): Likewise.
45976 (lspci_mod_CFLAGS): Likewise.
45977 (lspci_mod_LDFLAGS): Likewise.
45978
45979 2008-02-02 Bean <bean123ch@gmail.com>
45980
45981 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
45982 (grub_ufs_get_file_block): Fix indirect block calculation problem.
45983
45984 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
45985 (grub_xfs_btree_node): New structure.
45986 (grub_xfs_btree_root): New structure.
45987 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
45988 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
45989 (GRUB_XFS_EXTENT_BLOCK): Likewise.
45990 (GRUB_XFS_EXTENT_SIZE): Likewise.
45991 (grub_xfs_read_block): Support btree format type.
45992 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
45993 Use directory block as basic unit.
45994
45995 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
45996
45997 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
45998 __attribute__ ((__regparm__ (1))).
45999
46000 2008-02-01 Robert Millan <rmh@aybabtu.com>
46001
46002 Correct a mistake in previous commit.
46003
46004 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46005 top.
46006 (normal/command.c_DEPENDENCIES): New variable.
46007
46008 2008-02-01 Robert Millan <rmh@aybabtu.com>
46009
46010 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46011 top.
46012 (normal/command.c_DEPENDENCIES): New variable.
46013 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46014 * conf/i386-ieee1275.rmk: Likewise.
46015 * conf/i386-linuxbios.rmk: Likewise.
46016 * conf/i386-pc.rmk: Likewise.
46017 * conf/sparc64-ieee1275.rmk: Likewise.
46018 * conf/powerpc-ieee1275.rmk: Likewise.
46019 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46020
46021 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46022
46023 2008-02-01 Robert Millan <rmh@aybabtu.com>
46024
46025 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46026 call at beginning of function.
46027
46028 2008-01-31 Pavel Roskin <proski@gnu.org>
46029
46030 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46031 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46032 (grub_mkrescue_SOURCES): Likewise.
46033 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46034
46035 2008-01-30 Robert Millan <rmh@aybabtu.com>
46036
46037 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46038 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46039 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46040 (grub_probe_SOURCES): ... to here.
46041
46042 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46043 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46044 * conf/i386-ieee1275.rmk: Likewise.
46045 * conf/i386-linuxbios.rmk: Likewise.
46046 * conf/powerpc-ieee1275.rmk: Likewise.
46047
46048 2008-01-30 Tristan Gingold <gingold@free.fr>
46049
46050 * kern/rescue.c: Silently accept empty lines.
46051
46052 2008-01-29 Bean <bean123ch@gmail.com>
46053
46054 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46055 (real_code_2): Code cleanup and change comment style.
46056 (move_memory): Avoid using 32-bit address mode.
46057
46058 2008-01-29 Bean <bean123ch@gmail.com>
46059
46060 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46061 (png_mod_SOURCES): New variable.
46062 (png_mod_CFLAGS): Likewise.
46063 (png_mod_LDFLAGS): Likewise.
46064
46065 * video/readers/png.c: New file.
46066
46067 2008-01-28 Robert Millan <rmh@aybabtu.com>
46068
46069 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46070 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46071 `ifndef GRUB_MOD_GAP' hack.
46072 * util/elf/grub-mkimage.c (add_segments): Likewise.
46073
46074 2008-01-27 Robert Millan <rmh@aybabtu.com>
46075
46076 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46077 `GRUB_MOD_GAP' for platforms in which it's not defined.
46078 * util/elf/grub-mkimage.c (add_segments): Likewise.
46079
46080 2008-01-27 Robert Millan <rmh@aybabtu.com>
46081
46082 Get grub-emu to build again (including parallel builds).
46083
46084 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46085 Split into ...
46086 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46087 (normal/execute.c_DEPENDENCIES): ... this, ...
46088 (grub-emu_DEPENDENCIES): ... and this.
46089
46090 * conf/i386-efi.rmk: Likewise.
46091 * conf/i386-linuxbios.rmk: Likewise.
46092 * conf/i386-ieee1275.rmk: Likewise.
46093 * conf/powerpc-ieee1275.rmk: Likewise.
46094 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46095
46096 2008-01-27 Robert Millan <rmh@aybabtu.com>
46097
46098 * NEWS: Add a few items.
46099
46100 2008-01-27 Robert Millan <rmh@aybabtu.com>
46101
46102 Fix parallel builds with grub-emu. Based on earlier commit for
46103 grub-probe and grub-setup.
46104
46105 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46106 (util/grub-emu.c_DEPENDENCIES): ... this.
46107 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46108 (util/grub-emu.c_DEPENDENCIES): ... this.
46109 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46110 (util/grub-emu.c_DEPENDENCIES): ... this.
46111 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46112 (util/grub-emu.c_DEPENDENCIES): ... this.
46113 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46114 (util/grub-emu.c_DEPENDENCIES): ... this.
46115
46116 2008-01-27 Pavel Roskin <proski@gnu.org>
46117
46118 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46119 to create a gap between _end and the modules added to the image
46120 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46121 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46122 * util/elf/grub-mkimage.c (add_segments): Likewise.
46123
46124 2008-01-26 Pavel Roskin <proski@gnu.org>
46125
46126 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46127 just return an error.
46128
46129 2008-01-26 Bean <bean123ch@gmail.com>
46130
46131 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46132 (grub_reiserfs_get_item): Save offset of the next item.
46133 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46134
46135 2008-01-25 Robert Millan <rmh@aybabtu.com>
46136
46137 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46138 make all filesystem sources appear together (possibly fixing omissions
46139 while at it).
46140 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46141 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46142 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46144
46145 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46146 add `kern/file.c'.
46147 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46148 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46149 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46150 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46151
46152 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46153 (probe): Add a sanity check to make sure of our ability to read
46154 requested files when probing for filesystem type.
46155
46156 * genmk.rb: Update copyright year (2007).
46157
46158 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46159 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46160 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46161 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46162 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46163 : Remove function prototypes.
46164
46165 2008-01-25 Robert Millan <rmh@aybabtu.com>
46166
46167 Revert my previous commits (based on wrong assumption of how grub_errno
46168 works).
46169
46170 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46171 * kern/file.c (grub_file_open): Likewise.
46172
46173 2008-01-24 Pavel Roskin <proski@gnu.org>
46174
46175 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46176 that hang if GRUB tries to setup colors.
46177 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46178 colors for firmwares that don't support it.
46179 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46180 Recognize Open Hack'Ware, set flags to work around its
46181 limitations.
46182
46183 2008-01-24 Robert Millan <rmh@aybabtu.com>
46184
46185 * kern/file.c (grub_file_open): Do not account previous failures of
46186 unrelated functions when grub_errno is checked for.
46187 Reported by Oleg Strikov.
46188
46189 2008-01-24 Bean <bean123ch@gmail.com>
46190
46191 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46192 (grub_ufs_sblock): New member volume name.
46193 (grub_ufs_find_file): Fix string copy bug.
46194 (grub_ufs_label): Implement this function properly.
46195
46196 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46197 (grub_hfs_iterate_records): Use the correct file number for extents
46198 and catalog file. Fix problem in next index calculation.
46199 (grub_hfs_find_node): Replace recursive function call with loop.
46200 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46201
46202 2008-01-23 Robert Millan <rmh@aybabtu.com>
46203
46204 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46205 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46206 (grub_multiboot2_real_boot): New function prototype.
46207
46208 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46209 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46210
46211 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46212 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46213
46214 2008-01-23 Robert Millan <rmh@aybabtu.com>
46215
46216 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46217 #ifdef'ed out grub_printf().
46218
46219 2008-01-23 Robert Millan <rmh@aybabtu.com>
46220
46221 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46222 grub_dprintf calls, since they make "debug=all" mode unusable.
46223 (grub_console_checkkey): Likewise.
46224
46225 2008-01-23 Robert Millan <rmh@aybabtu.com>
46226
46227 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46228 `term/i386/pc/at_keyboard.c'.
46229 (pkglib_MODULES): Add `serial.mod'.
46230 (serial_mod_SOURCES): New variable.
46231 (serial_mod_CFLAGS): Likewise.
46232 (serial_mod_LDFLAGS): Likewise.
46233
46234 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46235 `<grub/powerpc/ieee1275/console.h>'.
46236 (grub_keyboard_controller_init): New function prototype.
46237 (grub_console_checkkey): Likewise.
46238 (grub_console_getkey): Likewise.
46239
46240 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46241 keyboard on i386.
46242
46243 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46244 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46245
46246 2008-01-23 Robert Millan <rmh@aybabtu.com>
46247
46248 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46249 present, "(memdisk)/boot/grub" becomes the default prefix.
46250
46251 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46252 a memdisk tarball with all the modules. Add --overlay=DIR option that
46253 allows users to overlay additional files into the image.
46254
46255 2008-01-23 Robert Millan <rmh@aybabtu.com>
46256
46257 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46258 and `machine/memory.h'.
46259 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46260 (_multiboot_mod_SOURCES): New variable.
46261 (_multiboot_mod_CFLAGS): Likewise.
46262 (_multiboot_mod_LDFLAGS): Likewise.
46263 (multiboot_mod_SOURCES): Likewise.
46264 (multiboot_mod_CFLAGS): Likewise.
46265 (multiboot_mod_LDFLAGS): Likewise.
46266
46267 * include/grub/i386/ieee1275/loader.h: New file.
46268
46269 * include/grub/i386/ieee1275/machine.h: Likewise.
46270
46271 * include/grub/i386/ieee1275/memory.h: Likewise.
46272
46273 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46274 variable declaration.
46275 (grub_os_area_size): Likewise.
46276
46277 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46278 (grub_lower_mem, grub_upper_mem): New variables.
46279 (grub_stop_floppy): New function (just to make
46280 grub_multiboot2_real_boot() happy).
46281
46282 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46283 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46284 (grub_stop): New function.
46285 Include `"../realmode.S"' and `"../loader.S"'.
46286
46287 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46288 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46289
46290 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46291 rely on grub_multiboot2_real_boot() for final boot.
46292
46293 2008-01-22 Robert Millan <rmh@aybabtu.com>
46294
46295 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46296 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46297 device that doesn't look like an SD card.
46298 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46299 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46300 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46301 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46302 found.
46303
46304 2008-01-22 Robert Millan <rmh@aybabtu.com>
46305
46306 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46307 avoid claiming over our own code.
46308
46309 2008-01-22 Bean <bean123ch@gmail.com>
46310
46311 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46312 (jpeg_mod_SOURCES): New variable.
46313 (jpeg_mod_CFLAGS): Likewise.
46314 (jpeg_mod_LDFLAGS): Likewise.
46315
46316 * video/readers/jpeg.c : New file.
46317
46318 2008-01-22 Bean <bean123ch@gmail.com>
46319
46320 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46321 there are no more items.
46322
46323 2008-01-21 Robert Millan <rmh@aybabtu.com>
46324
46325 * kern/mm.c (grub_mm_init_region): Improve debug message.
46326
46327 2008-01-21 Robert Millan <rmh@aybabtu.com>
46328
46329 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46330 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46331 address.
46332 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46333 a C macro.
46334 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46335 Indicates start of upper memory.
46336 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46337 (generate_image): Abort when image size is big enough to corrupt
46338 upper memory.
46339
46340 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46341 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46342 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46343 instead of hardcoding 0xA0000.
46344 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46345 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46346 instead of hardcoding 0xA0000.
46347
46348 2008-01-21 Robert Millan <rmh@aybabtu.com>
46349
46350 * disk/memdisk.c (memdisk_size): New variable.
46351 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46352 `memdisk_size'.
46353 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46354 image to dynamic memory.
46355 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46356 `memdisk_size'. Free memdisk block.
46357
46358 2008-01-21 Robert Millan <rmh@aybabtu.com>
46359
46360 Fix detection of very small filesystems (like tar).
46361
46362 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46363 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46364 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46365 a problem with this disk).
46366
46367 2008-01-21 Robert Millan <rmh@aybabtu.com>
46368
46369 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46370 on grub_biosdisk_rw_standard() error.
46371
46372 2008-01-21 Robert Millan <rmh@aybabtu.com>
46373
46374 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46375 recent changes.
46376 * kern/elf.c: Likewise.
46377 * kern/ieee1275/ieee1275.c: Likewise.
46378 * kern/powerpc/ieee1275/openfw.c: Likewise.
46379 * term/ieee1275/ofconsole.c: Likewise.
46380
46381 2008-01-21 Robert Millan <rmh@aybabtu.com>
46382
46383 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46384
46385 * include/grub/kernel.h (grub_arch_memdisk_addr)
46386 (grub_arch_memdisk_size): Moved from here ...
46387
46388 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46389 (grub_arch_memdisk_size): ... to here.
46390
46391 2008-01-21 Robert Millan <rmh@aybabtu.com>
46392
46393 Mostly based on bugfix from Bean.
46394
46395 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46396 attribute with hook() parameter.
46397 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46398 declaration.
46399 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46400 attribute with hook() parameter.
46401 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46402 declaration.
46403
46404 2008-01-21 Robert Millan <rmh@aybabtu.com>
46405
46406 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46407 (pkglib_MODULES): Add `memdisk.mod'.
46408 (memdisk_mod_SOURCES): New variable.
46409 (memdisk_mod_CFLAGS): Likewise.
46410 (memdisk_mod_LDFLAGS): Likewise.
46411
46412 * disk/memdisk.c: New file.
46413
46414 * include/grub/disk.h (grub_disk_dev_id): Add
46415 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46416
46417 * include/grub/i386/pc/kernel.h
46418 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46419 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46420 (grub_kernel_image_size): New variable declaration.
46421 (grub_total_module_size): Likewise.
46422 (grub_memdisk_image_size): Likewise.
46423
46424 * include/grub/i386/pc/memory.h
46425 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46426
46427 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46428 (grub_arch_memdisk_addr): New variable declaration.
46429 (grub_arch_memdisk_size): Likewise.
46430
46431 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46432 (grub_arch_memdisk_size): Likewise.
46433
46434 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46435 (codestart): Replace hardcoded `0x100000' with
46436 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46437
46438 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46439 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46440 not NULL, append the contents of the file it refers to, at the end of
46441 the compressed kernel image. Initialize `grub_memdisk_image_size'
46442 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46443 (options): Add "memdisk"|'m' option.
46444 (main): Parse --memdisk|-m option, and pass user-provided path as
46445 parameter to generate_image().
46446
46447 2008-01-20 Robert Millan <rmh@aybabtu.com>
46448
46449 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46450 grub_dprintf() calls from here ...
46451 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46452
46453 2008-01-20 Robert Millan <rmh@aybabtu.com>
46454
46455 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46456
46457 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46458 declaration.
46459 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46460 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46461 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46462 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46463 property).
46464 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46465 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46466
46467 2008-01-19 Robert Millan <rmh@aybabtu.com>
46468
46469 Get rid of confusing function (superseded by
46470 `grub_ieee1275_get_integer_property')
46471 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46472 prototype.
46473 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46474 function.
46475 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46476 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46477 in native endianness from grub_ieee1275_get_integer_property().
46478
46479 2008-01-19 Robert Millan <rmh@aybabtu.com>
46480
46481 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46482 command after "shut-down", since implementations differ on which
46483 the command for halt is.
46484
46485 2008-01-19 Robert Millan <rmh@aybabtu.com>
46486
46487 * include/grub/i386/linuxbios/console.h: Add header protection.
46488 (grub_keyboard_controller_init): New function prototype.
46489 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46490 (KEYBOARD_COMMAND_READ): Likewise.
46491 (KEYBOARD_COMMAND_WRITE): Likewise.
46492 (KEYBOARD_SCANCODE_SET1): Likewise.
46493 (grub_keyboard_controller_write): New function.
46494 (grub_keyboard_controller_read): Likewise.
46495 (grub_keyboard_controller_init): Likewise.
46496
46497 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46498 (grub_console_init): On coreboot/LinuxBIOS, call
46499 grub_keyboard_controller_init().
46500
46501 2008-01-19 Robert Millan <rmh@aybabtu.com>
46502
46503 PowerPC changes provided by Pavel Roskin.
46504
46505 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46506 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46507 don't rely on cmain() doing it.
46508 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46509 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46510
46511 2008-01-16 Robert Millan <rmh@aybabtu.com>
46512
46513 * include/grub/i386/linuxbios/memory.h
46514 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46515 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46516 receive `table_header' as argument. Instead, probe for it in the
46517 known memory ranges where it can be present.
46518 (grub_available_iterate): Do not pass a fixed `table_header' address
46519 to grub_linuxbios_table_iterate().
46520
46521 2008-01-15 Robert Millan <rmh@aybabtu.com>
46522
46523 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46524 * conf/i386-ieee1275.rmk: New file.
46525 * include/grub/i386/ieee1275/console.h: Likewise.
46526 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46527 * include/grub/i386/ieee1275/kernel.h: Likewise.
46528 * include/grub/i386/ieee1275/time.h: Likewise.
46529 * kern/i386/ieee1275/init.c: Likewise.
46530 * kern/i386/ieee1275/startup.S: Likewise.
46531
46532 2008-01-15 Robert Millan <rmh@aybabtu.com>
46533
46534 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46535 when pointers are 32-bit (but still do set it to one when they are
46536 64-bit).
46537
46538 2008-01-15 Robert Millan <rmh@aybabtu.com>
46539
46540 * include/grub/ieee1275/ieee1275.h
46541 (grub_ieee1275_get_integer_property): New function prototype.
46542
46543 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46544 (grub_ieee1275_get_integer_property): New function. Wraps around
46545 grub_ieee1275_get_property() to handle endianness.
46546
46547 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46548 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46549 where appropriate.
46550 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46551 (grub_map): Likewise.
46552 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46553
46554 2008-01-15 Bean <bean123ch@gmail.com>
46555
46556 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46557 (grub_script_execute_cmdline): Reset grub_errno.
46558
46559 * normal/main.c (read_config_file): Reset grub_errno.
46560
46561 * normal/parse.y (script_init): New.
46562 (script): Move function and menuentry here.
46563 (delimiter): New.
46564 (command): Add delimiter at the end of command.
46565 (commands): Adjust to match the new command.
46566 (commandblock): Remove grub_script_lexer_record_start.
46567 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46568 (if): Use the new commands.
46569
46570 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46571
46572 2008-01-15 Robert Millan <rmh@aybabtu.com>
46573
46574 * normal/menu.c (run_menu): Move timeout message from here ...
46575 (print_timeout): ... to here.
46576 (run_menu): Use print_timeout() once during initial draw to print
46577 the whole message, and again in every clock tick to update only
46578 the number of seconds.
46579
46580 2008-01-15 Robert Millan <rmh@aybabtu.com>
46581
46582 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46583 actual size of `available' from grub_ieee1275_get_property(), and
46584 restrict parsing to that bound.
46585
46586 2008-01-15 Christian Franke <franke@computer.org>
46587
46588 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46589 (argp_program_version): Remove variable.
46590 (argp_program_bug_address): Likewise.
46591 (options): Convert from struct argp_option to struct option.
46592 (struct arguments): Remove.
46593 (parse_opt): Remove.
46594 (usage): New function.
46595 (main): Replace struct args members by simple variables.
46596 Replace argp_parse() by getopt_long().
46597 Add switch to evaluate options.
46598 Add missing "(...)" around root_dev in prefix string.
46599
46600 2008-01-14 Robert Millan <rmh@aybabtu.com>
46601
46602 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46603 for grub_ieee1275_exit(), in order to improve portability.
46604
46605 2008-01-14 Robert Millan <rmh@aybabtu.com>
46606
46607 * util/grub.d/10_linux.in (prefix): Define.
46608 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46609
46610 2008-01-13 Pavel Roskin <proski@gnu.org>
46611
46612 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46613 grub_errno if no errors have been detected.
46614
46615 2008-01-12 Robert Millan <rmh@aybabtu.com>
46616
46617 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46618 (grub_util_get_dev_abstraction): New function prototype.
46619
46620 * util/getroot.c: Include `<grub/util/getroot.h>'
46621 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46622 (grub_util_get_dev_abstraction): ... here (new function).
46623
46624 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46625 `PRINT_ABSTRACTION'.
46626 (probe): Probe for abstraction type when requested.
46627 (main): Understand `--target=abstraction'.
46628
46629 * util/i386/efi/grub-install.in: Add abstraction module to core
46630 image when it is found to be necessary.
46631 * util/i386/pc/grub-install.in: Likewise.
46632 * util/powerpc/ieee1275/grub-install.in: Likewise.
46633
46634 * util/update-grub_lib.in (font_path): Return system path without
46635 converting to GRUB path.
46636 * util/update-grub.in: Convert system path returned by font_path()
46637 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46638 abstraction module is needed for loading fonts (if any). Export
46639 that as `GRUB_PRELOAD_MODULES'.
46640 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46641 insmod commands).
46642
46643 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46644
46645 Remove some unused code from reiserfs.
46646
46647 * fs/reiserfs.c (struct grub_reiserfs_key)
46648 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46649 (struct grub_reiserfs_node_body): Removed.
46650 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46651 Likewise.
46652 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46653 Likewise.
46654 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46655 Likewise.
46656 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46657 Likewise.
46658 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46659 Likewise.
46660 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46661 Likewise.
46662 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46663 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46664 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46665
46666 2008-01-10 Robert Millan <rmh@aybabtu.com>
46667
46668 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46669 Determines if a file is garbage left by packaging systems, etc.
46670 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46671 for processing /etc/grub.d scripts.
46672 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46673 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46674 as a condition for processing Linux images.
46675
46676 2008-01-10 Pavel Roskin <proski@gnu.org>
46677
46678 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46679 to compile reiserfs.c on PowerPC.
46680
46681 2008-01-10 Robert Millan <rmh@aybabtu.com>
46682
46683 * kern/device.c (grub_device_iterate): Do not abort device iteration
46684 when one of the devices cannot be opened.
46685 * kern/disk.c (grub_disk_open): Do not account previous failures of
46686 unrelated functions when grub_errno is checked for.
46687
46688 2008-01-08 Robert Millan <rmh@aybabtu.com>
46689
46690 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46691 `! grub_linux_is_bzimage', change order of address comparison to make
46692 it more intuitive, and improve "too big zImage" error message.
46693
46694 2008-01-08 Robert Millan <rmh@aybabtu.com>
46695
46696 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46697 `$(update-grub_DATA)'.
46698 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46699 targets.
46700
46701 2008-01-07 Robert Millan <rmh@aybabtu.com>
46702
46703 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46704 which instruction is modified by grub-setup during installation
46705 (since it wasn't obvious by only looking at this file).
46706
46707 2008-01-07 Robert Millan <rmh@aybabtu.com>
46708
46709 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46710 listing actual TODO items.
46711
46712 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46713
46714 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46715 correctly.
46716 (grub_reiserfs_get_key_offset): Likewise.
46717 (grub_reiserfs_set_key_offset): Likewise.
46718 (grub_reiserfs_set_key_type): Likewise.
46719 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46720
46721 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46722 better to remove the bitfield version completely.
46723
46724 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46725
46726 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46727 allocated from the heap, due to the fshelp implementation.
46728 (grub_reiserfs_dir): Free NODE, due to the same reason.
46729
46730 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46731
46732 Mostly from Vincent Pelletier:
46733
46734 * fs/reiserfs.c: New file.
46735
46736 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46737 (reiserfs_mod_SOURCES): New variable.
46738 (reiserfs_mod_CFLAGS): Likewise.
46739 (reiserfs_mod_LDFLAGS): Likewise.
46740
46741 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46742 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46743 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46744 normal/color.c.
46745
46746 2008-01-06 Robert Millan <rmh@aybabtu.com>
46747
46748 * normal/color.c: Remove `<grub/env.h>'.
46749
46750 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46751
46752 * include/grub/normal.h: Include <grub/env.h>.
46753
46754 2008-01-05 Robert Millan <rmh@aybabtu.com>
46755
46756 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46757 usage example with `(hd0,1)'.
46758 Reported by Samuel Thibault.
46759
46760 2008-01-05 Robert Millan <rmh@aybabtu.com>
46761
46762 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46763 (grub_linux_boot_zimage): Rename to ...
46764 (grub_linux_boot): ... this.
46765 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46766 (grub_linux_boot_zimage): Conditionalize zImage copy.
46767
46768 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46769 (grub_linux_boot_bzimage): Remove prototype.
46770 (grub_linux_boot_zimage): Rename to ...
46771 (grub_linux_boot): ... this.
46772
46773 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46774 (grub_linux_boot): Remove function.
46775
46776 2008-01-05 Robert Millan <rmh@aybabtu.com>
46777
46778 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46779 (grub_env_write_color_highlight): Likewise.
46780 (grub_wait_after_message): Likewise.
46781
46782 * normal/color.c: New file.
46783
46784 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46785 (normal_mod_DEPENDENCIES): Likewise.
46786
46787 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46788 (normal_mod_DEPENDENCIES): Likewise.
46789
46790 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46791 (normal_mod_DEPENDENCIES): Likewise.
46792
46793 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46794 (normal_mod_DEPENDENCIES): Likewise.
46795
46796 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46797 for waiting after a message is printed.
46798 * normal/main.c (read_config_file): Likewise.
46799 (grub_normal_init): Register grub_env_write_color_normal() and
46800 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46801 `color_highlight' variables as global.
46802
46803 * normal/menu.c (grub_wait_after_message): New function.
46804 (grub_color_menu_normal): New variable. Replaces ...
46805 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46806 (grub_color_menu_highlight): New variable. Replaces ...
46807 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46808 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46809 `GRUB_TERM_COLOR_STANDARD'.
46810 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46811 `normal_code' and `highlight_code' to `old_color_normal' and
46812 `old_color_highlight', respectively.
46813 (grub_menu_init_page): Update colors when drawing the menu, based on
46814 `menu_color_normal' and `menu_color_highlight' variables.
46815 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46816 a message is printed.
46817
46818 2008-01-05 Robert Millan <rmh@aybabtu.com>
46819
46820 * kern/env.c (grub_env_context_open): Propagate hooks for global
46821 variables to new context.
46822
46823 * kern/main.c (grub_set_root_dev): Export `root' variable.
46824
46825 2008-01-05 Robert Millan <rmh@aybabtu.com>
46826
46827 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46828 discs unconditionally, since udev and others have options to provide
46829 them.
46830
46831 2008-01-05 Robert Millan <rmh@aybabtu.com>
46832
46833 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46834
46835 2008-01-04 Christian Franke <franke@computer.org>
46836
46837 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46838 of eisa_mmap.
46839
46840 2008-01-03 Pavel Roskin <proski@gnu.org>
46841
46842 * kern/i386/linuxbios/init.c: Put "void" to all function
46843 declarations with no arguments.
46844 * kern/powerpc/ieee1275/init.c: Likewise.
46845 * term/i386/pc/at_keyboard.c: Likewise.
46846 * term/i386/pc/vga_text.c: Likewise.
46847 * util/grub-mkdevicemap.c: Likewise.
46848
46849 2008-01-02 Robert Millan <rmh@aybabtu.com>
46850
46851 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46852 message when loaded image is out of bounds.
46853 (grub_multiboot_load_elf64): Likewise.
46854
46855 2008-01-02 Pavel Roskin <proski@gnu.org>
46856
46857 * util/grub.d/10_linux.in: Try version without ".old" when
46858 looking for initrd. It's better to use initrd from the newer
46859 kernel of the same version than no initrd at all.
46860
46861 2008-01-01 Robert Millan <rmh@aybabtu.com>
46862
46863 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46864
46865 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46866
46867 * include/grub/video.h: Added grub_video_unmap_color and
46868 grub_video_get_active_render_target.
46869 (grub_video_adapter): Added unmap_color and get_active_render_target.
46870
46871 * video/video.c: Added grub_video_unmap_color and
46872 grub_video_get_active_render_target.
46873 (grub_video_get_info): Changed method to accept NULL pointer as an
46874 argument to allow detection of active video adapter.
46875
46876 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46877 grub_video_vbe_unmap_color_int.
46878 Added grub_video_vbe_unmap_color and
46879 grub_video_vbe_get_active_render_target.
46880 (grub_video_vbe_adapter): Added unmap_color and
46881 get_active_render_target.
46882
46883 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46884 with grub_video_vbe_unmap_color_int.
46885
46886 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46887 (DEFAULT_NORMAL_COLOR): Likewise.
46888 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46889 (DEFAULT_FG_COLOR): Removed.
46890 (DEFAULT_BG_COLOR): Likewise.
46891 (DEFAULT_CURSOR_COLOR): Changed value.
46892 (grub_virtual_screen): Added standard_color_setting,
46893 normal_color_setting, highlight_color_setting and term_color.
46894 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46895 (bitmap_width): Added.
46896 (bitmap_height): Likewise.
46897 (bitmap): Likewise.
46898 (set_term_color): Likewise.
46899 (grub_virtual_screen_setup): Changed to use new terminal coloring
46900 settings.
46901 (grub_gfxterm_init): Added init for bitmap.
46902 (grub_gfxterm_fini): Added destroy for bitmap.
46903 (redraw_screen_rect): Updated to use background bitmap and new
46904 terminal coloring.
46905 (scroll_up): Added optimization for case when there is no bitmap.
46906 (grub_gfxterm_cls): Fixed to use correct background color.
46907 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46908 coloring.
46909 (grub_virtual_screen_setcolor): Likewise.
46910 (grub_virtual_screen_getcolor): Added.
46911 (grub_gfxterm_background_image_cmd): Likewise.
46912 (grub_video_term): Added setcolor and getcolor.
46913 (MOD_INIT): Added registration of background_image command.
46914 (MOD_TERM): Added unregistration for background_image command.
46915
46916 2007-12-30 Pavel Roskin <proski@gnu.org>
46917
46918 * loader/multiboot_loader.c: Fix multiboot command
46919 unregistration. Fix all typos in the word "multiboot".
46920
46921 2007-12-29 Pavel Roskin <proski@gnu.org>
46922
46923 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46924 support for initrd names used in Fedora.
46925
46926 2007-12-26 Bean <bean123ch@gmail.com>
46927
46928 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46929 (cpio_mod_SOURCES): New variable.
46930 (cpio_mod_CFLAGS): Likewise.
46931 (cpio_mod_LDFLAGS): Likewise.
46932
46933 * fs/cpio.c: New file.
46934
46935 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46936
46937 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46938
46939 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46940
46941 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46942
46943 2007-12-25 Robert Millan <rmh@aybabtu.com>
46944
46945 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46946 (grub_getcolor): New function.
46947
46948 * kern/term.c (grub_getcolor): New function.
46949 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46950 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46951 (print_entry): Set normal and highlight colors to
46952 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46953 respectively, before printing and restore them to old
46954 values afterwards.
46955 (grub_menu_init_page): Likewise. Fill an additional colored space
46956 that would otherwise be left blank.
46957
46958 * term/efi/console.c (grub_console_getcolor): New function.
46959 (struct grub_console_term.getcolor): New variable.
46960 * term/i386/pc/console.c (grub_console_getcolor): New function.
46961 (struct grub_console_term.getcolor): New variable.
46962 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46963 (struct grub_console_term.getcolor): New variable.
46964
46965 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46966 (struct grub_console_term.setcolor): Remove variable.
46967 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46968 (struct grub_console_term.setcolor): Remove variable.
46969 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46970 (struct grub_console_term.setcolor): Remove variable.
46971 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46972 (struct grub_console_term.setcolor): Remove variable.
46973
46974 2007-12-25 Robert Millan <rmh@aybabtu.com>
46975
46976 * configure.ac: Search for possible unifont.hex locations, and
46977 define UNIFONT_HEX if found.
46978
46979 * Makefile.in (UNIFONT_HEX): Define variable.
46980 (DATA): Rename to ...
46981 (PKGLIB): ... this. Update all users.
46982 (PKGDATA): New variable.
46983 (pkgdata_IMAGES): Rename to ...
46984 (pkglib_IMAGES): ... this. Update all users.
46985 (pkgdata_MODULES): Rename to ...
46986 (pkglib_MODULES): ... this. Update all users.
46987 (pkgdata_PROGRAMS): Rename to ...
46988 (pkglib_PROGRAMS): ... this. Update all users.
46989 (pkgdata_DATA): Rename to ...
46990 (pkglib_DATA): ... this. Update all users.
46991 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
46992 (unicode.pff, ascii.pff): New rules.
46993 (all-local): Add `$(PKGDATA)' dependency.
46994 (install-local): Process `$(PKGDATA)'.
46995
46996 * util/update-grub_lib.in (font_path): Search for *.pff files in
46997 a few more locations, including `${pkgdata}'.
46998
46999 2007-12-23 Robert Millan <rmh@aybabtu.com>
47000
47001 Patch from Bean <bean123ch@gmail.com>:
47002 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47003 `size'.
47004
47005 2007-12-21 Bean <bean123ch@gmail.com>
47006
47007 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47008 (ntfscomp_mod_SOURCES): New variable.
47009 (ntfscomp_mod_CFLAGS): Likewise.
47010 (ntfscomp_mod_LDFLAGS): Likewise.
47011
47012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47013 (grub_probe_SOURCES): Likewise.
47014 (grub_emu_SOURCES): Likewise.
47015
47016 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47017 (grub_emu_SOURCES): Likewise.
47018
47019 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47020 (grub_emu_SOURCES): Likewise.
47021
47022 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47023 (grub_emu_SOURCES): Likewise.
47024
47025 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47026 (read_run_list): Renamed to grub_ntfs_read_run_list.
47027 (decomp_nextvcn): Moved to ntfscomp.c.
47028 (decomp_getch): Likewise.
47029 (decomp_get16): Likewise.
47030 (decomp_block): Likewise.
47031 (read_block): Likewise.
47032 (read_data): Partially moved to ntfscomp.c.
47033 (fixup): Change unsigned to grub_uint16_t.
47034 (read_mft): Change unsigned long to grub_uint32_t.
47035 (read_attr): Likewise.
47036 (read_data): Likewise.
47037 (read_run_data): Likewise.
47038 (read_run_list): Likewise.
47039 (read_mft): Likewise.
47040
47041 * fs/ntfscomp.c: New file.
47042
47043 * include/grub/ntfs.h: New file.
47044
47045 2007-12-16 Robert Millan <rmh@aybabtu.com>
47046
47047 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47048 IDE disk check, since Linux is known to support 20 IDE disks.
47049 Reported by Colin Watson.
47050
47051 2007-12-15 Bean <bean123ch@gmail.com>
47052
47053 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47054 (lnxboot_img_SOURCES): New variable.
47055 (lnxboot_img_ASFLAGS): Likewise.
47056 (lnxboot_img_LDFLAGS): Likewise.
47057
47058 * boot/i386/pc/lnxboot.S: New file.
47059
47060 2007-11-24 Pavel Roskin <proski@gnu.org>
47061
47062 * configure.ac: Test if '--build-id=none' is supported by the
47063 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47064 objcopy to generate incorrect binary files (binutils
47065 2.17.50.0.18-1 as shipped by Fedora 8).
47066 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47067 linking, so that build ID doesn't break the test.
47068
47069 2007-11-24 Pavel Roskin <proski@gnu.org>
47070
47071 * include/grub/i386/time.h: use "void" in the argument list
47072 of grub_cpu_idle().
47073 * include/grub/powerpc/time.h: Likewise.
47074 * include/grub/sparc64/time.h: Likewise.
47075
47076 2007-11-18 Christian Franke <franke@computer.org>
47077
47078 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47079 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47080 This fixes the problem that function keys did not work in grub-emu.
47081
47082 2007-11-18 Christian Franke <franke@computer.org>
47083
47084 * disk/host.c (grub_host_open): Remove attribute unused from
47085 name parameter. Add check for "host". This fixes the problem
47086 that grub-emu does not find partitions.
47087
47088 2007-11-18 Christian Franke <franke@computer.org>
47089
47090 * util/hostfs.c (is_dir): New function.
47091 (grub_hostfs_dir): Handle missing dirent.d_type case.
47092 (grub_hostfs_read): Add missing fseek().
47093 (grub_hostfs_label): Clear label pointer. This fixes a crash
47094 of grub-emu on "ls (host)".
47095
47096 2007-11-18 Christian Franke <franke@computer.org>
47097
47098 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47099 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47100 to 64 bit boundary by default.
47101
47102 2007-11-18 Bean <bean123ch@gmail.com>
47103
47104 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47105 (hexdump_mod_SOURCES): New variable.
47106 (hexdump_mod_CFLAGS): Likewise.
47107 (hexdump_mod_LDFLAGS): Likewise.
47108
47109 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47110
47111 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47112
47113 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47114
47115 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47116
47117 * include/grub/hexdump.h: New file.
47118
47119 * commands/hexdump.c: New file.
47120
47121 2007-11-10 Robert Millan <rmh@aybabtu.com>
47122
47123 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47124 in grub_outb() calls.
47125 (beep_on): Likewise.
47126
47127 2007-11-10 Christian Franke <franke@computer.org>
47128
47129 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47130 (grub_menu_run): Likewise.
47131
47132 2007-11-10 Robert Millan <rmh@aybabtu.com>
47133
47134 * include/grub/i386/efi/machine.h: New file.
47135 * include/grub/i386/linuxbios/machine.h: Likewise.
47136 * include/grub/i386/pc/machine.h: Likewise.
47137 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47138 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47139
47140 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47141 (serial_hw_io_addr): New variable.
47142 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47143 instead of `(unsigned short *) 0x400'.
47144
47145 2007-11-10 Bean <bean123ch@gmail.com>
47146
47147 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47148
47149 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47150
47151 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47152 (vga_mod_SOURCES): Added.
47153 (vga_mod_CFLAGS): Likewise.
47154 (vga_mod_LDFLAGS): Likewise.
47155
47156 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47157 grub_outb() calls.
47158 (set_map_mask): Likewise.
47159 (set_read_map): Likewise.
47160 (set_read_address): Likewise.
47161 (vga_font): Removed variable.
47162 (get_vga_glyph): Removed function.
47163 (invalidate_char): Likewise.
47164 (write_char): Changed to use grub_font_get_glyph() for font
47165 information.
47166 (grub_vga_putchar): Likewise.
47167 (grub_vga_getcharwidth): Likewise.
47168
47169 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47170
47171 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47172 flags.
47173 (pxeboot_img_LDFLAGS): Likewise.
47174 (diskboot_img_LDFLAGS): Likewise.
47175 (kernel_img_LDFLAGS): Likewise.
47176
47177 2007-11-06 Robert Millan <rmh@aybabtu.com>
47178
47179 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47180 in grub_outb() calls.
47181 (serial_hw_init): Likewise.
47182
47183 2007-11-05 Robert Millan <rmh@aybabtu.com>
47184
47185 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47186 spaces. Skip non-regular files.
47187
47188 2007-11-05 Robert Millan <rmh@aybabtu.com>
47189
47190 * kern/disk.c (grub_disk_firmware_fini)
47191 (grub_disk_firmware_is_tainted): New variables.
47192
47193 * include/grub/disk.h (grub_disk_firmware_fini)
47194 (grub_disk_firmware_is_tainted): Likewise.
47195
47196 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47197 (grub_disk_biosdisk_fini): ... to here.
47198 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47199 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47200 is set. Register grub_disk_biosdisk_fini() in
47201 `grub_disk_firmware_fini'.
47202
47203 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47204 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47205 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47206 to finish existing firmware disk interface.
47207
47208 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47209 (ata_mod_SOURCES): New variable.
47210 (ata_mod_CFLAGS): Likewise.
47211 (ata_mod_LDFLAGS): Likewise.
47212
47213 2007-11-05 Robert Millan <rmh@aybabtu.com>
47214
47215 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47216 (grub_ata_wait): Reimplement using grub_millisleep().
47217
47218 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47219 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47220
47221 2007-11-03 Marco Gerards <marco@gnu.org>
47222
47223 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47224 (CRTC_ADDR_PORT): New macro.
47225 (CRTC_DATA_PORT): Likewise.
47226 (CRTC_CURSOR): Likewise.
47227 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47228 (CRTC_CURSOR_ADDR_LOW): Likewise.
47229 (update_cursor): New function.
47230 (grub_console_real_putchar): Call `update_cursor'.
47231 (grub_console_gotoxy): Likewise.
47232 (grub_console_cls): Set the default color when clearing the
47233 screen.
47234 (grub_console_setcursor): Implemented.
47235
47236 2007-11-03 Marco Gerards <marco@gnu.org>
47237
47238 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47239 become activate.
47240 (grub_ata_pio_write): Likewise.
47241
47242 (grub_atapi_identify): Wait after issuing an ATA command.
47243 (grub_atapi_packet): Likewise.
47244 (grub_ata_identify): Likewise.
47245 (grub_ata_readwrite): Likewise.
47246
47247 2007-11-03 Marco Gerards <marco@gnu.org>
47248
47249 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47250 (grub_ata_pio_write): Likewise.
47251 (grub_ata_readwrite): Use `grub_error', instead of
47252 returning `grub_errno'.
47253
47254 2007-11-03 Marco Gerards <marco@gnu.org>
47255
47256 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47257 grub_ata_pio_write once for every single sector, instead of for
47258 multiple sectors.
47259
47260 2007-10-31 Robert Millan <rmh@aybabtu.com>
47261
47262 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47263
47264 * conf/i386-linuxbios.rmk: New file.
47265
47266 * kern/i386/pc/hardware.c: Likewise.
47267 * term/i386/pc/at_keyboard.c: Likewise.
47268 * term/i386/pc/vga_text.c: Likewise.
47269
47270 * include/grub/i386/linuxbios/boot.h: Likewise.
47271 * include/grub/i386/linuxbios/console.h: Likewise.
47272 * include/grub/i386/linuxbios/init.h: Likewise.
47273 * include/grub/i386/linuxbios/kernel.h: Likewise.
47274 * include/grub/i386/linuxbios/loader.h: Likewise.
47275 * include/grub/i386/linuxbios/memory.h: Likewise.
47276 * include/grub/i386/linuxbios/serial.h: Likewise.
47277 * include/grub/i386/linuxbios/time.h: Likewise.
47278
47279 * kern/i386/linuxbios/init.c: Likewise.
47280 * kern/i386/linuxbios/startup.S: Likewise.
47281 * kern/i386/linuxbios/table.c: Likewise.
47282
47283 2007-10-31 Marco Gerards <marco@gnu.org>
47284
47285 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47286 (ata_mod_SOURCES): New variable.
47287 (ata_mod_CFLAGS): Likewise.
47288 (ata_mod_LDFLAGS): Likewise.
47289
47290 * disk/ata.c: New file.
47291
47292 * include/grub/disk.h (grub_disk_dev_id): Add
47293 `GRUB_DISK_DEV_ATA_ID'.
47294
47295 2007-10-31 Robert Millan <rmh@aybabtu.com>
47296
47297 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47298 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47299
47300 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47301 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47302
47303 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47304 `<grub/types.h>'.
47305
47306 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47307
47308 2007-10-27 Robert Millan <rmh@aybabtu.com>
47309
47310 * include/grub/types.h (ULONG_MAX): Define macro.
47311
47312 2007-10-22 Robert Millan <rmh@aybabtu.com>
47313
47314 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47315 `"../realmode.S"'.
47316 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47317
47318 2007-10-22 Robert Millan <rmh@aybabtu.com>
47319
47320 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47321 (pkgdata_MODULES): Add `biosdisk.mod'.
47322 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47323 variables.
47324
47325 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47326 (grub_biosdisk_init): Replace with ...
47327 (GRUB_MOD_INIT(biosdisk)): ... this.
47328 (grub_biosdisk_fini): Replace with ...
47329 (GRUB_MOD_FINI(biosdisk)): ... this.
47330
47331 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47332 (grub_machine_init): Remove call to grub_biosdisk_init().
47333 (grub_machine_fini): Remove call to grub_machine_fini().
47334
47335 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47336
47337 2007-10-22 Robert Millan <rmh@aybabtu.com>
47338
47339 * include/grub/time.h: New file.
47340 * include/grub/i386/time.h: Likewise.
47341 * include/grub/powerpc/time.h: Likewise.
47342 * include/grub/sparc64/time.h: Likewise.
47343
47344 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47345 instances to ...
47346 (KERNEL_MACHINE_TIME_HEADER): ... this.
47347 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47348 instances to ...
47349 (KERNEL_MACHINE_TIME_HEADER): ... this.
47350 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47351 instances to ...
47352 (KERNEL_MACHINE_TIME_HEADER): ... this.
47353
47354 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47355 (grub_millisleep): New function.
47356 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47357 (grub_millisleep): New function.
47358 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47359 Remove `grub/machine/time.h' include.
47360 (grub_millisleep): New function.
47361 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47362 Remove `grub/machine/time.h' include.
47363 (grub_millisleep): New function.
47364
47365 * include/grub/misc.h (grub_div_roundup): New function.
47366
47367 * kern/misc.c: Include `<grub/time.h>'.
47368 (grub_millisleep_generic): New function.
47369
47370 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47371 Add `time.h'.
47372 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47373 Add `time.h'.
47374 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47375 `machine/time.h'. Add `time.h'.
47376 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47377
47378 2007-10-21 Robert Millan <rmh@aybabtu.com>
47379
47380 * include/grub/misc.h (grub_max): New function.
47381
47382 2007-10-21 Robert Millan <rmh@aybabtu.com>
47383
47384 * util/misc.c (grub_util_info): Call fflush() before returning.
47385
47386 2007-10-20 Robert Millan <rmh@aybabtu.com>
47387
47388 * genmk.rb (Image): Copy `extra_flags' from here ...
47389 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47390
47391 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47392 to `argc' and `args' arguments.
47393
47394 2007-10-17 Robert Millan <rmh@aybabtu.com>
47395
47396 * kern/i386/loader.S: New file.
47397
47398 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47399 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47400 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47401 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47402 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47403 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47404 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47405 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47406 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47407 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47408 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47409 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47410 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47411 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47412
47413 * kern/i386/realmode.S: New file.
47414
47415 * kern/i386/pc/startup.S (protstack): Moved from here ...
47416 * kern/i386/realmode.S (protstack)... to here.
47417 * kern/i386/pc/startup.S (gdt): Moved from here ...
47418 * kern/i386/realmode.S (gdt)... to here.
47419 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47420 * kern/i386/realmode.S (prot_to_real)... to here.
47421
47422 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47423 `kern/i386/realmode.S'.
47424
47425 2007-10-17 Robert Millan <rmh@aybabtu.com>
47426
47427 * include/grub/i386/loader.h: New file.
47428
47429 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47430 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47431 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47432 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47433 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47434 * include/grub/i386/loader.h (grub_linux_prot_size)
47435 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47436 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47437 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47438 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47439
47440 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47441
47442 2007-10-15 Robert Millan <rmh@aybabtu.com>
47443
47444 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47445 filesystem when dev->disk is unset.
47446 Do probe for filesystem even when dev->disk->has_partitions is set.
47447 In case a filesystem is found, always report it.
47448 In case it isn't, if dev->disk->has_partitions is set, report that
47449 a partition table was found instead of reporting that no filesystem
47450 could be identified.
47451
47452 2007-10-12 Robert Millan <rmh@aybabtu.com>
47453
47454 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47455 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47456
47457 * include/grub/types.h (grub_host_to_target16): New macro.
47458 (grub_host_to_target32): Likewise.
47459 (grub_host_to_target64): Likewise.
47460 (grub_target_to_host16): Likewise.
47461 (grub_target_to_host32): Likewise.
47462 (grub_target_to_host64): Likewise.
47463
47464 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47465 Renamed from to ...
47466 (GRUB_MOD_ALIGN): ...this. Update all users.
47467
47468 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47469 grub_host_to_target32.
47470 Replace grub_be_to_cpu32 with grub_target_to_host32.
47471 (load_modules): Likewise.
47472 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47473 Replace grub_be_to_cpu32 with grub_target_to_host32.
47474 Replace grub_cpu_to_be16 with grub_host_to_target16.
47475 Replace grub_cpu_to_be32 grub_host_to_target32.
47476
47477 2007-10-12 Robert Millan <rmh@aybabtu.com>
47478
47479 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47480 * util/elf/grub-mkimage.c: ... here.
47481
47482 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47483 `util/powerpc/ieee1275/grub-mkimage.c'.
47484
47485 2007-10-07 Robert Millan <rmh@aybabtu.com>
47486
47487 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47488 and make it easier to figure out.
47489 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47490 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47491 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47492 leave us with less than HEAP_MIN_SIZE total heap.
47493 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47494
47495 2007-10-03 Robert Millan <rmh@aybabtu.com>
47496
47497 * include/grub/i386/io.h: New file.
47498 * commands/i386/pc/play.c (inb): Removed.
47499 (outb): Removed.
47500 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47501 with grub_outb().
47502 * term/i386/pc/serial.c (inb): Removed.
47503 (outb): Removed.
47504 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47505 with grub_outb().
47506 * term/i386/pc/vga.c (inb): Removed.
47507 (outb): Removed.
47508 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47509 with grub_outb().
47510
47511 2007-10-02 Robert Millan <rmh@aybabtu.com>
47512
47513 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47515 Reported by Marcin Kurek.
47516
47517 2007-09-07 Robert Millan <rmh@aybabtu.com>
47518
47519 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47520 SmartFirmware version updates (as released by Sven Luther), and avoid
47521 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47522 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47523 known broken.
47524
47525 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47526
47527 From Hitoshi Ozeki:
47528 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47529 when merging two regions.
47530
47531 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47532
47533 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47534 * normal/completion.c (grub_normal_do_completion): Likewise.
47535 Reported by Hitoshi Ozeki.
47536
47537 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47538
47539 Do not use devices at boot in chainloading.
47540
47541 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47542 (boot_part_addr): Likewise.
47543 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47544 with BOOT_DRIVE and BOOT_PART_ADDR.
47545 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47546 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47547
47548 2007-08-29 Robert Millan <rmh@aybabtu.com>
47549
47550 Patch from Simon Peter <dn.tlp@gmx.net>:
47551 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47552 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47553 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47554 util/i386/pc/grub-setup.c_DEPENDENCIES.
47555 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47556 util/grub-probe.c_DEPENDENCIES.
47557 * conf/powerpc-ieee1275.rmk: Likewise.
47558
47559 2007-08-28 Robert Millan <rmh@aybabtu.com>
47560
47561 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47562 to tell grub-mkdevicemap how to name devices.
47563 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47564 feature).
47565
47566 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47567 util/i386/get_disk_name.c.
47568 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47569 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47570 util/ieee1275/get_disk_name.c.
47571
47572 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47573
47574 * DISTLIST: Add util/i386/get_disk_name.c and
47575 util/ieee1275/get_disk_name.c.
47576
47577 * util/grub-mkdevicemap.c: Replace device naming logic with
47578 grub_util_get_disk_name() calls.
47579
47580 2007-08-20 Robert Millan <rmh@aybabtu.com>
47581
47582 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47583 (so that it works for both plural and singular quantities).
47584
47585 2007-08-05 Robert Millan <rmh@aybabtu.com>
47586
47587 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47588 so that [xz] isn't taken into account when determining order.
47589
47590 2007-08-02 Marco Gerards <marco@gnu.org>
47591
47592 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47593 `include/multiboot2.h', `include/grub/elfload.h',
47594 `include/multiboot.h', `include/grub/multiboot.h',
47595 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47596 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47597 `kern/elf.c', `loader/multiboot_loader.c',
47598 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47599 `loader/i386/pc/multiboot2.c',
47600 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47601 `util/i386/pc/grub-mkrescue.in'. Remove
47602 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47603 `include/grub/i386/pc/util/biosdisk.h' and
47604 `include/grub/powerpc/ieee1275/multiboot.h'.
47605
47606 2007-08-02 Bean <bean123ch@gmail.com>
47607
47608 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47609 (ntfs_mod_SOURCES): New variable.
47610 (ntfs_mod_CFLAGS): Likewise.
47611 (ntfs_mod_LDFLAGS): Likewise.
47612
47613 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47614 (grub_probe_SOURCES): Likewise.
47615 (grub_emu_SOURCES): Likewise.
47616
47617 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47618 (grub_emu_SOURCES): Likewise.
47619
47620 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47621 (grub_emu_SOURCES): Likewise.
47622
47623 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47624
47625 * fs/ntfs.c: New file.
47626
47627 2007-08-02 Bean <bean123ch@gmail.com>
47628
47629 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47630
47631 * file.h (grub_file): Likewise.
47632
47633 * fshelp.h (grub_fshelp_read_file): Likewise.
47634
47635 * util/i386/pc/grub-setup.c (setup): Likewise.
47636 (save_first_sector): Likewise.
47637 (save_blocklists): Likewise.
47638
47639 * fs/affs.c (grub_affs_read_file): Likewise.
47640
47641 * fs/ext2.c (grub_ext2_read_file): Likewise.
47642
47643 * fs/fat.c (grub_fat_read_data): Likewise.
47644
47645 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47646
47647 * fs/hfs.c (grub_hfs_read_file): Likewise.
47648
47649 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47650
47651 * fs/jfs.c (grub_jfs_read_file): Likewise.
47652
47653 * fs/minix.c (grub_minix_read_file): Likewise.
47654
47655 * fs/sfs.c (grub_sfs_read_file): Likewise.
47656
47657 * fs/ufs.c (grub_ufs_read_file): Likewise.
47658
47659 * fs/xfs.c (grub_xfs_read_file): Likewise.
47660
47661 * command/blocklist.c (read_blocklist): Likewise.
47662 (print_blocklist): Likewise.
47663
47664 2007-08-02 Marco Gerards <marco@gnu.org>
47665
47666 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47667 `util/hostfs.c'.
47668
47669 * disk/host.c: New file.
47670
47671 * util/hostfs.c: Likewise.
47672
47673 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47674 return `GRUB_ERR_BAD_FS'.
47675 * fs/sfs.c (grub_sfs_mount): Likewise.
47676 * fs/xfs.c (grub_xfs_mount): Likewise.
47677
47678 * include/grub/disk.h (enum grub_disk_dev_id): Add
47679 `GRUB_DISK_DEVICE_HOST_ID'.
47680
47681 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47682
47683 2007-07-24 Jerone Young <jerone@gmail.com>
47684
47685 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47686 modules for compilation.
47687 * conf/powerpc-ieee1275.rmk: Likewise.
47688
47689 * include/multiboot.h: Move multiboot definitions to one file. Rename
47690 many definitions to not get grub specific.
47691 * include/multiboot2.h: Create header with multiboot 2 definitions.
47692 * include/grub/multiboot.h: Header for grub specific function
47693 prototypes and definitions.
47694 * include/grub/multiboot2.h: Likewise.
47695 * include/grub/multiboot_loader.h: Likewise.
47696 * include/grub/i386/pc/multiboot.h: Removed.
47697 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47698
47699 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47700 and 2 to allow for one multiboot and module commands.
47701 * loader/multiboot2.c: Add multiboot2 functionality.
47702 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47703 and definition names.
47704 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47705 2 functions.
47706 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47707 ieee1275 specific multiboot2 code.
47708
47709 * kern/i386/pc/startup.S: Change headers and definition names for
47710 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47711
47712 2007-07-22 Robert Millan <rmh@aybabtu.com>
47713
47714 * geninitheader.sh: Process file specified in first parameter rather
47715 than hardcoding grub_modules_init.lst.
47716 * geninit.sh: Likewise. Also, construct header name dynamically rather
47717 than hardcoding grub_modules_init.h.
47718
47719 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47720 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47721 grub_probe_init.[ch] and grub_setup_init.[ch].
47722
47723 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47724 grub_modules_init.h with grub_emu_init.h.
47725 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47726 grub_probe_init.[ch] files.
47727 * conf/i386-efi.rmk: Likewise.
47728 * conf/i386-pc.rmk: Likewise.
47729 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47730 grub_setup_init.[ch] files.
47731
47732 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47733 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47734 to initialize modules rather than a list of hardcoded functions.
47735 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47736 grub_init_all() to initialize modules rather than a list of hardcoded
47737 functions.
47738
47739 2007-07-22 Robert Millan <rmh@aybabtu.com>
47740
47741 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47742 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47743
47744 2007-07-22 Robert Millan <rmh@aybabtu.com>
47745
47746 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47747 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47748 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47749 flag when running on SmartFirmware.
47750 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47751 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47752 was set.
47753
47754 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47755 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47756 rather than decreasing it.
47757
47758 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47759 there's not enough space to do it, fail in the same way as when it
47760 can't be done because there are no partitions.
47761
47762 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47763 when nvsetenv failed.
47764
47765 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47766
47767 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47768 because this rule is automatically generated.
47769 (grub-mkrescue): Removed for the same reason as above.
47770
47771 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47772
47773 Migrate to GNU General Public License Version 3.
47774
47775 * COPYING: Replaced with the plain text version of GPLv3.
47776
47777 * config.guess: Updated from gnulib.
47778 * config.sub: Likewise.
47779
47780 * geninit.sh: Output a GPLv3 copyright notice.
47781 * geninitheader.sh: Likewise.
47782 * genmodsrc.sh: Likewise.
47783 * gensymlist.sh.in: Likewise.
47784
47785 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47786 * boot/i386/pc/diskboot.S: Likewise.
47787 * boot/i386/pc/pxeboot.S: Likewise.
47788 * commands/blocklist.c: Likewise.
47789 * commands/boot.c: Likewise.
47790 * commands/cat.c: Likewise.
47791 * commands/cmp.c: Likewise.
47792 * commands/configfile.c: Likewise.
47793 * commands/echo.c: Likewise.
47794 * commands/help.c: Likewise.
47795 * commands/ls.c: Likewise.
47796 * commands/search.c: Likewise.
47797 * commands/terminal.c: Likewise.
47798 * commands/test.c: Likewise.
47799 * commands/videotest.c: Likewise.
47800 * commands/i386/cpuid.c: Likewise.
47801 * commands/i386/pc/halt.c: Likewise.
47802 * commands/i386/pc/play.c: Likewise.
47803 * commands/i386/pc/reboot.c: Likewise.
47804 * commands/i386/pc/vbeinfo.c: Likewise.
47805 * commands/i386/pc/vbetest.c: Likewise.
47806 * commands/ieee1275/halt.c: Likewise.
47807 * commands/ieee1275/reboot.c: Likewise.
47808 * commands/ieee1275/suspend.c: Likewise.
47809 * disk/loopback.c: Likewise.
47810 * disk/lvm.c: Likewise.
47811 * disk/raid.c: Likewise.
47812 * disk/efi/efidisk.c: Likewise.
47813 * disk/i386/pc/biosdisk.c: Likewise.
47814 * disk/ieee1275/ofdisk.c: Likewise.
47815 * font/manager.c: Likewise.
47816 * fs/affs.c: Likewise.
47817 * fs/ext2.c: Likewise.
47818 * fs/fat.c: Likewise.
47819 * fs/fshelp.c: Likewise.
47820 * fs/hfs.c: Likewise.
47821 * fs/hfsplus.c: Likewise.
47822 * fs/iso9660.c: Likewise.
47823 * fs/jfs.c: Likewise.
47824 * fs/minix.c: Likewise.
47825 * fs/sfs.c: Likewise.
47826 * fs/ufs.c: Likewise.
47827 * fs/xfs.c: Likewise.
47828 * hello/hello.c: Likewise.
47829 * include/grub/acorn_filecore.h: Likewise.
47830 * include/grub/arg.h: Likewise.
47831 * include/grub/bitmap.h: Likewise.
47832 * include/grub/boot.h: Likewise.
47833 * include/grub/cache.h: Likewise.
47834 * include/grub/device.h: Likewise.
47835 * include/grub/disk.h: Likewise.
47836 * include/grub/dl.h: Likewise.
47837 * include/grub/elfload.h: Likewise.
47838 * include/grub/env.h: Likewise.
47839 * include/grub/err.h: Likewise.
47840 * include/grub/file.h: Likewise.
47841 * include/grub/font.h: Likewise.
47842 * include/grub/fs.h: Likewise.
47843 * include/grub/fshelp.h: Likewise.
47844 * include/grub/gzio.h: Likewise.
47845 * include/grub/hfs.h: Likewise.
47846 * include/grub/kernel.h: Likewise.
47847 * include/grub/loader.h: Likewise.
47848 * include/grub/lvm.h: Likewise.
47849 * include/grub/misc.h: Likewise.
47850 * include/grub/mm.h: Likewise.
47851 * include/grub/net.h: Likewise.
47852 * include/grub/normal.h: Likewise.
47853 * include/grub/parser.h: Likewise.
47854 * include/grub/partition.h: Likewise.
47855 * include/grub/pc_partition.h: Likewise.
47856 * include/grub/raid.h: Likewise.
47857 * include/grub/rescue.h: Likewise.
47858 * include/grub/script.h: Likewise.
47859 * include/grub/setjmp.h: Likewise.
47860 * include/grub/symbol.h: Likewise.
47861 * include/grub/term.h: Likewise.
47862 * include/grub/terminfo.h: Likewise.
47863 * include/grub/tparm.h: Likewise.
47864 * include/grub/types.h: Likewise.
47865 * include/grub/video.h: Likewise.
47866 * include/grub/efi/api.h: Likewise.
47867 * include/grub/efi/chainloader.h: Likewise.
47868 * include/grub/efi/console.h: Likewise.
47869 * include/grub/efi/console_control.h: Likewise.
47870 * include/grub/efi/disk.h: Likewise.
47871 * include/grub/efi/efi.h: Likewise.
47872 * include/grub/efi/pe32.h: Likewise.
47873 * include/grub/efi/time.h: Likewise.
47874 * include/grub/i386/linux.h: Likewise.
47875 * include/grub/i386/setjmp.h: Likewise.
47876 * include/grub/i386/types.h: Likewise.
47877 * include/grub/i386/efi/kernel.h: Likewise.
47878 * include/grub/i386/efi/loader.h: Likewise.
47879 * include/grub/i386/efi/time.h: Likewise.
47880 * include/grub/i386/pc/biosdisk.h: Likewise.
47881 * include/grub/i386/pc/boot.h: Likewise.
47882 * include/grub/i386/pc/chainloader.h: Likewise.
47883 * include/grub/i386/pc/console.h: Likewise.
47884 * include/grub/i386/pc/init.h: Likewise.
47885 * include/grub/i386/pc/kernel.h: Likewise.
47886 * include/grub/i386/pc/loader.h: Likewise.
47887 * include/grub/i386/pc/memory.h: Likewise.
47888 * include/grub/i386/pc/multiboot.h: Likewise.
47889 * include/grub/i386/pc/serial.h: Likewise.
47890 * include/grub/i386/pc/time.h: Likewise.
47891 * include/grub/i386/pc/vbe.h: Likewise.
47892 * include/grub/i386/pc/vbeblit.h: Likewise.
47893 * include/grub/i386/pc/vbefill.h: Likewise.
47894 * include/grub/i386/pc/vbeutil.h: Likewise.
47895 * include/grub/i386/pc/vga.h: Likewise.
47896 * include/grub/ieee1275/ieee1275.h: Likewise.
47897 * include/grub/ieee1275/ofdisk.h: Likewise.
47898 * include/grub/powerpc/libgcc.h: Likewise.
47899 * include/grub/powerpc/setjmp.h: Likewise.
47900 * include/grub/powerpc/types.h: Likewise.
47901 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47902 * include/grub/powerpc/ieee1275/console.h: Likewise.
47903 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47904 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47905 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47906 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47907 * include/grub/powerpc/ieee1275/time.h: Likewise.
47908 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47909 * include/grub/sparc64/libgcc.h: Likewise.
47910 * include/grub/sparc64/setjmp.h: Likewise.
47911 * include/grub/sparc64/types.h: Likewise.
47912 * include/grub/sparc64/ieee1275/console.h: Likewise.
47913 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47914 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47915 * include/grub/sparc64/ieee1275/time.h: Likewise.
47916 * include/grub/util/biosdisk.h: Likewise.
47917 * include/grub/util/getroot.h: Likewise.
47918 * include/grub/util/lvm.h: Likewise.
47919 * include/grub/util/misc.h: Likewise.
47920 * include/grub/util/raid.h: Likewise.
47921 * include/grub/util/resolve.h: Likewise.
47922 * io/gzio.c: Likewise.
47923 * kern/device.c: Likewise.
47924 * kern/disk.c: Likewise.
47925 * kern/dl.c: Likewise.
47926 * kern/elf.c: Likewise.
47927 * kern/env.c: Likewise.
47928 * kern/err.c: Likewise.
47929 * kern/file.c: Likewise.
47930 * kern/fs.c: Likewise.
47931 * kern/loader.c: Likewise.
47932 * kern/main.c: Likewise.
47933 * kern/misc.c: Likewise.
47934 * kern/mm.c: Likewise.
47935 * kern/parser.c: Likewise.
47936 * kern/partition.c: Likewise.
47937 * kern/rescue.c: Likewise.
47938 * kern/term.c: Likewise.
47939 * kern/efi/efi.c: Likewise.
47940 * kern/efi/init.c: Likewise.
47941 * kern/efi/mm.c: Likewise.
47942 * kern/i386/dl.c: Likewise.
47943 * kern/i386/efi/init.c: Likewise.
47944 * kern/i386/efi/startup.S: Likewise.
47945 * kern/i386/pc/init.c: Likewise.
47946 * kern/i386/pc/lzo1x.S: Likewise.
47947 * kern/i386/pc/startup.S: Likewise.
47948 * kern/ieee1275/ieee1275.c: Likewise.
47949 * kern/powerpc/cache.S: Likewise.
47950 * kern/powerpc/dl.c: Likewise.
47951 * kern/powerpc/ieee1275/cmain.c: Likewise.
47952 * kern/powerpc/ieee1275/crt0.S: Likewise.
47953 * kern/powerpc/ieee1275/init.c: Likewise.
47954 * kern/powerpc/ieee1275/openfw.c: Likewise.
47955 * kern/sparc64/cache.S: Likewise.
47956 * kern/sparc64/dl.c: Likewise.
47957 * kern/sparc64/ieee1275/init.c: Likewise.
47958 * kern/sparc64/ieee1275/openfw.c: Likewise.
47959 * loader/efi/chainloader.c: Likewise.
47960 * loader/efi/chainloader_normal.c: Likewise.
47961 * loader/i386/efi/linux.c: Likewise.
47962 * loader/i386/efi/linux_normal.c: Likewise.
47963 * loader/i386/pc/chainloader.c: Likewise.
47964 * loader/i386/pc/chainloader_normal.c: Likewise.
47965 * loader/i386/pc/linux.c: Likewise.
47966 * loader/i386/pc/linux_normal.c: Likewise.
47967 * loader/i386/pc/multiboot.c: Likewise.
47968 * loader/i386/pc/multiboot_normal.c: Likewise.
47969 * loader/powerpc/ieee1275/linux.c: Likewise.
47970 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47971 * normal/arg.c: Likewise.
47972 * normal/cmdline.c: Likewise.
47973 * normal/command.c: Likewise.
47974 * normal/completion.c: Likewise.
47975 * normal/execute.c: Likewise.
47976 * normal/function.c: Likewise.
47977 * normal/lexer.c: Likewise.
47978 * normal/main.c: Likewise.
47979 * normal/menu.c: Likewise.
47980 * normal/menu_entry.c: Likewise.
47981 * normal/misc.c: Likewise.
47982 * normal/parser.y: Likewise.
47983 * normal/script.c: Likewise.
47984 * normal/i386/setjmp.S: Likewise.
47985 * normal/powerpc/setjmp.S: Likewise.
47986 * normal/sparc64/setjmp.S: Likewise.
47987 * partmap/acorn.c: Likewise.
47988 * partmap/amiga.c: Likewise.
47989 * partmap/apple.c: Likewise.
47990 * partmap/gpt.c: Likewise.
47991 * partmap/pc.c: Likewise.
47992 * partmap/sun.c: Likewise.
47993 * term/gfxterm.c: Likewise.
47994 * term/terminfo.c: Likewise.
47995 * term/efi/console.c: Likewise.
47996 * term/i386/pc/console.c: Likewise.
47997 * term/i386/pc/serial.c: Likewise.
47998 * term/i386/pc/vesafb.c: Likewise.
47999 * term/i386/pc/vga.c: Likewise.
48000 * term/ieee1275/ofconsole.c: Likewise.
48001 * util/biosdisk.c: Likewise.
48002 * util/console.c: Likewise.
48003 * util/genmoddep.c: Likewise.
48004 * util/getroot.c: Likewise.
48005 * util/grub-emu.c: Likewise.
48006 * util/grub-mkdevicemap.c: Likewise.
48007 * util/grub-probe.c: Likewise.
48008 * util/lvm.c: Likewise.
48009 * util/misc.c: Likewise.
48010 * util/raid.c: Likewise.
48011 * util/resolve.c: Likewise.
48012 * util/update-grub.in: Likewise.
48013 * util/update-grub_lib.in: Likewise.
48014 * util/grub.d/00_header.in: Likewise.
48015 * util/grub.d/10_hurd.in: Likewise.
48016 * util/grub.d/10_linux.in: Likewise.
48017 * util/i386/efi/grub-install.in: Likewise.
48018 * util/i386/efi/grub-mkimage.c: Likewise.
48019 * util/i386/pc/grub-install.in: Likewise.
48020 * util/i386/pc/grub-mkimage.c: Likewise.
48021 * util/i386/pc/grub-mkrescue.in: Likewise.
48022 * util/i386/pc/grub-setup.c: Likewise.
48023 * util/i386/pc/misc.c: Likewise.
48024 * util/powerpc/ieee1275/grub-install.in: Likewise.
48025 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48026 * util/powerpc/ieee1275/misc.c: Likewise.
48027 * video/bitmap.c: Likewise.
48028 * video/video.c: Likewise.
48029 * video/i386/pc/vbe.c: Likewise.
48030 * video/i386/pc/vbeblit.c: Likewise.
48031 * video/i386/pc/vbefill.c: Likewise.
48032 * video/i386/pc/vbeutil.c: Likewise.
48033 * video/readers/tga.c: Likewise.
48034
48035 2007-07-02 Robert Millan <rmh@aybabtu.com>
48036
48037 * conf/i386-efi.rmk: Replace obsolete reference to
48038 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48039 with util/getroot.c.
48040 * conf/powerpc-ieee1275.rmk: Likewise.
48041 * conf/sparc64-ieee1275.rmk: Likewise.
48042
48043 * util/grub-emu.c (main): Fix unchecked pointer handling.
48044
48045 2007-07-02 Robert Millan <rmh@aybabtu.com>
48046
48047 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48048 invocation to fail, in order to support partition-less media.
48049
48050 * util/i386/pc/grub-install.in: Likewise.
48051
48052 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48053 which fs or partmap modules are needed (akin to its sister scripts).
48054
48055 Also use grub-probe to get rid of unportable /proc/mounts check.
48056
48057 Print the same informational message that the other scripts do, before
48058 exiting.
48059
48060 2007-06-23 Robert Millan <rmh@aybabtu.com>
48061
48062 * util/update-grub_lib.in (font_path): New function. Determine whether
48063 a font file can be found and, if so, echo the GRUB path to it.
48064
48065 * util/update-grub.in: Handle multiple terminals depending on user
48066 input, platform availability and font file presence. Propagate
48067 variables of our findings to /etc/grub.d/ children.
48068
48069 * util/grub.d/00_header.in: Handle multiple terminals, based on
48070 environment setup by update-grub.
48071
48072 2007-06-23 Robert Millan <rmh@aybabtu.com>
48073
48074 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48075
48076 2007-06-21 Robert Millan <rmh@aybabtu.com>
48077
48078 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48079 indicate end of data section in kernel image.
48080 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48081 GRUB_KERNEL_MACHINE_DATA_END.
48082
48083 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48084 space for it.
48085 * kern/i386/efi/startup.S: Likewise.
48086
48087 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48088 during image generation. Implement --prefix option to override this
48089 patch.
48090 * util/i386/efi/grub-mkimage.c: Likewise.
48091
48092 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48093 code to make path relative to its root into a separate function.
48094
48095 * util/i386/pc/grub-install.in: Use newly provided
48096 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48097 pass the result to grub-install --prefix.
48098
48099 2007-06-13 Robert Millan <rmh@aybabtu.com>
48100
48101 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48102 DEFAULT_DEVICE_MAP.
48103 * util/grub-emu.c: Use above definitions from misc.h instead of
48104 defining them.
48105 * util/grub-mkdevicemap.c: Likewise.
48106 * util/i386/pc/grub-setup.c: Likewise.
48107 * util/grub-probe.c: Likewise.
48108 (probe): Abort with grub_util_error() when either
48109 grub_guess_root_device or grub_util_get_grub_dev fails.
48110
48111 2007-06-12 Robert Millan <rmh@aybabtu.com>
48112
48113 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48114 "pager" assignment.
48115 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48116 "pcdata".
48117 * util/grub-probe.c (probe): Likewise for "drive_name".
48118
48119 2007-06-11 Robert Millan <rmh@aybabtu.com>
48120
48121 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48122 not just the cdrom one.
48123
48124 2007-06-11 Robert Millan <rmh@aybabtu.com>
48125
48126 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48127 Add --pkglibdir=DIR option to override pkglibdir.
48128 Mention --image-type=TYPE in help output.
48129 Fix --grub-mkimage (it was a no-op).
48130 Abort gracefully when no parameter is given.
48131
48132 2007-06-11 Robert Millan <rmh@aybabtu.com>
48133
48134 * util/i386/pc/grub-mkrescue.in: New file.
48135 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48136 * Makefile.in: Handle bin_SCRIPTS.
48137
48138 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48139
48140 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48141 list of video modes.
48142
48143 2007-06-06 Robert Millan <rmh@aybabtu.com>
48144
48145 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48146 file doesn't exist, or if it is in a filesystem grub can't read.
48147
48148 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48149 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48150 header comment to fit in 80 columns when the variables are resolved.
48151
48152 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48153 could be identified by update-grub. Remove redundant check for
48154 unifont.pff existence (since convert_system_path_to_grub_path now
48155 handles that).
48156
48157 2007-06-04 Robert Millan <rmh@aybabtu.com>
48158
48159 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48160
48161 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48162
48163 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48164
48165 2007-06-04 Robert Millan <rmh@aybabtu.com>
48166
48167 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48168
48169 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48170 grub_apple_partition_map_fini.
48171
48172 * util/biosdisk.c
48173 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48174 to access >2 TiB disks).
48175
48176 Print disk->total_sectors with %llu instead of %lu, since this
48177 variable is always 64-bit (prevents wrong disk size from being displayed
48178 on either >2 TiB disk or big-endian CPU).
48179
48180 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48181 into a generic case that supports all (sane) partition maps.
48182
48183 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48184 breaks big-endian.
48185
48186 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48187 and grub_apple_partition_map_fini() after that.
48188
48189 2007-06-01 Robert Millan <rmh@aybabtu.com>
48190
48191 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48192
48193 * util/grub.d/00_header.in: Only enable gfxterm when
48194 convert_system_path_to_grub_path() succeeds.
48195
48196 2007-05-20 Robert Millan <rmh@aybabtu.com>
48197
48198 * util/update-grub_lib.in: New file.
48199 * DISTLIST: Add update-grub_lib.in.
48200 * conf/common.rmk: Generate update-grub_lib and install it in
48201 $(lib_DATA).
48202 * Makefile.in: Add install routine for $(lib_DATA).
48203
48204 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48205 function provided by update-grub_lib to support arbitrary paths of
48206 unifont.pff.
48207 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48208 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48209
48210 2007-05-19 Robert Millan <rmh@aybabtu.com>
48211
48212 * commands/i386/cpuid.c: New module.
48213 * DISTLIST: Add it.
48214 * conf/i386-efi.rmk: Enable cpuid.mod.
48215 * conf/i386-pc.rmk: Likewise.
48216
48217 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48218
48219 * kern/disk.c (grub_disk_read): Check return value of
48220 grub_realloc().
48221
48222 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48223
48224 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48225 arrays.
48226 * disk/raid.c (grub_raid_open): Likewise.
48227
48228 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48229
48230 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48231 stack instead of on the heap.
48232
48233 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48234 before doing a read on it.
48235
48236 * configure.ac: Only use -fno-stack-protector for the target
48237 environment.
48238
48239 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48240
48241 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48242 __attribute_ ((unused)) to mode_type argument.
48243
48244 * util/getroot.c (grub_guess_root_device): Fix #endif.
48245
48246 * kern/misc.c (memcmp): Fix prototype.
48247
48248 * include/grub/partition.h [GRUB_UTIL]
48249 (grub_gpt_partition_map_init): Add prototype.
48250 (grub_gpt_partition_map_fini): Likewise.
48251
48252 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48253 at the right place.
48254
48255 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48256 (grub_fat_read_data): Likewise.
48257 (grub_fat_find_dir): Likewise.
48258
48259 * font/manager.c (find_glyph): Make table a const.
48260 (grub_font_get_glyph): Remove bitmap from if statement.
48261
48262 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48263
48264 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48265 code, first search for device in /dev/mapper, then in /dev.
48266 (grub_util_get_grub_dev): New function.
48267 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48268 prototype.
48269 * util/grub-probe.c (probe): Remove check for RAID, call
48270 grub_util_get_grub_dev() instead of
48271 grub_util_biosdisk_get_grub_dev().
48272 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48273 grub_util_biosdisk_get_grub_dev().
48274 * util/i386/pc/grub-setup.c (main): Likewise.
48275
48276 2007-05-16 Robert Millan <rmh@aybabtu.com>
48277
48278 * DISTLIST: Update for the latest changes.
48279 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48280 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48281 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48282 grub/util/biosdisk.h.
48283 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48284 grub/util/biosdisk.h.
48285
48286 2007-05-16 Robert Millan <rmh@aybabtu.com>
48287
48288 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48289
48290 2007-05-16 Robert Millan <rmh@aybabtu.com>
48291
48292 * util/i386/efi/grub-install.in: New.
48293 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48294 newly added grub-install.
48295 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48296 include.
48297 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48298 grub/util/biosdisk.h.
48299 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48300 grub/util/biosdisk.h.
48301
48302 2007-05-16 Robert Millan <rmh@aybabtu.com>
48303
48304 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48305 * include/grub/util/biosdisk.h: ... here.
48306 * util/i386/pc/biosdisk.c: Moved to ...
48307 * util/biosdisk.c: ... here.
48308 * util/i386/pc/getroot.c: Moved to ...
48309 * util/getroot.c: ... here.
48310 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48311 * util/grub-mkdevicemap.c: ... here.
48312 * util/i386/pc/grub-probe.c: Moved to ...
48313 * util/grub-probe.c: ... here.
48314
48315 2007-05-15 Robert Millan <rmh@aybabtu.com>
48316
48317 * util/update-grub.in: Remove duplicated line in grub.cfg header
48318 message.
48319
48320 2007-05-13 Robert Millan <rmh@aybabtu.com>
48321
48322 * util/update-grub.in: Fix a few assumptions about the devices holding
48323 /, /boot and /boot/grub being the same.
48324 * util/grub.d/00_header.in: Likewise.
48325 * util/grub.d/10_hurd.in: Likewise.
48326 * util/grub.d/10_linux.in: Likewise.
48327
48328 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48329 patterns. Use that to define the `.old' suffix as older than `'.
48330
48331 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48332
48333 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48334 the grub.cfg header message.
48335
48336 2007-05-11 Robert Millan <rmh@aybabtu.com>
48337
48338 * util/update-grub.in: Create device.map if it doesn't already exist,
48339 before attempting to run grub-probe.
48340 Check for grub-probe and grub-mkdevicemap with the same code
48341 grub-install is using.
48342 Remove test mode.
48343
48344 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48345
48346 * Makefile.in: Add the datarootdir autoconf variable.
48347
48348 2007-05-09 Robert Millan <rmh@aybabtu.com>
48349
48350 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48351 fail gracefully if dev->disk->partition == NULL.
48352
48353 2007-05-07 Robert Millan <rmh@aybabtu.com>
48354
48355 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48356 determine partition map module.
48357 * util/i386/pc/grub-install.in: Use this feature to decide which
48358 partition module to load, instead of hardcoding pc and gpt.
48359
48360 2007-05-07 Robert Millan <rmh@aybabtu.com>
48361
48362 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48363 source directory differs from build directory.
48364
48365 2007-05-05 Robert Millan <rmh@aybabtu.com>
48366
48367 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48368 initialisation.
48369
48370 2007-05-05 Robert Millan <rmh@aybabtu.com>
48371
48372 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48373
48374 2007-05-05 Robert Millan <rmh@aybabtu.com>
48375
48376 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48377 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48378
48379 2007-05-05 Robert Millan <rmh@aybabtu.com>
48380
48381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48382 (grub_probe_SOURCES): Likewise.
48383 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48384 GPT and initialize dos_part and bsd_part accordingly.
48385 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48386 install_bsd_part.
48387 (main): Activate gpt module for use during partition identification,
48388 and deactivate it afterwards.
48389 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48390 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48391 partition identification, and deactivate it afterwards.
48392
48393 2007-05-05 Robert Millan <rmh@aybabtu.com>
48394
48395 * term/i386/pc/console.c (grub_console_fini): Call
48396 grub_term_set_current() before grub_term_unregister().
48397
48398 2007-05-04 Robert Millan <rmh@aybabtu.com>
48399
48400 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48401 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48402 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48403 and update-grub_DATA.
48404 * conf/common.rmk: Build and install update-grub components.
48405 * conf/common.mk: Regenerate.
48406 * util/update-grub.in: New. Core of update-grub.
48407 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48408 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48409 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48410 * util/grub.d/README: New. Document grub.d directory layout.
48411
48412 2007-05-01 Robert Millan <rmh@aybabtu.com>
48413
48414 * util/grub-emu.c: Move initialization functions
48415 grub_util_biosdisk_init() and grub_init_all() before
48416 grub_util_biosdisk_get_grub_dev(), which relies on them.
48417
48418 2007-04-19 Robert Millan <rmh@aybabtu.com>
48419
48420 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48421 it is used later.
48422
48423 2007-04-18 Jerone Young <jerone@gmail.com>
48424
48425 * kernel/elf.c: Add missing parenthesis for conditional statement
48426 stanza.
48427
48428 2007-04-10 Jerone Young <jerone@gmail.com>
48429
48430 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48431 continue on and look for device node with real device name.
48432
48433 2007-04-10 Jerone Young <jerone@gmail.com>
48434
48435 * configure.ac: Add argument for autoconf to use transformation
48436 ability.
48437 * Makefile.in: Add autoconf package transformation code.
48438 * util/i386/pc/grub-install.in: Likewise.
48439 * util/powerpc/ieee1275/grub-install.in: Likewise.
48440
48441 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48442
48443 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48444 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48445 (EXT2_REVISION): Likewise.
48446 (EXT2_INODE_SIZE): Likewise.
48447 (struct grub_ext2_block_group): Added a missing member
48448 "used_dirs".
48449 (grub_ext2_read_inode): Divide by the inode size in a superblock
48450 instead of 128 to obtain INODES_PER_BLOCK.
48451 Use the macro EXT2_INODE_SIZE instead of directly using
48452 SBLOCK->INODE_SIZE.
48453
48454 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48455
48456 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48457 superblock instead of the structure size to compute an
48458 offset. This fixes the problem that GRUB could not read a
48459 filesystem when inode size is different from 128-byte.
48460
48461 2007-03-05 Marco Gerards <marco@gnu.org>
48462
48463 * normal/main.c (read_config_file): When "menu" is not set, create
48464 an initial context.
48465
48466 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48467
48468 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48469 (HEAP_LIMIT): New macro.
48470 (grub_claim_heap): Claim memory up to `heaplimit'.
48471
48472 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48473
48474 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48475 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48476 (_start): Likewise.
48477 (grub_arch_modules_addr): Return address after `_end'.
48478 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48479 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48480 (add_segments): Calculate `_end' from phdr size and location.
48481 (ALIGN_UP): Moved to ...
48482 * include/grub/misc.h: here.
48483 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48484 New macro.
48485 (GRUB_IEEE1275_MODULE_BASE): Removed.
48486
48487 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48488
48489 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48490 loop boundary.
48491
48492 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48493
48494 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48495 All users updated.
48496 (grub_elf64_load_hook_t): Likewise.
48497 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48498 debug output.
48499
48500 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48501
48502 * kern/mm.c: Update copyright.
48503 (grub_mm_debug): Correct syntax error.
48504 (grub_mm_dump_free): New function.
48505 (grub_debug_free): Call `grub_free'.
48506 * include/grub/mm.h: Update copyright.
48507 (grub_mm_dump_free): Add declaration.
48508
48509 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48510
48511 * include/grub/ieee1275/ieee1275.h: Update copyright.
48512 * kern/powerpc/ieee1275/init.c: Likewise.
48513 * kern/powerpc/ieee1275/openfw.c: Likewise.
48514
48515 * loader/powerpc/ieee1275/linux.c: Likewise.
48516 * include/grub/elfload.h: Likewise.
48517 * kern/elf.c: Likewise.
48518 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48519 callers.
48520 (grub_elf64_load): Likewise.
48521 (grub_elf32_load_segment): Move to a nested function.
48522 (grub_elf64_load_segment): Likewise.
48523
48524 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48525
48526 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48527 prototype.
48528 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48529 (grub_heap_len): Likewise.
48530 (HEAP_SIZE): New macro.
48531 (grub_claim_heap): New function.
48532 (grub_machine_init): Don't claim heap directly. Call
48533 `grub_claim_heap'.
48534 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48535 (grub_available_iterate): New function.
48536
48537 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48538
48539 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48540 * configure.ac: Use it for testing the HOST and TARGET compilers.
48541
48542 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48543
48544 * Makefile.in (enable_grub_emu): New variable.
48545 * configure.ac (--enable-grub-emu): New option.
48546 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48547 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48548 * conf/i386-pc.rmk: Likewise.
48549 * conf/powerpc-ieee1275.rmk: Likewise.
48550 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48551
48552 2006-12-12 Marco Gerards <marco@gnu.org>
48553
48554 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48555
48556 * kern/env.c (grub_env_unset): Don't free the member `value' when
48557 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48558 pointer.
48559
48560 * normal/main.c (current_menu): Removed.
48561 (free_menu): Unset the `menu' environment variable.
48562 (grub_normal_menu_addentry): Make use of the environment variable
48563 `menu', instead of using the global `current_menu'. Allocate
48564 memory for the sourcecode of this entry.
48565 (read_config_file): New argument `nested', changed all callers.
48566 Only in the case of a new context, initialize a new menu. Set the
48567 `menu' environment variable.
48568 (grub_normal_execute): Don't set and unset the environment
48569 variable `menu' here anymore. Only free the menu when leaving the
48570 context.
48571
48572 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48573 leak.
48574
48575 2006-12-11 Marco Gerards <marco@gnu.org>
48576
48577 * normal/menu_entry.c (run): Fix off by one bug so the last line
48578 is executed. Move the loader check to outside the loop.
48579
48580 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48581
48582 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48583
48584 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48585
48586 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48587 the number of sectors. Reported by Andrey Shuvikov
48588 <mr_hyro@yahoo.com>.
48589
48590 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48591
48592 * kern/disk.c (grub_disk_read): When there is a read error, always
48593 try to read only the necessary data.
48594
48595 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48596 disk/raid.c.
48597 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48598 prototype.
48599 [GRUB_UTIL] (grub_raid_fini): Likewise.
48600 [GRUB_UTIL] (grub_lvm_init): Likewise.
48601 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48602 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48603 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48604 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48605 and grub_raid_fini().
48606
48607 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48608
48609 * include/grub/types.h (__unused): Rename to UNUSED.
48610 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48611 (grub_elf64_size): Likewise.
48612
48613 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48614
48615 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48616 grub_error_push and grub_error_pop in the error-handling path.
48617 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48618 length.
48619
48620 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48621
48622 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48623 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48625 (kernel_elf_SOURCES): Likewise.
48626 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48627 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48628 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48629 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48630 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48631 (elf_mod_SOURCES): New variable.
48632 (elf_mod_CFLAGS): Likewise.
48633 (elf_mod_LDFLAGS): Likewise.
48634 * include/grub/types.h (__unused): New macro.
48635 * include/grub/elfload.h: New file.
48636 * kern/elf.c: Likewise.
48637 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48638 (ELF32_LOADMASK): New macro.
48639 (ELF64_LOADMASK): Likewise.
48640 (vmlinux): Removed.
48641 (grub_linux_load32): New function.
48642 (grub_linux_load64): Likewise.
48643 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48644 Use grub_elf_t instead of grub_file_t.
48645
48646 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48647
48648 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48649 `catch_result' to struct set_color_args.
48650
48651 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48652
48653 * normal/menu.c: Include grub/script.h.
48654 * normal/menu_entry.c: Likewise.
48655 * include/grub/normal.h: Do not include grub/script.h.
48656
48657 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48658
48659 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48660
48661 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48662
48663 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48664 disk.
48665 (grub_disk_close): Print debug messages when closing a disk.
48666 (grub_disk_read): Print debug messages when disk read fails.
48667 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48668 filesystem type.
48669 * kern/partition.c: Include misc.h.
48670 (grub_partition_iterate): Print debug messages when detecting
48671 partition type.
48672
48673 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48674
48675 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48676 is negative.
48677 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48678
48679 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48680
48681 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48682 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48683
48684 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48685
48686 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48687 instead of sizeof(lv). Patch by Michael Guntsche.
48688
48689 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48690
48691 * disk/lvm.c: Rename VGS to VG_LIST.
48692 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48693 (grub_lvm_open): Likewise.
48694 Thanks to Michael Guntsche for finding this bug.
48695
48696 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48697
48698 * configure.ac (AC_INIT): Bumped to 1.95.
48699
48700 2006-10-14 Robert Millan <rmh@aybabtu.com>
48701
48702 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48703 with "/dev/.static/dev/md".
48704
48705 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48706
48707 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48708 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48709 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48710 DRIVE_NAME are always freed.
48711
48712 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48713 DOS_PART, as a DOS partition is counted from one instead of zero
48714 now. Reported by Robert Millan.
48715
48716 2006-10-14 Robert Millan <rmh@aybabtu.com>
48717
48718 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48719 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48720 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48721 string returned by grub_guess_root_device.
48722 * util/i386/pc/grub-setup.c: Likewise.
48723 * util/i386/pc/grub-probefs.c: Likewise.
48724
48725 * util/i386/pc/grub-probefs.c: Rename to ...
48726 * util/i386/pc/grub-probe.c: ... this.
48727 * DISTLIST: Remove grub-probefs, add grub-probe.
48728 * conf/i386-efi.rmk: Likewise.
48729 * conf/i386-pc.rmk: Likewise.
48730 * util/i386/pc/grub-install.in: Likewise.
48731
48732 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48733 choose which information we want to print.
48734
48735 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48736
48737 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48738 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48739 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48740 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48741 video/readers/tga.c and video/i386/pc/vbeutil.c.
48742
48743 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48744
48745 Added support for RAID and LVM.
48746
48747 * disk/lvm.c: New file.
48748 * disk/raid.c: Likewise.
48749 * include/grub/lvm.h: Likewise.
48750 * include/grub/raid.h: Likewise.
48751 * include/grub/util/lvm.h: Likewise.
48752 * include/grub/util/raid.h: Likewise.
48753 * util/lvm.c: Likewise.
48754 * util/raid.c: Likewise.
48755
48756 * include/grub/disk.h (grub_disk_dev_id): Add
48757 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48758 (grub_disk_get_size): New prototype.
48759 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48760 returns a partition.
48761 (grub_disk_get_size): New function.
48762
48763 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48764 verbatim if grub_install_dos_part is -2.
48765
48766 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48767 and LVM devices.
48768
48769 * util/i386/pc/grub-setup.c (setup): New argument
48770 MUST_EMBED. Force embedding of GRUB when the argument is
48771 true. Close FILE before returning.
48772 (main): Add support for RAID and LVM.
48773
48774 * conf/common.rmk: Add RAID and LVM modules.
48775 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48776 util/lvm.c.
48777 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48778
48779 * kern/misc.c (grub_strstr): New function.
48780 * include/grub/misc.h (grub_strstr): New prototype.
48781
48782 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48783
48784 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48785
48786 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48787
48788 * kern/misc.c (grub_strtoull): Guess the base only if not
48789 specified.
48790
48791 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48792
48793 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48794 PowerMac support.
48795
48796 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48797
48798 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48799
48800 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48801 Remove `flags' argument. All callers changed.
48802 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48803 (IEEE1275_IHANDLE_INVALID): New variable.
48804 (IEEE1275_CELL_INVALID): New variable.
48805 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48806 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48807 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48808 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48809 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48810 codes from Open Firmware. All callers updated.
48811 (grub_ieee1275_next_property): Directly return Open Firmware return
48812 code.
48813 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48814 Standardize error checking from `grub_ieee1275_get_property'.
48815 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48816 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48817
48818 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48819
48820 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48821 `instance_to_package_args' to `instance_to_path_args'.
48822
48823 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48824 `grub_ieee1275_chosen'.
48825
48826 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48827 `grub_ieee1275_interpret'.
48828
48829 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48830
48831 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48832
48833 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48834
48835 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48836 (__cmpdi): Likewise.
48837
48838 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48839 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48840 `grub_ssize_t'.
48841
48842 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48843
48844 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48845 to type `grub_ssize_t'.
48846 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48847
48848 2006-09-22 Marco Gerards <marco@gnu.org>
48849
48850 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48851 newlines.
48852
48853 2006-09-22 Marco Gerards <marco@gnu.org>
48854
48855 * commands/echo.c: New file.
48856
48857 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48858
48859 * conf/common.rmk (echo_mod_SOURCES): New variable.
48860 (echo_mod_CFLAGS): Likewise.
48861 (echo_mod_LDFLAGS): Likewise.
48862
48863 2006-09-22 Marco Gerards <marco@gnu.org>
48864
48865 * normal/main.c (get_line): Malloc memory instead of using
48866 preallocated memory. Removed the arguments `cmdline' and
48867 `max_len'. Updated all callers.
48868
48869 2006-09-22 Marco Gerards <marco@gnu.org>
48870
48871 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48872 (normal_mod_DEPENDENCIES): Likewise.
48873
48874 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48875 (normal_mod_DEPENDENCIES): Likewise.
48876
48877 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48878
48879 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48880
48881 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48882 programs.
48883 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48884 (normal_mod_DEPENDENCIES): Likewise.
48885 * conf/i386-pc.mk: Regenerate.
48886 * conf/i386-efi.mk: Likewise
48887 * conf/common.mk: Likewise.
48888 * conf/powerpc-ieee1275.mk: Likewise.
48889 * conf/sparc64-ieee1275.mk: Likewise.
48890
48891 2006-09-22 Robert Millan <rmh@aybabtu.com>
48892
48893 Sync with i386 version.
48894 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48895 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48896
48897 2006-09-21 Robert Millan <rmh@aybabtu.com>
48898
48899 Import from GRUB Legacy (lib/device.c):
48900 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48901 (init_device_map) [__linux__]: Add support for I2O devices.
48902
48903 2006-09-14 Marco Gerards <marco@gnu.org>
48904
48905 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48906 `-melf_i386'.
48907
48908 2006-09-14 Robert Millan <rmh@aybabtu.com>
48909
48910 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48911 /boot/grub/*.lst.
48912
48913 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48914
48915 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48916 before adding it to device.map.
48917
48918 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48919
48920 * genmk.rb: Let GCC generate dependencies the first time it
48921 compiles a file; using the -MD option.
48922 * conf/common.mk: Regenerate.
48923 * conf/i386-pc.mk: Likewise.
48924 * conf/i386-efi.mk: Likewise.
48925 * conf/powerpc-ieee1275.mk: Likewise.
48926 * conf/sparc64-ieee1275.mk: Likewise.
48927
48928 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48929
48930 Move the prototypes of grub_setjmp and grub_longjmp to
48931 cpu/setjmp.h, so that each architecture may specify different
48932 attributes.
48933
48934 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48935 (grub_longjmp): Likewise.
48936 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48937 (grub_longjmp): Likewise.
48938 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48939 (grub_longjmp): Likewise.
48940
48941 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48942 [!GRUB_UTIL] (grub_longjmp): Removed.
48943
48944 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48945
48946 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48947 "color!" method does not return any value.
48948
48949 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48950
48951 * include/grub/bitmap.h: New file.
48952
48953 * include/grub/i386/pc/vbeutil.h: Likewise.
48954
48955 * video/bitmap.c: Likewise.
48956
48957 * video/readers/tga.c: Likewise.
48958
48959 * video/i386/pc/vbeutil.c: Likewise.
48960
48961 * commands/videotest.c: Code cleanup and updated to reflect to new
48962 video API.
48963
48964 * term/gfxterm.c: Likewise.
48965
48966 * video/video.c: Likewise.
48967
48968 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48969 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48970 (bitmap_mod_SOURCES): New entry.
48971 (bitmap_mod_CFLAGS): Likewise.
48972 (bitmap_mod_LDFLAGS): Likewise.
48973 (tga_mod_SOURCES): Likewise.
48974 (tga_mod_CFLAGS): Likewise.
48975 (tga_mod_LDFLAGS): Likewise.
48976
48977 * include/grub/video.h (grub_video_blit_operators): New enum type.
48978 (grub_video_render_target): Changed as forward declaration and moved
48979 actual definition to be video driver specific.
48980 (grub_video_adapter.blit_bitmap): Added blitting operator.
48981 (grub_video_adapter.blit_render_target): Likewise.
48982 (grub_video_blit_bitmap): Likewise.
48983 (grub_video_blit_render_target): Likewise.
48984
48985 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
48986 driver specific render target definition.
48987 (grub_video_vbe_map_rgba): Added driver internal helper.
48988 (grub_video_vbe_unmap_color): Updated to use
48989 grub_video_i386_vbeblit_info.
48990 (grub_video_vbe_get_video_ptr): Likewise.
48991
48992 * include/grub/i386/pc/vbeblit.h
48993 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
48994 grub_video_i386_vbeblit_info.
48995 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
48996 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
48997 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
48998 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
48999 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49000 (grub_video_i386_vbeblit_index_index): Likewise.
49001 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49002 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49003 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49004 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49005 operator.
49006 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49007 operator.
49008
49009 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49010 include/grub/i386/pc/vbeblit.h.
49011
49012 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49013 Updated to use grub_video_i386_vbeblit_info.
49014 (grub_video_i386_vbefill_R8G8B8): Likewise.
49015 (grub_video_i386_vbefill_index): Likewise.
49016 (grub_video_i386_vbefill): Added generic filler.
49017
49018 * video/i386/pc/vbefill.c: Updated to reflect changes on
49019 include/grub/i386/pc/vbefill.h.
49020
49021 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49022 grub_video_i386_vbeblit_info.
49023 (grub_video_vbe_unmap_color): Likewise.
49024 (grub_video_vbe_blit_glyph): Likewise.
49025 (grub_video_vbe_scroll): Likewise.
49026 (grub_video_vbe_draw_pixel): Removed function.
49027 (grub_video_vbe_get_pixel): Likewise.
49028 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49029 updated code to use it.
49030 (common_blitter): Added common blitter for render target and bitmap.
49031 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49032 (grub_video_vbe_blit_render_target): Likewise.
49033
49034 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49035
49036 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49037 is in text mode if there is no console control protocol instance
49038 available.
49039
49040 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49041
49042 * include/grub/video.h: Code cleanup.
49043
49044 * include/grub/i386/pc/vbe.h: Likewise.
49045
49046 * video/i386/pc/vbe.c: Likewise.
49047
49048 * video/i386/pc/vbeblit.c: Likewise.
49049
49050 * video/i386/pc/vbefill.c: Likewise.
49051
49052 * video/video.c: Likewise. Also added more comments.
49053
49054 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49055
49056 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49057 (struct grub_biosdisk_dap): Likewise.
49058
49059 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49060 linkage settings for all functions.
49061
49062 2006-07-12 Marco Gerards <marco@gnu.org>
49063
49064 * configure.ac (--enable-mm-debug): Fix typo.
49065
49066 * genkernsyms.sh.in: Use proper quoting for `CC'.
49067
49068 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49069
49070 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49071 (normal_mod_ASFLAGS): Remove "-m32".
49072
49073 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49074
49075 * util/misc.c: Include config.h.
49076 [!HAVE_MEMALIGN]: Do not include malloc.h.
49077 (grub_memalign): Use posix_memalign, if present. Then, use
49078 memalign, if present. Otherwise, emit an error.
49079
49080 * util/grub-emu.c: Do not include malloc.h.
49081
49082 * include/grub/util/misc.h: Include unistd.h. This is required for
49083 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49084 D. Eades III <hde@foobar-qux.org>.
49085
49086 * configure.ac (AC_GNU_SOURCE): Added.
49087 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49088 type.
49089
49090 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49091
49092 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49093 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49094
49095 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49096
49097 * include/grub/types.h (grub_host_addr_t): Rename to
49098 grub_target_addr_t.
49099 (grub_host_off_t): Rename to grub_target_off_t.
49100 (grub_host_size_t): Rename to grub_target_size_t.
49101 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49102 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49103
49104 * include/grub/kernel.h (struct grub_module_header): Change type
49105 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49106 (grub_module_info): Likewise.
49107
49108 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49109
49110 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49111 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49112 Velazquez <jesus.velazquez@gmail.com>.
49113
49114 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49115
49116 Count partitions from 1 instead of 0 in the string representation
49117 of partitions. Still use 0-based internally.
49118
49119 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49120 (sun_partition_map_iterate): Use grub_partition_t instead of
49121 struct grub_partition *. Cast DESC->START_CYLINDER to
49122 grub_uint64_t after converting the endian.
49123 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49124 (sun_partition_map_get_name): Add 1 to P->INDEX.
49125
49126 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49127 PCDATA->DOS_PART.
49128 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49129
49130 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49131 zero instead of one.
49132 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49133 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49134
49135 * partmap/apple.c (apple_partition_map_iterate): Change the type
49136 of POS to unsigned.
49137 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49138 (apple_partition_map_get_name): Add 1 into P->INDEX.
49139
49140 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49141 of POS to unsigned.
49142 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49143 calculate the offset of a partition.
49144 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49145 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49146
49147 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49148 SECTOR to grub_disk_addr_t.
49149 (acorn_partition_map_iterate): Likewise.
49150 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49151 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49152 top.
49153 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49154
49155 * kern/i386/pc/init.c (make_install_device): Add 1 into
49156 GRUB_INSTALL_DOS_PART.
49157
49158 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49159 conditional.
49160
49161 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49162
49163 Clean up the code to support 64-bit addressing in disks and
49164 files. This change is not enough for filesystems yet.
49165
49166 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49167 type of "start" to grub_uint64_t.
49168 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49169 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49170 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49171 convert addresses.
49172
49173 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49174 to grub_disk_addr_t.
49175
49176 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49177 string.
49178
49179 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49180
49181 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49182 to char *.
49183
49184 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49185
49186 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49187
49188 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49189
49190 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49191 to grub_off_t, to detect an error from grub_file_seek.
49192 (grub_multiboot_load_elf32): Likewise.
49193
49194 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49195 maximum unsigned long value when an overflow is detected.
49196 (grub_strtoull): New function.
49197 (grub_divmod64): Likewise.
49198 (grub_lltoa): use grub_divmod64.
49199
49200 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49201 grub_disk_addr_t.
49202 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49203 the pointer to next character. Use grub_strtoull instead of
49204 grub_strtoul.
49205 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49206 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49207 respectively.
49208
49209 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49210 return value is signed.
49211 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49212 test if OFFSET is less than zero, as OFFSET is unsigned now.
49213
49214 * kern/disk.c (struct grub_disk_cache): Change the type of
49215 "sector" to grub_disk_addr_t.
49216 (grub_disk_cache_get_index): Change the type of SECTOR to
49217 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49218 unsigned after shifting.
49219 (grub_disk_cache_invalidate): Change the type of SECTOR to
49220 grub_disk_addr_t.
49221 (grub_disk_cache_unlock): Likewise.
49222 (grub_disk_cache_store): Likewise.
49223 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49224 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49225 grub_disk_addr_t and grub_uint64_t, respectively.
49226 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49227 body, as the value of OFFSET is tweaked by
49228 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49229 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49230 respectively.
49231 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49232 body, as the value of OFFSET is tweaked by
49233 grub_disk_check_range. Change the types of LEN and N to
49234 grub_size_t.
49235
49236 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49237 and "saved_offset" to grub_off_t.
49238 (test_header): Cast BUF to char *.
49239 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49240 to char *.
49241 (grub_gzio_read): Change the types of OFFSET and SIZE to
49242 grub_off_t and grub_size_t, respectively.
49243
49244 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49245 Removed.
49246 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49247 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49248 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49249 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49250 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49251
49252 * include/grub/types.h (grub_off_t): Unconditionally set to
49253 grub_uint64_t.
49254 (grub_disk_addr_t): Changed to grub_uint64_t.
49255
49256 * include/grub/partition.h (struct grub_partition): Change the
49257 types of "start", "len" and "offset" to grub_disk_addr_t,
49258 grub_uint64_t and grub_disk_addr_t, respectively.
49259 (grub_partition_get_start): Return grub_disk_addr_t.
49260 (grub_partition_get_len): Return grub_uint64_t.
49261
49262 * include/grub/misc.h (grub_strtoull): New prototype.
49263 (grub_divmod64): Likewise.
49264
49265 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49266 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49267 grub_off_t, respectively.
49268 All callers and references changed.
49269
49270 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49271 grub_size_t in "read".
49272 All callers and references changed.
49273
49274 * include/grub/file.h (struct grub_file): Change the types of
49275 "offset" and "size" to grub_off_t and grub_off_t,
49276 respectively. Change the type of SECTOR to grub_disk_addr_t in
49277 "read_hook".
49278 (grub_file_read): Change the type of LEN to grub_size_t.
49279 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49280 grub_off_t.
49281 (grub_file_size): Return grub_off_t.
49282 (grub_file_tell): Likewise.
49283 All callers and references changed.
49284
49285 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49286 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49287 "write".
49288 (struct grub_disk): Change the type of "total_sectors" to
49289 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49290 "read_hook".
49291 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49292 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49293 (grub_disk_write): Likewise.
49294 All callers and references changed.
49295
49296 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49297 char * for grub_strncmp to silence gcc.
49298 (grub_iso9660_mount): Likewise.
49299 (grub_iso9660_mount): Likewise.
49300 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49301 return statement.
49302 (grub_iso9660_iterate_dir): Likewise.
49303 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49304
49305 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49306 LEN to grub_disk_addr_t and grub_size_t, respectively.
49307
49308 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49309
49310 * fs/jfs.c (grub_jfs_read_file): Likewise.
49311
49312 * fs/minix.c (grub_jfs_read_file): Likewise.
49313
49314 * fs/sfs.c (grub_jfs_read_file): Likewise.
49315
49316 * fs/ufs.c (grub_jfs_read_file): Likewise.
49317
49318 * fs/xfs.c (grub_jfs_read_file): Likewise.
49319
49320 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49321 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49322 respectively.
49323
49324 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49325 BLKNR to -1 instead of returning GRUB_ERRNO.
49326 (grub_ext2_read_file): Change the types of SECTOR and
49327 LEN to grub_disk_addr_t and grub_size_t, respectively.
49328
49329 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49330 LEN to grub_disk_addr_t and grub_size_t, respectively.
49331
49332 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49333 grub_file_read.
49334
49335 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49336 string. Do not cast SECTOR explicitly.
49337
49338 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49339 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49340 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49341 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49342 over 2TB and LBA mode is not supported, raise an error.
49343 (get_safe_sectors): New function.
49344 (grub_biosdisk_read): Use get_safe_sectors.
49345 (grub_biosdisk_write): Likewise.
49346
49347 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49348 (grub_efidisk_write): Likewise.
49349
49350 * disk/loopback.c (delete_loopback): Cosmetic changes.
49351 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49352 correctly.
49353 (grub_loopback_open): Likewise.
49354 (grub_loopback_read): Likewise. Also, change the type of POS to
49355 grub_off_t, and fix the usage of grub_memset.
49356
49357 * commands/i386/pc/play.c: Include grub/machine/time.h.
49358
49359 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49360 print FILE->SIZE.
49361
49362 * commands/configfile.c: Include grub/env.h.
49363
49364 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49365 GRUB_ERRNO directly instead. Change the type of POS to
49366 grub_off_t. Follow the coding standard.
49367
49368 * commands/blocklist.c: Include grub/partition.h.
49369 (grub_cmd_blocklist): Return an error if the underlying device is
49370 not a disk. Take the starting sector of a partition into account,
49371 if a partition is used.
49372
49373 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49374 a length field.
49375 (lba_mode): Support 64-bit addresses.
49376 (chs_mode): Likewise.
49377 (copy_buffer): Adapted to the new offsets of a length field and a
49378 segment field.
49379 (blocklist_default_start): Allocate 64-bit space.
49380
49381 * boot/i386/pc/boot.S (force_lba): Removed.
49382 (boot_drive): Moved to under KERNEL_SECTOR.
49383 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49384 space.
49385 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49386 is useless.
49387 (lba_mode): Refactored to support a 64-bit address. More size
49388 optimization.
49389 (setup_sectors): Likewise.
49390
49391 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49392
49393 * DISTLIST: Added include/grub/i386/linux.h. Removed
49394 include/grub/i386/pc/linux.h
49395
49396 * configure.ac (AC_INIT): Bumped to 1.94.
49397
49398 * config.guess: Updated from gnulib.
49399 * config.sub: Likewise.
49400 * install-sh: Likewise.
49401 * mkinstalldirs: Likewise.
49402
49403 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49404
49405 * conf/common.rmk (grub_modules_init.lst): Depended on
49406 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49407 MODSRCFILES.
49408
49409 * genmk.rb (PModule::rule): Reverted the previous change.
49410
49411 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49412
49413 * conf/common.rmk (grub_modules_init.lst): Depends on
49414 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49415 that the target does not exist before producing.
49416 (grub_modules_init.h): Remove the target before generating.
49417 (grub_emu_init.c): Likewise.
49418
49419 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49420
49421 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49422
49423 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49424 for the target-specific tests. Make sure that we also have the
49425 up-to-date target variables for those tests.
49426
49427 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49428
49429 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49430 (PModule::rule): Likewise.
49431
49432 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49433
49434 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49435 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49436 target-specific flags should be prefixed.
49437 (PModule::rule): Likewise.
49438
49439 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49440
49441 * configure.ac (CMP): Check if cmp is available explicitly.
49442
49443 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49444
49445 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49446 (target_cpu): New variable.
49447 (pkglibdir): Use target_cpu instead of host_cpu.
49448
49449 * util/i386/pc/grub-install.in (host_cpu): Removed.
49450 (target_cpu): New variable.
49451 (pkglibdir): Use target_cpu instead of host_cpu.
49452
49453 * util/genmoddep.c: Removed.
49454
49455 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49456 instead of GRUB_HOST_SIZEOF_VOID_P.
49457 * kern/dl.c: Likewise.
49458
49459 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49460 ...
49461 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49462 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49463 (GRUB_TARGET_SIZEOF_LONG): ... this.
49464 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49465 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49466 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49467 to ...
49468 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49469 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49470 (GRUB_TARGET_SIZEOF_LONG): ... this.
49471 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49472 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49473 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49474 to ...
49475 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49476 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49477 (GRUB_TARGET_SIZEOF_LONG): ... this.
49478 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49479 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49480
49481 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49482 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49483 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49484 instead of GRUB_HOST_SIZEOF_LONG.
49485 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49486 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49487 GRUB_CPU_WORDS_BIGENDIAN.
49488 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49489 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49490 grub_host_ssize_t.
49491
49492 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49493 (genmoddep_SOURCES): Likewise.
49494 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49495 (genmoddep_SOURCES): Likewise.
49496 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49497 (genmoddep_SOURCES): Likewise.
49498 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49499 Likewise.
49500 (genmoddep_SOURCES): Likewise.
49501
49502 * genmoddep.awk: New file.
49503
49504 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49505 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49506 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49507 (PModule::rule): Likewise.
49508 (Program::rule): Likewise.
49509 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49510 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49511 respectively.
49512
49513 * configure.ac: Rewritten intensively to use host and target
49514 instead of build and host, respectively.
49515
49516 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49517 (host_cpu): Removed.
49518 (target_cpu): New variable.
49519 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49520 (BUILD_CC): Removed.
49521 (BUILD_CFLAGS): Likewise.
49522 (BUILD_CPPFLAGS): Likewise.
49523 (TARGET_CC): New variable.
49524 (TARGET_CFLAGS): Likewise.
49525 (TARGET_CPPFLAGS): Likewise.
49526 (TARGET_LDFLAGS): Likewise.
49527 (AWK): Likewise.
49528 (include): Use target_cpu instead of host_cpu.
49529 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49530
49531 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49532
49533 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49534
49535 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49536 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49537 field 'false' to 'exec_on_false'.
49538 (grub_script_create_cmdif): Renamed argument names to reflect above
49539 changes.
49540
49541 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49542
49543 * normal/script.c (grub_script_create_cmdif): Likewise.
49544
49545 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49546
49547 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49548 top.
49549 (grub_hfsplus_btree_recptr): Likewise.
49550 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49551 FILEBLOCK both to pass a block number and store next block
49552 number.
49553 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49554 overflow file correctly. Specify errors appropriately, because
49555 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49556 grub_hfsplus_btree_recptr to get the pointer to a found key.
49557 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49558 is found.
49559
49560 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49561 linux.mod.
49562 (_linux_mod_SOURCES): New variable.
49563 (_linux_mod_CFLAGS): Likewise.
49564 (_linux_mod_LDFLAGS): Likewise.
49565 (linux_mod_SOURCES): Likewise.
49566 (linux_mod_CFLAGS): Likewise.
49567 (linux_mod_LDFLAGS): Likewise.
49568
49569 * DISTLIST: Added loader/i386/efi/linux.c,
49570 loader/i386/efi/linux_normal.c and
49571 include/grub/i386/efi/loader.h.
49572
49573 * loader/i386/efi/linux.c: New file.
49574 * loader/i386/efi/linux_normal.c: Likewise.
49575 * include/grub/i386/efi/loader.h: Likewise.
49576
49577 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49578
49579 * commands/blocklist.c: New file.
49580
49581 * DISTLIST: Added commands/blocklist.c.
49582
49583 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49584 color for the background, and a darker color for the foreground.
49585 (grub_console_checkkey): Return READ_KEY.
49586 (grub_console_cls): Set the background to
49587 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49588
49589 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49590
49591 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49592 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49593
49594 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49595 prototype.
49596
49597 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49598 BG. The spec is wrong again.
49599
49600 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49601 prototype.
49602 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49603
49604 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49605 commands/blocklist.c.
49606 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49607
49608 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49609 (blocklist_mod_SOURCES): New variable.
49610 (blocklist_mod_CFLAGS): Likewise.
49611 (blocklist_mod_LDFLAGS): Likewise.
49612
49613 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49614
49615 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49616 duplication.
49617 (lba_mode): Use %eax more intensively to reduce the code size.
49618
49619 2006-05-20 Marco Gerards <marco@gnu.org>
49620
49621 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49622
49623 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49624 for `menuentry'.
49625 (script): Accept leading newlines.
49626 (newlines): New rule to describe 0 or more newlines.
49627 (commands): Accept `command' with trailing newline. Fixed the
49628 order in which arguments were passed to `grub_script_add_cmd'.
49629 Accept commands separated by newlines.
49630 (function): Changed to accept newlines.
49631 (menuentry) Rewritten.
49632
49633 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49634 front of the list, instead of to the end.
49635
49636 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49637
49638 * util/i386/pc/grub-install.in (bindir): New variable.
49639 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49640 Shaver <lbgwjl@gmail.com>.
49641
49642 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49643
49644 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49645 grub/machine/linux.h
49646 * loader/i386/pc/linux.c: Likewise.
49647
49648 * include/grub/i386/pc/linux.h: Moved to ...
49649 * include/grub/i386/linux.h: ... here.
49650
49651 * include/grub/i386/linux.h (struct linux_kernel_params): New
49652 struct.
49653
49654 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49655
49656 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49657 checking.
49658 (grub_video_vbe_blit_glyph): Likewise.
49659 (grub_video_vbe_blit_bitmap): Likewise.
49660 (grub_video_vbe_blit_render_target): Likewise.
49661
49662 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49663
49664 * configure.ac (--with-platform): Properly quote the square
49665 brackets.
49666
49667 2006-05-08 Marco Gerards <marco@gnu.org>
49668
49669 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49670 this...
49671 (kernel_elf_HEADERS): ...to this. Updated all users.
49672 (grubof_symlist.c): Renamed from this...
49673 (kernel_elf_symlist.c): ...to this. Updated all users.
49674 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49675 (grubof_SOURCES): Renamed from this...
49676 (kernel_elf_SOURCES): ...to this.
49677 (grubof_HEADERS): Renamed from this...
49678 (kernel_elf_HEADERS): ...to this.
49679 (grubof_CFLAGS): Renamed from this...
49680 (kernel_elf_CFLAGS): ...to this.
49681 (grubof_ASFLAGS): Renamed from this...
49682 (kernel_elf_ASFLAGS): ...to this.
49683 (grubof_LDFLAGS): Renamed from this...
49684 (kernel_elf_LDFLAGS): ...to this.
49685
49686 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49687 this...
49688 (kernel_elf_HEADERS): ...to this. Updated all users.
49689 (grubof_symlist.c): Renamed from this...
49690 (kernel_elf_symlist.c): ...to this. Updated all users.
49691 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49692 (grubof_SOURCES): Renamed from this...
49693 (kernel_elf_SOURCES): ...to this.
49694 (grubof_HEADERS): Renamed from this...
49695 (kernel_elf_HEADERS): ...to this.
49696 (grubof_CFLAGS): Renamed from this...
49697 (kernel_elf_CFLAGS): ...to this.
49698 (grubof_ASFLAGS): Renamed from this...
49699 (kernel_elf_ASFLAGS): ...to this.
49700 (grubof_LDFLAGS): Renamed from this...
49701 (kernel_elf_LDFLAGS): ...to this.
49702
49703 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49704 `kernel.elf' instead of `grubof'.
49705
49706 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49707
49708 Add --with-platform to configure. Use pkglibdir instead of
49709 pkgdatadir. This is reported by Roger Leigh.
49710
49711 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49712 (host_vendor): Likewise.
49713 (host_os): Likewise.
49714 (pkgdatadir): Likewise.
49715 (platform): New variable.
49716 (pkglibdir): Likewise.
49717 Use PKGLIBDIR instead of PKGDATADIR.
49718
49719 * util/i386/pc/grub-install.in (datadir): Removed.
49720 (host_vendor): Likewise.
49721 (host_os): Likewise.
49722 (pkgdatadir): Likewise.
49723 (platform): New variable.
49724 (pkglibdir): Likewise.
49725 Use PKGLIBDIR instead of PKGDATADIR.
49726
49727 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49728 instead of GRUB_DATADIR.
49729 (main): Likewise.
49730 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49731 (main): Likewise.
49732 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49733 (main): Likewise.
49734
49735 * configure.ac (--with-platform): New option.
49736 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49737
49738 * Makefile.in: Include a makefile based on PLATFORM instead of
49739 HOST_VENDOR.
49740 (pkgdatadir): Not appended by the machine type.
49741 (pkglibdir): Appended by the machine type.
49742 (host_vendor): Removed.
49743 (platform): New variable.
49744 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49745 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49746 (uninstall): Likewise.
49747
49748 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49749
49750 Use the environment context in the menu. Remove the commands
49751 "default" and "timeout", and use variables instead.
49752
49753 * normal/menu.c: Include grub/env.h.
49754 (print_entry): Cast TITLE to silence gcc.
49755 (get_timeout): New function.
49756 (set_timeout): Likewise.
49757 (get_entry_number): Likewise.
49758 (run_menu): Use a default entry, a fallback entry and a timeout
49759 in the environment variables "default", "fallback" and
49760 "timeout". Also, tweak the default entry if it is not within the
49761 current menu entries.
49762 (grub_menu_run): Use a fallback entry in the environment variable
49763 "fallback".
49764
49765 * normal/main.c (read_config_file): Do not initialize
49766 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49767 NEWMENU->TIMEOUT.
49768 (grub_normal_execute): Use a data slot to store the menu.
49769
49770 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49771 fallback_entry and timeout.
49772 (struct grub_menu_list): Removed.
49773 (grub_menu_list_t): Likewise.
49774 (struct grub_context): Likewise.
49775 (grub_context_t): Likewise.
49776 (grub_context_get): Likewise.
49777 (grub_context_get_current_menu): Likewise.
49778 (grub_context_push_menu): Likewise.
49779 (grub_context_pop_menu): Likewise.
49780 (grub_default_init): Likewise.
49781 (grub_default_fini): Likewise.
49782 (grub_timeout_init): Likewise.
49783 (grub_timeout_fini): Likewise.
49784
49785 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49786 and timeout.mod.
49787 (normal_mod_SOURCES): Removed normal/context.c.
49788
49789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49790 commands/default.c, commands/timeout.c and normal/context.c.
49791 (normal_mod_SOURCES): Removed normal/context.c.
49792
49793 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49794 commands/timeout.c and normal/context.c.
49795 (normal_mod_SOURCES): Removed normal/context.c.
49796
49797 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49798 commands/default.c, commands/timeout.c and normal/context.c.
49799 (normal_mod_SOURCES): Removed normal/context.c.
49800
49801 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49802 timeout.mod.
49803 (default_mod_SOURCES): Removed.
49804 (default_mod_CFLAGS): Likewise.
49805 (default_mod_LDFLAGS): Likewise.
49806 (timeout_mod_SOURCES): Removed.
49807 (timeout_mod_CFLAGS): Likewise.
49808 (timeout_mod_LDFLAGS): Likewise.
49809
49810 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49811 normal/context.c.
49812
49813 * commands/default.c: Removed.
49814 * commands/timeout.c: Likewise.
49815 * normal/context.c: Likewise.
49816
49817 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49818
49819 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49820
49821 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49822
49823 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49824 "next" to "prev" for readability.
49825 (struct grub_env_sorted_var): New struct.
49826 (grub_env_context): Renamed to ...
49827 (initial_context): ... this.
49828 (grub_env_var_context): Renamed to ...
49829 (current_context): ... this.
49830 (grub_env_find): Look only at CURRENT_CONTEXT.
49831 (grub_env_context_open): Rewritten to copy exported variables from
49832 previous context.
49833 (grub_env_context_close): Rewritten according to the new
49834 scheme. Also, add an assertion to prevent the initial context from
49835 removed.
49836 (grub_env_insert): Removed the code for the sorted list.
49837 (grub_env_remove): Likewise.
49838 (grub_env_export): Simply mark the variable with
49839 GRUB_ENV_VAR_GLOBAL.
49840 (grub_env_set): A cosmetic change for naming consistency.
49841 (grub_env_get): Likewise.
49842 (grub_env_unset): Likewise.
49843 (grub_env_iterate): Rewritten to sort variables within this
49844 function.
49845 (grub_register_variable_hook): Fixed for naming consistency. Call
49846 grub_env_find again, only if NAME is not found at the first time.
49847 (mangle_data_slot_name): New function.
49848 (grub_env_set_data_slot): Likewise.
49849 (grub_env_get_data_slot): Likewise.
49850 (grub_env_unset_data_slot): Likewise.
49851
49852 * include/grub/env.h (grub_env_var_type): New enum.
49853 (GRUB_ENV_VAR_LOCAL): New constant.
49854 (GRUB_ENV_VAR_GLOBAL): Likewise.
49855 (GRUB_ENV_VAR_DATA): Likewise.
49856 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49857 "type".
49858 (grub_env_set): Replace VAR with NAME for consistency.
49859 (grub_register_variable_hook): Likewise.
49860 (grub_env_export): Specify the name of the argument.
49861 (grub_env_set_data_slot): New prototype.
49862 (grub_env_get_data_slot): Likewise.
49863 (grub_env_unset_data_slot): Likewise.
49864
49865 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49866
49867 Extend the loader so that GRUB can accept a loader which comes
49868 back to GRUB when a loaded image exits. Also, this change adds
49869 support for a chainloader on EFI.
49870
49871 * term/efi/console.c: Include grub/misc.h.
49872 (grub_console_checkkey): Display a scan code on the top for
49873 debugging. This will be removed once the EFI port gets stable.
49874 Correct the scan code mapping.
49875
49876 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49877 allocate memory from larger regions, in order to reduce the number
49878 of allocated regions. Otherwise, the MacOSX loader panics.
49879 (filter_memory_map): Avoid less than 1MB for compatibility with
49880 other loaders.
49881 (add_memory_regions): Allocate from the tail of a region, if
49882 possible, to avoid allocating a region near to 1MB, for the MacOSX
49883 loader.
49884
49885 * kern/efi/init.c (grub_efi_set_prefix): Specify
49886 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49887
49888 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49889 argument IMAGE_HANDLE and specify it to get a loaded image.
49890 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49891 grub_efi_get_loaded_image.
49892 (grub_efi_get_filename): Divide the length by the size of
49893 grub_efi_char16_t.
49894 (grub_efi_get_device_path): New function.
49895 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49896 the length by the size of grub_efi_char16_t for a file path device
49897 path node.
49898
49899 * kern/loader.c (grub_loader_noreturn): New variable.
49900 (grub_loader_set): Accept a new argument NORETURN. Set
49901 GRUB_LOADER_NORETURN to NORETURN.
49902 All callers changed.
49903 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49904 grub_machine_fini.
49905
49906 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49907 prototype.
49908 (grub_efi_get_loaded_image): Take an argument to specify an image
49909 handle.
49910
49911 * include/grub/loader.h (grub_loader_set): Added one more argument
49912 NORETURN.
49913
49914 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49915 instead of grub_efi_open_protocol.
49916 (grub_efidisk_get_device_name): Likewise.
49917 (grub_efidisk_close): Print a newline.
49918 (grub_efidisk_get_device_handle): Fixed to use
49919 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49920 GRUB_EFI_DEVICE_PATH_TYPE.
49921
49922 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49923 * kern/efi/efi.c (device_path_guid): ... here.
49924
49925 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49926 chain.mod.
49927 (kernel_mod_HEADERS): Added efi/disk.h.
49928 (_chain_mod_SOURCES): New variable.
49929 (_chain_mod_CFLAGS): Likewise.
49930 (_chain_mod_LDFLAGS): Likewise.
49931 (chain_mod_SOURCES): Likewise.
49932 (chain_mod_CFLAGS): Likewise.
49933 (chain_mod_LDFLAGS): Likewise.
49934
49935 * DISTLIST: Added include/grub/efi/chainloader.h,
49936 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49937
49938 * include/grub/efi/chainloader.h: New file.
49939 * loader/efi/chainloader.c: Likewise.
49940 * loader/efi/chainloader_normal.c: Likewise.
49941
49942 2006-04-30 Marco Gerards <marco@gnu.org>
49943
49944 * commands/configfile.c (grub_cmd_source): New function.
49945 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49946 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49947
49948 2006-04-30 Marco Gerards <marco@gnu.org>
49949
49950 * normal/execute.c (grub_script_execute_cmd): Change the return
49951 type to `grub_err_t'. Correctly return the error.
49952 (grub_script_execute_cmdline): In case a command line is not a
49953 command or a function, try to interpret it as an assignment.
49954
49955 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49956
49957 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49958 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49959 skip a node whose name is obviously invalid as UTF-16,
49960 i.e. contains a NUL character. Stop the iteration when the last
49961 directory entry is found. Instead of using the return value of
49962 grub_hfsplus_btree_iterate_node, store the value in RET and use
49963 it, because the iterator can be stopped by the last directory
49964 entry.
49965
49966 2006-04-30 Marco Gerards <marco@gnu.org>
49967
49968 * include/grub/env.h (grub_env_export): New prototype. Reported
49969 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49970
49971 2006-04-30 Marco Gerards <marco@gnu.org>
49972
49973 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49974 size of the extents in a catalog file record.
49975
49976 2006-04-29 Marco Gerards <marco@gnu.org>
49977
49978 * commands/configfile.c (grub_cmd_configfile): Execute the
49979 configfile within its own context.
49980
49981 * include/grub/env.h (grub_env_context_open): New prototype.
49982 (grub_env_context_close): Likewise.
49983
49984 * kern/env.c (grub_env): Removed.
49985 (grub_env_sorted): Likewise.
49986 (grub_env_context): New variable.
49987 (grub_env_var_context): Likewise.
49988 (grub_env_find): Search both the active context and the global
49989 context.
49990 (grub_env_context_open): New function.
49991 (grub_env_context_close): Likewise.
49992 (grub_env_insert): Likewise.
49993 (grub_env_remove): Likewise.
49994 (grub_env_export): Likewise.
49995 (grub_env_set): Changed to use helper functions to avoid code
49996 duplication.
49997 (grub_env_iterate): Rewritten so both the current context and the
49998 global context are being used.
49999
50000 * normal/command.c (export_command): New function.
50001 (grub_command_init): Register the `export' function.
50002
50003 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50004
50005 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50006 explicitly to suppress gcc's warnings.
50007 * fs/fat.c (grub_fat_find_dir): Likewise.
50008 (grub_fat_label): Likewise.
50009 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50010 (grub_xfs_mount): Likewise.
50011 (grub_xfs_label): Likewise.
50012 * fs/affs.c (grub_affs_mount): Likewise.
50013 (grub_affs_label): Likewise.
50014 (grub_affs_iterate_dir): Likewise.
50015 * fs/sfs.c (grub_sfs_mount): Likewise.
50016 (grub_sfs_iterate_dir): Likewise.
50017 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50018 * fs/hfs.c (grub_hfs_mount): Likewise.
50019 (grub_hfs_cmp_catkeys): Likewise.
50020 (grub_hfs_find_dir): Likewise.
50021 (grub_hfs_dir): Likewise.
50022 (grub_hfs_label): Likewise.
50023 * fs/jfs.c (grub_jfs_mount): Likewise.
50024 (grub_jfs_opendir): Likewise.
50025 (grub_jfs_getent): Likewise.
50026 (grub_jfs_lookup_symlink): Likewise.
50027 (grub_jfs_label): Likewise.
50028 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50029 (grub_hfsplus_iterate_dir): Likewise.
50030 (grub_hfsplus_btree_iterate_node): Made static.
50031
50032 * util/grub-emu.c (prefix): New variable.
50033 (grub_machine_set_prefix): New function.
50034 (main): Do not set the environment variable "prefix" here. Only
50035 set PREFIX, which is used later by grub_machine_set_prefix.
50036
50037 * include/grub/video.h: Do not include grub/symbol.h.
50038 (grub_video_register): Not exported. This symbol is not defined in
50039 the kernel.
50040 (grub_video_unregister): Likewise.
50041 (grub_video_iterate): Likewise.
50042 (grub_video_setup): Likewise.
50043 (grub_video_restore): Likewise.
50044 (grub_video_get_info): Likewise.
50045 (grub_video_get_blit_format): Likewise.
50046 (grub_video_set_palette): Likewise.
50047 (grub_video_get_palette): Likewise.
50048 (grub_video_set_viewport): Likewise.
50049 (grub_video_get_viewport): Likewise.
50050 (grub_video_map_color): Likewise.
50051 (grub_video_map_rgb): Likewise.
50052 (grub_video_map_rgba): Likewise.
50053 (grub_video_fill_rect): Likewise.
50054 (grub_video_blit_glyph): Likewise.
50055 (grub_video_blit_bitmap): Likewise.
50056 (grub_video_blit_render_target): Likewise.
50057 (grub_video_scroll): Likewise.
50058 (grub_video_swap_buffers): Likewise.
50059 (grub_video_create_render_target): Likewise.
50060 (grub_video_delete_render_target): Likewise.
50061 (grub_video_set_active_render_target): Likewise.
50062
50063 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50064 Undefined.
50065 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50066
50067 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50068 config.h. Use 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/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50073 config.h. Use 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 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50078 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50079 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50080 instead of $(srcdir)/genkernsyms.sh.
50081
50082 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50083 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50084 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50085 instead of $(srcdir)/genkernsyms.sh.
50086
50087 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50088 genkernsyms.sh.
50089
50090 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50091 genkernsyms.sh.
50092 (gensymlist.sh): New target.
50093 (genkernsyms.sh): Likewise.
50094
50095 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50096 genkernsyms.sh.in and gensymlist.sh.in.
50097
50098 * genkernsyms.sh: Removed.
50099 * gensymlist.sh: Likewise.
50100
50101 * genkernsyms.sh.in: New file.
50102 * gensymlist.sh.in: Likewise.
50103
50104 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50105
50106 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50107 clobber "prefix", since we may have already set it manually.
50108
50109 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50110
50111 * kern/misc.c (abort): New alias for grub_abort.
50112
50113 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50114
50115 A new machine-specific function "grub_machine_set_prefix" is
50116 defined. This is called after loading modules, so that a prefix
50117 initialization can use modules. Also, this change adds an
50118 intensive debugging feature for the memory manager via the
50119 configure option "--enable-mm-debug".
50120
50121 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50122 PART.LEN.
50123
50124 * kern/sparc64/ieee1275/init.c (abort): Removed.
50125 (grub_stop): Likewise.
50126 (grub_exit): New function.
50127 (grub_set_prefix): Renamed to ...
50128 (grub_machine_set_prefix): ... this.
50129 (grub_machine_init): Do not call grub_set_prefix.
50130
50131 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50132 (grub_machine_set_prefix): ... this.
50133 (grub_machine_init): Do not call grub_set_prefix.
50134
50135 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50136 (grub_machine_init): Do not set the prefix here.
50137
50138 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50139
50140 * kern/efi/init.c: Include grub/mm.h.
50141 (grub_efi_set_prefix): New function.
50142
50143 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50144 (grub_efi_get_filename): New function.
50145 (grub_print_device_path): Renamed to ...
50146 (grub_efi_print_device_path): ... this.
50147
50148 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50149 [MM_DEBUG] (grub_realloc): Likewise.
50150 [MM_DEBUG] (grub_free): Likewise.
50151 [MM_DEBUG] (grub_memalign): Likewise.
50152 [MM_DEBUG] (grub_mm_debug): New variable.
50153 [MM_DEBUG] (grub_debug_malloc): New function.
50154 [MM_DEBUG] (grub_debug_free): New function.
50155 [MM_DEBUG] (grub_debug_realloc): New function.
50156 [MM_DEBUG] (grub_debug_memalign): New function.
50157
50158 * kern/misc.c (grub_abort): Print a newline to distinguish
50159 the message.
50160
50161 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50162 grub_set_root_dev after loading modules. This is necessary when
50163 setting a prefix depends on modules.
50164
50165 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50166 (grub_efi_print_device_path): ... this.
50167 (grub_efi_get_filename): New prototype.
50168 (grub_efi_set_prefix): Likewise.
50169
50170 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50171 and grub/disk.h.
50172 (grub_efidisk_get_device_handle): New prototype.
50173 (grub_efidisk_get_device_name): Likewise.
50174
50175 * include/grub/mm.h: Include config.h.
50176 (MM_DEBUG): Removed.
50177 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50178 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50179 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50180 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50181 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50182 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50183 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50184 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50185 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50186
50187 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50188
50189 * disk/efi/efidisk.c: Include grub/partition.h.
50190 (iterate_child_devices): New function.
50191 (add_device): First, compare only last device path nodes, so that
50192 devices are sorted by the types.
50193 (grub_efidisk_get_device_handle): New function.
50194 (grub_efidisk_get_device_name): Likewise.
50195
50196 * configure.ac (--enable-mm-debug): New option to enable the
50197 memory manager debugging feature. This makes the binary much
50198 bigger, so is disabled by default.
50199
50200 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50201
50202 Use grub_abort instead of grub_stop, and grub_exit must be
50203 define in each architecture now. Also, this change adds support
50204 for EFI disks.
50205
50206 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50207 (grub_getkey): New function.
50208 (grub_term_get_current): Likewise.
50209
50210 * util/i386/pc/grub-setup.c: Include grub/term.h.
50211 (grub_getkey): New function.
50212 (grub_term_get_current): Likewise.
50213
50214 * util/misc.c (grub_stop): Renamed to ...
50215 (grub_exit): ... this.
50216
50217 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50218 (grub_exit): ... this.
50219 (grub_machine_init): Use grub_abort instead of abort.
50220 (grub_stop): Removed.
50221
50222 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50223 abort.
50224
50225 * kern/i386/pc/startup.S (grub_exit): New function.
50226 (cold_reboot): New label.
50227
50228 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50229 (grub_efi_init): Call grub_efidisk_init.
50230 (grub_efi_fini): Call grub_efidisk_fini.
50231
50232 * kern/efi/efi.c: Include grub/mm.h.
50233 (grub_efi_console_control_guid): Renamed to ...
50234 (console_control_guid): ... this.
50235 (grub_efi_loaded_image_guid): Renamed to ...
50236 (loaded_image_guid): ... this.
50237 (grub_efi_locate_handle): New function.
50238 (grub_efi_open_protocol): Likewise.
50239 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50240 GRUB_EFI_CONSOLE_CONTROL_GUID.
50241 (grub_efi_exit): Removed.
50242 (grub_stop): Likewise.
50243 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50244 (grub_exit): New function.
50245 (grub_print_device_path): Likewise.
50246
50247 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50248 (grub_enter_rescue_mode): Register "exit".
50249
50250 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50251 (grub_abort): New function.
50252
50253 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50254
50255 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50256
50257 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50258
50259 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50260 (grub_print_device_path): New prototype.
50261 (grub_efi_locate_handle): Likewise.
50262 (grub_efi_open_protocol): Likewise.
50263
50264 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50265 * disk/efi/efidisk.c: Likewise.
50266
50267 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50268
50269 * include/grub/efi/console_control.h
50270 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50271
50272 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50273 last 8 bytes as an array.
50274 (GRUB_EFI_DISK_IO_GUID): New macro.
50275 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50276 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50277 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50278 grub_uint8_t.
50279 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50280 (struct grub_efi_device_path): Rename the member "sub_type" to
50281 "subtype".
50282 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50283 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50284 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50285 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50286 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50287 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50288 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50289 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50290 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50291 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50292 (struct grub_efi_pci_device_path): New structure.
50293 (grub_efi_pci_device_path_t): New type.
50294 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50295 (struct grub_efi_pccard_device_path): New structure.
50296 (grub_efi_pccard_device_path_t): New type.
50297 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50298 (struct grub_efi_memory_mapped_device_path): New structure.
50299 (grub_efi_memory_mapped_device_path_t): New type.
50300 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50301 (struct grub_efi_vendor_device_path): New structure.
50302 (grub_efi_vendor_device_path_t): New type.
50303 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50304 (struct grub_efi_controller_device_path): New structure.
50305 (grub_efi_controller_device_path_t): New type.
50306 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50307 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50308 (struct grub_efi_acpi_device_path): New structure.
50309 (grub_efi_acpi_device_path_t): New type.
50310 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50311 (struct grub_efi_expanded_acpi_device_path): New structure.
50312 (grub_efi_expanded_acpi_device_path_t): New type.
50313 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50314 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50315 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50316 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50317 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50318 (struct grub_efi_atapi_device_path): New structure.
50319 (grub_efi_atapi_device_path_t): New type.
50320 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50321 (struct grub_efi_fibre_channel_device_path): New structure.
50322 (grub_efi_fibre_channel_device_path_t): New type.
50323 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50324 (struct grub_efi_1394_device_path): New structure.
50325 (grub_efi_1394_device_path_t): New type.
50326 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50327 (struct grub_efi_usb_device_path): New structure.
50328 (grub_efi_usb_device_path_t): New type.
50329 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50330 (struct grub_efi_usb_class_device_path): New structure.
50331 (grub_efi_usb_class_device_path_t): New type.
50332 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50333 (struct grub_efi_i2o_device_path): New structure.
50334 (grub_efi_i2o_device_path_t): New type.
50335 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50336 (struct grub_efi_mac_address_device_path): New structure.
50337 (grub_efi_mac_address_device_path_t): New type.
50338 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50339 (struct grub_efi_ipv4_device_path): New structure.
50340 (grub_efi_ipv4_device_path_t): New type.
50341 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50342 (struct grub_efi_ipv6_device_path): New structure.
50343 (grub_efi_ipv6_device_path_t): New type.
50344 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50345 (struct grub_efi_infiniband_device_path): New structure.
50346 (grub_efi_infiniband_device_path_t): New type.
50347 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50348 (struct grub_efi_uart_device_path): New structure.
50349 (grub_efi_uart_device_path_t): New type.
50350 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50351 (struct grub_efi_vendor_messaging_device_path): New structure.
50352 (grub_efi_vendor_messaging_device_path_t): New type.
50353 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50354 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50355 (struct grub_efi_hard_drive_device_path): New structure.
50356 (grub_efi_hard_drive_device_path_t): New type.
50357 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50358 (struct grub_efi_cdrom_device_path): New structure.
50359 (grub_efi_cdrom_device_path_t): New type.
50360 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50361 (struct grub_efi_vendor_media_device_path): New structure.
50362 (grub_efi_vendor_media_device_path_t): New type.
50363 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50364 (struct grub_efi_file_path_device_path): New structure.
50365 (grub_efi_file_path_device_path_t): New type.
50366 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50367 (struct grub_efi_protocol_device_path): New structure.
50368 (grub_efi_protocol_device_path_t): New type.
50369 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50370 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50371 (struct grub_efi_bios_device_path): New structure.
50372 (grub_efi_bios_device_path_t): New type.
50373 (struct grub_efi_disk_io): New structure.
50374 (grub_efi_disk_io_t): New type.
50375 (struct grub_efi_block_io_media): New structure.
50376 (grub_efi_block_io_media_t): New type.
50377 (struct grub_efi_block_io): New structure.
50378 (grub_efi_block_io_t): New type.
50379
50380 * include/grub/misc.h (grub_stop): Removed.
50381 (grub_exit): New prototype.
50382 (grub_abort): Likewise.
50383
50384 * include/grub/disk.h (enum grub_disk_dev_id): Added
50385 GRUB_DISK_DEVICE_EFIDISK_ID.
50386
50387 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50388 disk/efi/efidisk.c.
50389 (kernel_syms.lst): Remove the target if an error occurs.
50390
50391 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50392
50393 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50394 as it was simply too buggy.
50395
50396 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50397
50398 * kern/misc.c (grub_lltoa): New function.
50399 (grub_vsprintf): Added support for the long long suffix,
50400 i.e. "ll".
50401
50402 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50403
50404 * Makefile.in (LDFLAGS): Add variable.
50405 (LD): Remove variable.
50406 * configure.ac: Add -m32 to LDFLAGS.
50407 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50408 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50409 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50410 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50411 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50412 variables.
50413 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50414 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50415 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50416
50417 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50418
50419 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50420 length for unknown glyph.
50421
50422 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50423
50424 Add support for pre-loaded modules into the EFI port.
50425
50426 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50427 completely. Accept one more argument DIR. The caller has changed.
50428
50429 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50430
50431 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50432 (grub_efi_loaded_image_guid): New variable.
50433 (grub_efi_get_loaded_image): New function.
50434 (grub_arch_modules_addr): Likewise.
50435
50436 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50437 prototype.
50438
50439 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50440 (struct grub_efi_loaded_image): New structure.
50441 (grub_efi_loaded_image_t): New type.
50442
50443 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50444
50445 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50446 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50447 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50448
50449 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50450
50451 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50452
50453 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50454
50455 * DISTLIST: Added include/grub/efi/console.h,
50456 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50457 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50458
50459 * include/grub/efi/console.h: New file.
50460 * include/grub/efi/time.h: Likewise.
50461 * include/grub/i386/efi/kernel.h: Likewise.
50462 * kern/efi/init.c: Likewise.
50463 * kern/efi/mm.c: Likewise.
50464 * term/efi/console.c: Likewise.
50465
50466 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50467 (grub_stop): Removed.
50468 (grub_get_rtc): Likewise.
50469 (grub_machine_init): Simply call grub_efi_init.
50470 (grub_machine_fini): Call grub_efi_fini.
50471
50472 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50473 (grub_efi_output_string): Removed.
50474 (grub_efi_stall): New function.
50475 (grub_stop): Likewise.
50476 (grub_get_rtc): Likewise.
50477
50478 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50479 (grub_efi_stall): New prototype.
50480 (grub_efi_allocate_pages): Likewise.
50481 (grub_efi_free_pages): Likewise.
50482 (grub_efi_get_memory_map): Likewise.
50483 (grub_efi_mm_init): Likewise.
50484 (grub_efi_mm_fini): Likewise.
50485 (grub_efi_init): Likewise.
50486 (grub_efi_fini): Likewise.
50487
50488 * include/grub/i386/efi/time.h: Do not include
50489 grub/symbol.h. Include grub/efi/time.h.
50490 (GRUB_TICKS_PER_SECOND): Removed.
50491 (grub_get_rtc): Likewise.
50492
50493 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50494 Added padding. The EFI spec is buggy.
50495 (GRUB_EFI_BLACK): New macro.
50496 (GRUB_EFI_BLUE): Likewise.
50497 (GRUB_EFI_GREEN): Likewise.
50498 (GRUB_EFI_CYAN): Likewise.
50499 (GRUB_EFI_RED): Likewise.
50500 (GRUB_EFI_MAGENTA): Likewise.
50501 (GRUB_EFI_BROWN): Likewise.
50502 (GRUB_EFI_LIGHTGRAY): Likewise.
50503 (GRUB_EFI_BRIGHT): Likewise.
50504 (GRUB_EFI_DARKGRAY): Likewise.
50505 (GRUB_EFI_LIGHTBLUE): Likewise.
50506 (GRUB_EFI_LIGHTGREEN): Likewise.
50507 (GRUB_EFI_LIGHTCYAN): Likewise.
50508 (GRUB_EFI_LIGHTRED): Likewise.
50509 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50510 (GRUB_EFI_YELLOW): Likewise.
50511 (GRUB_EFI_WHITE): Likewise.
50512 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50513 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50514 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50515 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50516 (GRUB_EFI_BACKGROUND_RED): Likewise.
50517 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50518 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50519 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50520 (GRUB_EFI_TEXT_ATTR): Likewise.
50521
50522 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50523 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50524 (kernel_mod_HEADERS): Added efi/time.h.
50525
50526 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50527
50528 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50529 include/grub/efi/api.h, include/grub/efi/console_control.h,
50530 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50531 include/grub/i386/efi/time.h, kern/efi/efi.c,
50532 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50533 and util/i386/efi/grub-mkimage.c.
50534
50535 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50536
50537 * genmk.rb (PModule#rule): Do not export symbols if
50538 #{prefix}_EXPORTS is set to "no".
50539
50540 * conf/i386-efi.mk: New file.
50541 * conf/i386-efi.rmk: Likewise.
50542 * include/grub/efi/api.h: Likewise.
50543 * include/grub/efi/console_control.h: Likewise.
50544 * include/grub/efi/efi.h: Likewise.
50545 * include/grub/efi/pe32.h: Likewise.
50546 * include/grub/i386/efi/time.h: Likewise.
50547 * kern/efi/efi.c: Likewise.
50548 * kern/i386/efi/init.c: Likewise.
50549 * kern/i386/efi/startup.S: Likewise.
50550 * util/i386/efi/grub-mkimage.c: Likewise.
50551
50552 2006-04-17 Marco Gerards <marco@gnu.org>
50553
50554 * include/grub/script.h: Include <grub/parser.h> and
50555 "grub_script.tab.h".
50556 (struct grub_lexer_param): New struct.
50557 (struct grub_parser_param): Likewise.
50558 (grub_script_create_arglist): Pass the state in an argument.
50559 (grub_script_add_arglist): Likewise.
50560 (grub_script_create_cmdline): Likewise.
50561 (grub_script_create_cmdblock): Likewise.
50562 (grub_script_create_cmdif): Likewise.
50563 (grub_script_create_cmdmenu): Likewise.
50564 (grub_script_add_cmd): Likewise.
50565 (grub_script_arg_add): Likewise.
50566 (grub_script_lexer_ref): Likewise.
50567 (grub_script_lexer_deref): Likewise.
50568 (grub_script_lexer_record_start): Likewise.
50569 (grub_script_lexer_record_stop): Likewise.
50570 (grub_script_mem_record): Likewise.
50571 (grub_script_mem_record_stop): Likewise.
50572 (grub_script_malloc): Likewise.
50573 (grub_script_yylex): Likewise.
50574 (grub_script_yyparse): Likewise.
50575 (grub_script_yyerror): Likewise.
50576 (grub_script_yylex): Likewise.
50577 (grub_script_lexer_init): Return the state.
50578
50579 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50580 (grub_script_lexer_done): Likewise.
50581 (grub_script_lexer_getline): Likewise.
50582 (grub_script_lexer_refs): Likewise.
50583 (script): Likewise.
50584 (newscript): Likewise.
50585 (record): Likewise.
50586 (recording): Likewise.
50587 (recordpos): Likewise.
50588 (recordlen): Likewise.
50589 (grub_script_lexer_init): Return the state instead of setting
50590 global variables.
50591 (grub_script_lexer_ref): Use the newly added argument for state
50592 instead of globals.
50593 (grub_script_lexer_deref): Likewise.
50594 (grub_script_lexer_record_start): Likewise.
50595 (grub_script_lexer_record_stop): Likewise.
50596 (recordchar): Likewise.
50597 (nextchar): Likewise.
50598 (grub_script_yylex2): Likewise.
50599 (grub_script_yylex): Likewise.
50600 (grub_script_yyerror): Likewise.
50601
50602 * normal/parser.y (func_mem): Removed variable.
50603 (menu_entry): Likewise.
50604 (err): Likewise.
50605 (%lex-param): New parser option.
50606 (%parse-param): Likewise.
50607 (script): Always return the AST.
50608 (argument): Pass the state around.
50609 (arguments): Likewise.
50610 (grubcmd): Likewise.
50611 (commands): Likewise.
50612 (function): Likewise.
50613 (menuentry): Likewise.
50614 (if_statement): Likewise.
50615 (if): Likewise.
50616
50617 * normal/script.c (grub_script_memused): Removed variable.
50618 (grub_script_parsed): Likewise.
50619 (grub_script_malloc): Added a state argument. Use that instead of
50620 global variables.
50621 (grub_script_mem_record): Likewise.
50622 (grub_script_mem_record_stop): Likewise.
50623 (grub_script_arg_add): Likewise.
50624 (grub_script_add_arglist): Likewise.
50625 (grub_script_create_cmdline): Likewise.
50626 (grub_script_create_cmdif): Likewise.
50627 (grub_script_create_cmdmenu): Likewise.
50628 (grub_script_add_cmd): Likewise.
50629 (grub_script_parse): Setup the state before calling the parser.
50630
50631 2006-04-16 Marco Gerards <marco@gnu.org>
50632
50633 * normal/command.c (grub_command_init): Remove the title command.
50634
50635 * normal/lexer.c (grub_script_yylex): Renamed from this...
50636 (grub_script_yylex2): ... to this.
50637 (grub_script_yylex): New function. Temporary
50638 introduced to filter some tokens.
50639 (grub_script_yyerror): Print a newline.
50640
50641 * normal/main.c (read_config_file): Output information about the
50642 lines that contain errors. Wait for a key after all lines have
50643 been processed. Don't return an empty menu.
50644
50645 * normal/parser.y (func_mem): Don't initialize.
50646 (menu_entry): Likewise.
50647 (err): New variable.
50648 (script): Don't return anything when an error was encountered.
50649 (ws, returns): Removed rules.
50650 (argument): Disabled concatenated variable support.
50651 (arguments): Remove explicit separators.
50652 (grubcmd): Likewise.
50653 (function): Likewise.
50654 (menuentry): Likewise.
50655 (if): Likewise.
50656 (commands): Likewise. Add error handling.
50657
50658 * normal/script.c (grub_script_create_cmdline): If
50659 `grub_script_parsed' is 0, assume the parser encountered an error.
50660
50661 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50662
50663 * configure.ac: Add support for EFI. Fix the typo
50664 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50665
50666 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50667
50668 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50669 foreign multibyte characters should be shown correctly.
50670
50671 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50672
50673 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50674 calculation.
50675 (read_config_file): Made it to close file before returning.
50676
50677 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50678
50679 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50680 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50681 video/i386/pc/vbefill.c.
50682
50683 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50684 video/i386/pc/vbefill.c.
50685
50686 * include/grub/video.h (grub_video_blit_format): New enum.
50687 (grub_video_mode_info): Added new member blit_format.
50688 (grub_video_get_blit_format): New function prototype.
50689
50690 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50691 function prototype.
50692 (grub_video_vbe_map_rgb): Likewise.
50693 (grub_video_vbe_unmap_color): Likewise.
50694
50695 * include/grub/i386/pc/vbeblit.h: New file.
50696
50697 * include/grub/i386/pc/vbefill.h: New file.
50698
50699 * video/video.c (grub_video_get_blit_format): New function.
50700 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50701 (grub_video_vbe_map_rgb): Likewise.
50702 (grub_video_vbe_unmap_color): Likewise.
50703
50704 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50705 optimized fills.
50706 (grub_video_vbe_blit_render_target): Changed to use more optimized
50707 blits.
50708 (grub_video_vbe_setup): Added detection for optimized settings.
50709 (grub_video_vbe_create_render_target): Likewise.
50710
50711 * video/i386/pc/vbeblit.c: New file.
50712
50713 * video/i386/pc/vbefill.c: New file.
50714
50715 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50716
50717 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50718 here...
50719
50720 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50721 parsing to support both hex and dec ranges. If filename was missing
50722 show usage information.
50723
50724 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50725
50726 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50727 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50728
50729 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50730 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50731 (video_mod_SOURCES): Added.
50732 (video_mod_CFLAGS): Likewise.
50733 (video_mod_LDFLAGS): Likewise.
50734 (gfxterm_mod_SOURCES): Likewise.
50735 (gfxterm_mod_CFLAGS): Likewise.
50736 (gfxterm_mod_LDFLAGS): Likewise.
50737 (videotest_mod_SOURCES): Likewise.
50738 (videotest_mod_CFLAGS): Likewise.
50739 (videotest_mod_LDFLAGS): Likewise.
50740 (vesafb_mod_SOURCES): Removed.
50741 (vesafb_mod_CFLAGS): Likewise.
50742 (vesafb_mod_LDFLAGS): Likewise.
50743 (vga_mod_SOURCES): Likewise.
50744 (vga_mod_CFLAGS): Likewise.
50745 (vga_mod_LDFLAGS): Likewise.
50746
50747 * commands/videotest.c: New file.
50748
50749 * font/manager.c (fill_with_default_glyph): Modified to use
50750 grub_font_glyph.
50751 (grub_font_get_glyph): Likewise.
50752 (fontmanager): Renamed from this...
50753 (font_manager): ... to this.
50754
50755 * include/grub/font.h (grub_font_glyph): Added new structure.
50756 (grub_font_get_glyph): Modified to use grub_font_glyph.
50757
50758 * include/grub/misc.h (grub_abs): Added as inline function.
50759
50760 * include/grub/video.h: New file.
50761
50762 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50763 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50764 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50765 (grub_vbe_get_controller_info): Renamed from this...
50766 (grub_vbe_bios_get_controller_info): ... to this.
50767 (grub_vbe_get_mode_info): Renamed from this...
50768 (grub_vbe_bios_get_mode_info): ... to this.
50769 (grub_vbe_set_mode): Renamed from this...
50770 (grub_vbe_bios_set_mode): ... to this.
50771 (grub_vbe_get_mode): Renamed from this...
50772 (grub_vbe_bios_get_mode): ... to this.
50773 (grub_vbe_set_memory_window): Renamed from this...
50774 (grub_vbe_bios_set_memory_window): ... to this.
50775 (grub_vbe_get_memory_window): Renamed from this...
50776 (grub_vbe_bios_get_memory_window): ... to this.
50777 (grub_vbe_set_scanline_length): Renamed from this...
50778 (grub_vbe_set_scanline_length): ... to this.
50779 (grub_vbe_get_scanline_length): Renamed from this...
50780 (grub_vbe_bios_get_scanline_length): ... to this.
50781 (grub_vbe_set_display_start): Renamed from this...
50782 (grub_vbe_bios_set_display_start): ... to this.
50783 (grub_vbe_get_display_start): Renamed from this...
50784 (grub_vbe_bios_get_display_start): ... to this.
50785 (grub_vbe_set_palette_data): Renamed from this...
50786 (grub_vbe_bios_set_palette_data): ... to this.
50787 (grub_vbe_set_pixel_rgb): Removed.
50788 (grub_vbe_set_pixel_index): Likewise.
50789
50790 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50791 from this...
50792 (grub_vbe_bios_get_controller_info): ... to this.
50793 (grub_vbe_get_mode_info): Renamed from this...
50794 (grub_vbe_bios_get_mode_info): ... to this.
50795 (grub_vbe_set_mode): Renamed from this...
50796 (grub_vbe_bios_set_mode): ... to this.
50797 (grub_vbe_get_mode): Renamed from this...
50798 (grub_vbe_bios_get_mode): ... to this.
50799 (grub_vbe_set_memory_window): Renamed from this...
50800 (grub_vbe_bios_set_memory_window): ... to this.
50801 (grub_vbe_get_memory_window): Renamed from this...
50802 (grub_vbe_bios_get_memory_window): ... to this.
50803 (grub_vbe_set_scanline_length): Renamed from this...
50804 (grub_vbe_set_scanline_length): ... to this.
50805 (grub_vbe_get_scanline_length): Renamed from this...
50806 (grub_vbe_bios_get_scanline_length): ... to this.
50807 (grub_vbe_set_display_start): Renamed from this...
50808 (grub_vbe_bios_set_display_start): ... to this.
50809 (grub_vbe_get_display_start): Renamed from this...
50810 (grub_vbe_bios_get_display_start): ... to this.
50811 (grub_vbe_set_palette_data): Renamed from this...
50812 (grub_vbe_bios_set_palette_data): ... to this.
50813 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50814 getting corrupted after calling it. Added more pushes and pops.
50815 (grub_vbe_bios_set_mode): Likewise.
50816 (grub_vbe_bios_get_mode): Likewise.
50817 (grub_vbe_bios_get_memory_window): Likewise.
50818 (grub_vbe_bios_set_scanline_length): Likewise.
50819 (grub_vbe_bios_get_scanline_length): Likewise.
50820 (grub_vbe_bios_get_display_start): Likewise.
50821 (grub_vbe_bios_set_palette_data): Likewise.
50822
50823 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50824 (cl_insert): Likewise.
50825 (cl_delete): Likewise.
50826
50827 * term/gfxterm.c: New file.
50828
50829 * term/i386/pc/vesafb.c: Removed file.
50830
50831 * video/video.c: New file.
50832
50833 * video/i386/pc/vbe.c (real2pm): Added new function.
50834 (grub_video_vbe_draw_pixel): Likewise.
50835 (grub_video_vbe_get_video_ptr): Likewise.
50836 (grub_video_vbe_get_pixel): Likewise
50837 (grub_video_vbe_init): Likewise.
50838 (grub_video_vbe_fini): Likewise.
50839 (grub_video_vbe_setup): Likewise.
50840 (grub_video_vbe_get_info): Likewise.
50841 (grub_video_vbe_set_palette): Likewise.
50842 (grub_video_vbe_get_palette): Likewise.
50843 (grub_video_vbe_set_viewport): Likewise.
50844 (grub_video_vbe_get_viewport): Likewise.
50845 (grub_video_vbe_map_color): Likewise.
50846 (grub_video_vbe_map_rgb): Likewise.
50847 (grub_video_vbe_map_rgba): Likewise.
50848 (grub_video_vbe_unmap_color): Likewise.
50849 (grub_video_vbe_fill_rect): Likewise.
50850 (grub_video_vbe_blit_glyph): Likewise.
50851 (grub_video_vbe_blit_bitmap): Likewise.
50852 (grub_video_vbe_blit_render_target): Likewise.
50853 (grub_video_vbe_scroll): Likewise.
50854 (grub_video_vbe_swap_buffers): Likewise.
50855 (grub_video_vbe_create_render_target): Likewise.
50856 (grub_video_vbe_delete_render_target): Likewise.
50857 (grub_video_vbe_set_active_render_target): Likewise.
50858 (grub_vbe_set_pixel_rgb): Remove function.
50859 (grub_vbe_set_pixel_index): Likewise.
50860 (index_color_mode): Remove static variable.
50861 (active_mode): Likewise.
50862 (framebuffer): Likewise.
50863 (bytes_per_scan_line): Likewise.
50864 (grub_video_vbe_adapter): Added new static variable.
50865 (framebuffer): Likewise.
50866 (render_target): Likewise.
50867 (initial_mode): Likewise.
50868 (mode_in_use): Likewise.
50869 (mode_list): Likewise.
50870
50871 2006-03-10 Marco Gerards <marco@gnu.org>
50872
50873 * configure.ac (AC_INIT): Bumped to 1.93.
50874
50875 * DISTLIST: Added `include/grub/hfs.h'.
50876
50877 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50878
50879 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50880 18H, which might help the BIOS falling back to next boot media.
50881
50882 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50883
50884 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50885 Poe Chen <poe.poechen@gmail.com>.
50886
50887 2006-01-17 Marco Gerards <marco@gnu.org>
50888
50889 * include/grub/normal.h: Include <grub/script.h>.
50890 (grub_command_list): Removed struct.
50891 (grub_command_list_t): Removed type.
50892 (grub_menu_entry): Remove members `num' and `command_list'. Add
50893 members `commands' and `sourcecode'.
50894 * include/grub/script.h: Add inclusion guards.
50895 (grub_script_cmd_menuentry): New struct.
50896 (grub_script_execute_menuentry): New prototype.
50897 (grub_script_lexer_record_start): Likewise.
50898 (grub_script_lexer_record_stop): Likewise.
50899 * normal/execute.c (grub_script_execute_menuentry): New function.
50900 * normal/lexer.c (record, recording, recordpos, recordlen): New
50901 variables.
50902 (grub_script_lexer_record_start): New function.
50903 (grub_script_lexer_record_stop): Likewise.
50904 (recordchar): Likewise.
50905 (nextchar): Likewise.
50906 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50907 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50908 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50909 (current_menu): New variable.
50910 (free_menu): Mainly rewritten.
50911 (grub_normal_menu_addentry): New function.
50912 (read_config_file): Rewritten.
50913 * normal/menu.c (run_menu_entry): Mainly rewritten.
50914 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50915 the menu entry.
50916 (run): Mainly rewritten.
50917 * normal/parser.y (menu_entry): New variable.
50918 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50919 (menuentry): New rule.
50920 (command): Add `menuentry'.
50921 (if_statement): Allow additional returns before `fi'.
50922 * normal/script.c (grub_script_create_cmdmenu): New function.
50923
50924 2006-01-03 Marco Gerards <marco@gnu.org>
50925
50926 * INSTALL: GNU Bison is required.
50927 * configure.ac: Rewritten the test to detect Bison.
50928 * Makefile.in (YACC): New variable. Reported by Xun Sun
50929 <xun.sun.cn@gmail.com>.
50930
50931 2006-01-03 Marco Gerards <marco@gnu.org>
50932
50933 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50934 the HFS+ filesystem to filesystem blocks.
50935 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50936 GCC warning is silenced.
50937
50938 2006-01-03 Marco Gerards <marco@gnu.org>
50939
50940 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50941 read from disk from big endian to host byte order.
50942
50943 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50944
50945 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50946 documentation.
50947 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50948 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50949 embedded HFS+ filesystem.
50950 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50951 (grub_hfs_sblock): Move from here...
50952 * include/grub/hfs.h: To here... New file.
50953 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50954 documentation.
50955 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50956 New macros.
50957 (grub_hfsplus_volheader): Change type of member `magic' to
50958 `grub_uint16_t'.
50959 (grub_hfsplus_data): Add new member `embedded_offset'.
50960 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50961 returned block.
50962 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50963 Calculate the offset.
50964
50965 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50966
50967 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50968 Removed.
50969 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50970
50971 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50972
50973 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50974 ENV->NAME is NULL after allocating ENV->VALUE.
50975
50976 2005-12-25 Marco Gerards <marco@gnu.org>
50977
50978 * kern/env.c (grub_env_set): Rewritten the error handling code.
50979
50980 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50981
50982 * geninit.sh: Made more robust, and more portable.
50983
50984 2005-12-25 Marco Gerards <marco@gnu.org>
50985
50986 Add support for Apple HFS+ filesystems.
50987
50988 * fs/hfsplus.c: New file.
50989
50990 * DISTLIST: Added `fs/hfsplus.c'.
50991
50992 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
50993 (hfsplus_mod_SOURCES): New variable.
50994 (hfsplus_mod_CFLAGS): Likewise.
50995 (hfsplus_mod_LDFLAGS): Likewise.
50996 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
50997 (grub_setup_SOURCES): Likewise.
50998 (grub_mkdevicemap_SOURCES): Likewise.
50999 (grub_emu_SOURCES): Likewise.
51000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51001
51002 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51003
51004 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51005
51006 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51007
51008 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51009 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51010 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51011 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51012 normal/lexer.c, normal/parser.y, normal/script.c, and
51013 partmap/gpt.c.
51014 Removed kern/sparc64/cache.c.
51015
51016 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51017 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51018 grub_emu_init.c.
51019
51020 * configure.ac (AC_INIT): Bumped to 1.92.
51021
51022 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51023
51024 * kern/err.c (grub_error_push): Added new function to support error
51025 stacks.
51026 (grub_error_pop): Likewise.
51027 (grub_error_stack_items): New local variable to support error stacks.
51028 (grub_error_stack_pos): Likewise.
51029 (grub_error_stack_assert): Likewise.
51030 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51031 stack depth.
51032 (grub_print_error): Added support to print errors from error stack.
51033
51034 * include/grub/err.h (grub_error_push): Added function prototype.
51035 (grub_error_pop): Likewise.
51036
51037 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51038
51039 * configure.ac: Accept `powerpc64' as host_cpu.
51040 (amd64): Rename to `biarch32'.
51041
51042 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51043 non-cacheline-aligned addresses.
51044
51045 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51046 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51047 if `size' is non-zero.
51048
51049 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51050
51051 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51052 and `cd' to make sure the filename is not prefixed with a
51053 directory name.
51054 (pkgdata_MODULES): Add `gpt.mod'.
51055 (gpt_mod_SOURCES): New variable.
51056 (gpt_mod_CFLAGS): Likewise.
51057 (gpt_mod_LDFLAGS): Likewise.
51058
51059 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51060
51061 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51062 New macro.
51063
51064 * partmap/gpt.c: New file.
51065
51066 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51067 GPT partition map is detected.
51068
51069 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51070
51071 * commands/i386/pc/play.c: New file.
51072 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51073 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51074 macros.
51075
51076 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51077
51078 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51079 ((unused))' to silence gcc warning.
51080
51081 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51082
51083 * configure.ac: Correct `AC_PROG_YACC' test.
51084
51085 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51086
51087 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51088 check before installing files.
51089
51090 2005-11-22 Mike Small <smallm@panix.com>
51091
51092 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51093 number regex so multidigit numbers are recognized correctly.
51094
51095 2005-11-22 Mike Small <smallm@panix.com>
51096
51097 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51098 debugging message before attempting to claim memory.
51099 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51100 multiple addresses in case of failure.
51101
51102 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51103
51104 * term/tparm.c (get_space): Remove empty `if' statement.
51105
51106 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51107
51108 * kern/parser.c (check_varstate): Rename `state' to 's'.
51109
51110 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51111
51112 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51113 variable definitions to the beginning of each function. Sort stack
51114 variables by size.
51115 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51116 `buf' argument to `char *'.
51117
51118 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51119
51120 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51121 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51122 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51123 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51124 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51125 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51126 configfile.mod, search.mod, gzio.mod and test.mod.
51127 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51128 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51129 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51130 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51131 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51132 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51133 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51134 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51135 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51136 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51137 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51138 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51139 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51140 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51141 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51142 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51143 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51144 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51145 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51146 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51147 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51148 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51149 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51150
51151 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51152 `grep --include'.
51153 (pkgdata_MODULES): Add test.mod.
51154
51155 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51156
51157 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51158 appending to variables with "+=".
51159 (PModule): Use full pathname to generate *.lst filenames.
51160
51161 * Makefile.in: Fixed list rules moved from genmk.rb.
51162 (.DELETE_ON_ERROR): New special target.
51163 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51164
51165 * conf/i386-pc.rmk: Include conf/common.mk.
51166 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51167 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51168 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51169 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51170 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51171 configfile.mod, search.mod, gzio.mod and test.mod.
51172 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51173 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51174 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51175 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51176 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51177 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51178 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51179 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51180 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51181 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51182 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51183 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51184 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51185 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51186 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51187 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51188 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51189 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51190 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51191 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51192 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51193 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51194 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51195 here...
51196 * conf/common.rmk: ... to here. New file.
51197
51198 * conf/common.mk: New file.
51199
51200 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51201
51202 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51203 (grub_script.tab.c): ... here.
51204
51205 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51206 (grub_script.tab.c): ... here.
51207
51208 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51209 (grub_script.tab.c): ... here.
51210
51211 * normal/command.c (grub_command_find): Fixed a memory leak of
51212 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51213
51214 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51215
51216 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51217 "@" which marks the start of a comment on ARM.
51218 (VARIABLE): Likewise.
51219
51220 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51221
51222 Add support for Linux/ADFS partition tables.
51223
51224 * partmap/acorn.c: New file.
51225
51226 * include/grub/acorn_filecore.h: Likewise.
51227
51228 * DISTLIST: Added `partmap/acorn.c' and
51229 `include/grub/acorn_filecore.h'.
51230
51231 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51232 `partmap/acorn.c'.
51233 (pkgdata_MODULES): Add `acorn.mod'.
51234 (acorn_mod_SOURCES): New variable.
51235 (acorn_mod_CFLAGS): Likewise.
51236
51237 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51238 `partmap/acorn.c'.
51239 (pkgdata_MODULES): Add `acorn.mod'.
51240 (acorn_mod_SOURCES): New variable.
51241 (acorn_mod_CFLAGS): Likewise.
51242
51243 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51244 (pkgdata_MODULES): Add `acorn.mod'.
51245 (acorn_mod_SOURCES): New variable.
51246 (acorn_mod_CFLAGS): Likewise.
51247 (acorn_mod_LDFLAGS): Likewise.
51248
51249 * include/types.h (grub_disk_addr_t): New typedef.
51250
51251 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51252
51253 * geninit.sh: New file.
51254
51255 * geninitheader.sh: Likewise.
51256
51257 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51258 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51259 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51260 * commands/configfile.c (grub_configfile_init)
51261 (grub_configfile_fini): Likewise.
51262 * commands/default.c (grub_default_init, grub_default_fini):
51263 Likewise.
51264 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51265 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51266 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51267 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51268 Likewise.
51269 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51270 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51271 Likewise.
51272 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51273 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51274 Likewise.
51275 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51276 Likewise.
51277 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51278 Likewise.
51279 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51280 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51281 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51282 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51283 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51284 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51285 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51286 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51287 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51288 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51289 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51290 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51291 * partmap/amiga.c (grub_amiga_partition_map_init)
51292 (grub_amiga_partition_map_fini): Likewise.
51293 * partmap/apple.c (grub_apple_partition_map_init)
51294 (grub_apple_partition_map_fini): Likewise.
51295 * partmap/pc.c (grub_pc_partition_map_init)
51296 (grub_pc_partition_map_fini): Likewise.
51297 * partmap/sun.c (grub_sun_partition_map_init,
51298 grub_sun_partition_map_fini): Likewise.
51299 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51300 Likewise.
51301
51302 * util/grub-emu.c: Include <grub_modules_init.h>.
51303 (main): Don't initialize and de-initialize any modules directly,
51304 use `grub_init_all' and `grub_fini_all' instead.
51305
51306 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51307 `grub_vesafb_mod_init'.
51308 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51309 all users.
51310 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51311 `grub_vga_mod_init'. Updated all users.
51312 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51313
51314 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51315 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51316 rules.
51317
51318 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51319 Generate a function to initialize the module in utilities.
51320 Updated all callers.
51321 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51322 initialize the module in utilities. Updated all callers.
51323
51324 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51325
51326 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51327 escape sequence and a literal ^L to clear the screen.
51328
51329 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51330 when returning from Open Firmware.
51331
51332 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51333
51334 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51335 (grub_ofconsole_height): Likewise.
51336 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51337 manually insert a '\n'.
51338 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51339 `grub_ofconsole_height'. Return early if these are already set.
51340
51341 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51342
51343 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51344 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51345 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51346 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51347 and `normal/script.c'.
51348 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51349 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51350 (test_mod_SOURCES): New variable.
51351 (test_mod_CFLAGS): Likewise.
51352 (test_mod_LDFLAGS): Likewise.
51353 (pkgdata_MODULES): Add `test.mod'.
51354 (grub_script.tab.c): New rule.
51355 (grub_script.tab.h): Likewise.
51356
51357 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51358
51359 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51360 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51361 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51362 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51363 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51364 (test_mod_SOURCES): New variable.
51365 (test_mod_CFLAGS): Likewise.
51366 (pkgdata_MODULES): Add `test.mod'.
51367 (grub_script.tab.c): New rule.
51368 (grub_script.tab.h): Likewise.
51369
51370 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51371
51372 Add initial scripting support.
51373
51374 * commands/test.c: New file.
51375 * include/grub/script.h: Likewise.
51376 * normal/execute.c: Likewise.
51377 * normal/function.c: Likewise.
51378 * normal/lexer.c: Likewise.
51379 * normal/parser.y: Likewise.
51380 * normal/script.c: Likewise.
51381
51382 * configure.ac: Add `AC_PROG_YACC' test.
51383
51384 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51385 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51386 `normal/function.c' and `normal/script.c'.
51387 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51388 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51389 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51390 variables.
51391 (pkgdata_MODULES): Add `test.mod'.
51392 (grub_script.tab.c): New rule.
51393 (grub_script.tab.h): Likewise.
51394
51395 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51396
51397 * include/grub/normal.h (grub_test_init): New prototype.
51398 (grub_test_fini): Likewise.
51399
51400 * normal/command.c: Include <grub/script.h>.
51401 (grub_command_execute): Rewritten.
51402
51403 * util/grub-emu.c (main): Call `grub_test_init' and
51404 `grub_test_fini'.
51405
51406 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51407
51408 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51409 to 0.
51410 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51411 there are no pending characters.
51412
51413 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51414
51415 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51416 `grub_strndup' to drop device arguments. Replace unnecessary
51417 `grub_strndup' with `grub_strdup'.
51418
51419 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51420
51421 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51422 `debug' environment variable has been set.
51423
51424 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51425
51426 * Makefile.in (install-local): Use $(DATA).
51427 (uninstall): Likewise.
51428 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51429 (sbin_UTILITIES): ... to here.
51430 (sbin_SCRIPTS): New variable.
51431 (grub_install_SOURCES): New variable.
51432 * util/powerpc/ieee1275/grub-install.in: New file.
51433 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51434 variable.
51435 (add_segments): Call `grub_util_get_path'.
51436
51437 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51438
51439 From Timothy Baldwin:
51440 * commands/ls.c (grub_ls_list_files): Close FILE with
51441 grub_file_close.
51442 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51443
51444 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51445
51446 * include/grub/parser.h: New file.
51447
51448 * kern/parser.c: Likewise.
51449
51450 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51451 (grub_setup_SOURCES): Likewise.
51452 (grub_probefs_SOURCES): Likewise.
51453 (grub_emu_SOURCES): Likewise.
51454 (kernel_img_HEADERS): Add `parser.h'.
51455
51456 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51457 (grub_emu_SOURCES): Add `kern/parser.c'.
51458 (grubof_SOURCES): Likewise.
51459
51460 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51461 (grubof_SOURCES): Add `kern/parser.c'.
51462
51463 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51464
51465 * kern/misc.c (grub_split_cmdline): Removed function.
51466
51467 * kern/rescue.c: Include <grub/parser.h>.
51468 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51469 of `grub_split_cmdline'.
51470
51471 * normal/command.c: Include <grub/parser.h>.
51472 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51473 of `grub_split_cmdline'.
51474
51475 * normal/completion.c: Include <grub/parser.h>.
51476 (cmdline_state): New variable.
51477 (iterate_dir): End the filename with a quote depending on the
51478 command line state.
51479 (get_state): new function.
51480 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51481 split the arguments and determine the current argument. When the
51482 argument string is not quoted, escape all spaces.
51483
51484 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51485
51486 * normal/sparc64/setjmp.S: New file.
51487
51488 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51489
51490 * include/grub/sparc64/libgcc.h: New file.
51491 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51492 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51493 normal/sparc64/setjmp.c.
51494
51495 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51496
51497 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51498 * kern/sparc64/cache.S: New file.
51499 * kern/sparc64/cache.c: Removed.
51500 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51501 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51502 -mtune=ultrasparc.
51503 (COMMON_LDFLAGS): Add -melf64_sparc.
51504 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51505 (grubof_SOURCES): Use cache.S instead of cache.c.
51506 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51507 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51508 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51509 commented though.
51510 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51511 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51512 (linux_mod_CFLAGS): Commented out.
51513 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51514 out because module isn't built.
51515 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51516 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51517 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51518 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51519 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51520 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51521 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51522 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51523 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51524 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51525 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51526 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51527 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51528 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51529
51530 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51531
51532 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51533 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51534 longer, because HFS should not be used on PC.
51535
51536 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51537
51538 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51539 consistently within the loop.
51540
51541 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51542
51543 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51544 directory can not be read.
51545
51546 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51547
51548 * configure.ac (AC_INIT): Increase the version number to 1.91.
51549
51550 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51551 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51552 term/i386/pc/serial.c.
51553
51554 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51555
51556 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51557 file size must be permitted.
51558
51559 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51560 between %ah and %al.
51561
51562 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51563
51564 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51565 grub_uint64_t.
51566 Call the hook with a NUL-terminated filename.
51567 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51568 grub_cpu_to_be32.
51569
51570 * kern/term.c (cursor_state): New variable.
51571 (grub_term_set_current): Reset the cursor state on a new
51572 terminal.
51573 (grub_setcursor): Rewritten to use CURSOR_STATE.
51574 (grub_getcursor): New function.
51575
51576 * include/grub/term.h (grub_getcursor): New prototype.
51577
51578 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51579 integers on ARM. Reported by Timothy Baldwin
51580 <T.E.Baldwin99@members.leeds.ac.uk>.
51581
51582 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51583
51584 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51585 allocated.
51586 (grub_sfs_dir): Likewise.
51587
51588 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51589
51590 Add support for the SFS filesystem.
51591
51592 * fs/sfs.c: New file.
51593
51594 * DISTLIST: Added `fs/sfs.c'.
51595
51596 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51597 (grub_probefs_SOURCES): Likewise.
51598 (grub_emu_SOURCES): Likewise.
51599 (pkgdata_MODULES): Add `sfs.mod'.
51600 (sfs_mod_SOURCES): New variable.
51601 (sfs_mod_CFLAGS): Likewise.
51602 (sfs_mod_LDFLAGS): Likewise.
51603
51604 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51605 (pkgdata_MODULES): Add `sfs.mod'.
51606 (sfs_mod_SOURCES): New variable.
51607 (sfs_mod_CFLAGS): Likewise.
51608
51609 * util/grub-emu.c (main): Call `grub_sfs_init' and
51610 `grub_sfs_fini'.
51611
51612 * include/grub/fs.h (grub_sfs_init): New prototype.
51613 (grub_sfs_fini): Likewise.
51614
51615 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51616
51617 Add support for the AFFS filesystem.
51618
51619 * fs/affs.c: New file.
51620
51621 * DISTLIST: Added `fs/affs.c'.
51622
51623 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51624 (grub_probefs_SOURCES): Likewise.
51625 (grub_emu_SOURCES): Likewise.
51626 (pkgdata_MODULES): Add `affs.mod'.
51627 (affs_mod_SOURCES): New variable.
51628 (affs_mod_CFLAGS): Likewise.
51629 (affs_mod_LDFLAGS): Likewise.
51630
51631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51632 (pkgdata_MODULES): Add `affs.mod'.
51633 (affs_mod_SOURCES): New variable.
51634 (affs_mod_CFLAGS): Likewise.
51635
51636 * util/grub-emu.c (main): Call `grub_affs_init' and
51637 `grub_affs_fini'.
51638
51639 * include/grub/fs.h (grub_affs_init): New prototype.
51640 (grub_affs_fini): Likewise.
51641
51642 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51643
51644 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51645
51646 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51647
51648 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51649 `-m32' to CFLAGS.
51650
51651 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51652 linking.
51653
51654 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51655 (COMMON_LDFLAGS): New variable.
51656 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51657 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51658 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51659 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51660 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51661 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51662 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51663 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51664 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51665 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51666 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51667 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51668 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51669 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51670 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51671 variables.
51672 (normal_mod_ASFLAGS): Add `-m32'.
51673
51674 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51675 (grub_host_size_t, grub_host_ssize_t): New types.
51676 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51677 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51678 `GRUB_HOST_SIZEOF_VOID_P'.
51679
51680 * include/grub/kernel.h (struct grub_module_header): Type of
51681 member offset changed to `grub_host_off_t'. Type of member size
51682 changed to `grub_host_size_t'.
51683 (struct grub_module_info): Type of member offset changed to
51684 `grub_host_off_t'. Type of member size changed to
51685 `grub_host_size_t'.
51686
51687 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51688
51689 Make GRUB's kernel compliant to Multiboot Specification.
51690
51691 * kern/i386/pc/startup.S (multiboot_header): New label.
51692 (multiboot_entry): Likewise.
51693 (multiboot_trampoline): Likewise.
51694
51695 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51696 Increased to 0x4A0.
51697
51698 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51699 put parentheses after a question mark.
51700 [!GRUB_UTIL] (my_mod): New variable.
51701
51702 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51703
51704 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51705
51706 Adds support for the XFS filesystem. Btrees are not supported
51707 yet.
51708
51709 * fs/xfs.c: New file.
51710
51711 * DISTLIST: Added `fs/xfs.c'.
51712
51713 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51714 (grub_probefs_SOURCES): Likewise.
51715 (grub_emu_SOURCES): Likewise.
51716 (pkgdata_MODULES): Add `xfs.mod'.
51717 (xfs_mod_SOURCES): New variable.
51718 (xfs_mod_CFLAGS): Likewise.
51719
51720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51721 (pkgdata_MODULES): Add `xfs.mod'.
51722 (xfs_mod_SOURCES): New variable.
51723 (xfs_mod_CFLAGS): Likewise.
51724
51725 * util/grub-emu.c (main): Call `grub_xfs_init' and
51726 `grub_xfs_fini'.
51727
51728 * include/grub/fs.h (grub_xfs_init): New prototype.
51729 (grub_xfs_fini): Likewise.
51730
51731
51732 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51733
51734 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51735 color modes, allow greater than 16 colors to be configured as
51736 a default palette.
51737
51738 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51739
51740 * normal/completion.c (complete_arguments): Add the qualifier
51741 const into OPTIONS.
51742
51743 From Omniflux <omniflux+lists@omniflux.com>:
51744 * include/grub/terminfo.h: New file.
51745 * include/grub/tparm.h: Likewise.
51746 * include/grub/i386/pc/serial.h: Likewise.
51747 * term/terminfo.c: Likewise.
51748 * term/tparm.c: Likewise.
51749 * term/i386/pc/serial.c: Likewise.
51750 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51751 serial.mod.
51752 (terminfo_mod_SOURCES): New variable.
51753 (terminfo_mod_CFLAGS): Likewise.
51754 (serial_mod_SOURCES): Likewise.
51755 (serial_mod_CFLAGS): Likewise.
51756
51757 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51758
51759 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51760 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51761 and kern/powerpc/ieee1275/cmain.c, respectively.
51762
51763 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51764 * kern/powerpc/ieee1275/crt0.S: ... here.
51765
51766 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51767 * kern/powerpc/ieee1275/cmain.c: ... here.
51768
51769 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51770 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51771 instead of boot/powerpc/ieee1275/crt0.S and
51772 boot/powerpc/ieee1275/cmain.c, respectively.
51773
51774 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51775 sectors. It was not used anyway.
51776
51777 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51778
51779 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51780 `unused parameter' warning.
51781
51782 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51783
51784 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51785 function.
51786 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51787 getcharwidth.
51788
51789 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51790
51791 * include/grub/normal.h (enum grub_completion_type): Added
51792 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51793
51794 * normal/cmdline.c (print_completion): Handle
51795 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51796 * normal/menu_entry.c (store_completion): Likewise.
51797
51798 * normal/completion.c (complete_arguments): New function.
51799 (grub_normal_do_completion): Call `complete_arguments' when the
51800 current words start with a dash.
51801
51802 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51803
51804 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51805 `gzio.mod' instead of `io.mod').
51806
51807 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51808
51809 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51810 (DISTDIRS): Added io and video.
51811 Rewrite the search routine to make an output consistently.
51812
51813 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51814 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51815 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51816 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51817 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51818 util/powerpc/ieee1275/misc.c.
51819
51820 * include/grub/gzio.h: New file.
51821 * io/gzio.c: Likewise.
51822
51823 * kern/file.c (grub_file_close): Call grub_device_close only if
51824 FILE->DEVICE is not NULL.
51825
51826 * include/grub/mm.h [!NULL] (NULL): New macro.
51827
51828 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51829
51830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51831 (pkgdata_MODULES): Added gzio.mod.
51832 (gzio_mod_SOURCES): New variable.
51833 (gzio_mod_CFLAGS): Likewise.
51834
51835 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51836 (pkgdata_MODULES): Added gzio.mod.
51837 (gzio_mod_SOURCES): New variable.
51838 (gzio_mod_CFLAGS): Likewise.
51839
51840 * commands/cat.c: Include grub/gzio.h.
51841 (grub_cmd_cat): Use grub_gzfile_open instead of
51842 grub_file_open.
51843
51844 * commands/cmp.c: Include grub/gzio.h.
51845 (grub_cmd_cmp): Use grub_gzfile_open instead of
51846 grub_file_open.
51847
51848 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51849 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51850 grub_file_open.
51851 (grub_rescue_cmd_module): Likewise.
51852
51853 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51854
51855 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51856 kern/sparc64/ieee1275/init.c because it contains _start.
51857 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51858
51859 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51860
51861 * configure.ac: Add support for sparc64 host with ieee1275
51862 firmware.
51863 * configure: Generated from configure.ac.
51864 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51865 instead of int.
51866 (grub_ofdisk_read): Likewise.
51867 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51868 pointers as (void *) to remove a warning.
51869 (grub_ofdisk_close): Likewise.
51870 (grub_ofdisk_read): Likewise.
51871 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51872 returns, so make it return void to remove a warning.
51873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51874 Corresponding prototype change.
51875 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51876 values, and cast the pointers as (void *) to remove a warning.
51877 (grub_mm_dump): Likewise.
51878 * conf/sparc64-ieee1275.mk: New file.
51879 * conf/sparc64-ieee1275.rmk: Likewise.
51880 * include/grub/sparc64/setjmp.h: Likewise.
51881 * include/grub/sparc64/types.h: Likewise.
51882 * include/grub/sparc64/ieee1275/console.h: Likewise.
51883 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51884 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51885 * include/grub/sparc64/ieee1275/time.h: Likewise.
51886 * kern/sparc64/cache.c: Likewise.
51887 * kern/sparc64/dl.c: Likewise.
51888 * kern/sparc64/ieee1275/init.c: Likewise.
51889 * kern/sparc64/ieee1275/openfw.c: Likewise.
51890
51891 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51892
51893 * util/console.c (grub_ncurses_putchar): If C is greater than
51894 0x7f, set C to a question mark.
51895 (grub_ncurses_getcharwidth): New function.
51896 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51897 getcharwidth.
51898
51899 * normal/menu.c (print_entry): Made aware of Unicode. First,
51900 convert TITLE to UCS-4, and predict the cursor position by
51901 grub_getcharwidth.
51902
51903 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51904 const to SRC.
51905 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51906
51907 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51908
51909 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51910 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51911 grub_strcat.
51912
51913 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51914 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51915 grub_strcpy and grub_strlen. Take it into account that a space
51916 character is inserted as a delimiter.
51917
51918 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51919
51920 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51921 invalid magic in the error.
51922
51923 * commands/search.c: New file.
51924
51925 * util/grub-emu.c (main): Call grub_search_init and
51926 grub_search_fini.
51927
51928 * kern/rescue.c (grub_rescue_print_disks): Removed.
51929 (grub_rescue_print_devices): New function.
51930 (grub_rescue_cmd_ls): Use grub_device_iterate with
51931 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51932 grub_rescue_print_disks.
51933
51934 * kern/partition.c (grub_partition_iterate): Return the result of
51935 PARTMAP->ITERATE instead of GRUB_ERRNO.
51936
51937 * kern/device.c: Include grub/partition.h.
51938 (grub_device_iterate): New function.
51939
51940 * include/grub/partition.h (grub_partition_iterate): Return int
51941 instead of grub_err_t.
51942
51943 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51944 prototype.
51945 [GRUB_UTIL] (grub_search_fini): Likewise.
51946
51947 * include/grub/device.h (grub_device_iterate): New prototype.
51948
51949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51950 commands/search.c.
51951 (pkgdata_MODULES): Added search.mod.
51952 (search_mod_SOURCES): New variable.
51953 (search_mod_CFLAGS): Likewise.
51954
51955 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51956 (pkgdata_MODULES): Added search.mod.
51957 (search_mod_SOURCES): New variable.
51958 (search_mod_CFLAGS): Likewise.
51959
51960 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51961 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51962 All callers changed.
51963
51964 * DISTLIST: Added commands/search.c.
51965
51966 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51967
51968 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51969 conversion.
51970 (grub_getcharwidth): New function.
51971
51972 * kern/misc.c (grub_utf8_to_ucs4): New function.
51973
51974 * include/grub/term.h (struct grub_term): Added a new member
51975 "getcharwidth".
51976 (grub_getcharwidth): New prototype.
51977
51978 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51979
51980 * term/i386/pc/console.c (map_char): New function. Segregated from
51981 grub_console_putchar.
51982 (grub_console_putchar): Use map_char.
51983 (grub_console_getcharwidth): New function.
51984 (grub_console_term): Specified grub_console_getcharwidth as
51985 getcharwidth.
51986
51987 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
51988 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
51989
51990 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
51991 GRUB_ERRNO.
51992 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
51993 on grub_strtoul completely.
51994 (write_char): Declare local variables in the beginning of the
51995 function.
51996 (grub_vesafb_getcharwidth): New function.
51997 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
51998 getcharwidth.
51999
52000 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52001
52002 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52003 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52004 commands/i386/pc/vbetest.c.
52005
52006 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52007 call grub_vbe_get_controller_info again, because the returned
52008 information is volatile.
52009 (grub_vbe_set_video_mode): Mostly rewritten.
52010 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52011 grub_vbe_status_t correctly.
52012 (grub_vbe_get_video_mode_info): Likewise.
52013 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52014 several if statements.
52015
52016 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52017 * commands/i386/pc/vbeinfo.c: ... this.
52018
52019 * commands/i386/pc/vbe_test.c: Renamed to ...
52020 * commands/i386/pc/vbetest.c: ... this.
52021
52022 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52023 ...
52024 (grub_cmd_vbeinfo): ... this. Save video modes before
52025 iterating. Skip a video mode, if it is not available, not enough
52026 information is given or it is monochrome. Show the memory
52027 model. Leave the interpretation of MODEVAR to grub_strtoul
52028 completely.
52029 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52030 (GRUB_MOD_FINI): Likewise.
52031
52032 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52033 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52034 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52035 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52036 grub_strtoul completely.
52037 (real2pm): Removed.
52038 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52039 (GRUB_MOD_FINI): Likewise.
52040
52041 * normal/misc.c: Include grub/mm.h.
52042
52043 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52044 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52045 (vbe_list_modes_mod_SOURCES): Removed.
52046 (vbe_list_modes_mod_CFLAGS): Likewise.
52047 (vbe_test_mod_SOURCES): Likewise.
52048 (vbe_test_mod_CFLAGS): Likewise.
52049 (vbeinfo_mod_SOURCES): New variable.
52050 (vbeinfo_mod_CFLAGS): Likewise.
52051 (vbetest_mod_SOURCES): Likewise.
52052 (vbetest_mod_CFLAGS): Likewise.
52053
52054 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52055
52056 * normal/misc.c: New file.
52057
52058 * DISTLIST: Added normal/misc.c.
52059
52060 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52061 DISK to HOOK. Call HOOK with DISK.
52062 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52063 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52064 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52065
52066 * normal/menu_entry.c (struct screen): Added a new member
52067 "completion_shown".
52068 (completion_buffer): New global variable.
52069 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52070 (store_completion): New function.
52071 (complete): Likewise.
52072 (clear_completions): Likewise.
52073 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52074 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52075 a tab, call complete.
52076
52077 * normal/completion.c (disk_dev): Removed.
52078 (print_simple_completion): Likewise.
52079 (print_partition_completion): Likewise.
52080 (print_func): New global variable.
52081 (add_completion): Do not take the arguments WHAT or PRINT any
52082 longer. Added a new argument TYPE. Instead of printing directly,
52083 call PRINT_FUNC if not NULL.
52084 All callers changed.
52085 (complete_device): Use a local variable DEV instead of
52086 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52087 (grub_normal_do_completion): Take a new argument HOOK. Do not
52088 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52089 empty string, return NULL instead.
52090 All callers changed.
52091
52092 * normal/cmdline.c (print_completion): New function.
52093
52094 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52095 to HOOK.
52096 All callers changed.
52097
52098 * kern/disk.c (grub_print_partinfo): Removed.
52099
52100 * include/grub/partition.h (struct grub_partition_map): Add a new
52101 argument DISK into HOOK of ITERATE.
52102 (grub_partition_iterate): Add a new argument DISK to HOOK.
52103
52104 * include/grub/normal.h (enum grub_completion_type): New enum.
52105 (grub_completion_type_t): New type.
52106 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52107 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52108 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52109 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52110 (grub_normal_do_completion): Added a new argument HOOK.
52111 (grub_normal_print_device_info): New prototype.
52112
52113 * include/grub/disk.h (grub_print_partinfo): Removed.
52114
52115 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52116 (normal_mod_SOURCES): Likewise.
52117 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52118 (normal_mod_SOURCES): Likewise.
52119
52120 * commands/ls.c (grub_ls_list_disks): Use
52121 grub_normal_print_device_info instead of grub_print_partinfo. Free
52122 PNAME.
52123 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52124 duplicating the code.
52125
52126 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52127
52128 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52129 follow GCS more precisely.
52130 * commands/i386/pc/vbe_test.c: Likewise.
52131 * include/grub/i386/pc/vbe.h: Likewise.
52132 * term/i386/pc/vesafb.c: Likewise.
52133 * video/i386/pc/vbe.c: Likewise.
52134
52135 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52136
52137 * DISTLIST: Added term/i386/pc/vesafb.c
52138 DISTLIST: Added video/i386/pc/vbe.c
52139 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52140 DISTLIST: Added commands/i386/pc/vbe_test.c.
52141 * commands/i386/pc/vbe_list_modes.c: New file.
52142 * commands/i386/pc/vbe_test.c: Likewise.
52143 * term/i386/pc/vesafb.c: Likewise.
52144 * video/i386/pc/vbe.c: Likewise.
52145 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52146 (grub_vbe_probe) Added prototype.
52147 (grub_vbe_set_video_mode) Likewise.
52148 (grub_vbe_get_video_mode) Likewise.
52149 (grub_vbe_get_video_mode_info) Likewise.
52150 (grub_vbe_set_pixel_rgb) Likewise.
52151 (grub_vbe_set_pixel_index) Likewise.
52152 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52153 (pkgdata_MODULES): Added vesafb.mod.
52154 (pkgdata_MODULES): Added vbe_list_modes.mod.
52155 (pkgdata_MODULES): Added vbe_test.mod.
52156 (vbe_mod_SOURCES): Added.
52157 (vbe_mod_CFLAGS): Likewise.
52158 (vesafb_mod_SOURCES): Likewise.
52159 (vesafb_mod_CFLAGS): Likewise.
52160 (vbe_list_modes_mod_SOURCES): Likewise.
52161 (vbe_list_modes_mod_CFLAGS): Likewise.
52162 (vbe_test_mod_SOURCES): Likewise.
52163 (vbe_test_mod_CFLAGS): Likewise.
52164
52165 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52166
52167 * normal/command.c (grub_command_execute): If INTERACTIVE is
52168 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52169 CMDLINE. Disable the pager if INTERACTIVE is true.
52170 All callers are changed.
52171
52172 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52173 before reading a config file.
52174 * normal/main.c (read_config_file): Even if a command is not
52175 found, register it if it is within an entry.
52176
52177 * util/grub-emu.c: Include sys/types.h and unistd.h.
52178 (options): Added --hold.
52179 (struct arguments): Added a new member "hold".
52180 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52181 missing.
52182 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52183 cleared by a debugger, if it is not zero.
52184
52185 * include/grub/normal.h (grub_command_execute): Add an argument
52186 INTERACTIVE.
52187
52188 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52189
52190 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52191
52192 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52193
52194 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52195 program with another one, because the old one didn't detect a bug
52196 in gcc-3.4. Always use regparm 2, because the new test is still
52197 not enough for gcc-4.0. Someone must investigate a simple test
52198 case which detects a bug in gcc-4.0.
52199
52200 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52201
52202 * DISTLIST: Added normal/completion.c.
52203
52204 * normal/completion.c: New file.
52205
52206 * term/i386/pc/console.c (grub_console_getwh): New function.
52207 (grub_console_term): Assign grub_console_getwh to getwh.
52208
52209 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52210 function is defined in normal/completion.c as
52211 grub_normal_do_completion.
52212 (grub_cmdline_get): Use grub_normal_do_completion instead of
52213 grub_tab_complete.
52214
52215 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52216 returns non-zero, otherwise return 0.
52217 (grub_partition_iterate): First, probe the partition map. Then,
52218 call ITERATE only for this partition map.
52219
52220 * kern/misc.c (grub_strncmp): Rewritten.
52221
52222 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52223 returns non-zero. Otherwise return 0.
52224
52225 * include/grub/partition.h (grub_partition_map_iterate): Return
52226 int instead of void.
52227
52228 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52229
52230 * include/grub/misc.h (grub_strncmp): Change the type of N to
52231 grub_size_t.
52232
52233 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52234 of void.
52235
52236 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52237 unsigned explicitly before comparing it with I.
52238
52239 * kern/main.c (grub_env_write_root): Add the attribute unused into
52240 VAR.
52241
52242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52243 normal/completion.c.
52244 (normal_mod_SOURCES): Likewise.
52245 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52246 (normal_mod_SOURCES): Likewise.
52247
52248 * normal/command.c (grub_iterate_commands): If ITERATE returns
52249 non-zero, return one immediately.
52250
52251 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52252
52253 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52254 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52255 descriptions.
52256 (grub_vbe_get_controller_info): New function.
52257 (grub_vbe_get_mode_info): Likewise.
52258 (grub_vbe_set_mode): Likewise.
52259 (grub_vbe_get_mode): Likewise.
52260 (grub_vbe_set_memory_window): Likewise.
52261 (grub_vbe_get_memory_window): Likewise.
52262 (grub_vbe_set_scanline_length): Likewise.
52263 (grub_vbe_get_scanline_length): Likewise.
52264 (grub_vbe_set_display_start): Likewise.
52265 (grub_vbe_get_display_start): Likewise.
52266 (grub_vbe_set_palette_data): Likewise.
52267 * include/grub/i386/pc/vbe.h: New file.
52268
52269 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52270
52271 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52272 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52273 * DISTLIST: Likewise.
52274 * kern/ieee1275/of.c: Moved to ...
52275 * kern/ieee1275/ieee1275.c: ... here.
52276
52277 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52278
52279 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52280 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52281 Pass 0 as `end' parameter to grub_strtoul().
52282
52283 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52284
52285 * include/grub/powerpc/ieee1275/console.h: Do not include
52286 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52287 ifdef.
52288 (grub_console_cur_color): Remove i386-specific prototype.
52289 (grub_console_real_putchar): Likewise.
52290 (grub_console_checkkey): Likewise.
52291 (grub_console_getkey): Likewise.
52292 (grub_console_getxy): Likewise.
52293 (grub_console_gotoxy): Likewise.
52294 (grub_console_cls): Likewise.
52295 (grub_console_setcursor): Likewise.
52296 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52297 Include <grub/machine/console.h>.
52298 * term/ieee1275/ofconsole.c: Likewise.
52299
52300 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52301
52302 * Makefile.in (LIBLZO): New variable.
52303
52304 * configure.ac: Check for LZO version 2.
52305
52306 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52307 lzo/lzo1x.h instead of lzo1x.h.
52308
52309 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52310 of -llzo.
52311
52312 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52313 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52314
52315 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52316 copying the data from PARTITION to P.
52317
52318 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52319
52320 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52321 negative, unload the module.
52322
52323 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52324 map is "pc_partition_map" but not "pc".
52325 (usage): Fix the description. The options are --boot-image and
52326 --core-image but not --boot-file or --core-file.
52327 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52328 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52329 DEFAULT_DIRECTORY.
52330
52331 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52332 --core-file. Specify INSTALL_DEVICE as an argument.
52333
52334 * util/console.c: Include config.h.
52335 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52336 [HAVE_NCURSES_H]: Include ncurses.h.
52337 [HAVE_CURSES_H]: Include curses.h.
52338 [!A_NORMAL] (A_NORMAL): Defined as zero.
52339 [!A_STANDOUT] (A_STANDOUT): Likewise.
52340
52341 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52342 -lncurses.
52343 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52344
52345 * configure.ac: Check for curses libraries and headers.
52346
52347 * Makefile.in (LIBCURSES): New variable.
52348
52349 * genmk.rb (Script::rule): Set the executable bits.
52350
52351 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52352 name of the PC partition map is "pc_partition_map" but not "pc".
52353
52354 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52355
52356 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52357 (modules): Likewise.
52358 (usage): Added descriptions for --modules and --grub-probefs.
52359 Handle --modules and --grub-probefs. Save the arguments in MODULES
52360 and GRUB_PROBEFS, respectively.
52361 Auto-detect a filesystem module against GRUBDIR. If the result is
52362 empty and modules are not specified explicitly, abort the
52363 installation. Add the result to MODULES.
52364
52365 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52366 disk/powerpc/ieee1275/ofdisk.c,
52367 include/grub/powerpc/ieee1275/init.h and
52368 term/powerpc/ieee1275/ofconsole.c.
52369 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52370 term/ieee1275/ofconsole.c.
52371
52372 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52373
52374 * COPYING: Upgraded to the latest version. Only the address of the
52375 FSF office has changed.
52376
52377 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52378
52379 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52380 kern/ieee1275.c with kern/ieee1275/of.c.
52381
52382 * kern/ieee1275.c: Moved to ...
52383 * kern/ieee1275/of.c: ... here.
52384
52385 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52386
52387 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52388 readability.
52389
52390 * config.guess: Updated to the latest version from gnulib.
52391 * config.sub: Likewise.
52392 * install.sh: Likewise.
52393 * mkinstalldirs: Likewise.
52394
52395 * include/grub/console.h: Removed. This file is arch-specific. Do
52396 not put this in include/grub.
52397
52398 * include/grub/i386/pc/console.h: Resurrected.
52399
52400 * util/console.c: Include grub/machine/console.h instead of
52401 grub/console.h.
52402 * util/grub-emu.c: Likewise.
52403
52404 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52405
52406 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52407 hardcoded value.
52408
52409 From Vincent Pelletier <subdino2004@yahoo.fr>
52410 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52411 Redefined to use grub_getwh.
52412 (grub_term): New member named getwh.
52413 (grub_getwh): New prototype.
52414 * kern/term.c (grub_getwh): New function.
52415 * term/i386/pc/console.c (grub_console_getwh): New function.
52416 (grub_console_term): New member `getwh'.
52417 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52418 (grub_vga_term): New member `getwh'.
52419 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52420 grub_ssize_t.
52421 (grub_ofconsole_getw): New function.
52422 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52423 (grub_ofconsole_term): New field named getwh and new initial
52424 value.
52425
52426 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52427
52428 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52429 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52430 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52431 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52432 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52433 of <grub/machine/ieee1275.h>.
52434 * commands/ieee1275/reboot.c: Likewise.
52435 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52436 * kern/ieee1275.c: ... to here. All users updated. Change all
52437 parameter structs to use new type `grub_ieee1275_cell_t'.
52438 * term/powerpc/ieee1275/ofconsole.c: Move ...
52439 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52440 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52441 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52442 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52443 to return int.
52444 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52445 Remove unused prototypes. All users updated.
52446 * include/grub/powerpc/ieee1275/console.h: Removed.
52447 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52448 `grub_ieee1275_cell_t'.
52449 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52450 Cast comparisons with -1 to the correct type.
52451 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52452 type to match `grub_ieee1275_entry_fn'.
52453
52454 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52455
52456 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52457
52458 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52459 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52460 partmap/sun.c.
52461 (grub_probefs_SOURCES): New variable.
52462
52463 * util/i386/pc/grub-probefs.c: New file.
52464
52465 * util/i386/pc/grub-setup.c (main): Call
52466 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52467 grub_hfs_init and grub_jfs_init to initialize the system. Call
52468 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52469 grub_pc_partition_map_fini to finish the system.
52470
52471 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52472
52473 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52474 function.
52475 (grub_multiboot_load_elf32): Likewise.
52476 (grub_multiboot_is_elf64): Likewise.
52477 (grub_multiboot_load_elf64): Likewise.
52478 (grub_multiboot_load_elf): Likewise.
52479 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52480 an ELF32 or ELF64 file.
52481 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52482
52483 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52484 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52485 NULL before calling FS->LABEL.
52486 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52487 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52488 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52489 before calling FS->LABEL.
52490
52491 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52492
52493 * util/i386/pc/grub-install.in (datadir): New variable.
52494 (libdir): Removed.
52495 (pkgdatadir): New variable.
52496 (pkglibdir): Removed.
52497
52498 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52499
52500 * DISTLIST: Added util/i386/pc/grub-install.in.
52501
52502 * util/i386/pc/grub-install.in: New file.
52503
52504 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52505 (grub_install_SOURCES): Likewise.
52506
52507 * genmk.rb: Added support for scripts.
52508 (Script): New class.
52509 (scripts): New variable.
52510
52511 * Makefile.in (install-local): Install sbin_SCRIPTS by
52512 INSTALL_SCRIPT.
52513 (uninstall): Remove sbin_SCRIPTS.
52514
52515 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52516 device, try to get a GRUB device by
52517 grub_util_biosdisk_get_grub_dev.
52518 Free DEST_DEV.
52519
52520 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52521 description for --device-map.
52522
52523 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52524
52525 Change the semantics of variable hooks. They now return strings
52526 instead of error values.
52527
52528 * util/i386/pc/grub-setup.c: Include grub/env.h.
52529 (setup): Use grub_device_set_root instead of grub_env_set.
52530
52531 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52532 grub_env_get instead of grub_device_set_root and
52533 grub_device_get_root, respectively.
52534
52535 * kern/main.c (grub_env_write_root): New function.
52536 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52537 grub_env_set instead of grub_device_set_root.
52538
52539 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52540 many variables.
52541 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52542 rather than calling ENV->WRITE_HOOK afterwards.
52543 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52544 passing a pointer of a pointer.
52545 (grub_register_variable_hook): Change the types of "read_hook" and
52546 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52547 respectively.
52548 Allocate the default empty string on the heap, because this string
52549 may be freed later.
52550
52551 * kern/device.c: Include grub/env.h.
52552 (grub_device_set_root): Removed.
52553 (grub_device_get_root): Likewise.
52554 (grub_device_open): Use grub_env_get instead of
52555 grub_device_get_root.
52556
52557 * include/grub/env.h (grub_env_read_hook_t): New type.
52558 (grub_env_write_hook_t): Likewise.
52559 (grub_env_var): Change the types of "read_hook" and "write_hook"
52560 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52561 (grub_register_variable_hook): Likewise.
52562
52563 * include/grub/device.h (grub_device_set_root): Removed.
52564 (grub_device_set_root): Likewise.
52565
52566 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52567 make sure that DIRNAME terminates with '/', so that
52568 grub_fat_find_dir will fail if PATH is not a directory.
52569
52570 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52571 from DIRNAME.
52572 Use the qualifier auto for print_files and print_files_long.
52573 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52574 as a regular file.
52575 Put a newline only if there is no error.
52576 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52577 used.
52578
52579 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52580
52581 * kern/partition.c (grub_partition_probe): Initialize PART to
52582 NULL. Otherwise, when no partition map is registered, this returns
52583 a garbage.
52584
52585 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52586
52587 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52588 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52589 valid.
52590
52591 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52592
52593 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52594 information on each device, if it does not have partitions. Print
52595 "Device" instead of "Disk", because this function is not specific
52596 to disk devices.
52597
52598 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52599 static to ensure that it is put on the memory rather than a
52600 register.
52601
52602 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52603
52604 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52605 (grub_cat_init): Likewise.
52606 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52607 (options): Likewise.
52608 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52609 (grub_configfile_init): Likewise.
52610 * font/manager.c (GRUB_MOD_INIT): Likewise.
52611 * commands/help.c (GRUB_MOD_INIT): Likewise.
52612 (grub_help_init): Likewise.
52613 * normal/command.c (grub_command_init): Likewise.
52614 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52615 * disk/loopback.c (grub_loop_init): Likewise.
52616 (GRUB_MOD_INIT): Likewise.
52617 * commands/ls.c (grub_ls_init): Likewise.
52618 (GRUB_MOD_INIT): Likewise.
52619 (options): Likewise.
52620 * commands/boot.c (grub_boot_init): Likewise.
52621 (GRUB_MOD_INIT): Likewise.
52622 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52623 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52624 (GRUB_MOD_INIT): Likewise.
52625 * commands/cmp.c (grub_cmp_init): Likewise.
52626 (GRUB_MOD_INIT): Likewise.
52627
52628 * normal/arg.c: Use <> instead of "" to include header files.
52629 (SHORT_ARG_HELP): New macro.
52630 (SHORT_ARG_USAGE): Likewise.
52631 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52632 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52633 descriptions.
52634 (find_short): Check if C is 'h' or 'u' explicitly.
52635 (grub_arg_show_help): Use space characters instead of tabs. Treat
52636 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52637 are shown with --help and --usage only if they are not used for
52638 the command itself.
52639 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52640 'h' and 'u'.
52641
52642 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52643 const into "longarg". Change the type of "shortarg" to int.
52644
52645 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52646
52647 * boot/i386/pc/boot.S (boot_drive_check): New label.
52648
52649 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52650 macro.
52651
52652 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52653 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52654
52655 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52656
52657 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52658 When turning off Gate A20, skip the check and return immediately,
52659 because this is not fatal usually.
52660
52661 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52662
52663 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52664 be 0x7C00 instead of 0x8000.
52665
52666 * boot/i386/pc/pxeboot.S: Rewritten.
52667
52668 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52669 EXT_C.
52670 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52671 result.
52672
52673 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52674
52675 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52676 robustness. This routine now supports a BIOS call and System
52677 Control Port A to modify the gate A20.
52678
52679 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52680 Increased to 0x440.
52681
52682 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52683
52684 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52685 device path and resulting ihandle.
52686 (grub_ofdisk_close): dprintf the ihandle being closed.
52687 (grub_ofdisk_read): dprintf function parameters.
52688 * kern/mm.c (grub_mm_init_region): Likewise.
52689 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52690 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52691 size, and boot arguments.
52692 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52693 before loading into memory.
52694 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52695 before loading into memory.
52696
52697 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52698
52699 * kern/mm.c: Added much documentation.
52700 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52701 8, set to 5 instead of 8.
52702
52703 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52704
52705 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52706
52707 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52708 (grub_mkdevicemap_SOURCES): New variable.
52709
52710 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52711 lib/device.c of GRUB Legacy.
52712
52713 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52714
52715 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52716 instead of PATH is NULL.
52717
52718 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52719
52720 * commands/cmp.c (BUFFER_SIZE): New macro.
52721 (grub_cmd_cmp): Close the right file at the right time. Compare
52722 only data just read. Don't report files of different size as
52723 identical. Dynamically allocate buffers. Move variable
52724 declarations at the beginning of function.
52725
52726 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52727
52728 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52729 reverse.
52730
52731 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52732
52733 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52734 when backspace is pressed at beginning of line.
52735
52736 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52737
52738 * DISTLIST: Added genfslist.sh.
52739
52740 * normal/main.c (fs_module_list): New variable.
52741 (autoload_fs_module): New function.
52742 (read_fs_list): Likewise.
52743 (grub_normal_execute): Call read_fs_list.
52744
52745 * kern/fs.c (grub_fs_autoload_hook): New variable.
52746 (grub_fs_probe): Added support for auto-loading.
52747
52748 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52749 (grub_fs_module_list_t): New type.
52750
52751 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52752 (grub_fs_autoload_hook): New prototype.
52753
52754 * genfslist.sh: New file.
52755
52756 * genmk.rb: Added a rule to generate a filesystem list.
52757
52758 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52759
52760 * configure.ac: Fix the test for cross-compiling.
52761
52762 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52763 define GRUB_UTIL anymore.
52764
52765 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52766 so this function works on other systems than just big endian.
52767 (load_modules): Likewise.
52768 (add_segments): Likewise.
52769
52770 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52771
52772 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52773 contains `l' modifier, get a long from va_arg().
52774
52775 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52776
52777 * kern/mm.c (grub_free): If the next free block which is being
52778 merged is the first free block, set the first block to the block
52779 being freed.
52780 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52781
52782 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52783
52784 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52785 `grub_ieee1275_chosen'.
52786
52787 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52788
52789 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52790 (grub_ieee1275_chosen): New variable.
52791 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52792 `chosen'.
52793 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52794 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52795 Rename first argument to `phandle' for consistency.
52796 (grub_ieee1275_get_property_length): Likewise.
52797 (grub_ieee1275_next_property): Likewise. Change type of first argument
52798 to grub_ieee1275_phandle_t.
52799 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52800 Move export next to declaration.
52801 (grub_ieee1275_chosen): New variable.
52802 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52803 Correct cosmetic typo.
52804 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52805 `grub_ieee1275_chosen'.
52806 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52807 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52808 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52809 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52810 `grub_ieee1275_chosen'.
52811
52812 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52813
52814 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52815 /chosen/bootargs.
52816 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52817 /chosen/bootargs as "variable=value" pairs.
52818
52819 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52820
52821 * include/grub/misc.h (grub_dprintf): New macro.
52822 (grub_real_dprintf): New prototype.
52823 (grub_strword): Likewise.
52824 (grub_iswordseparator): Likewise.
52825 * kern/misc.c (grub_real_dprintf): New function.
52826 (grub_strword): Likewise.
52827 (grub_iswordseparator): Likewise.
52828
52829 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52830
52831 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52832 (roundup): Remove macro.
52833 (grub_ieee1275_flags): Make static.
52834 (grub_ieee1275_realmode): Remove.
52835 (grub_ieee1275_test_flag): New function.
52836 (grub_ieee1275_set_flag): Likewise.
52837 (find_options): Rename to `grub_ieee1275_find_options'; update
52838 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52839 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52840 (cmain): New prototype.
52841 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52842 `grub_ieee1275_flags' directly.
52843 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52844 machine/biosdisk.h.
52845 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52846 Don't include grub/machine/init.h.
52847 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52848 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52849 Remove prototype.
52850 (grub_ieee1275_realmode): Likewise.
52851 (grub_ieee1275_flag): New enum.
52852 (grub_ieee1275_test_flag): New prototype.
52853 (grub_ieee1275_set_flag): New prototype.
52854 * include/grub/powerpc/ieee1275/init.h: Remove file.
52855 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52856 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52857 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52858 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52859 comment.
52860 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52861 `grub_ieee1275_test_flag'.
52862 (grub_ieee1275_encode_devname): Likewise.
52863
52864 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52865
52866 * include/grub/powerpc/ieee1275/ieee1275.h
52867 (grub_ieee1275_encode_devname): New prototype.
52868 (grub_ieee1275_get_filename): Likewise.
52869 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52870 function.
52871 (grub_set_prefix): Likewise.
52872 (grub_machine_init): Call grub_set_prefix.
52873 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52874 (grub_parse_type): New enum.
52875 (grub_ieee1275_get_devargs): New function.
52876 (grub_ieee1275_get_devname): Likewise.
52877 (grub_ieee1275_parse_args): Likewise.
52878 (grub_ieee1275_get_filename): Likewise.
52879 (grub_ieee1275_encode_devname): Likewise.
52880
52881 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52882
52883 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52884 `grub_loader_unset'.
52885
52886 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52887
52888 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52889 instead of grub_ieee1275_interpret.
52890 (grub_halt_init): New function.
52891 (grub_halt_fini): Likewise.
52892 (GRUB_MOD_INIT): Correct message grammar.
52893 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52894 instead of grub_ieee1275_interpret.
52895 (grub_reboot_init): New function.
52896 (grub_reboot_fini): Likewise.
52897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52898 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52899 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52900 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52901 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52902 function.
52903 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52904 Add prototype.
52905 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52906 prototype.
52907 (grub_halt): Likewise.
52908 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52909 (cmain): Remove __attribute__((unused)).
52910 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52911 (grub_heap_len): Likewise.
52912 (grub_machine_fini): New function.
52913 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52914 (grub_halt): Likewise.
52915 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52916 function.
52917 * util/powerpc/ieee1275/misc.c: New file.
52918
52919 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52920
52921 * DISTLIST: New file.
52922 * gendistlist.sh: Likewise.
52923
52924 * Makefile.in (COMMON_DISTFILES): Removed.
52925 (BOOT_DISTFILES): Likewise.
52926 (CONF_DISTFILES): Likewise.
52927 (DISK_DISTFILES): Likewise.
52928 (FS_DISTFILES): Likewise.
52929 (INCLUDE_DISTFILES): Likewise.
52930 (KERN_DISTFILES): Likewise.
52931 (LOADER_DISTFILES): Likewise.
52932 (TERM_DISTFILES): Likewise.
52933 (UTIL_DISTFILES): Likewise.
52934 (DISTFILES): Likewise.
52935 (uninstall): Uninstall files in $(pkgdata_DATA).
52936 (DISTLIST): New target.
52937 (distdir): Use the contents of the file DISTLIST to get a list of
52938 distributed files.
52939
52940 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52941
52942 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52943 descriptor. This is ported from GRUB Legacy.
52944
52945 * gencmdlist.sh: Added an extra semicolon to make it work with
52946 old sed versions. Reported by Robert Bihlmeyer
52947 <robbe@orcus.priv.at>.
52948
52949 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52950
52951 Automatic loading of commands is supported.
52952
52953 * normal/main.c (read_command_list): New function.
52954 (grub_normal_execute): Call read_command_list.
52955
52956 * normal/command.c (grub_register_command): Return zero or CMD.
52957 Allocate CMD->NAME from the heap.
52958 Initialize CMD->MODULE_NAME to zero.
52959 Find the same name as well. If the same command is found and it is
52960 a dummy command, overwrite members. If it is not a dummy command,
52961 return zero.
52962 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52963 (grub_command_find): If a dummy command is found, load a module
52964 and retry to find a command only once.
52965
52966 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52967 make sure that each command is loaded.
52968
52969 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52970 macro.
52971 (struct grub_command): Remove const from the member `name'.
52972 Add a new member `module_name'.
52973 (grub_register_command): Return grub_command_t.
52974
52975 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52976 sure that each command is loaded.
52977
52978 * genmk.rb (PModule::rule): Specify a module name without the
52979 suffix ".mod" to gencmdlist.sh.
52980
52981 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52982
52983 * gencmdlist.sh: New file.
52984
52985 * genmk.rb (PModule::rule): Generate a rule for a command list.
52986 Clean command.lst.
52987 Generate command.lst from $(COMMANDFILES).
52988
52989 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
52990 (DATA): Added $(pkgdata_DATA).
52991 (install-local): Install files in $(pkgdata_DATA).
52992
52993 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
52994
52995 * term/i386/pc/vga.c (debug_command): Removed.
52996 (GRUB_MOD_INIT): Do not register the command "debug".
52997
52998 From Hollis Blanchard:
52999 * commands/configfile.c: New file.
53000 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53001 commands/configfile.c.
53002 (pkgdata_MODULES): Added configfile.mod.
53003 (configfile_mod_SOURCES): New variable.
53004 (configfile_mod_CFLAGS): Likewise.
53005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53006 commands/configfile.c.
53007 (pkgdata_MODULES): Added configfile.mod.
53008 (configfile_mod_SOURCES): New variable.
53009 (configfile_mod_CFLAGS): Likewise.
53010 * util/grub-emu.c (main): Call grub_configfile_init and
53011 grub_configfile_fini.
53012 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53013 prototype.
53014 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53015
53016 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53017
53018 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53019 address.
53020
53021 * commands/help.c (grub_cmd_help): Do not print newlines after
53022 the last command in print_command_help.
53023
53024 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53025
53026 * commands/default.h: New file.
53027 * commands/timeout.h: Likewise.
53028 * normal/context.c: Likewise.
53029
53030 * util/misc.c: Do not include sys/times.h.
53031 Include sys/time.h and grub/machine/time.h.
53032 (grub_get_rtc): Rewritten with gettimeofday.
53033
53034 * util/grub-emu.c (main): Call grub_default_init and
53035 grub_timeout_init before grub_normal_init, and call
53036 grub_timeout_fini and grub_default_fini after grub_main.
53037
53038 * util/console.c (grub_ncurses_checkkey): Return the read
53039 character or -1.
53040
53041 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53042 timeouts.
53043
53044 * normal/main.c (read_config_file): Push MENU. If this fails,
53045 print an error and wait for a user input.
53046 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53047 If a menu is empty or an error occurs, pop MENU.
53048 (grub_normal_execute): Pop and free MENU after grub_menu_run
53049 returns.
53050
53051 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53052
53053 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53054 include time.h.
53055 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53056 without GRUB_UTIL.
53057 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53058 time.h.
53059 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53060 without GRUB_UTIL.
53061
53062 * include/grub/normal.h (struct grub_menu_list): New struct.
53063 (grub_menu_list_t): New type.
53064 (struct grub_context): New struct.
53065 (grub_context_t): New type.
53066 (grub_register_command): Got rid of EXPORT_FUNC.
53067 (grub_unregister_command): Likewise.
53068 (grub_context_get): New prototype.
53069 (grub_context_get_current_menu): Likewise.
53070 (grub_context_push_menu): Likewise.
53071 (grub_context_pop_menu): Likewise.
53072 [GRUB_UTIL] (grub_default_init): Likewise.
53073 [GRUB_UTIL] (grub_default_fini): Likewise.
53074 [GRUB_UTIL] (grub_timeout_init): Likewise.
53075 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53076
53077 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53078 commands/timeout.c and normal/context.c.
53079 (pkgdata_MODULES): Added default.mod and timeout.mod.
53080 (normal_mod_SOURCES): Added normal/context.c.
53081 (default_mod_SOURCES): New variable.
53082 (default_mod_CFLAGS): Likewise.
53083 (timeout_mod_SOURCES): Likewise.
53084 (timeout_mod_CFLAGS): Likewise.
53085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53086 conf/i386-pc.rmk.
53087 (pkgdata_MODULES): Added default.mod and timeout.mod.
53088 (normal_mod_SOURCES): Added normal/context.c.
53089 (default_mod_SOURCES): New variable.
53090 (default_mod_CFLAGS): Likewise.
53091 (timeout_mod_SOURCES): Likewise.
53092 (timeout_mod_CFLAGS): Likewise.
53093
53094 * Makefile.in (all-local): Added $(MKFILES).
53095
53096 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53097
53098 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53099 (grub_emu_SOURCES): Likewise.
53100 (pkgdata_MODULES): Add `sun.mod'.
53101 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53103 `partmap/sun.c'.
53104 (pkgdata_MODULES): Add `sun.mod'.
53105 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53106 * include/grub/partition.h (grub_sun_partition_map_init): New
53107 prototype.
53108 (grub_sun_partition_map_fini): Likewise.
53109 * partmap/sun.c: New file.
53110 * util/grub-emu.c (main): Initialize and de-initialize the sun
53111 partitionmap support.
53112
53113 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53114
53115 This implements an Emacs-like menu entry editor.
53116
53117 * normal/menu_entry.c: New file.
53118
53119 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53120 characters to ASCII.
53121 (saved_char): New variable.
53122 (grub_ncurses_checkkey): Rewritten completely.
53123 (grub_ncurses_getkey): Likewise.
53124 (grub_ncurses_init): Call raw instead of cbreak.
53125
53126 * normal/menu.c (print_entry): Do not put a space.
53127 (init_page): Renamed to ...
53128 (grub_menu_init_page): ... this. All callers changed.
53129 (edit_menu_entry): Removed.
53130 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53131
53132 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53133
53134 * kern/misc.c (grub_vprintf): Call grub_refresh.
53135
53136 * normal/menu.c (DISP_LEFT): Renamed to ...
53137 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53138 * normal/menu.c (DISP_UP): Renamed to ...
53139 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53140 * normal/menu.c (DISP_RIGHT): Renamed to ...
53141 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53142 * normal/menu.c (DISP_DOWN): Renamed to ...
53143 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53144 * normal/menu.c (DISP_HLINE): Renamed to ...
53145 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53146 * normal/menu.c (DISP_VLINE): Renamed to ...
53147 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53148 * normal/menu.c (DISP_UL): Renamed to ...
53149 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53150 * normal/menu.c (DISP_UR): Renamed to ...
53151 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53152 * normal/menu.c (DISP_LL): Renamed to ...
53153 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53154 * normal/menu.c (DISP_LR): Renamed to ...
53155 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53156 * normal/menu.c (TERM_WIDTH): Renamed to ...
53157 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53158 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53159 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53160 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53161 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53162 * normal/menu.c (TERM_MARGIN): Renamed to ...
53163 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53164 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53165 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53166 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53167 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53168 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53169 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53170 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53171 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53172 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53173 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53174 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53175 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53176 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53177 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53178 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53179 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53180 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53181 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53182 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53183 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53184 All callers changed.
53185
53186 * include/grub/normal.h: New prototype.
53187
53188 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53189 normal/menu_entry.c.
53190 (normal_mod_SOURCES): Likewise.
53191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53192 (normal_mod_SOURCES): Likewise.
53193
53194 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53195
53196 * include/grub/normal.h (grub_halt_init): New prototype.
53197 (grub_halt_fini): Likewise.
53198 (grub_reboot_init): Likewise.
53199 (grub_reboot_fini): Likewise.
53200
53201 * util/grub-emu.c: Include signal.h.
53202 (main_env): New global variable.
53203 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53204 catch C-c.
53205 (grub_machine_fini): New function.
53206 (main): Call grub_halt_init and grub_reboot_init before
53207 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53208 Call setjmp with MAIN_ENV to go back afterwards.
53209 Call grub_machine_fini right before return.
53210
53211 * include/grub/util/misc.h: Include setjmp.h.
53212 (main_env): New prototype.
53213
53214 * include/grub/kernel.h (grub_machine_fini): New prototype.
53215 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53216 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53217
53218 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53219 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53220 * term/i386/pc/console.c (grub_console_fini): Likewise.
53221
53222 * util/i386/pc/misc.c: New file.
53223
53224 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53225 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53226 commands/i386/pc/reboot.c.
53227
53228 2005-02-14 Guillem Jover <guillem@hadrons.org>
53229
53230 * include/grub/dl.h (grub_dl_check_header): New prototype.
53231 (grub_arch_dl_check_header): Change return type to grub_err_t,
53232 remove size parameter and export function. Update all callers.
53233 * kern/dl.c (grub_dl_check_header): New function.
53234 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53235 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53236 are inside the core.
53237 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53238 independent ELF header checks.
53239 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53240 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53241 `grub_dl_check_header' instead of explicit checks. Check for the
53242 ELF type.
53243 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53244 `grub_dl_check_header' instead of explicit checks. Remove arch
53245 specific ELF header checks.
53246
53247 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53248 argument SIZE.
53249
53250 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53251
53252 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53253 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53254
53255 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53256
53257 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53258 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53259 (part_map_iterate): Clear `grub_errno' and return 0 if
53260 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53261 * partmap/amiga.c (amiga_partition_map_iterate): Return
53262 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53263 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53264
53265 2005-02-01 Guillem Jover <guillem@hadrons.org>
53266
53267 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53268 help info.
53269
53270 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53271
53272 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53273 Removed prototype.
53274 (grub_rescue_cmd_linux): New prototype.
53275 (grub_rescue_cmd_initrd): Likewise.
53276 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53277 `bi_rec'.
53278 (grub_linux_release_mem): Release the memory for the initrd.
53279 (grub_load_linux): Renamed from this...
53280 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53281 Changed `entry' not to be static. Loop over memory regions to
53282 find another one when the default fails.
53283 (grub_rescue_cmd_initrd): New function.
53284 (grub_linux_init): Remove function.
53285 (grub_linux_fini): Likewise.
53286 (GRUB_MOD_INIT): Register `initrd'.
53287 (GRUB_MOD_FINI): Unregister `initrd'.
53288 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53289 Function removed.
53290 (grub_linux_normal_fini): Likewise.
53291 (GRUB_MOD_INIT): Register `initrd'.
53292 (GRUB_MOD_FINI): Unregister `initrd'.
53293
53294 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53295
53296 * commands/help.c: New file.
53297 * normal/arg.c (show_help): Renamed to...
53298 (grub_arg_show_help): ... this.
53299 * commands/i386/pc/halt.c: New file.
53300 * commands/i386/pc/reboot.c: Likewise.
53301 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53302 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53303 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53304 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53305 variables.
53306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53307 `commands/help.c'.
53308 (pkgdata_MODULES): Add `help.mod'.
53309 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53310 * grub/i386/pc/init.h (grub_reboot): New prototype.
53311 (grub_halt): Likewise.
53312 * include/grub/normal.h (grub_arg_show_help): New prototype.
53313 (grub_help_init): Likewise.
53314 (grub_help_fini): Likewise.
53315 * util/grub-emu.c (main): Initialize and deinitialize the help
53316 command.
53317
53318 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53319
53320 * normal/command.c (grub_command_init): Fixed the description of
53321 the `set' and `unset' commands.
53322
53323 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53324
53325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53326 function.
53327 * commands/ieee1275/halt.c: New file.
53328 * commands/ieee1275/reboot.c: Likewise.
53329 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53330 `__attribute__ ((unused))'. Some GCS related fixed.
53331 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53332 (grub_suspend_fini): Likewise.
53333 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53334 and `halt.mod'.
53335 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53336 (halt_mod_CFLAGS): New variables.
53337 * include/grub/powerpc/ieee1275/ieee1275.h
53338 (grub_ieee1275_interpret): New prototype.
53339
53340 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53341
53342 * include/grub/misc.h (memmove): New prototype.
53343 (memcpy): Likewise.
53344
53345 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53346
53347 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53348 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53349
53350 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53351
53352 * kern/misc.c (grub_strndup): Function rewritten.
53353
53354 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53355
53356 * normal/menu.c (TERM_WIDTH): Macro redefined.
53357 (TERM_TOP_BORDER_Y): Likewise.
53358 (draw_border): Replaced while-loop by a for-loop. Make the number
53359 of lines consistent with the number of lines displayed in
53360 print_entries. Added a margin below the rectangle.
53361 (print_entry): Make the entry fit in the rectangle.
53362 (print_entries): Display the scroll arrows next to the right
53363 border.
53364
53365 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53366
53367 * fs/minix.c (grub_minix_find_file): Reserve more space for
53368 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53369 `grub_strncpy' to copy `path' into it.
53370
53371 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53372
53373 Add the loopback device, a device via which files can be accessed
53374 as devices.
53375
53376 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53377 (pkgdata_MODULES): Add loopback.mod.
53378 (loopback_mod_SOURCES): New variable.
53379 (loopback_mod_CFLAGS): Likewise.
53380 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53381 `disk/loopback.c'.
53382 (pkgdata_MODULES): Add loopback.mod.
53383 (loopback_mod_SOURCES): New variable.
53384 (loopback_mod_CFLAGS): Likewise.
53385 * disk/loopback.c: new file.
53386 * include/grub/normal.h (grub_loop_init): New prototype.
53387 (grub_loop_fini): New prototype.
53388 * util/grub-emu.c (main): Initialize and de-initialize loopback
53389 support.
53390 * include/grub/disk.h (grub_disk_dev_id): Add
53391 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53392
53393 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53394
53395 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53396 function.
53397 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53398 (suspend_mod_SOURCES): New variable.
53399 (suspend_mod_CFLAGS): Likewise.
53400 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53401 New prototype.
53402 * commands/ieee1275/suspend.c: New file.
53403
53404 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53405
53406 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53407 ((unused))' to `__attribute__ ((used))'.
53408 (GRUB_MOD_FINI): Likewise.
53409 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53410 * genmk.rb (PModule): Assign space to common symbols when linking
53411 modules.
53412
53413 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53414
53415 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53416 `unsigned' arguments to `grub_size_t'.
53417 (grub_malloc): Likewise.
53418 (grub_realloc): Likewise.
53419 (grub_memalign): Likewise.
53420 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53421 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53422 * util/misc.c (grub_malloc): Likewise.
53423 (grub_realloc): Likewise.
53424 * kern/mm.c (get_header_from_pointer): Change the casts to
53425 `unsigned' into a cast to `grub_size_t'.
53426
53427 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53428 point to `currnode' when `currnode' is changed.
53429
53430 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53431 Schottelius <nico-linux@schottelius.org>.
53432
53433 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53434
53435 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53436 (note_path): Remove variable.
53437 (GRUB_IEEE1275_NOTE_NAME): New macro.
53438 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53439 (grub_ieee1275_note_hdr): New structure.
53440 (grub_ieee1275_note_desc): Likewise.
53441 (grub_ieee1275_note): Likewise.
53442 (load_note): Remove `dir' argument. All callers updated. Remove
53443 `note_img' and `path'. Do not load a file from `note_path'.
53444 Initialize a struct grub_ieee1275_note and write that to `out'.
53445 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53446
53447 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53448
53449 * util/misc.c (grub_util_read_image): Revert last change. It
53450 called `grub_util_read_at', which seeks from the beginning of the
53451 file.
53452
53453 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53454
53455 * TODO: Add note about endianness in grub-mkimage.
53456 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53457 section.
53458 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53459 (grub_mkimage_SOURCES): New target.
53460 * include/grub/kernel.h (grub_start_addr): Remove variable.
53461 (grub_end_addr): Likewise.
53462 (grub_total_module_size): Likewise.
53463 (grub_kernel_image_size): Likewise.
53464 (GRUB_MODULE_MAGIC): New constant.
53465 (grub_module_info): New structure.
53466 (grub_arch_modules_addr): New prototype.
53467 (grub_get_end_addr): Remove prototype.
53468 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53469 * include/grub/powerpc/ieee1275/kernel.h: New file.
53470 * include/grub/util/misc.h (grub_util_get_fp_size): New
53471 prototype.
53472 (grub_util_read_at): Likewise.
53473 (grub_util_write_image_at): Likewise.
53474 * kern/main.c (grub_get_end_addr): Remove function.
53475 (grub_load_modules): Call grub_arch_modules_addr instead of using
53476 grub_end_addr. Look for a grub_module_info struct in memory. Use
53477 the grub_module_info fields instead of calling grub_get_end_addr
53478 as loop conditions. Move grub_add_unused_region code here.
53479 (grub_add_unused_region): Remove function.
53480 * kern/i386/pc/init.c: Include grub/cache.h.
53481 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53482 one call to add_mem_region.
53483 (grub_arch_modules_addr): New function.
53484 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53485 (grub_total_module_size): Likewise.
53486 Include grub/machine/kernel.h.
53487 (grub_arch_modules_addr): New function.
53488 * util/grub-emu.c (grub_end_addr): Remove variable.
53489 (grub_total_module_size): Likewise.
53490 (grub_arch_modules_addr): New function.
53491 * util/misc.c: Include unistd.h.
53492 (grub_util_get_fp_size): New function.
53493 (grub_util_read_at): Likewise.
53494 (grub_util_write_image_at): Likewise.
53495 (grub_util_read_image): Call grub_util_read_at.
53496 (grub_util_write_image): Call grub_util_write_image_at.
53497 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53498 additional memory in kernel_img for a struct grub_module_info.
53499 Fill in that grub_module_info.
53500 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53501
53502 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53503
53504 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53505 New function.
53506 * include/grub/powerpc/ieee1275/ieee1275.h
53507 (grub_ieee1275_milliseconds): New prototype.
53508 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53509 Change to 1000.
53510 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53511 grub_ieee1275_milliseconds.
53512
53513 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53514
53515 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53516 variable.
53517 (find_options): New function.
53518 (cmain): Call find_options.
53519 * include/grub/powerpc/ieee1275/ieee1275.h
53520 (grub_ieee1275_realmode): New extern variable.
53521 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53522 grub_map if grub_ieee1275_realmode is false.
53523
53524 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53525
53526 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53527 lines are inserted and make it work like readline. Reported by
53528 Vincent Pelletier <subdino2004@yahoo.fr>.
53529
53530 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53531
53532 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53533
53534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53535 `kern/powerpc/cache.S'.
53536
53537 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53538
53539 * genmk.rb: Handle the `Program' class in the main loop. Written
53540 by Johan Rydberg <jrydberg@gnu.org>.
53541 (Program): New class.
53542 (programs): New variable.
53543 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53544 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53545 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53546 (help_arch): Function removed.
53547 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53548 `powerpc/libgcc.h' and `loader.h'.
53549 (pkgdata_PROGRAMS): New variable.
53550 (sbin_UTILITIES): Variable removed.
53551 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53552 (grubof_SOURCES): Variable re-defined so it only includes the
53553 core functionality.
53554 (grubof_CFLAGS): Remove `-DGRUBOF'.
53555 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53556 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53557 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53558 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53559 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53560 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53561 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53562 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53563 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53564 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53565 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53566 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53567 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53568 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53569 (pc_mod_CFLAGS): New variables.
53570 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53571 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53572 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53573 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53574 Moved from here...
53575 * include/grub/i386/pc/init.h (grub_os_area_addr)
53576 (rub_os_area_size): ... to here.
53577 * include/grub/powerpc/ieee1275/ieee1275.h
53578 (grub_ieee1275_entry_fn): Export symbol.
53579 * include/grub/powerpc/ieee1275/init.h: New file.
53580 * include/grub/powerpc/libgcc.h: Likewise.
53581 * include/grub/cache.h: Likewise.
53582 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53583 <hollis@penguinppc.org>.
53584 * kern/dl.c: Include <grub/cache.h>.
53585 (grub_dl_flush_cache): New function.
53586 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53587 for this module.
53588 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53589 (grub_console_init): Removed prototypes.
53590 (grub_machine_init): Don't initialize the modules anymore.
53591 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53592 static.
53593 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53594 Macro undef removed.
53595 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53596 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53597 relocation `R_PPC_REL32'. Return an error when the relocation is
53598 unknown.
53599 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53600 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53601 * util/misc.c (grub_arch_sync_caches): Likewise.
53602
53603 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53604
53605 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53606 `symlist.c', add `grubof_symlist.c'.
53607 (symlist.c): Variable removed.
53608 (grubof_HEADERS): Variable added.
53609 (grubof_symlist.c): New target.
53610 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53611 `kernel_img_HEADERS'.
53612 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53613 * kern/powerpc/dl.c: New file.
53614 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53615 Function removed.
53616 (grub_arch_dl_relocate_symbols): Likewise.
53617 (grub_register_exported_symbols): Likewise.
53618
53619 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53620
53621 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53622 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53623 to fail instead. Reported by Vincent Pelletier
53624 <subdino2004@yahoo.fr>.
53625
53626 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53627 it is not allocated. Reported by Vincent Pelletier
53628 <subdino2004@yahoo.fr>.
53629
53630 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53631 output so the output looks better.
53632
53633 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53634
53635 Modulize the partition map support and add support for the amiga
53636 partition map.
53637
53638 * commands/ls.c: Include <grub/partition.h> instead of
53639 <grub/machine/partition.h>.
53640 * kern/disk.c: Likewise.
53641 * kern/rescue.c: Likewise.
53642 * loader/i386/pc/chainloader.c: Likewise.
53643 * normal/cmdline.c: Likewise.
53644 * kern/powerpc/ieee1275/init.c: Likewise.
53645 (grub_machine_init): Call `grub_pc_partition_map_init',
53646 `grub_amiga_partition_map_init' and
53647 `grub_apple_partition_map_init'.
53648 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53649 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53650 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53651 `partition.h' and `pc_partition.h'.
53652 (grub_setup_SOURCES): Remove
53653 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53654 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53655 (grub_emu_SOURCES): Likewise.
53656 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53657 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53658 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53660 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53661 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53662 (grubof_SOURCES): Likewise.
53663 * disk/i386/pc/partition.c: File removed.
53664 * disk/powerpc/ieee1275/partition.c: Likewise.
53665 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53666 * include/grub/i386/pc/partition.h: Likewise.
53667 * kern/partition.c: New file.
53668 * partmap/amiga.c: Likewise.
53669 * partmap/apple.c: Likewise.
53670 * partmap/pc.c: Likewise.
53671 * include/grub/partition.h: Likewise..
53672 * include/grub/pc_partition.h: Likewise.
53673 * util/grub-emu.c: Include <grub/partition.h> instead of
53674 <grub/machine/partition.h>.
53675 (main): Call `grub_pc_partition_map_init',
53676 `grub_amiga_partition_map_init' and
53677 `grub_apple_partition_map_init' and deinitialize afterwards.
53678 * util/i386/pc/biosdisk.c: Include `#include
53679 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53680 `<grub/machine/partition.h>'.
53681 * util/i386/pc/grub-setup.c: Likewise.
53682 * util/i386/pc/biosdisk.c: Likewise.
53683 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53684 partition information in case of a PC partition.
53685 * util/i386/pc/grub-setup.c: Include `#include
53686 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53687 `<grub/machine/partition.h>'.
53688 (setup): Only access the PC specific partition information in case
53689 of a PC partition.
53690
53691 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53692
53693 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53694 (grub_longjmp): Likewise.
53695 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53696 20.
53697 * normal/powerpc/setjmp.S: New file.
53698 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53699 `normal/powerpc/setjmp.S'.
53700 (grubof_CFLAGS): Add `-DGRUBOF'.
53701 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53702 [GRUB_UTIL && !GRUBOF].
53703
53704 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53705
53706 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53707 property named `name'. Correctly handle the error returned by
53708 `grub_ieee1275_finddevice' if a device can not be opened.
53709
53710 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53711
53712 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53713 `actual' for negativity.
53714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53715 kern/fshelp.c.
53716
53717 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53718
53719 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53720 (PAGE_OFFSET): New macro.
53721 (CRTC_ADDR_PORT): Likewise.
53722 (CRTC_DATA_PORT): Likewise.
53723 (START_ADDR_HIGH_REGISTER): Likewise.
53724 (START_ADDR_LOW_REGISTER): Likewise.
53725 (GRAPHICS_ADDR_PORT): Likewise.
53726 (GRAPHICS_DATA_PORT): Likewise.
53727 (READ_MAP_REGISTER): Likewise.
53728 (INPUT_STATUS1_REGISTER): Likewise.
53729 (INPUT_STATUS1_VERTR_BIT): Likewise.
53730 (page): New variable.
53731 (wait_vretrace): New function.
53732 (set_read_map): Likewise.
53733 (set_start_address): Likewise.
53734 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53735 the right page.
53736 (check_vga_mem): Take the page into account.
53737 (write_char): Likewise.
53738 (write_cursor): Likewise.
53739 (scroll_up): Likewise. Copy the page to the page that is not
53740 shown and switch between both pages.
53741 (grub_vga_putchar): Fix off by one error.
53742 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53743 account.
53744
53745 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53746
53747 Add support for iso9660 (including rockridge).
53748
53749 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53750 (iso9660_mod_SOURCES): New variable.
53751 (iso9660_mod_CFLAGS): Likewise.
53752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53753 * include/grub/fs.h (grub_iso9660_init): New prototype.
53754 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53755 * fs/iso9660.c: New file.
53756
53757 * include/grub/misc.h (grub_strncat): New prototype.
53758 * kern/misc.c (grub_strncat): New function.
53759
53760 * fs/hfs.c (grub_hfs_mount): Translate the error
53761 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53762 * fs/jfs.c (grub_jfs_mount): Likewise.
53763 * fs/ufs.c (grub_ufs_mount): Likewise.
53764
53765 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53766
53767 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53768 which initialized BAT registers.
53769 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53770 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53771 Move from here...
53772 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53773 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53774 ... to here.
53775 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53776 (grub_mapclaim): Likewise.
53777 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53778 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53779 hand.
53780
53781 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53782
53783 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53784 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53785 -ffreestanding and -msoft-float.
53786
53787 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53788
53789 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53790 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53791 set in grub_ieee1275_flags.
53792
53793 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53794
53795 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53796 prototype.
53797 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53798 grub_console_init first.
53799 Change the memory range used for grub_ieee1275_claim and
53800 grub_mm_init_region.
53801 Print an error message if the claim fails.
53802 Include <grub/misc.h>.
53803
53804 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53805
53806 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53807 Call grub_children_iterate for device nodes of type `scsi',
53808 `ide', or `ata'.
53809 (grub_ofdisk_open): Remove manual device alias resolution.
53810 Fix memory leak when device cannot be opened.
53811 * include/grub/powerpc/ieee1275/ieee1275.h
53812 (grub_children_iterate): New prototype.
53813 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53814 New function.
53815 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53816 Return -1 if args.size was -1.
53817
53818 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53819
53820 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53821 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53822 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53823 Open Firmware's memory for it; claim memory from _start to _end.
53824 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53825 (_end): New extern.
53826 (_start): Zero BSS from __bss_start to _end.
53827 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53828 New extern.
53829 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53830
53831 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53832
53833 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53834 -1 if args.base was -1.
53835
53836 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53837
53838 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53839 escape sequence instead of a literal ^L. Also call
53840 grub_ofconsole_gotoxy.
53841
53842 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53843
53844 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53845 void * arguments to grub_addr_t. All callers updated. Also make
53846 the `result' argument optional.
53847 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53848 All callers updated.
53849
53850 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53851
53852 * commands/ls.c (grub_ls_list_files): Use the string following the
53853 initial ')', if present, as the filesystem path.
53854 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53855
53856 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53857
53858 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53859
53860 Make the source code of the menu interface more readable.
53861
53862 * normal/menu.c: Include grub/mm.h.
53863 (TERM_WIDTH): New macro.
53864 (TERM_HEIGHT): Likewise.
53865 (TERM_INFO_HEIGHT): Likewise.
53866 (TERM_MARGIN): Likewise.
53867 (TERM_SCROLL_WIDTH): Likewise.
53868 (TERM_TOP_BORDER_Y): Likewise.
53869 (TERM_LEFT_BORDER_X): Likewise.
53870 (TERM_BORDER_WIDTH): Likewise.
53871 (TERM_MESSAGE_HEIGHT): Likewise.
53872 (TERM_BORDER_HEIGHT): Likewise.
53873 (TERM_NUM_ENTRIES): Likewise.
53874 (TERM_FIRST_ENTRY_Y): Likewise.
53875 (TERM_ENTRY_WIDTH): Likewise.
53876 (TERM_CURSOR_X): Likewise.
53877 (draw_border): Use macros instead of magic numbers.
53878 (print_entry): Likewise.
53879 (print_entries): Likewise.
53880 (run_menu): Likewise. Also, handle the key 'e'.
53881 (run_menu_entry): Ignore empty command lines.
53882 (print_message): Added a new argument EDIT. If EDIT is true,
53883 print a different message.
53884 (init_page): Likewise.
53885 (edit_menu_entry): New function. Not implemented yet.
53886
53887 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53888
53889 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53890 can be loaded from normal mode.
53891
53892 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53893 `multiboot.mod'.
53894 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53895 (multiboot_mod_CFLAGS): New variables.
53896 * loader/i386/pc/linux_normal.c: New file.
53897 * loader/i386/pc/multiboot_normal.c: Likewise.
53898
53899 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53900 attribute `unused'.
53901
53902 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53903 `fdiro' to read the mode information from instead of `diro'.
53904
53905 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53906 looking up a symlink.
53907
53908 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53909 macro.
53910 * normal/command.c (grub_command_execute): Don't parse the
53911 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53912 flags of the command.
53913
53914 * normal/menu.c (grub_menu_run): Fix typo.
53915
53916 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53917
53918 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53919
53920 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53921 `y + 1' instead of `y - 1'.
53922
53923 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53924
53925 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53926
53927 From Hollis Blanchard <hollis@penguinppc.org>:
53928 * kern/misc.c (memmove): New alias for grub_memmove.
53929 (memcmp): New alias for grub_memcmp.
53930 (memset): New alias for grub_memset.
53931 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53932 Change "int handle" to "grub_ieee1275_phandle_t handle".
53933 * include/grub/powerpc/ieee1275/ieee1275.h
53934 (grub_ieee1275_get_property): Likewise.
53935
53936 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53937
53938 Added normal mode command `chainloader' as module chain.mod, which
53939 depends on normal.mod and _chain.mod.
53940
53941 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53942 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53943 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53944 Deleted prototype.
53945 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53946 but arguments parsing moved to ...
53947 (grub_chainloader_cmd): ... here. New function.
53948 * include/grub/i386/pc/chainloader.h: New file.
53949 * loader/i386/pc/chainloader_normal.c: Likewise.
53950
53951 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53952
53953 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53954 (grub_mkimage_LDFLAGS): Likewise.
53955 (grub_emu_SOURCES): Likewise.
53956 (kernel_img_HEADERS): Added fshelp.h.
53957 * fs/ext2.c: Include <grub/fshelp.h>.
53958 (FILETYPE_REG): New macro.
53959 (FILETYPE_INO_REG): Likewise.
53960 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53961 Changed all users.
53962 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53963 all users.
53964 (grub_fshelp_node): New struct.
53965 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53966 to a pointer.
53967 (grub_ext2_get_file_block): Removed function.
53968 (grub_ext2_read_block): New function.
53969 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53970 This function was written.
53971 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53972 (grub_ext2_find_file): Removed function.
53973 (grub_ext2_read_symlink): New function.
53974 (grub_ext2_iterate_dir): Likewise.
53975 (grub_ext2_open): Rewritten.
53976 (grub_ext2_dir): Rewritten.
53977 * include/grub/fshelp.h: New file.
53978 * fs/fshelp.c: Likewise.
53979
53980 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53981
53982 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
53983 (print_message): Add a missing newline.
53984 (run_menu): Added timeout support.
53985 (run_menu_entry): New local function.
53986 (grub_menu_run): Added support for booting.
53987
53988 * kern/loader.c (grub_loader_is_loaded): New function.
53989
53990 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
53991 (grub_get_rtc): Exported.
53992
53993 * include/grub/i386/pc/time.h: Include grub/symbol.h.
53994 (grub_get_rtc): Exported.
53995
53996 * include/grub/normal.h (struct grub_command_list): Remove
53997 constant from the member `command'.
53998
53999 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54000
54001 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54002
54003 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54004
54005 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54006
54007 Add support for the JFS filesystem.
54008
54009 * fs/jfs.c: New file.
54010 * include/grub/fs.h (grub_jfs_init): New prototype.
54011 (grub_jfs_fini): New prototype.
54012 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54013 (grub_emu_SOURCES): Likewise.
54014 (pkgdata_MODULES): Add jfs.mod.
54015 (jfs_mod_SOURCES): New variable.
54016 (jfs_mod_CFLAGS): Likewise.
54017 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54018 (grubof_SOURCES): Likewise.
54019 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54020
54021 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54022 endian to the host endian.
54023 (grub_fat_utf16_to_utf8): Move function from there...
54024 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54025 the endianness of the source string anymore.
54026 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54027
54028 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54029
54030 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54031 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54032 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54033 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54034
54035 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54036 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54037 for `node_found' and `it_dir'.
54038 (grub_hfs_dir): Add prototype for `dir_hook'.
54039
54040 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54041 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54042 and `indir32' to silence a gcc warning.
54043
54044 * include/grub/fs.h (grub_hfs_init): New prototype.
54045 (grub_hfs_fini): Likewise.
54046
54047
54048 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54049
54050 Each disk device has its own id now. This is useful to make use
54051 of multiple disk devices.
54052
54053 * include/grub/disk.h (grub_disk_dev_id): New enum.
54054 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54055 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54056
54057 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54058 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54059
54060 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54061 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54062
54063 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54064 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54065
54066 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54067 "id" which is used by the cache manager.
54068
54069 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54070 of just "GRUB".
54071
54072 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54073
54074 * fs/hfs.c: New file.
54075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54076 (grub_emu_SOURCES): Likewise.
54077 (pkgdata_MODULES): Add hfs.mod.
54078 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54079 (grubof_SOURCES): Likewise.
54080 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54081
54082 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54083 * kern/misc.c (grub_strncasecmp): Add function.
54084
54085 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54086
54087 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54088 with parentheses.
54089
54090 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54091 (grub_ext2_dir): In case the directory entry type is unknown, read
54092 it from the inode.
54093
54094 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54095
54096 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54097 grub_load_linux instead of grub_rescue_cmd_linux as second
54098 argument of grub_rescue_register_command.
54099
54100 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54101
54102 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54103
54104 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54105 function.
54106 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54107 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54108 `loader/powerpc/ieee1275/linux.c',
54109 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54110 * include/grub/powerpc/ieee1275/ieee1275.h
54111 (grub_ieee1275_release): New prototype.
54112 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54113 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54114 normal, boot, linux and linux_normal.
54115 * loader/powerpc/ieee1275/linux.c: New file.
54116 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54117
54118 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54119
54120 * normal/arg.c (grub_arg_parse): Correct error handling after
54121 reallocating the argumentlist (check if `argl' is not null instead
54122 of checking if `args' is not null).
54123 * kern/mm.c (grub_realloc): Return the same pointer when using the
54124 same region, instead of returning the header address.
54125
54126 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54127
54128 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54129 one block instead of two when looking for the initial partition.
54130 (grub_partition_probe): Initialize the local variable `p' with 0.
54131 Use base 10 for the grub_strtoul call.
54132 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54133 need for one local variable.
54134 (grub_strtoul): Don't add the new value to `num', instead of that
54135 just assign it.
54136
54137 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54138
54139 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54140 (pxeboot_img_SOURCES): New variable.
54141 (pxeboot_img_ASFLAGS): Likewise.
54142 (pxeboot_img_LDFLAGS): Likewise.
54143 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54144 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54145 <lode_leroy@hotmail.com>.
54146
54147 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54148
54149 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54150 there was no input.
54151
54152 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54153
54154 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54155 the history buffer logic.
54156
54157 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54158
54159 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54160 (FILETYPE_INO_SYMLINK): New macros.
54161 (grub_ext2_find_file): Check if the node is a directory using the
54162 inode stat information instead of using the filetype in the
54163 dirent. Exclude the first character of an absolute symlink.
54164 (grub_ext2_dir): Mask out the filetype part of the mode member of
54165 the inode.
54166
54167 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54168
54169 Add support for UFS version 1 and 2. Add support for the minix
54170 filesystem version 1 and 2, both the variants with 14 and 30 long
54171 filenames.
54172
54173 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54174 fs/minix.c.
54175 (grub_emu_SOURCES): Likewise.
54176 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54177 (ufs_mod_SOURCES): New variable.
54178 (ufs_mod_CFLAGS): Likewise.
54179 (minix_mod_SOURCES): Likewise.
54180 (minix_mod_CFLAGS): Likewise.
54181 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54182 fs/minix.c.
54183 (grubof_SOURCES): Likewise.
54184 * fs/ufs.c: New file.
54185 * fs/minix.c: New file.
54186 * include/grub/fs.h (grub_ufs_init): New prototype.
54187 (grub_ufs_fini): Likewise.
54188 (grub_minix_init): Likewise.
54189 (grub_minix_fini): Likewise.
54190 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54191 minix fs.
54192
54193 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54194
54195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54196 commands/ls.c, commands/terminal.c, commands/boot.c,
54197 commands/cmp.c and commands/cat.c.
54198 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54199
54200 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54201 "env.h"
54202
54203 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54204
54205 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54206 and grub_, respectively. Because the conversion is trivial and
54207 mechanical, I omit the details here. Please refer to the CVS
54208 if you need more information.
54209
54210 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54211
54212 * include/pupa: Renamed to ...
54213 * include/grub: ... this.
54214 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54215 * util/i386/pc/grub-mkimage.c: ... this.
54216 * util/i386/pc/pupa-setup.c: Renamed to ...
54217 * util/i386/pc/grub-setup.c: ... this.
54218 * util/pupa-emu.c: Renamed to ...
54219 * util/grub-emu.c: ... this.
54220
54221 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54222
54223 Add support for the newworld apple macintosh (PPC). This has been
54224 tested on the powerbook 2000 only. It only adds support for
54225 generic ieee1275 functions, console and disk support. This should
54226 be easy to port to other architectures with support for Open
54227 Firmware.
54228
54229 * configure.ac: Accept the powerpc as host_cpu. In the case of
54230 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54231 specific tests are only executed while building for the i386.
54232 Inverse test for crosscompile.
54233 * genmk.rb (Utility): Allow assembler files.
54234 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54235 * conf/powerpc-ieee1275.rmk: New file.
54236 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54237 * disk/powerpc/ieee1275/partition.c: Likewise.
54238 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54239 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54240 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54241 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54242 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54243 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54244 * include/pupa/powerpc/ieee1275/loader.h
54245 * include/pupa/powerpc/setjmp.h: Likewise.
54246 * include/pupa/powerpc/types.h: Likewise.
54247 * kern/powerpc/ieee1275/init.c: Likewise.
54248 * kern/powerpc/ieee1275/openfw.c: Likewise.
54249 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54250
54251 These files were written by Johan Rydberg
54252 (jrydberg@night.trouble.net) and I only modified them slightly.
54253
54254 * boot/powerpc/ieee1275/cmain.c: New file.
54255 * boot/powerpc/ieee1275/crt0.S: Likewise.
54256 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54257 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54258
54259 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54260
54261 * Makefile.in: Update copyright.
54262 * genmodsrc.sh: Likewise.
54263 * gensymlist.sh: Likewise.
54264 * term/i386/pc/vga.c: Indent correctly.
54265
54266 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54267 bugreporting address.
54268 * util/i386/pc/pupa-setup.c (usage): Likewise,
54269 (main): Call pupa_ext2_init and pupa_ext2_fini.
54270
54271 * fs/fat.c (log2): Renamed to ...
54272 (fat_log2): ... this.
54273 All callers changed.
54274 * kern/misc.c (memcpy): Alias to pupa_memmove.
54275 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54276 lvalue cast.
54277 * util/console.c (pupa_ncurses_fini): Return 0.
54278
54279 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54280 Move fail label here.
54281 [__GNU__]: Don't warn when using stat.
54282 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54283 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54284 long int. Use strtol instead of strtoul.
54285
54286 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54287
54288 * commands/boot.c: New file.
54289 * commands/cat.c: Likewise.
54290 * commands/cmp.c: Likewise.
54291 * commands/ls.c: Likewise.
54292 * commands/terminal.c: Likewise.
54293 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54294 (pupa_register_command): Changed interface to match the new
54295 argument parser.
54296 (pupa_command_execute): Changed (almost rewritten) so it uses
54297 pupa_split_command. Added support for setting variables using the
54298 syntax `foo=bar'.
54299 (rescue_command): Changed to work with the new argument parser.
54300 (terminal_command): Moved from here to commands/terminal.c.
54301 (set_command): New function.
54302 (unset_command): New function.
54303 (insmod_command): New function.
54304 (rmmod_command): New function.
54305 (lsmod_command): New function.
54306 (pupa_command_init): Don't initialize the command terminal
54307 anymore. Initialize the commands set, unset, insmod, rmmod and
54308 lsmod.
54309 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54310 (kernel_img_HEADERS): Add arg.h and env.h.
54311 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54312 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54313 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54314 normal/arg.c.
54315 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54316 terminal.mod.
54317 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54318 (boot_mod_SOURCES): New variable.
54319 (terminal_mod_SOURCES): Likewise.
54320 (ls_mod_SOURCES): Likewise.
54321 (cmp_mod_SOURCES): Likewise.
54322 (cat_mod_SOURCES): Likewise.
54323
54324 * normal/arg.c: New file.
54325 * kern/env.c: Likewise.
54326 * include/pupa/arg.h: Likewise.
54327 * include/pupa/env.h: Likewise.
54328 * font/manager.c (font_command): Changed to match argument parsing
54329 interface changes.
54330 (PUPA_MOD_INIT): Likewise.
54331 * hello/hello.c (pupa_cmd_hello): Likewise.
54332 (PUPA_MOD_INIT): Likewise.
54333 * include/pupa/disk.h: Include <pupa/device.h>.
54334 (pupa_print_partinfo): New prototype.
54335 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54336 (pupa_dl_get_prefix): Likewise.
54337 * include/pupa/misc.h: Include <pupa/err.h>.
54338 (pupa_isgraph): New prototype.
54339 (pupa_isdigit): Likewise.
54340 (pupa_split_cmdline): Likewise.
54341 * include/pupa/normal.h: Include <pupa/arg.h>.
54342 (pupa_command): Changed the prototype of the member `func' to
54343 match the argument parsing interface. Added member `options'.
54344 (pupa_register_command): Updated to match function.
54345 (pupa_arg_parse): New prototype.
54346 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54347 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54348 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54349 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54350 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54351 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54352 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54353 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54354 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54355 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54356 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54357 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54358 * kern/disk.c: Include <pupa/file.h>.
54359 (pupa_print_partinfo): New function.
54360 * kern/dl.c: Include <pupa/env.h>.
54361 (pupa_dl_dir): Variable removed.
54362 (pupa_dl_load): Use the environment variable `prefix' instead of
54363 the variable pupa_dl_dir.
54364 (pupa_dl_set_prefix): Function removed.
54365 (pupa_dl_get_prefix): Likewise.
54366 * kern/i386/pc/init.c: Include <pupa/env.h>.
54367 (pupa_machine_init): Use the environment variable `prefix' instead of
54368 using pupa_dl_set_prefix to set the prefix.
54369 * kern/main.c: Include <pupa/env.h>.
54370 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54371 using pupa_dl_get_prefix to get the prefix.
54372 * kern/misc.c: Include <pupa/env.h>.
54373 (pupa_isdigit): New function.
54374 (pupa_isgraph): Likewise.
54375 (pupa_ftoa): Likewise.
54376 (pupa_vsprintf): Added support for printing values of the type
54377 `double'. Make it possible to format variable output when using
54378 formatting like `%1.2%f'.
54379 (pupa_split_cmdline): New function.
54380 * kern/rescue.c: Include <pupa/env.h>.
54381 (next_word): Removed function.
54382 (pupa_rescue_cmd_prefix): Likewise.
54383 (pupa_rescue_cmd_set): New function.
54384 (pupa_rescue_cmd_unset): New function.
54385 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54386 split the command line instead of splitting it here. Added
54387 support for setting variables using the syntax `foo=bar'. Don't
54388 initialize the prefix command anymore. Initialized the set and
54389 unset commands.
54390 * normal/cmdline.c: Include <pupa/env.h>.
54391 (pupa_tab_complete): Added prototypes for print_simple_completion,
54392 print_partition_completion, add_completion, iterate_commands,
54393 iterate_dev, iterate_part and iterate_dir. Moved code to print
54394 partition information from here to kern/disk.c.
54395 (pupa_cmdline_run): Don't check if the function exists anymore.
54396 * normal/main.c: Include <pupa/env.h>.
54397 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54398 instead of using pupa_dl_get_prefix to get the prefix.
54399 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54400 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54401 warning.
54402 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54403 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54404 ((unused))' to silence a gcc warning.
54405 (pupa_vga_setcolor): Likewise.
54406 (debug_command): Changed to match argument parsing
54407 interface changes.
54408 * util/pupa-emu.c: Include <pupa/env.h>.
54409 (options): Added 0's for unused fields to silence a gcc warning.
54410 (argp): Likewise.
54411 (main): Use the environment variable `prefix' instead of using
54412 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54413 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54414 and terminal.
54415
54416 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54417 * util/misc.c: Include <malloc.h>.
54418 (pupa_malloc): Rewritten so errors are correctly reported.
54419 (pupa_realloc): Likewise.
54420 (pupa_memalign): Likewise.
54421 (pupa_mm_init_region): Declare unused variables with
54422 `__attribute__ ((unused))' to silence a gcc warning.
54423 * normal/i386/setjmp.S: Remove tab at the end of the file to
54424 silence a gcc warning.
54425 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54426 variables with `__attribute__ ((unused))' to silence a gcc
54427 warning.
54428 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54429 local variable i unsigned to silence a gcc warning.
54430
54431 * kern/term.c: Include <pupa/misc.h>.
54432 (pupa_more_lines): New variable.
54433 (pupa_more): Likewise.
54434 (pupa_putcode): When the pager is active pause at the end of every
54435 screen.
54436 (pupa_set_more): New function.
54437 * include/pupa/term.h (pupa_set_more): New prototype.
54438
54439
54440 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54441
54442 Now this project is GRUB 2 rather than PUPA. The location of
54443 the CVS repository was moved to GRUB's.
54444
54445 * configure.ac: Use bug-grub as the reporting address.
54446 Use GRUB instead of PUPA.
54447 Change the version number to 1.90.
54448
54449 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54450
54451 * genkernsyms.sh: Updated copyright information.
54452 * genmk.rb: Likewise.
54453 * genmodsrc.sh: Likewise.
54454 * gensymlist.sh: Likewise.
54455 * boot/i386/pc/boot.S: Likewise.
54456 * boot/i386/pc/diskboot.S: Likewise.
54457 * disk/i386/pc/biosdisk.c: Likewise.
54458 * disk/i386/pc/partition.c: Likewise.
54459 * font/manager.c: Likewise.
54460 * fs/ext2.c: Likewise.
54461 * fs/fat.c: Likewise.
54462 * include/pupa/boot.h: Likewise.
54463 * include/pupa/device.h: Likewise.
54464 * include/pupa/disk.h: Likewise.
54465 * include/pupa/dl.h: Likewise.
54466 * include/pupa/elf.h: Likewise.
54467 * include/pupa/err.h: Likewise.
54468 * include/pupa/file.h: Likewise.
54469 * include/pupa/font.h: Likewise.
54470 * include/pupa/fs.h: Likewise.
54471 * include/pupa/kernel.h: Likewise.
54472 * include/pupa/loader.h: Likewise.
54473 * include/pupa/misc.h: Likewise.
54474 * include/pupa/mm.h: Likewise.
54475 * include/pupa/net.h: Likewise.
54476 * include/pupa/normal.h: Likewise.
54477 * include/pupa/rescue.h: Likewise.
54478 * include/pupa/setjmp.h: Likewise.
54479 * include/pupa/symbol.h: Likewise.
54480 * include/pupa/term.h: Likewise.
54481 * include/pupa/types.h: Likewise.
54482 * include/pupa/i386/setjmp.h: Likewise.
54483 * include/pupa/i386/types.h: Likewise.
54484 * include/pupa/i386/pc/biosdisk.h: Likewise.
54485 * include/pupa/i386/pc/boot.h: Likewise.
54486 * include/pupa/i386/pc/console.h: Likewise.
54487 * include/pupa/i386/pc/init.h: Likewise.
54488 * include/pupa/i386/pc/kernel.h: Likewise.
54489 * include/pupa/i386/pc/linux.h: Likewise.
54490 * include/pupa/i386/pc/loader.h: Likewise.
54491 * include/pupa/i386/pc/memory.h: Likewise.
54492 * include/pupa/i386/pc/multiboot.h: Likewise.
54493 * include/pupa/i386/pc/partition.h: Likewise.
54494 * include/pupa/i386/pc/time.h: Likewise.
54495 * include/pupa/i386/pc/vga.h: Likewise.
54496 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54497 * include/pupa/util/getroot.h: Likewise.
54498 * include/pupa/util/misc.h: Likewise.
54499 * include/pupa/util/resolve.h: Likewise.
54500 * kern/device.c: Likewise.
54501 * kern/disk.c: Likewise.
54502 * kern/dl.c: Likewise.
54503 * kern/err.c: Likewise.
54504 * kern/file.c: Likewise.
54505 * kern/fs.c: Likewise.
54506 * kern/loader.c: Likewise.
54507 * kern/main.c: Likewise.
54508 * kern/misc.c: Likewise.
54509 * kern/mm.c: Likewise.
54510 * kern/rescue.c: Likewise.
54511 * kern/term.c: Likewise.
54512 * kern/i386/dl.c: Likewise.
54513 * kern/i386/pc/init.c: Likewise.
54514 * kern/i386/pc/lzo1x.S: Likewise.
54515 * kern/i386/pc/startup.S: Likewise.
54516 * loader/i386/pc/chainloader.c: Likewise.
54517 * loader/i386/pc/linux.c: Likewise.
54518 * loader/i386/pc/multiboot.c: Likewise.
54519 * normal/cmdline.c: Likewise.
54520 * normal/command.c: Likewise.
54521 * normal/main.c: Likewise.
54522 * normal/menu.c: Likewise.
54523 * normal/i386/setjmp.S: Likewise.
54524 * term/i386/pc/console.c: Likewise.
54525 * term/i386/pc/vga.c: Likewise.
54526 * util/console.c: Likewise.
54527 * util/genmoddep.c: Likewise.
54528 * util/misc.c: Likewise.
54529 * util/pupa-emu.c: Likewise.
54530 * util/resolve.c: Likewise.
54531 * util/unifont2pff.rb: Likewise.
54532 * util/i386/pc/biosdisk.c: Likewise.
54533 * util/i386/pc/getroot.c: Likewise.
54534 * util/i386/pc/pupa-mkimage.c: Likewise.
54535 * util/i386/pc/pupa-setup.c: Likewise.
54536
54537 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54538
54539 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54540 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54541 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54542 reading and reset it after reading.
54543 (pupa_ext2_close): Return PUPA_ERR_NONE.
54544
54545 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54546 Correct value.
54547 (struct linux_kernel_header): Add kernel_version and
54548 initrd_addr_max.
54549 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54550 pupa_file_read succeeds.
54551 (pupa_rescue_cmd_initrd): Implement.
54552
54553 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54554
54555 * fs/ext2.c (pupa_ext2_label): New function.
54556 (pupa_ext2_fs): Added label.
54557 * fs/fat.c (pupa_fat_label): New function.
54558 (pupa_fat_fs): Added label.
54559 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54560
54561 * kern/misc.c (pupa_strndup): New function.
54562 * include/pupa/misc.h (pupa_strndup): New prototype.
54563
54564 * include/pupa/normal.h: Include <pupa/err.h>.
54565 (pupa_set_history): New prototype.
54566 (pupa_iterate_commands): New prototype.
54567 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54568 <pupa/disk.h>, <pupa/file.h>.
54569 (hist_size): New variable.
54570 (hist_lines): Likewise.
54571 (hist_end): Likewise.
54572 (hist_used): Likewise.
54573 (pupa_set_history): New function.
54574 (pupa_history_get): Likewise.
54575 (pupa_history_add): Likewise.
54576 (pupa_history_replace): Likewise.
54577 (pupa_tab_complete): Likewise.
54578 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54579 completion shows partitionnames while completing partitions, this
54580 feature was suggested by Jeff Bailey.
54581 * normal/command.c (pupa_iterate_commands): New function.
54582 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54583 (pupa_normal_init): Initialize history buffer.
54584 (PUPA_MOD_INIT): Likewise.
54585 (pupa_normal_fini): Free the history buffer.
54586 (PUPA_MOD_FINI): Likewise.
54587
54588 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54589 key.
54590
54591 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54592 * configure.ac [i386]: Check for regparam bug.
54593 (NESTED_FUNC_ATTR) [! i386]: Defined.
54594
54595 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54596
54597 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54598 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54599 (pupa_emu_SOURCES): New variable.
54600 (pupa_emu_LDFLAGS): Likewise.
54601 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54602 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54603 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54604 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54605 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54606 (pupa_jmp_buf): New typedef.
54607 (pupa_setjmp) [PUPA_UTIL]: New macro.
54608 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54609 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54610 (pupa_refresh): New prototype.
54611 * include/pupa/util/getroot.h: New file.
54612 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54613 it.
54614 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54615 (pupa_rescue_cmd_cat): Likewise.
54616 (pupa_rescue_cmd_ls): Likewise.
54617 (pupa_rescue_cmd_testload): Likewise.
54618 (pupa_rescue_cmd_lsmod): Likewise.
54619 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54620 * normal/menu.c (run_menu): Likewise.
54621 * kern/term.c (pupa_cls): Likewise.
54622 (pupa_refresh): New function.
54623 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54624 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54625 * util/console.c: New file.
54626
54627 * util/i386/pc/getroot.c: New file.
54628 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54629 (pupa_putchar): New function.
54630 (pupa_refresh): Likewise.
54631 (xgetcwd): Function moved to ...
54632 (strip_extra_slashes): Likewise.
54633 (get_prefix): Likewise.
54634 * util/i386/pc/getroot.c: ... here.
54635 (find_root_device): Function moved and renamed to...
54636 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54637 Changed all callers.
54638 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54639 and renamed to...
54640 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54641 Changed all callers.
54642 * util/misc.c (pupa_memalign): New function.
54643 (pupa_mm_init_region): Likewise.
54644 (pupa_register_exported_symbols): Likewise.
54645 (pupa_putchar): Function removed.
54646 * util/pupa-emu.c: New file.
54647
54648 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54649
54650 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54651 (_multiboot_mod_SOURCES): New variable.
54652 (_multiboot_mod_CFLAGS): Likewise.
54653 * loader/i386/pc/multiboot.c: New file.
54654 * include/pupa/i386/pc/multiboot.h: Likewise.
54655 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54656 (pupa_multiboot_real_boot): New function.
54657 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54658 (pupa_multiboot_real_boot): New prototype.
54659 (pupa_rescue_cmd_multiboot): Likewise
54660 (pupa_rescue_cmd_module): Likewise.
54661
54662 * kern/loader.c (pupa_loader_set): Continue when
54663 pupa_loader_unload_func() fails.
54664 (pupa_loader_unset): New function.
54665 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54666
54667 * kern/misc.c (pupa_stpcpy): New function.
54668 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54669
54670 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54671
54672 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54673 for available extensions.
54674
54675 * include/pupa/i386/pc/time.h: New file.
54676 * kern/disk.c: Include <pupa/machine/time.h>.
54677 (PUPA_CACHE_TIMEOUT): New macro.
54678 (pupa_last_time): New variable.
54679 (pupa_disk_open): Flush the cache when there was a timeout.
54680 (pupa_disk_close): Reset the timer.
54681 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54682 pupa_currticks.
54683 * util/misc.c: Include <sys/times.h>
54684 (pupa_get_rtc): New function.
54685
54686 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54687
54688 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54689 as blocks.
54690 (pupa_ext2_get_file_block): Use blocks member.
54691
54692 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54693 first block. Return -1 instead of pupa_errno on error.
54694
54695 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54696
54697 * README: In the pupa-mkimage example use _chain instead of chain
54698 and ext2 instead of fat.
54699 * TODO: Replace ext2fs with jfs as an example. Add an item for
54700 adding journal playback for ext2fs.
54701 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54702 (pkgdata_MODULES): Added ext2.mod.
54703 (ext2_mod_SOURCES): New variable.
54704 (ext2_mod_CFLAGS): Likewise.
54705 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54706 * include/pupa/misc.h (pupa_strncpy): New prototype.
54707 (pupa_strcat): Likewise.
54708 (pupa_strncmp): Likewise.
54709 * kern/misc.c (pupa_strcat): Enable function.
54710 (pupa_strncpy): New function.
54711 (pupa_strncmp): Likewise.
54712 * fs/ext2.c: New file.
54713
54714 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54715 when the read failed before retrying.
54716 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54717 (_FILE_OFFSET_BITS): Likewise.
54718 * configure.ac: Added AC_SYS_LARGEFILE.
54719
54720 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54721
54722 * genmk.rb (PModule#rule): Make sure to get only symbol names
54723 from the output of nm.
54724 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54725
54726 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54727
54728 I forgot to check in these changes for a long time. This adds
54729 incomplete support for VGA console, and this is still very
54730 buggy. Also, a lot of consideration is required for I18N,
54731 UNICODE, and VGA font issues. Therefore, assume that this is
54732 such that "better than nothing".
54733
54734 * font/manager.c: New file.
54735 * include/pupa/font.h: Likewise.
54736 * include/pupa/i386/pc/vga.h: Likewise.
54737 * term/i386/pc/vga.c: Likewise.
54738 * util/unifont2pff.rb: Likewise.
54739
54740 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54741 (pkgdata_MODULES): Added vga.mod and font.mod.
54742 (vga_mod_SOURCES): New variables.
54743 (vga_mod_CFLAGS): Likewise.
54744 (font_mod_SOURCES): Likewise.
54745 (font_mod_CFLAGS): Likewise.
54746
54747 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54748
54749 * include/pupa/term.h: Include pupa/err.h.
54750 (struct pupa_term): Added init and fini.
54751 Changed the argument of putchar to pupa_uint32_t.
54752
54753 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54754 (pupa_console_real_putchar): New prototype.
54755 (pupa_console_putchar): Removed.
54756 (pupa_console_checkkey): Exported.
54757 (pupa_console_getkey): Likewise.
54758
54759 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54760 characters.
54761
54762 * kern/term.c (pupa_term_set_current): Rewritten.
54763 (pupa_putchar): Likewise.
54764 (pupa_putcode): New function.
54765
54766 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54767 (pupa_console_real_putchar): ... this.
54768 (pupa_vga_set_mode): New function.
54769 (pupa_vga_get_font): Likewise.
54770
54771 * normal/command.c: Include pupa/term.h.
54772 (terminal_command): New function.
54773 (pupa_command_init): Register the command "terminal".
54774
54775 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54776 (DISP_UP): Likewise.
54777 (DISP_RIGHT): Likewise.
54778 (DISP_DOWN): Likewise.
54779 (DISP_HLINE): Likewise.
54780 (DISP_VLINE): Likewise.
54781 (DISP_UL): Likewise.
54782 (DISP_UR): Likewise.
54783 (DISP_LL): Likewise.
54784 (DISP_LR): Likewise.
54785
54786 * term/i386/pc/console.c (pupa_console_putchar): New function.
54787
54788 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54789
54790 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54791 FIX. Reverse the path_list.
54792
54793 * include/pupa/normal.h: Export pupa_register_command and
54794 pupa_unregister_command.
54795
54796 * hello/hello.c (pupa_cmd_hello): New module.
54797 * conf/i386-pc.rmk: Added hello.mod.
54798
54799 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54800
54801 * kern/i386/pc/lzo1x.S: New file.
54802
54803 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54804 (compress_kernel): New variable.
54805 (generate_image): Heavily modified to support compressing a
54806 large part of the core image.
54807
54808 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54809 leak.
54810 (pupa_util_load_image): New function.
54811
54812 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54813 (pupa_compressed_size): New variable.
54814 (codestart): Enable Gate A20 here.
54815 Decompress the compressed part of the core image.
54816 Rearrange the code to put functions and variables which are
54817 required for initialization in the non-compressed part.
54818 Include lzo1x.S.
54819
54820 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54821 here.
54822
54823 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54824
54825 * include/pupa/i386/pc/kernel.h
54826 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54827 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54828 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54829 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54830 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54831
54832 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54833
54834 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54835 (Utility#rule): Likewise.
54836
54837 * configure.ac: Check if LZO is available.
54838
54839 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54840
54841 * include/pupa/normal.h: New file.
54842 * include/pupa/setjmp.h: Likewise.
54843 * include/pupa/i386/setjmp.h: Likewise.
54844 * normal/cmdline.c: Likewise.
54845 * normal/command.c: Likewise.
54846 * normal/main.c: Likewise.
54847 * normal/menu.c: Likewise.
54848 * normal/i386/setjmp.S: Likewise.
54849
54850 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54851 (pupa_rescue_cmd_initrd): Likewise.
54852
54853 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54854 Likewise.
54855
54856 * kern/i386/pc/startup.S (translation_table): New variable.
54857 (translate_keycode): New function.
54858 (pupa_console_getkey): Call translate_keycode.
54859
54860 * kern/rescue.c (attempt_normal_mode): New function.
54861 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54862 it failed, print a message.
54863
54864 * kern/mm.c (pupa_real_malloc): Print more information when a
54865 free magic is broken.
54866 (pupa_free): If the first free header is not free actually, set
54867 it to P.
54868
54869 * kern/main.c (pupa_load_normal_mode): Just load the module
54870 "normal".
54871 (pupa_main): Don't print the message
54872 "Entering into rescue mode..." here.
54873
54874 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54875 Declared.
54876 (pupa_rescue_cmd_initrd): Likewise.
54877 (pupa_rescue_cmd_initrd): Likewise.
54878
54879 * include/pupa/symbol.h (FUNCTION): Specify the type.
54880 (VARIABLE): Likewise.
54881
54882 * include/pupa/err.h (pupa_err_t): Added
54883 PUPA_ERR_UNKNOWN_COMMAND.
54884
54885 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54886 (pupa_dl_get_prefix): Likewise.
54887
54888 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54889 Added _chain.mod and _linux.mod instead of chain.mod and
54890 linux.mod.
54891 (chain_mod_SOURCES): Renamed to ...
54892 (_chain_mod_SOURCES): ... this.
54893 (chain_mod_CFLAGS): Renamed to ...
54894 (_chain_mod_CFLAGS): ... this.
54895 (linux_mod_SOURCES): Renamed to ...
54896 (_linux_mod_SOURCES): ... this.
54897 (linux_mod_CFLAGS): Renamed to ...
54898 (_linux_mod_CFLAGS): ... this.
54899 (normal_mod_SOURCES): New variable.
54900 (normal_mod_CFLAGS): Likewise.
54901 (normal_mod_ASFLAGS): Likewise.
54902
54903 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54904
54905 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54906 possible.
54907
54908 * kern/dl.c (pupa_dl_ref): Refer depending modules
54909 recursively.
54910 (pupa_dl_unref): Unrefer depending modules recursively.
54911 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54912 a module is unloaded before one depending on that module is
54913 unloaded.
54914 (pupa_dl_unload): Unload depending modules explicitly,
54915 if possible.
54916
54917 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54918
54919 * include/pupa/i386/pc/linux.h: New file.
54920 * loader/i386/pc/linux.c: Likewise.
54921
54922 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54923 Removed.
54924 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54925 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54926 of PUPA_CHAINLOADER_BOOT_SECTOR.
54927
54928 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54929 (pupa_linux_prot_size): New variable.
54930 (pupa_linux_tmp_addr): Likewise.
54931 (pupa_linux_real_addr): Likewise.
54932 (pupa_linux_boot_zimage): New function.
54933 (pupa_linux_boot_bzimage): Likewise.
54934
54935 * kern/i386/pc/init.c (struct mem_region): New structure.
54936 (MAX_REGIONS): New macro.
54937 (mem_regions): New variable.
54938 (num_regions): Likewise.
54939 (pupa_os_area_addr): Likewise.
54940 (pupa_os_area_size): Likewise.
54941 (pupa_lower_mem): Likewise.
54942 (pupa_upper_mem): Likewise.
54943 (add_mem_region): New function.
54944 (compact_mem_regions): Likewise.
54945 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54946 the size of the conventional memory and that of so-called upper
54947 memory (before the first memory hole).
54948 Instead of adding each found region to free memory, use
54949 add_mem_region and add them after removing overlaps.
54950 Also, add only 1/4 of the upper memory to free memory. The rest
54951 is used for loading OS images. Maybe this is ad hoc, but this
54952 makes it much easier to relocate OS images when booting.
54953
54954 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54955 (pupa_enter_rescue_mode): Don't register initrd and module.
54956
54957 * kern/mm.c: Include pupa/dl.h.
54958
54959 * kern/main.c: Include pupa/file.h and pupa/device.h.
54960
54961 * kern/loader.c (pupa_loader_load_module_func): Removed.
54962 (pupa_loader_load_module): Likewise.
54963
54964 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54965 ``.o''.
54966
54967 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54968 (pupa_linux_tmp_addr): Likewise.
54969 (pupa_linux_real_addr): Likewise.
54970 (pupa_linux_boot_zimage): Likewise.
54971 (pupa_linux_boot_bzimage): Likewise.
54972
54973 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54974 (pupa_upper_mem): Likewise.
54975 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54976 module is too dangerous.
54977
54978 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54979 (pupa_os_area_size): Likewise.
54980 (pupa_loader_set): Remove the first argument. Loader doesn't
54981 manage modules or initrd any longer.
54982 (pupa_loader_load_module): Removed.
54983
54984 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
54985 (linux_mod_SOURCES): New variable.
54986 (linux_mod_CFLAGS): Likewise.
54987
54988 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
54989
54990 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
54991 the length of a blocklist correctly.
54992
54993 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
54994 Use ioctl only if the OS file is a block device.
54995 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
54996 not very useful for normal files.
54997
54998 * kern/main.c (pupa_set_root_dev): New function.
54999 (pupa_load_normal_mode): Likewise.
55000 (pupa_main): Call those above.
55001
55002 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55003 pupa_uint16_t.
55004
55005 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55006
55007 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55008
55009 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55010 (setup): Configure the installed partition information and the
55011 dl prefix.
55012
55013 * loader/i386/pc/chainloader.c (my_mod): New variable.
55014 (pupa_chainloader_unload): New function.
55015 (pupa_rescue_cmd_chainloader): Refer itself.
55016 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55017
55018 * kern/i386/pc/startup.S (install_partition): Removed.
55019 (version_string): Likewise.
55020 (config_file): Likewise.
55021 (pupa_install_dos_part): New variable.
55022 (pupa_install_bsd_part): Likewise.
55023 (pupa_prefix): Likewise.
55024 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55025
55026 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55027 and pupa/misc.h.
55028 (make_install_device): New function.
55029 (pupa_machine_init): Set the dl prefix.
55030
55031 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55032 (buf): Renamed to ...
55033 (linebuf): ... this.
55034 (pupa_rescue_cmd_prefix): New function.
55035 (pupa_rescue_cmd_insmod): Likewise.
55036 (pupa_rescue_cmd_rmmod): Likewise.
55037 (pupa_rescue_cmd_lsmod): Likewise.
55038 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55039 rmmod and lsmod.
55040
55041 * kern/mm.c (pupa_memalign): If failed even after invalidating
55042 disk caches, unload unneeded modules and retry.
55043
55044 * kern/misc.c (pupa_memmove): New function.
55045 (pupa_memcpy): Removed.
55046 (pupa_strcpy): New function.
55047 (pupa_itoa): Made static.
55048
55049 * kern/dl.c (pupa_dl_iterate): New function.
55050 (pupa_dl_ref): Likewise.
55051 (pupa_dl_unref): Likewise.
55052 (pupa_dl_unload): Return if succeeded or not.
55053 (pupa_dl_unload_unneeded): New function.
55054 (pupa_dl_unload_all): Likewise.
55055 (pupa_dl_init): Renamed to ...
55056 (pupa_dl_set_prefix): ... this.
55057 (pupa_dl_get_prefix): New function.
55058
55059 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55060 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55061 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55062 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55063 (pupa_install_dos_part): Declared.
55064 (pupa_install_bsd_part): Likewise.
55065 (pupa_prefix): Likewise.
55066 (pupa_boot_drive): Likewise.
55067
55068 * include/pupa/types.h: Fix a typo.
55069
55070 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55071 pupa_memmove.
55072 (pupa_memmove): Declared.
55073 (pupa_strcpy): Likewise.
55074
55075 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55076 pupa_mod_init takes one argument, its own module.
55077 (pupa_dl_unload_unneeded): Declared.
55078 (pupa_dl_unload_all): Likewise.
55079 (pupa_dl_ref): Likewise.
55080 (pupa_dl_unref): Likewise.
55081 (pupa_dl_iterate): Likewise.
55082 (pupa_dl_init): Renamed to ...
55083 (pupa_dl_set_prefix): ... this.
55084 (pupa_dl_get_prefix): Declared.
55085
55086 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55087 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55088 unloaded.
55089 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55090 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55091
55092 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55093 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55094
55095 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55096
55097 * util/i386/pc/pupa-setup.c (setup): Define the internal
55098 function find_first_partition_start at the top level, because GCC
55099 3.0.x cannot compile internal functions in deeper scopes
55100 correctly.
55101 (find_root_device): Use lstat instead of stat.
55102 Don't follow symbolic links.
55103 Fix the path-constructing code.
55104
55105 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55106 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55107 by a BLKGETSIZE ioctl first, because block devices don't fill
55108 the member st_mode of the structure stat on Linux.
55109 [__linux__] (linux_find_partition): Use a temporary buffer
55110 REAL_DEV for the working space. Copy it to DEV before returning.
55111 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55112 buffer cache consistent.
55113 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55114 strncmp. The previous value was merely wrong.
55115 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55116
55117 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55118 FAT size is 12. The previous value was merely wrong.
55119
55120 * kern/main.c (pupa_main): Don't split the starting message from
55121 newlines.
55122
55123 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55124 LF, because BIOS goes crazy about character attributes in this
55125 case.
55126
55127 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55128
55129 * include/i386/pc/util/biosdisk.h: New file.
55130 * util/i386/pc/biosdisk.c: Likewise.
55131 * util/i386/pc/pupa-setup.c: Likewise.
55132
55133 * Makefile.in (INCLUDE_DISTFILES): Added
55134 include/pupa/i386/pc/util/biosdisk.h.
55135 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55136 directory util/i386/pc.
55137 (install-local): Added a rule for sbin_UTILITIES.
55138 (uninstall): Likewise.
55139
55140 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55141
55142 * util/misc.c (xrealloc): New function.
55143 (pupa_malloc): Likewise.
55144 (pupa_free): Likewise.
55145 (pupa_realloc): Likewise.
55146 (pupa_stop): Likewise.
55147 (pupa_putchar): Likewise.
55148
55149 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55150
55151 * include/pupa/util/misc.h (xrealloc): Declared.
55152
55153 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55154 macro.
55155 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55156 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55157
55158 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55159 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55160
55161 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55162 way should be implemented.
55163 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55164
55165 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55166 the size of NAME for safety.
55167 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55168 0x88.
55169
55170 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55171 (pupa_setup_SOURCES): Likewise.
55172
55173 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55174
55175 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55176
55177 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55178 bunch of pushl's from pusha, because this destroys the return
55179 value.
55180
55181 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55182
55183 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55184 This means that any missing prototypes could be fatal. Also, you
55185 must take care when writing assembly code. See the comments at
55186 the beginning of startup.S, for more details.
55187
55188 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55189 compilation mechanism.
55190 (pupa_chainloader_real_boot): Likewise.
55191 (pupa_biosdisk_rw_int13_extensions): Likewise.
55192 (pupa_biosdisk_rw_standard): Likewise.
55193 (pupa_biosdisk_check_int13_extensions): Likewise.
55194 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55195 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55196 (pupa_get_memsize): Likewise.
55197 (pupa_get_mmap_entry): Likewise.
55198 (pupa_console_putchar): Likewise.
55199 (pupa_console_setcursor): Likewise.
55200 (pupa_getrtsecs): Use pushl instead of push.
55201
55202 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55203 memory instead of the stack for a mmap entry, because some
55204 BIOSes may ignore the maximum size and overflow.
55205
55206 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55207
55208 * genmk.rb (PModule#rule): Compile automatically generated
55209 sources with module-specific CFLAGS as well as other sources.
55210
55211 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55212
55213 * configure.ac: Check ld.
55214 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55215 respectively, before checking endianness and sizes.
55216
55217 * Makefile.in (LD): New variable.
55218
55219 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55220
55221 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55222
55223 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55224
55225 * Changelog: New file.
55226