]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Fix ChangeLog
[grub2.git] / ChangeLog
1 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
2
3 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
4 (Coverity CID 73813, 73710)
5 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
6 and use after free (Coverity CID 73813, 73710, 73730)
7 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
8 CID 73854)
9 * util/grub-install-common.c (grub_install_get_target): Check return
10 value of grub_util_fd_read (Coverity CID 73819).
11 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
12 to hd.magic (Coverity CID 73587, 73888, bug 43690).
13
14 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
15
16 * tests/util/grub-fs-tester.in: Consistently print output
17 of grub ls if test fails.
18
19 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
20
21 * grub-core/kern/efi/init.c: check value of *path before
22 dereferencing.
23
24 2014-11-03 Michael Chang <mchang@suse.com>
25
26 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
27 of neighbor solicitation packet in grub_netbuff_pull.
28
29 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
30
31 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
32 avoid fatal warnings with older gcc (probably before 4.7).
33 * grub-core/loader/arm64/linux.c: Likewise.
34 * grub-core/loader/i386/linux.c: Likewise.
35 * grub-core/loader/i386/pc/linux.c: Likewise.
36 * grub-core/loader/ia64/efi/linux.c: Likewise.
37 * grub-core/loader/mips/linux.c: Likewise.
38 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
39 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
40
41 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
42
43 Fix in-tree --platform=none
44
45 * configure.ac: Only remove include/grub/cpu and
46 include/grub/machine in the --platform=none case, not all of
47 include/grub.
48
49 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
50
51 Add a new "none" platform that only builds utilities
52
53 * configure.ac: Add "none" platform. Default to it for unsupported
54 CPUs rather than stopping with a fatal error. Don't downgrade
55 x86_64-none to i386. Define COND_real_platform Automake conditional
56 if the platform is anything other than "none". Don't do any include
57 directory linking for "none".
58 * Makefile.am: Skip building grub-core and all bootcheck targets if
59 !COND_real_platform.
60 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
61 is defined.
62
63 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
64
65 Use grub_cpu_to_XXX_compile_time for constants.
66
67 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
68
69 The AML parser implements only a small subset of possible AML
70 opcodes. On the Fujitsu Lifebook E744 this and another bug in
71 the parser (incorrect handling of TermArg data types) would lead
72 to the laptop not turning off (_S5 not found).
73
74 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
75 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
76 aren't always simply strings!); Add function to skip TermArgs
77 * include/grub/acpi.h: Add new opcodes
78
79 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * grub-core/normal/main.c: Don't drop to rescue console in
82 case of password-protected prompt and no menu entries.
83
84 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * grub-core/commands/keylayouts.c: Ignore unknown keys.
87
88 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/gmodule.pl.in: Accept newer binutils which output
91 empty column rather than 0x0.
92
93 2014-09-21 Michael Chang <mchang@suse.com>
94
95 * grub-core/osdep/unix/config.c: Remove extraneous comma.
96
97 2014-09-21 Peter Jones <pjones@redhat.com>
98
99 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
100 we don't free a random pointer from the stack.
101 * grub-core/loader/arm64/linux.c: Likewise.
102 * grub-core/loader/i386/linux.c: Likewise.
103 * grub-core/loader/i386/pc/linux.c: Likewise.
104 * grub-core/loader/ia64/efi/linux.c: Likewise.
105 * grub-core/loader/mips/linux.c: Likewise.
106 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
107 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
108
109 2014-09-15 Khem Raj <raj.khem@gmail.com>
110
111 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
112 _BSD_SOURCE to avoid warnings under glibc 2.20+.
113
114 2014-09-08 Michael Chang <mchang@suse.com>
115
116 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
117 check; comparing &data->extent against addresses in the region it
118 points to is unpredictable.
119
120 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
121
122 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
123
124 * configure.ac: Remove -m64 from checks for -mcmodel=large and
125 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
126 already in TARGET_CFLAGS at this point, and they produce incorrect
127 results when building for x32.
128 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
129 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
130 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
131 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
132
133 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
134
135 * configure.ac: Remove several unnecessary semicolons.
136
137 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
138
139 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
140 Initialise pend to pacify GCC.
141
142 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
143
144 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
145 gettext_printf).
146
147 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * grub-core/term/at_keyboard.c: Retry probing keyboard if
150 scancode setup failed.
151
152 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
153
154 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
155
156 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
157
158 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
159 safety to avoid triggerring VirtualBox bug.
160
161 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
162
163 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
164
165 Fixes hang on virtualbox.
166
167 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
168
169 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
170 kernels whose paths contain regex metacharacters.
171 * util/grub.d/10_kfreebsd.in: Likewise.
172 * util/grub.d/10_linux.in: Likewise.
173 * util/grub.d/20_linux_xen.in: Likewise.
174
175 Reported by: Heimo Stranner.
176
177 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
178
179 * docs/grub-dev.texi (Finding your way around): The build system no
180 longer uses AutoGen directly.
181
182 2014-06-21 Роман Пехов <roman_pekhov>
183
184 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
185
186 2014-06-21 Glenn Washburn <development@efficientek.com>
187
188 * util/grub-install.c: Fix handling of --disk-module.
189
190 2014-06-21 Stephane Rochoy <sheda>
191
192 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
193 EFI system table.
194
195 2014-06-21 Stephane Rochoy <sheda>
196
197 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
198 EFI system table physical address.
199
200 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
201
202 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
203
204 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
205
206 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
207
208 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
209
210 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
211 check.
212
213 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
214
215 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
216
217 Reported by: Yves Blusseau <blusseau@zetam.org>.
218
219 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
220
221 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
222 GDT in conventional memory.
223
224 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
225
226 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
227 UUID. Other parts of grub-mkconfig tolerate these, they were
228 previously allowed here up to commit
229 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
230 practice when the system has active LVM snapshots.
231 Fixes Ubuntu bug #1287436.
232
233 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
234
235 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
236 "logical_volumes" block a little more accurately.
237
238 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
241
242 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
245 pulled from libgcc.
246
247 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
248
249 Replace few instances of memcmp/memcpy in the code that should be
250 grub_memcmp/grub_memcpy.
251
252 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
255 device names.
256
257 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
258
259 btrfs: fix get_root key comparison failures due to endianness
260
261 * grub-core/fs/btrfs.c (get_root): Convert
262 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
263
264 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
265
266 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
267
268 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
269 no longer to be forgiving of trailing spaces on grub-probe output
270 lines, which among other things means that util/grub.d/10_linux.in
271 no longer detects LVM. To fix this, make grub-probe's output
272 delimiting more consistent. As a bonus, this improves the coverage
273 of the -0 option.
274
275 Fixes Debian bug #735935.
276
277 * grub-core/disk/cryptodisk.c
278 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
279 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
280 Likewise.
281 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
282 Update prototype.
283 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
284 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
285 probe_mods): Adjust for extra user-data arguments.
286 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
287 probe_abstraction): Use configured delimiter. Update callers.
288
289 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
290
291 * util/grub-probe,c (options): Make -0 work again (broken by
292 conversion to argp).
293 (main): Simplify logic.
294
295 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
298
299 2014-03-26 Fu Wei <fu.wei@linaro.org>
300
301 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
302
303 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
304
305 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
306 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
307
308 Suggested by: Markus Müller.
309
310 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
313 if E820 failed to return any regions.
314
315 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
318 tables for low memory calculations.
319
320 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
323 location to 640K.
324
325 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
328 region.
329
330 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
333 exclusively.
334
335 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
336
337 Add bootpath parser for open firmware.
338
339 It enables net boot even when there is no bootp/dhcp server.
340
341 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
342 and call it at grub_ieee1275_net_config_real.
343 * grub-core/kern/ieee1275/init.c: Add bootpath to
344 grub_ieee1275_net_config.
345 * include/grub/ieee1275/ieee1275.h: Likewise.
346
347
348 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
349
350 Add grub_env_set_net_property function.
351
352 * grub-core/net/bootp.c: Remove set_env_limn_ro.
353 * grub-core/net/net.c: Add grub_env_set_net_property.
354 * include/grub/net.h: Likewise.
355
356 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
359
360 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
363
364 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
365
366 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
367 7 seconds to recover if last poweroff was bad.
368
369 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/disk/ahci.c: Properly handle transactions with no
372 transferred data.
373
374 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/disk/ahci.c: Add safety cleanups.
377
378 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
379
380 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
381 slots to avoid pointing to uninited area.
382
383 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
386 enabling busmaster for the end.
387
388 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * util/grub-mkfont.c: Downgrade warnings about unhandled features
391 to debug.
392
393 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
394
395 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
396
397 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
398
399 * .gitignore: add missing files and .exe variants.
400
401 2014-01-26 Mike Gilbert <floppym@gentoo.org>
402
403 grub-install: support for partitioned partx loop devices.
404
405 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
406 /dev/loopX as being the parent of /dev/loopXpY.
407
408 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
409
410 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
411 Ensure that pointers are inited to NULL and that pointers are not
412 accessed after free.
413
414 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
415
416 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
417 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
418 * include/grub/emu/misc.h: ... and here.
419 * include/grub/err.h: ... and here.
420 * util/import_gcry.py: ... and here (in files g10lib.h).
421
422 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
423
424 * util/grub-mkimage.c: Make prefix argument mandatory.
425
426 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
427
428 Fix several translatable strings.
429
430 Suggested by: D. Prévot.
431
432 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
433
434 * util/grub-install.c: List available targets.
435
436 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
437
438 * util/grub-install.c (write_to_disk): Add an info message.
439
440 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
441
442 * Makefile.am: Allow adding extra files to generated Windows ZIP
443 archive by setting GRUB_WINDOWS_EXTRA_DIST.
444
445 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
446
447 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
448 Show detected font path in summary.
449
450 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
451
452 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
453 interval gradually.
454 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
455 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
456 * grub-core/net/tftp.c (tftp_open): Likewise.
457 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
458
459 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
460
461 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
462 infinite loops.
463
464 In net/net.c there is a while (1) that only exits if there is a stop
465 condition and more then 10 packages or if there is no package received.
466
467 If GRUB is idle and enter in this loop, the only condition to leave is
468 if it doesn't have incoming packages. In a network with heavy traffic
469 this never happens.
470
471 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
472
473 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
474 EPERM when modifying kern.geom.debugflags. It is only a problem for
475 such things as installing GRUB to the MBR, in which case there'll be
476 an error later anyway, not for opening files during tests.
477
478 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
479
480 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
481 instead of MOD_FILES.
482 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
483 both with and without .exe.
484 * grub-core/genemuinitheader.sh: Same.
485
486 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * util/grub-install.c: Fix a typo.
489
490 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/normal/main.c (read_config_file): Buffer config file.
493 Reduces boot time.
494
495 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
496
497 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
498 symbolic link to directory. It fails in Msys shell on Windows 2003.
499
500 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * Makefile.am (default_payload.elf): Add modules
503 multiboot cbmemc linux16 gzio echo help.
504
505 2014-01-18 Mike Gilbert <floppym@gentoo.org>
506
507 * Makefile.util.def: Link grub-ofpathname with zfs libs.
508
509 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
510
511 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
512 conflicts.
513
514 Reported by: Andrey Borzenkov.
515
516 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
517
518 * include/grub/misc.h: Move macros for compiler features to ...
519 * include/grub/compiler.h: ... new file.
520 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
521 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
522 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
523 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
524 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
525 * grub-core/video/capture.c: Include <grub/misc.h>.
526 * include/grub/command.h: Include <grub/misc.h>.
527 * include/grub/dl.h: Include <grub/misc.h>.
528 * include/grub/procfs.h: Include <grub/misc.h>.
529
530 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
531
532 * configure.ac: Add support for BUILD_EXEEXT and use it ...
533 * Makefile.am: ... here.
534 * Makefile.util.def: ... and here.
535 * grub-core/Makefile.am: ... and here.
536
537 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
538
539 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
540 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
541
542 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/term/terminfo.c: Recognize keys F1-F12.
545
546 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
547
548 * configure.ac: Add support for BUILD_LDFLAGS.
549 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
550 * grub-core/Makefile.am: ... and here.
551 * INSTALL: Mention BUILD_LDFLAGS.
552
553 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
556
557 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
560 and has no //.
561
562 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * NEWS: Add few missing entries.
565
566 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
567
568 * util/grub.d/00_header.in (make_timeout): Use && rather than test
569 -a.
570 * util/grub.d/10_windows.in: Likewise.
571 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
572 than test -o.
573 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
574 rather than test -o.
575
576 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
577
578 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
579 redundant preprocessor conditional.
580
581 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
582
583 * Makefile.util.def (grub-macbless): Change mansection to 8.
584
585 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
586
587 * grub-core/loader/arm64/linux.c: correctly set device path end length.
588
589 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
590
591 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
592 arm64 to comply with EFI specification. Also use grubaa64.efi for
593 consistency.
594 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
595
596 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
597
598 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
599 on MinGW-64 when compiling for 32 bits.
600
601 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
602
603 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
604
605 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * NEWS: Add few missing entries. Correct existing ones.
608
609 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
610
611 Don't abort() on unavailable coreboot tables if not running on coreboot.
612
613 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
614
615 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
616 on mingw.
617
618 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
619
620 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
621 mention of it from 2.02.
622
623 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
626
627 As these functions are used on pre-ARMv6 CPUs as well we don't want
628 to make assembler assume that architecture is higher than default one.
629
630 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
631
632 * NEWS: First draft of 2.02 entry.
633
634 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
635
636 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
637 * docs/grub.texi (Getting the source code): Likewise.
638
639 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
640
641 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
642 detection.
643
644 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * configure.ac: Set version to 2.02~beta2.
647
648 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
651
652 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
653
654 * util/grub-probe.c: Improve help message and simplify list handling.
655
656 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
657
658 Fix buffer overflow in grub_efi_print_device_path.
659
660 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
661
662 Show SATA device path.
663
664 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
665
666 Revert grub-file usage in grub-mkconfig.
667
668 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
669
670 Make newly-created files other than grub.cfg world-readable.
671
672 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
673
674 * util/grub.d/00_header.in: Improve compatibility with old config.
675
676 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
677
678 Make rijndael.c respect aliasing rules.
679
680 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
681
682 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Make grub_util_device_is_mapped_stat available in grub-emu core.
685
686 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
687
688 Add -Qn to TARGET_CFLAGS if it's supported.
689 Fixes compilation on cygwin.
690
691 Reported by: Andrey Borzenkov.
692 Suggested by: Andrey Borzenkov.
693
694 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
695
696 Save TARGET_CC version in modinfo.sh.
697
698 Suggested by: Andrey Borzenkov.
699
700 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
701
702 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
703 follow the same algorithm to avoid method mismatch. Don't assume
704 DMRAID- UUID to mean full disk but instead check that mapping is linear.
705
706 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
707
708 Declare GRUB_EFI_VENDOR_APPLE_GUID.
709
710 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
711
712 Dump type and vendor specific data when printing device path.
713
714 2013-12-23 Colin Watson <cjwatson@debian.org>
715
716 Update some documentation to refer to Git rather than Bazaar.
717
718 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
719 than Bazaar.
720 * po/README: Likewise. Fix spelling mistake.
721
722 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
723
724 Don't distribute config.h.
725
726 * Makefile.am (platform_HEADERS): Move to ...
727 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
728 failure when building from a distributed tarball.
729
730 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
731
732 * configure.ac: Fix spelling.
733 * grub-core/commands/parttool.c: Fix grammar.
734 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
735 Embedding Partition".
736
737 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
738
739 ARM64 support for grub-mkrescue.
740
741 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
742
743 Install modinfo.sh to keep build information around.
744
745 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/modinfo.sh.in: Add build config information.
748
749 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
750
751 ARM64 grub-file and grub-mkconfig support.
752
753 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
754
755 Remove leftover options defines.
756
757 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
760
761 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/loader/arm64/linux.c: Add missing bracket.
764
765 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
766
767 Add arm64-efi recognition to grub-file.
768
769 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
770
771 Fix ia64-efi recognition in grub-file.
772
773 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
774
775 Recognize raspberry pi kernel in grub-file.
776
777 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
778
779 Enable cache on ARM U-Boot port.
780
781 Without it the port is reidiculously slow.
782
783 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
784
785 Fix ARM cache maintainance.
786
787 More code was converted from ASM to C for easier handling.
788
789 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
792 algorithm on v5.
793
794 Suggested by: Leif Lindholm.
795
796 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
797
798 * util/grub-mkconfig.in: Fix Xen platform conditions.
799
800 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
801
802 * util/grub-mkrescue.c: Split single help message string in several
803 strings used in previous shell version.
804
805 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
806
807 Add arm64 Linux loader.
808
809 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
810
811 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
812
813 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
814
815 Add module loading and parsing boot time checkpoints.
816
817 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
820 platforms.
821
822 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
823
824 * util/grub-mkconfig.in: Skip non-executable files.
825
826 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
827
828 Workaround buggy timer in raspberry pie by using our own timer
829 implementation.
830
831 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
832
833 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
834 Increase to 16 MiB to allow loading the whole memdisk.
835
836 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
837
838 Fix ARM Linux Loader on non-FDT platforms.
839
840 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * configure.ac: Choose link format based on host_os on emu.
843
844 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
847
848 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * grub-core/kern/emu/main.c: Build fix for emu.
851
852 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Build fixes for argp.h with older gcc.
855
856 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
859 in strings.
860
861 Suggested by: David Prévot.
862
863 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
864
865 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
866
867 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
868
869 Enable -Wformat=2 if it's supported.
870
871 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
874 -Wmissing-declarations if supported.
875
876 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
877
878 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
879 u32 as both HFS and HFS+ have 32-bit inodes.
880
881 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
882
883 * include/grub/misc.h (grub_strtol): Fix overflow.
884
885 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
888 as return type in both conditionals.
889
890 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
891
892 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
893 to use uint8_t for color.
894
895 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * util/misc.c (grub_util_get_image_size): Check for overflow.
898
899 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
900
901 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
902 for size.
903
904 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
907 for pointer difference.
908
909 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * util/import_gcry.py: Skip sample keys.
912
913 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
916
917 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
918
919 * configure.ac: Remove duplicate warning arguments.
920
921 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
922
923 Add missing static qualifiers.
924
925 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Add missing includes.
928
929 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
930
931 Inline printf templates when possible to enable format checking.
932
933 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
934
935 * include/grub/crypto.h: Don't discard const attribute.
936
937 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
940 was intended.
941
942 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * grub-core/lib/crypto.c: Don't discard const attribute.
945
946 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * grub-core/lib/disk.c: Fix potential overflow.
949
950 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/lib/arg.c: Don't discard const attribute.
953
954 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/kern/dl.c: Don't discard const attribute.
957
958 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
959
960 * grub-core/kern/disk.c: Fix potential overflow.
961
962 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
963
964 * conf/Makefile.common: Don't include non-existing directory
965 grub-core/lib/libgcrypt-grub/include.
966
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968
969 Clarify several translatable messages.
970
971 2013-12-21 David Prévot <david@tilapin.org>
972
973 Correct some translatable strings.
974
975 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
976
977 * util/grub-mkrescue.c: Rephrase mkrescue description.
978
979 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
980 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
981
982 Clarify several translatable messages.
983
984 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
985
986 Be more verbose about some configure failures.
987
988 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
989
990 Fix various build problems on GNU/Hurd.
991
992 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
993 !defined (__GNU__).
994 (xgetcwd): Likewise.
995 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
996 [__GNU__]: Add prototype.
997 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
998 long int using %ld rather than %d.
999
1000 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * util/grub-install.c: Inform user about install platform.
1003
1004 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * configure.ac: Set version to 2.02~beta1.
1007
1008 2013-12-18 Allen Pais <allen.pais@oracle.com>
1009 2013-12-18 Bob Picco <bob.picco@oracle.com>
1010
1011 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1012
1013 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 Make grub_zlib_decompress handle incomplete chunks.
1016
1017 Fixes squash4.
1018
1019 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1022 on i386-multiboot.
1023
1024 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1025
1026 * grub-core/disk/usbms.c: Retry on unknown errors.
1027 Reuse the same tag on retries.
1028
1029 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1030
1031 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1032
1033 Avoid confusing them with already completed transfers.
1034
1035 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 Remove xen VFB.
1038
1039 Due to XEN bug it prevents Linux boot. Remove it at least, until
1040 workaround is found.
1041
1042 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * po/exclude.pot: Add 2 missing excludes.
1045
1046 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 Add missing license section in macbless.mod and macho.mod.
1049
1050 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 Allow compilation without thumb-interwork as long as no thumb is
1053 involved or only thumb2 is used.
1054
1055 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1058
1059 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 Add __attribute__ ((sysv_abi)) only if it's really needed.
1062
1063 Some compilers don't support it.
1064
1065 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1066
1067 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1068
1069 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 Remove -Wold-style-definition.
1072
1073 Not very useful and interaction of it with regexp depends on GCC
1074 version.
1075
1076 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 Make grub_util_get_windows_path_real static.
1079
1080 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * grub-core/commands/fileXX.c: Silence cast-align.
1083 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1084
1085 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1086
1087 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1088 rather than LL suffix.
1089
1090 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1093
1094 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * grub-core/loader/arm/linux.c: Use common initrd functions.
1097
1098 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Decrease number of strings to translate.
1101
1102 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1105
1106 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Mark strings for translation and add remaining ones to exclude list.
1109
1110 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * util/grub-file.c (main): Fix sizeof usage.
1113
1114 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 Silence spurious warning.
1117
1118 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 Remove check_nt_hiberfil as it's been superseeded by file command.
1121
1122 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1123
1124 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1125
1126 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 Implement syslinux parser.
1129
1130 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1133
1134 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 Support cpuid --pae.
1137
1138 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Use AT keyboard on Yeeloong 3A.
1141
1142 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Add Yeeloong 3A reboot and halt.
1145
1146 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 Add Radeon Yeeloong 3A support.
1149
1150 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 Add bonito 3A support.
1153
1154 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1157
1158 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1161
1162 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 * grub-core/loader/macho.c: Fix compilation on non-i386.
1165
1166 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 Add missing format_arg attribute to check that printf with translated
1169 messages has proper arguments.
1170
1171 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 Use grub_xasprintf to format translated error messages containing
1174 64-bit quantity.
1175
1176 2013-12-17 Jon McCune <jonmccune@google.com>
1177
1178 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1179
1180 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 Unify message for unsupported relocation.
1183
1184 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 Mark miscompile error for translation.
1187
1188 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 Use %I64 and not %ll when using OS printf if compiling for windows.
1191
1192 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 Update Mac code to match new register_efi prototype.
1195
1196 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 Implement better integration with Mac firmware.
1199
1200 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1203 load_addr.
1204
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 Include serial module in default_payload.elf.
1208
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 Add explicit thumb interwork bx in asm files.
1212
1213 Shouldn't matter for armv >= 5 but let's be safe.
1214
1215 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 Implement Truecrypt ISO loader.
1218
1219 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1222
1223 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 Implement grub_file tool and use it to implement generating of config
1226 in separate root.
1227
1228 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 Change to v1 xen grants.
1231
1232 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1235
1236 GRUB relied on %ebx being preserved across hypercall which isn't true.
1237
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1241
1242 GRUB relied on %rdi being preserved across hypercall which isn't true.
1243
1244 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 Implement XEN VFB support.
1247
1248 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 Remove grub_bios_interrupt on coreboot.
1251
1252 It's not used currently and cannot be used safely currently.
1253
1254 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 Update exclude.pot and mark few strings for translation.
1257
1258 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1261
1262 Reported by: Jon McCune
1263
1264 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1265
1266 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1267 Add verbose information which firmware directories were tried.
1268
1269 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1270
1271 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1272 function to optionally redirect all three standard descriptors.
1273 Redefine grub_util_exec, grub_util_exec_redirect and
1274 grub_util_exec_redirect_null to use it.
1275 * include/grub/emu/exec.h: Define it.
1276 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1277 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1278 Use grub_util_exec_redirect_all to redirect error to NULL.
1279
1280 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 * grub-core/tests/sleep_test.c: Silence spurious warning.
1283
1284 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1287 linker trying to "fixup" the code.
1288
1289 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1292
1293 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 Add support for converting PE+ to Elf64.
1296
1297 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1300
1301 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Remove practice of assigning random const pointers to device id.
1304
1305 This is not required as cache code already checks driver id as well.
1306
1307 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1310 with mingw.
1311
1312 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1313
1314 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1315 mingw or cygwin as API already matches.
1316
1317 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1320
1321 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1324 not on long.
1325
1326 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 Handle X86_64_PC64 relocation.
1329
1330 Those are generated by some cygwin compilers.
1331
1332 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1333
1334 Determine the need for mingw-related stubs at compile time rather than
1335 using not very significant $target_os.
1336
1337 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1338
1339 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1340 may not work with ELF.
1341
1342 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 Use unix functions for temporary files and special files on cygwin.
1345
1346 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 Define functions explicitly rather than using --defsym in tests
1349 whenever possible. Respect locality in remaining cases.
1350
1351 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1354
1355 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1356
1357 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1358 unlikely errors when getting EFI variables and make exhaustive search
1359 for all BootNNNN variables to find matching one.
1360
1361 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1362
1363 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1364
1365 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 New functional test for sleep function.
1368
1369 This test allows to check sleep without qemu. Keep qemu version as
1370 well as functional test won't notice if all clocks are going too fast
1371 or too slow.
1372
1373 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 Add explicit sysv_abi on amd64 asm routines.
1376
1377 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1380 num_table_entries.
1381
1382 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1385 functions.
1386
1387 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1390 appropriate.
1391
1392 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1395
1396 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1399 appropriate.
1400
1401 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1404
1405 In case of quick removal of loopback and adding another one it may
1406 get same ID, confusing the cache system.
1407
1408 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1411 appropriate.
1412
1413 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1416 than converting to long.
1417
1418 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1421
1422 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1425 than almost useless pointer.
1426
1427 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 Add gcc_struct to all packed structures when compiling with mingw.
1430
1431 Just "packed" doesn't always pack the way we expect.
1432
1433 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1436
1437 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1438
1439 * util/grub-pe2elf.c: Fix handling of .bss.
1440
1441 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1442
1443 Implement windows flavour of EFI install routines.
1444
1445 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1448
1449 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 Change grub_install_register_efi interface to pass GRUB device.
1452
1453 This allows grub_install_register_efi to request partition info
1454 directly.
1455
1456 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1457
1458 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1459
1460 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 Do not use TCHAR string functions as they are not available on cygwin.
1463
1464 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 Workaround windows bug when querying EFI system partition parameters.
1467
1468 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1471 by using bitfields.
1472
1473 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1476
1477 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 Make i386-* other than i386-pc compileable under cygwin.
1480
1481 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 Fix definition of grub_efi_hard_drive_device_path. Take care that
1484 existing code would work even if by some reason bogus definition is
1485 used by EFI implementations.
1486
1487 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1490
1491 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1492
1493 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1494 invocation.
1495
1496 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 * util/config.c: Remove trailing newline from distributor in simple
1499 parsing.
1500
1501 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1502
1503 * include/grub/efi/api.h: Rename protocol and interface to avoid
1504 conflict.
1505
1506 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * .gitignore: add .exe variants. add missing files. remove few outdated
1509 entries.
1510
1511 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * grub-core/osdep/exec.c: Use unix version on cygwin.
1514
1515 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 Implement multiboot2 EFI BS specification.
1518
1519 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1522 Crash happened only in some cases like a string starting at the
1523 half of the screen of same length.
1524
1525 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1528 with EFI counterpart.
1529
1530 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 Propagate the EFI commits to x86-efi specific parts.
1533
1534 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1537
1538 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 Introduce grub_efi_packed_guid and use it where alignment is not
1541 guaranteed.
1542
1543 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1546 unaligned u16 rather than u8[2].
1547
1548 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1551 for relocation range.
1552
1553 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1556 non-function pcrel21b relocation. It happens with .text.unlikely
1557 section.
1558
1559 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1560
1561 * make MAX_USABLE_ADDRESS platform-specific
1562 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1563
1564 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1565
1566 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1567
1568 2013-12-09 Jon McCune <jonmccune@google.com>
1569
1570 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1571 in grub-install and grub-bios-setup for x86 BIOS targets.
1572
1573 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 Add missing compile and link options for sparc64-emu.
1576
1577 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 Implement sparc64 trampolines (needed for sparc64-emu).
1580
1581 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1584 range of R_SPARC_HI22.
1585 Implement R_SPARC_LM22.
1586
1587 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1590 Do not explicitly check for symbol table as it's already checked in
1591 platform-independent layer.
1592
1593 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1594
1595 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1596 on ia64 as __clear_cache is a dummy on ia64.
1597
1598 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1599
1600 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1601 Do not explicitly check for symbol table as it's already checked in
1602 platform-independent layer.
1603
1604 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1605
1606 * util/grub-mkconfig.in: Add missing newline to output.
1607
1608 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1611 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1612
1613 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1616 compilation with GCC <= 4.2.
1617 * grub-core/kern/emu/argp_common.c: Likewise.
1618
1619 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1622 right platform rather than leaking to sparc64-emu.
1623
1624 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1627 But ensure that the variables in question are indeed unsigned.
1628
1629 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1632
1633 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 Remove grub_memalign on emu.
1636
1637 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1640 truncate incomplete lines but instead flushes them.
1641
1642 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1645 and implement windows variant.
1646
1647 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 Fix mips-emu compilation.
1650
1651 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 * configure.ac: Check for freetype library usability.
1654
1655 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 Make arm-emu work.
1658
1659 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1662
1663 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1664
1665 * docs/grub.texi (Environment): Update color_normal and color_highlight
1666 defaults (light-gray instead of white).
1667
1668 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1669
1670 * grub-core/normal/main.c (INIT): Set default color to light-gray
1671 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1672 and apparently BIOS defaults.
1673
1674 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 Transform -C option to grub-mkstandalone to --core-compress available
1677 in all grub-install flavours.
1678
1679 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 Merge GRUBFS and GRUB_FS variables.
1682
1683 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1684
1685 Revert commit 69ca97c820, it caused failures when using OS device name
1686 in grub-install. Instead just strip off parenthesis in grub-install
1687 if (hdX) was passed.
1688
1689 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1690
1691 * util/grub-install.c (push_partmap_module): Add helper to convert
1692 partmap names to module names and use it in probe_mods(). Fixes
1693 failure to find partmap modules in diskfilter case.
1694
1695 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * configure.ac: Make unifont mandatory on coreboot.
1698
1699 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * configure.ac: Skip unifont 6.3 pcf and bdf.
1702
1703 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * Makefile.am: Remove partial font files if generation failed.
1706
1707 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1708
1709 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1710 strings.
1711 * include/grub/util/misc.h: Define it ...
1712 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1713
1714 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1715
1716 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1717 ${grub_probe}.
1718
1719 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 Don't add -mlong-calls when compiling with clang.
1722
1723 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * configure.ac: Fix a typo.
1726
1727 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 Revamp relocation handling.
1730
1731 Move more code to common dl.c. Add missing veneers for arm and arm64.
1732 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1733
1734 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1737
1738 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1739
1740 * INSTALL: Raise minimum python version to 2.6.
1741 * gentpl.py: Use python3-style print function.
1742
1743 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * util/grub-install.c: Mention Boot* variable.
1746
1747 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1748
1749 * grub-core/osdep/linux/hostdisk.c
1750 (grub_util_find_partition_start_os): Initialise start to avoid
1751 spurious compiler warning.
1752
1753 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1754
1755 On Linux, read partition start offsets from sysfs if possible, to
1756 cope with block device drivers that don't implement HDIO_GETGEO.
1757 Fixes Ubuntu bug #1237519.
1758
1759 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1760 function.
1761 (sysfs_partition_start): Likewise.
1762 (grub_util_find_partition_start_os): Try sysfs_partition_start
1763 before HDIO_GETGEO.
1764
1765 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1766
1767 * grub-core/kern/fdt.c: Update struct size when adding node.
1768
1769 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 Handle unaligned .bss on sparc64.
1772
1773 Current code improperly assumes that both __bss_start and _end are
1774 aligned to 8-bytes. Eliminating this assumption and explicitly align
1775 modules.
1776
1777 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1780 so it doesn't land in the middle of loaded image.
1781
1782 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * configure.ac: Move all warning options that may be absent in
1785 gcc >= 3.1 to optional.
1786
1787 Note: while this allows to compile with older GCC, official requirements
1788 remain the same and no support for older GCC.
1789
1790 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1791
1792 Copying the themes directory in grub-shell isn't
1793 parallel-test-friendly and breaks on the second test when the source
1794 directory is read-only (as in "make distcheck"). Instead, add a
1795 hidden --themes-directory option to grub-mkrescue et al, and use it
1796 in grub-shell.
1797
1798 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1801 as it's no longer necessarry.
1802
1803 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 * configure.ac: Allow compilation with older GCC for ARM.
1806
1807 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1810 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1811 ppc.
1812
1813 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1816
1817 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 Pass font config to config.h and not by TARGET_CFLAGS as adding
1820 arguments doesn't work if TARGET_CFLAGS is specified on command
1821 line.
1822
1823 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 * configure.ac: Add -Wvla if compiler supports it.
1826
1827 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1830 Remove variable length arrays.
1831 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1832
1833 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1834
1835 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1836
1837 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * include/grub/types.h: Declare all byteswaps as inline functions
1840 except compile-time ones.
1841
1842 Solves variable shadowing in constructions like
1843 cpu_to_le (le_to_cpu(x) + 1).
1844
1845 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1846
1847 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1848
1849 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1852 minutes.
1853
1854 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1857 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1858
1859 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1860
1861 * grub-core/Makefile.core.def (setjmp): Distribute
1862 lib/arm64/setjmp.S.
1863
1864 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1865
1866 Add a new timeout_style environment variable and a corresponding
1867 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1868 controls hidden-timeout handling more simply than the previous
1869 arrangements, and pressing any hotkeys associated with menu entries
1870 during the hidden timeout will now boot the corresponding menu entry
1871 immediately.
1872
1873 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1874 generates a warning, and if it shows the menu it will do so as if
1875 the second timeout were not present. Other combinations are
1876 translated into reasonable equivalents.
1877
1878 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1879
1880 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * util/config.c: Add missing pointer adjustment.
1883 Reported by: qwertial
1884
1885 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1886
1887 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1888 directly, not via `cpu' link, to fix libgrub.pp generation.
1889
1890 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1891
1892 New port arm64-efi.
1893
1894 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1895
1896 * docs/grub.texi (sleep): Document exit codes.
1897
1898 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 Ensure that -mno-unaligned-access or some equivalent option is used.
1901
1902 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1905 -march=armv3.
1906
1907 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1910
1911 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1912
1913 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1914 builds, since we don't have an EPS version of font_char_metrics.png.
1915 Add leading dot to image extension per the Texinfo documentation.
1916
1917 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1918
1919 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1920 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1921 * util/grub-gen-widthspec.c: Likewise.
1922 * util/grub-mkfont.c: Likewise.
1923
1924 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1925
1926 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1927 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1928 failed to install on (hdX).
1929 * util/grub-setup.c (get_device_name): Remove, not needed after
1930 above change.
1931
1932 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1933
1934 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
1935
1936 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 * util/grub-fstest.c: Remove variable length arrays.
1939
1940 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * grub-core/osdep/linux/ofpath.c: Check return value of read.
1943
1944 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1947 computing crc32 rather than handling with md fundtions directly.
1948
1949 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
1952 checking fwstart.img rather than md fundtions directly.
1953
1954 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * util/grub-mkrescue.c (main): Check that fread succeeded.
1957
1958 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * conf/Makefile.common: Remove -mexplicit-relocs and
1961 -DUSE_ASCII_FALLBACK on yeeloong.
1962
1963 -DUSE_ASCII_FALLBACK is already added by font snippets.
1964 -mexplicit-relocs isn't needed is compiler/assemblera are
1965 configured properly.
1966 If they're not we shouldn't attempt to fix it by ourselves.
1967 Binary compare between before and after shows no difference.
1968
1969 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
1972 sources in dependencies directly.
1973
1974 This was the only instance of "library" in core config. A bug was
1975 reported that -fno-stack-protector wasn't passed to it. Instead of
1976 figuring out why it failed just remove this construction used
1977 needlessly.
1978
1979 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 * grub-core/osdep/unix/password.c (grub_password_get): Check that
1982 fgets succeeded.
1983
1984 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
1985
1986 * docs/grub.texi (ls): Fix command description in case of a device name
1987 passed as argument.
1988
1989 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1990
1991 Eliminate variable length arrays in grub_vsnprintf_real.
1992
1993 A bit tricky because this function has to continue to work without
1994 heap for short strings. Fixing prealloc to 32 arguments is reasonable
1995 but make all stack references use 32-bit offset rather than 8-bit one.
1996 So split va_args preparsing to separate function and put the prealloc
1997 into the caller.
1998
1999 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2002 Fixes build for windows.
2003
2004 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * gentpl.py: Don't generate platform-dependent conditionals for
2007 platform-independent targets.
2008
2009 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2010
2011 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2012 references to mdadm from otherwise generic code.
2013 (grub_util_exec_pipe): Likewise.
2014 (grub_util_exec_pipe_stderr): Likewise.
2015 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2016 This function calls vgs, not mdadm; adjust variable names
2017 accordingly.
2018
2019 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2020
2021 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2022 of Autogen. The Autogen definitions files remain intact as they
2023 offer a useful abstraction.
2024
2025 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2026
2027 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2028 into no-ops, and use it in programs that copy files but do not need
2029 to take special care to sync writes (grub-mknetdir, grub-rescue,
2030 grub-mkstandalone).
2031
2032 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2033
2034 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2035 than hardcoding /usr/local/bin/xorriso.
2036
2037 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 Add PCI command activation to all PCI drivers as required for coreboot
2040 and maybe some other firmwares.
2041
2042 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2045 and non-Apple variants of efiemu compile.
2046
2047 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2048
2049 * configure.ac: Add explicit check for linking format of
2050 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2051 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2052 hardcoding linking format.
2053
2054 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2057 and not pkgdatadir.
2058
2059 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2060 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 Add a --locale-directory option to grub-install and related tools.
2063
2064 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2065 --locale-directory option.
2066 (enum grub_install_options): Add
2067 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2068 * util/grub-install-common.c (grub_install_help_filter): Handle
2069 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2070 (grub_install_parse): Likewise.
2071 (get_localedir): New function to check for a user-provided option
2072 before trying grub_util_get_localedir.
2073 (copy_locales): Use get_localedir rather than
2074 grub_util_get_localedir. Handle differing locale directory layouts.
2075 (grub_install_copy_files): Likewise.
2076
2077 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2080 Don't rely on PATH_MAX.
2081
2082 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/genmoddep.awk: Use more portable && rather than and.
2085
2086 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2089 an object after data. While it doesn't seem right solution, it
2090 works well enough and OSX isn't main compilation platform.
2091
2092 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2095 While it doesn't seem right solution, it works well enough and
2096 OSX isn't main compilation platform.
2097
2098 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2099
2100 * configure.ac: Add -static to LDFLAGS when using apple linker to
2101 prevent it from pulling in dynamic linker.
2102
2103 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2104
2105 Apple assembly doesn't handle symbol arithmetic well. So define an
2106 offset symbol in boot.S and use it.
2107
2108 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 Apple assembly doesn't handle symbol arithmetic well. So instead
2111 of getting addres of kernel_sector + 4 define kernel_sector_high.
2112 It also makes code more readable.
2113
2114 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2115
2116 With Apple assembly in .macro environvemnt you have to use $$ instead
2117 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2118 to $$x on Apple and to $x on everything else.
2119
2120 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2123 OBJCONV.
2124
2125 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2128 and non-Apple. This instruction is shorter and faster,
2129 so no reason not to use it on both.
2130
2131 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2134 .text when compiling for Apple.
2135
2136 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2139
2140 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2143 %dx restore the probe worked on non-existant drive. Reorganize the
2144 code a little bit to free 2 bytes necessary for push/pop.
2145
2146 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2149 Add missing cast to silence warning.
2150
2151 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2152
2153 * util/grub-install.c (update_nvram): Support --no-nvram flag
2154 for EFI targets.
2155
2156 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2159
2160 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * util/garbage-gen.c: Add missing include of sys/time.h.
2163
2164 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 Don't add -mflush-func if it's not supported by compiler.
2167
2168 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 Move common BIOS/coreboot memory map declarations to
2171 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2172
2173 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2174
2175 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2176
2177 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * INSTALL: Document why older clang versions aren't appropriate.
2180
2181 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 * INSTALL: Document about clang for mips.
2184
2185 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2188 clang.
2189
2190 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 Add *-xen to the list of grub-install-common platforms.
2193
2194 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2197 3 last commits.
2198
2199 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2202
2203 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2206 with -mcmodel=large.
2207
2208 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2211 range-checking for 32-bit quantities.
2212
2213 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * configure.ac: Compile with -fPIC when compiling with clang on
2216 mips.
2217
2218 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2221 when compiling with clang.
2222
2223 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 clang emits calls to abort () under some unknown conditions.
2226 Export abort () when compiling with clang.
2227
2228 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * docs/grub-dev.texi: Document stack and heap sizes.
2231
2232 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 * include/grub/i386/pc/memory.h: Decrease
2235 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2236 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2237 The binary doesn't change (checked). It's more to better reflect actual
2238 usage.
2239
2240 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2243 at compile time that enough of scratch size is available.
2244
2245 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2248 Previously we misaligned stack by 8 in startup.S and compensated
2249 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2250 right behaviour is to align stack in startup.S and keep it aligned
2251 in callwrap.S. startup.S part was committed few commits before. This
2252 takes care of callwrap.S.
2253 Reported by: Gary Lin.
2254
2255 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2258 .data and .bss. May happen if compiler and assembly use different
2259 alignment.
2260
2261 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2264 way.
2265
2266 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 Add support for a new magic symbol _gp_disp on mips to handle PIC
2269 binaries.
2270
2271 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2274
2275 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2276
2277 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2278 when rest of GRUB is compiled for hisher stepping. Instead use
2279 .set mips3/.set mips1 around cache and sync opcodes.
2280
2281 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2284 do essentially the same thing, do it in similar way.
2285
2286 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2287
2288 * util/grub-mkrescue.c (main): If a source directory is not
2289 specified, read platform-specific files from subdirectories of
2290 pkglibdir, not pkgdatadir.
2291
2292 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2293
2294 * grub-core/normal/progress.c: Remove unused file.
2295
2296 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2299 array.
2300
2301 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2304 than grub.cfg.
2305
2306 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * coreboot.cfg: Add missing file.
2309
2310 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2313
2314 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2315
2316 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2317 selectively skipping systems.
2318
2319 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2320
2321 * Makefile.util.def (grub-mkimage): Add
2322 grub-core/osdep/aros/config.c to extra_dist.
2323 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2324 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2325 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2326 grub-core/gnulib-no-gets.diff.
2327
2328 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 Add automated filesystem checking based on scripts I've used now for
2331 quite some time locally. Most of the test require root so they are
2332 skipped when run without necessarry privelegies.
2333
2334 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2335
2336 * util/grub-install.c (main): Adjust info messages to match
2337 installed paths of grub-bios-setup and grub-sparc64-setup.
2338
2339 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2340
2341 * util/grub-install-common.c (copy_locales): Consistently use
2342 grub_util_get_localedir () rather than LOCALEDIR.
2343 (grub_install_copy_files): Likewise.
2344
2345 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2346
2347 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2348 16-byte boundary, as required by the x86-64 ABI, before calling
2349 grub_main. In some cases, GCC emits code that assumes this
2350 alignment, which crashes if not aligned. The EFI firmware is also
2351 entitled to assume that stack alignment without checking.
2352
2353 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2354
2355 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2356 4k page boundaries as expected by firmware rather than 1k
2357 boundaries.
2358 (grub_mmap_malign_and_register): Likewise.
2359
2360 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2363 fragmentation 512M is enough.
2364
2365 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2368 pointer to 32K. This is the size of cache element which is the most
2369 common allocation >1K. This way the pointer is always around blocks
2370 of 32K and so we keep performance while decreasing fragmentation.
2371
2372 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2375 current memory when allocating large chunks. This significantly
2376 decreases memory fragmentation.
2377
2378 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2379
2380 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2381 but for symmetry).
2382 * tests/lzocompress_test.in: Skip if lzop is not installed.
2383 * tests/xzcompress_test.in: Skip if xz is not installed.
2384
2385 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2386
2387 * util/grub-mkrescue.c (main): Fix typo.
2388
2389 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2392 clock frequency to 200 MHz,
2393
2394 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2397
2398 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2401 Load config file from (cbfsdisk)/etc/grub.cfg.
2402
2403 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * util/grub-install-common.c (grub_install_copy_files): Fix module
2406 destination directory.
2407
2408 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2409
2410 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2411 files have not been built.
2412
2413 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2414
2415 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2416 Handle errors from mkstemp.
2417 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2418
2419 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2420
2421 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2422 on primary master on pseries.
2423
2424 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2427 already loaded. This saves memory needed for tests,
2428
2429 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2432 work again.
2433
2434 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2437 work again.
2438
2439 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2442 master since with some combinations of qemu and firmware only primary
2443 IDE channel is available.
2444
2445 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2448 low-memory platforms where we don't have enough memory for them.
2449 * grub-core/tests/videotest_checksum.c: Likewise.
2450
2451 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2452
2453 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2454 already loaded. This saves memory needed for tests,
2455
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 Fix handling of install lists.
2459
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2463
2464 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2467 the devices before accessing them.
2468
2469 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2472 as file argument.
2473
2474 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2477
2478 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2481 (grub_file_close): Free file->name.
2482
2483 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2486 (grub_load_public_key): Likewise.
2487 (grub_verify_signature_real): Likewise.
2488 (grub_cmd_verify_signature): Likewise.
2489
2490 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2493 memory leak.
2494
2495 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2498 (grub_longjmp): Restore r31.
2499 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2500
2501 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2504 modules to be in line with make_image_abs.
2505
2506 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2509
2510 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2511
2512 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2513
2514 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2515
2516 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2519 to leave some memory to firmware.
2520
2521 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2524 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2525 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2526 Load gfxmenu.
2527
2528 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2531 now needs full arguments.
2532
2533 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * util/grub-mkrescue.c (main): Add trailing \n in
2536 .disk_label.contentDetails to be in line with previous shell script.
2537
2538 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2541
2542 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2543
2544 * util/grub-install-common.c (grub_install_parse): Recognize
2545 --compress=none like shell script did.
2546
2547 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * include/grub/misc.h: Replace check for __sparc64__ with one for
2550 __sparc__ as __sparc64__ isn't actually defined.
2551
2552 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2555 counterpart of fixing the naming of escc ports.
2556
2557 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * util/grub-install-common.c (platforms): Fix the order of entries and
2560 remove useless field val.
2561
2562 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * util/grub-install.c: Add new option --no-bootsector to skip
2565 installing of bootsector. Accept --grub-setup=/bin/true as
2566 backwards-compatible synonym.
2567
2568 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2569
2570 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2571 order of qsort arguments (number of elements vs. element size).
2572
2573 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2576 the function of these files exceeds what can be sanely handled in shell
2577 in posix-comaptible way. Also writing it in C extends the functionality
2578 to non-UNIX-like OS and minimal environments.
2579
2580 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2583 compiling to thumb2.
2584 * grub-core/kern/arm/cache_armv7.S: Likewise.
2585 * grub-core/lib/arm/setjmp.S: Likewise.
2586
2587 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2588
2589 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2590 in grub_uboot_syscall
2591
2592 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 Decrease stack usage in lexer.
2595
2596 We have only 92K of stack and using over 4K per frame is wasteful
2597
2598 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2599 as macros so that compiler would remove useless structure on stack.
2600 Better solution would be to fix flex not to put this structure on
2601 the stack but flex is external program.
2602
2603 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 Decrease stack usage in signature verification.
2606
2607 We have only 92K of stack and using over 4K per frame is wasteful
2608
2609 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2610 rather than stack.
2611 (grub_verify_signature_real): Likewise.
2612
2613 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 Decrease stack usage in mdraid 0.9x.
2616
2617 We have only 92K of stack and using over 4K per frame is wasteful
2618
2619 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2620 rather than stack.
2621
2622 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 Decrease stack usage in BtrFS.
2625
2626 We have only 92K of stack and using over 4K per frame is wasteful
2627
2628 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2629 rather than stack.
2630
2631 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 Decrease stack usage in JFS.
2634
2635 We have only 92K of stack and using over 4K per frame is wasteful
2636
2637 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2638 stack. Note: this function is recursive.
2639 (grub_jfs_read_inode): Read only part we care about.
2640
2641 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2642
2643 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2644 handling
2645
2646 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2647
2648 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2649
2650 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2651
2652 * docs/grub.texi (Environment): Document cmdpath.
2653
2654 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2655
2656 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2657 Remove "unused" attribute from arguments, they are used.
2658
2659 2013-11-15 Colin Watson <cjwatson@debian.org>
2660
2661 * .gitignore: Only ignore grub-mk* at the top level.
2662
2663 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2664
2665 * util/grub-reboot.in (usage): Fix a typo.
2666
2667 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2668
2669 Replace libgcc version of ctz with our own.
2670
2671 On upcoming arm64 port libgcc ctz* are not usable in standalone
2672 environment. Since we need ctz* for this case and implementation is
2673 in C we may as well use it on all concerned platforms.
2674
2675 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * configure.ac: Probe for linking format rather than guessing it based
2678 on target_os.
2679
2680 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2683 "1" prior to handoff.
2684
2685 Reported by: M A Young.
2686
2687 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2690 \0 to all files.
2691
2692 Reported by: M A Young.
2693
2694 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2697 compilation on NetBSD.
2698
2699 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 * acinclude.m4: Don't add -P on initial nm test.
2702
2703 Note: even though this patch postdates Andrey's it bears 14 Nov as
2704 date due to timezone difference.
2705
2706 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2707
2708 * grub-core/Makefile.core.def (signature_test): Add missing
2709 tests/signatures.h.
2710
2711 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2712
2713 * util/grub-install_header: Set localedir here, since this file is
2714 where it's used.
2715 * util/grub-install.in: Remove setting of localedir.
2716 * util/grub-mkrescue.in: Likewise.
2717
2718 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2721
2722 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * configure.ac: Move nm checks to the end.
2725 Call grub_PROG_NM_WORKS.
2726 * acinclude.m4: New check grub_PROG_NM_WORKS.
2727 Use $TARGET_CFLAGS -c when compiling test binary.
2728
2729 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2730
2731 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2732 unused variables.
2733
2734 2013-11-14 Matthew Garrett <mjg@redhat.com>
2735
2736 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2737 cmdpath to firmware directory.
2738
2739 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2742 at the start of second iteration.
2743
2744 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2747
2748 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 * Makefile.am (default_payload.elf): New target for easier coreboot
2751 build.
2752
2753 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2754
2755 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2756 clang (not necessarry with -no-integrated-as).
2757 * include/grub/symbol.h [__arm__]: Likewise.
2758
2759 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * configure.ac: Use -no-integrated-as on arm with clang.
2762 * INSTALL: Mention ARM compilation with clang.
2763
2764 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2767 -mthumb-interwork.
2768
2769 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2770
2771 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2772 code for indirect block handling.
2773
2774 Saves 185 bytes on compressed image.
2775
2776 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2777
2778 Fix make clean.
2779
2780 * Makefile.am: Remove build-grub-* in make clean.
2781
2782 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2783
2784 New files to gitignore.
2785
2786 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2787 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2788
2789 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2790
2791 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2792
2793 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2794
2795 * .gitignore: fix rules for .dep* and add *.a post git migration
2796
2797 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2798
2799 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2800 to match INSTALL.
2801
2802 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2803
2804 * grub-core/kern/misc.c: Don't redirect divisions in the
2805 GRUB_UTIL case.
2806 * include/grub/misc.h: Likewise.
2807
2808 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2809
2810 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2811 systems that require checking the return value of write.
2812
2813 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2814
2815 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2816 efibootmgr quiet when --debug is not used, rather than when it is.
2817
2818 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2819
2820 * gentpl.py (define_macro_for_platform_dependencies): Remove
2821 first (and thus unused) of two definitions for this function.
2822 (platform_dependencies): Likewise.
2823
2824 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2825
2826 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2827 functions, we only need to check this for the target, not the host.
2828 * configure.ac (grub_apple_cc): Likewise.
2829
2830 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2833 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2834 asm to stay in arm even if surrounding is thumb.
2835
2836 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2839 helper functions are needed for thumb.
2840
2841 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2844 level / 3 division explicitly unsigned. Saves few bytes.
2845
2846 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2849
2850 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2853 division.
2854
2855 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2858 grub_uboot_boot_data to asm part.
2859
2860 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2863 literal load.
2864 (grub_uboot_syscall): Save/restore r9 and align stack.
2865
2866 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2867
2868 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2869
2870 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2873 occurencies with END.
2874
2875 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2876
2877 * util/grub-editenv.c (help_filter, argp): Document how to delete
2878 the whole environment block.
2879 Reported by Dan Jacobson. Fixes Debian bug #726265.
2880
2881 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2882
2883 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2884 sectioning.
2885
2886 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2887
2888 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2889 increment/decrement.
2890
2891 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2894 compiling with clang.
2895
2896 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2899 ".".
2900
2901 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 Redirect all divisions to grub_divmod64.
2904
2905 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2908
2909 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 Add missing includes of loader.h.
2912
2913 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * configure.ac: Allow disabling themes.
2916
2917 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2918
2919 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2920
2921 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2924 until it becomes operational.
2925
2926 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/Makefile.core.def (legacy_password_test): Disable
2929 on platforms where no legacycfg is compiled.
2930 * grub-core/tests/lib/functional_test.c: Tolerate failure to
2931 load legacy_password_test.
2932
2933 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
2936
2937 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/efiemu/prepare.c: Remove variable length arrays.
2940
2941 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
2944 strict-aliasing warning.
2945 (fsync): Silence cast warning.
2946
2947 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/commands/verify.c: Remove variable length arrays.
2950 Load gcry_dsa/gcry_rsa automatically.
2951
2952 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * grub-core/tests/signature_test.c: New test.
2955
2956 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
2959 API.
2960
2961 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/tests/legacy_password_test.c (vectors): Make static.
2964 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
2965
2966 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
2969
2970 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2971
2972 * grub-core/fs/proc.c: Allow \0 in proc files.
2973
2974 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
2977
2978 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2979
2980 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
2981
2982 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2983
2984 * grub-core/fs/ext2.c: Remove variable length arrays.
2985
2986 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
2989 length arrays.
2990
2991 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
2994 * grub-core/disk/cryptodisk.c: Likewise.
2995 * grub-core/disk/geli.c: Likewise.
2996 * grub-core/disk/luks.c: Likewise.
2997
2998 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/tests/legacy_password_test.c: New test.
3001 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3002
3003 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3006
3007 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * grub-core/tests/pbkdf2_test.c: New test.
3010
3011 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3014
3015 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * grub-core/io/lzopio.c: Remove variable length arrays.
3018
3019 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * include/grub/crypto.h: Add maximums on hash size and cipher block
3022 size.
3023
3024 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3027
3028 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * grub-core/tests/xnu_uuid_test.c: New test.
3031
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3035 covers it).
3036
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/commands/hashsum.c: Remove variable length arrays.
3040
3041 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3044 condition.
3045 * tests/grub_func_test.in: Increase memory allocation.
3046
3047 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3050 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3051 sys/mount.h.
3052
3053 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3056 (grub_util_get_fd_size_os): ...this.
3057 (grub_hostdisk_flush_initial_buffer): New empty function.
3058
3059 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3062 without --defined-only.
3063
3064 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3067 rip-relative addressing in prologue.
3068
3069 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3072 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3073
3074 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3077 Add missing semicolon.
3078
3079 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3082
3083 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * configure.ac: Check for lzma.h for enabling liblzma and allow
3086 manual disabling.
3087
3088 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 Add missing includes of loader.h.
3091
3092 2013-11-11 Fam Zheng <famcool@gmail.com>
3093
3094 * util/grub.d/30_os-prober.in: Add minix entry.
3095
3096 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3099 right buffer for temporary load.
3100
3101 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3104
3105 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3108 payload.
3109
3110 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3113 not Types.h.
3114 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3115 environment.
3116 (LzmaDec_InitDicAndState): Make static.
3117
3118 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3121
3122 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3125
3126 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3127
3128 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * docs/grub-dev.texi: Replace bzr references with git ones.
3131
3132 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3133
3134 * docs/grub.texi (Simple configuration): Remove reference to
3135 grub-reboot from saved default entry description - grub-default
3136 does not use it anymore.
3137
3138 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3141 compiled with.
3142
3143 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3144
3145 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3146
3147 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 Fix grub_machine_fini bitrot.
3150
3151 Reported by: Glenn Washburn.
3152
3153 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3156
3157 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3160 -DELF.
3161 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3162 instead of ELF*.
3163
3164 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3167 Add -march=core2 when testing compile of efiemu64.
3168
3169 Thanks Andrey Borzenkov for spotting this.
3170
3171 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3174 XEN PV environment and load kernels.
3175
3176 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3179 * grub-core/loader/multiboot_mbi2.c: Likewise.
3180
3181 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3184 handling.
3185
3186 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3189
3190 Tested by: Denis 'GNUtoo' Carikli.
3191
3192 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3195
3196 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3199 Use to get rounded angle rather than truncated.
3200
3201 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/term/serial.c: Add option for enabling/disabling
3204 RTS/CTS flow control.
3205
3206 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3209 divisions.
3210
3211 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3214 Use grub_fatal rather than divide by zero.
3215 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3216
3217 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3220 truncate.
3221 (grub_fixed_fsf_divide): Likewise.
3222
3223 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3226 division by-zero and senseless negative divisions.
3227
3228 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3231 division by-zero and senseless negative divisions.
3232 (circprog_set_property): Don't accept negative num_ticks.
3233
3234 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3237 division by-zero and senseless negative divisions.
3238
3239 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * configure.ac: Use elf_*_fbsd on kfreebsd.
3242
3243 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * grub-core/tests/div_test.c: New test.
3246
3247 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3248
3249 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3250 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3251 * grub-core/gfxmenu/view.c: Likewise.
3252 * grub-core/video/fb/video_fb.c: Introduce new functions:
3253 grub_video_set_area_status, grub_video_get_area_status,
3254 grub_video_set_region, grub_video_get_region.
3255 * grub-core/video/bochs.c: Likewise.
3256 * grub-core/video/capture.c: Likewise.
3257 * grub-core/video/video.c: Likewise.
3258 * grub-core/video/cirrus.c: Likewise.
3259 * grub-core/video/efi_gop.c: Likewise.
3260 * grub-core/video/efi_uga.c: Likewise.
3261 * grub-core/video/emu/sdl.c: Likewise.
3262 * grub-core/video/radeon_fuloong2e.c: Likewise.
3263 * grub-core/video/sis315pro.c: Likewise.
3264 * grub-core/video/sm712.c: Likewise.
3265 * grub-core/video/i386/pc/vbe.c: Likewise.
3266 * grub-core/video/i386/pc/vga.c: Likewise.
3267 * grub-core/video/ieee1275.c: Likewise.
3268 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3269 * include/grub/video.h: Likewise.
3270 * include/grub/video_fb.h: Likewise.
3271 * include/grub/fbfill.h: Updated render_target structure.
3272 grub_video_rect_t viewport, region, area
3273 int area_offset_x, area_offset_y, area_enabled
3274 * include/grub/gui.h: New helper function
3275 grub_video_bounds_inside_region.
3276 * docs/grub-dev.texi: Added information about new functions.
3277
3278 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3281 for alignment.
3282
3283 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3286 missing attribute.
3287 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3288
3289 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3290
3291 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3292 simple division on arm and ia64.
3293
3294 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3297 link with libgcc.
3298
3299 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3302
3303 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3306 prefix symbol, not @.
3307
3308 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * INSTALL: Add note about older gcc and clang.
3311
3312 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3315
3316 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3319 NULL pointer dereference.
3320
3321 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3324 clang.
3325
3326 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3329 warnings.
3330
3331 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3334 function.
3335 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3336 * grub-core/disk/geli.c (ascii2hex): Likewise.
3337
3338 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * configure.ac: Run linker tests without -Werror.
3341 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3342 Change all occurences of -static-libgcc resp -lgcc to
3343 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3344
3345 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3348
3349 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 Allow compiling with clang (not really supported though).
3352
3353 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3354 unconditionally.
3355 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3356 Add -mrtd -mregparm=3 on i386 when not using clang.
3357 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3358
3359 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3362 bindings.
3363 * grub-core/lib/reed_solomon.c: Likewise.
3364 * include/grub/i386/gdb.h: Likewise.
3365 * include/grub/i386/pc/int.h: Likewise.
3366 * include/grub/i386/pc/pxe.h: Likewise.
3367 * include/grub/ieee1275/ieee1275.h: Likewise.
3368
3369 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 Import libgcrypt 1.5.3.
3372
3373 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * configure.ac: Don't add -Wcast-align on x86.
3376
3377 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * configure.ac: Add -freg-struct-return on all platforms that
3380 support it.
3381
3382 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3383
3384 * acinclude.m4: Use -Werror on parameter tests.
3385 * configure.ac: Likewise.
3386
3387 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3390
3391 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3392
3393 * configure.ac: Check that -malign-loops works rather than assuming that
3394 either -falign-loops or -malign-loops work.
3395
3396 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3399
3400 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * configure.ac: Prevent cflags leaking to subsequent tests by always
3403 resetting cflags to target_cflags in target tests.
3404
3405 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3408 function.
3409
3410 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3413
3414 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3417
3418 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/normal/cmdline.c (grub_cmdline_get):
3421 Remove nested functions.
3422
3423 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * tests/test_sha512sum.in: Make it work on emu.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3430 functions.
3431 (grub_bidi_line_logical_to_visual): Likewise.
3432
3433 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 Remove vestiges of -Wunsafe-loop-optimisations.
3436
3437 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3438 -Wno-unsafe-loop-optimisations.
3439 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3440 pragma.
3441 * grub-core/io/gzio.c: Likewise.
3442 * grub-core/script/parser.y: Likewise.
3443 * grub-core/script/yylex.l: Likewise.
3444 * util/grub-mkfont.c: Likewise.
3445
3446 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * util/grub-mkfont.c (process_cursive): Remove nested function.
3449
3450 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3453 (grub_boot_time): Likewise.
3454
3455 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * include/grub/symbol.h (FUNCTION): Use @function rather than
3458 "function".
3459 (VARIABLE): Likewise.
3460
3461 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3462
3463 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3464
3465 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3468 (parse_dhcp_vendor): Likewise.
3469
3470 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3473
3474 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3477 Define after defining type and not before.
3478
3479 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3482 type.
3483 (grub_gcm_decrypt): Likewise.
3484 (algo_decrypt): Likewise.
3485 (grub_zfs_decrypt_real): Transform error type.
3486
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3490
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3494 (grub_usbms_cbi_reset): Likewise.
3495 (grub_usbms_bo_reset): Likewise.
3496 (grub_usbms_reset): Likewise.
3497 (grub_usbms_attach): Likewise.
3498 (grub_usbms_transfer_cbi): Likewise.
3499
3500 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3503 "checksum = checksum;".
3504
3505 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3508 entry_type.
3509
3510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3513 BIOS disk check.
3514
3515 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3518 type.
3519 (grub_ehci_fini_hw): Likewise.
3520 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3521
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3525 return grub_usb_err_t for cosistency. All users updated.
3526
3527 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3528
3529 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3530 assigning to itself.
3531
3532 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3533 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3534
3535 Issue separate DNS queries for ipv4 and ipv6
3536
3537 Adding multiple questions on a single DNS query is not supportted by
3538 most DNS servers. This patch issues two separate DNS queries
3539 sequentially for ipv4 and then for ipv6.
3540
3541 Fixes: https://savannah.gnu.org/bugs/?39710
3542
3543 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3544 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3545 * (grub_net_dns_lookup): Now using separated dns packages.
3546 * (grub_cmd_nslookup): Add error condition.
3547 * (grub_cmd_list_dns): Print DNS option.
3548 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3549 --prefer-ipv4, and --prefer-ipv6.
3550 * include/grub/net.h (grub_dns_option_t): New enum.
3551 * (grub_net_network_level_address): option added.
3552
3553 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3554
3555 * grub-core/video/fb/video_fb.c: Merge two blit functions
3556 into one.
3557
3558 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/term/terminfo.c: Add sequences for home and end.
3561
3562 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3565 graphics console.
3566
3567 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3568
3569 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3570 add mode 0x12.
3571
3572 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3573
3574 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3575 e-mail by Per Öberg.
3576
3577 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3578
3579 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3580 name.
3581
3582 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3583
3584 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3585 emu platforms.
3586 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3587
3588 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * docs/grub.texi: Document usage of menuentry id.
3591
3592 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3595
3596 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3597
3598 * grub-core/commands/i386/nthibr.c: New command.
3599
3600 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3603
3604 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3607 coordinate.
3608
3609 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3610
3611 Support GRUB_DISABLE_SUBMENU config.
3612
3613 Inspired by patch from Prarit Bhargava.
3614
3615 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * docs/grub.texi: Mention RSA support.
3618
3619 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * grub-core/commands/verify.c: Add RSA support.
3622
3623 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3626 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3627 device is known to be ATAPI.
3628
3629 2013-11-03 Mike Frysinger <vapier>
3630
3631 * configure.ac: Don't add target-prefix.
3632
3633 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3636 variables.
3637
3638 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3641 if language is English.
3642
3643 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3646
3647 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * configure.ac: Don't add -m32/-m64 on emu.
3650
3651 2013-11-02 neil
3652
3653 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3654 broken linux headers.
3655
3656 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3659
3660 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3663 Reed-Solomon recovery if more than half of redundancy info is 0.
3664
3665 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * util/grub-mount.c: Handle symlinks to directories.
3668
3669 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3670
3671 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3672 find_file recursively for symlink.
3673
3674 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * tests/util/grub-shell.in: Copy themes.
3677
3678 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3681
3682 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * configure.ac: Use 0x8000 for address instead of 8000.
3685
3686 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3689 signature.
3690
3691 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3694 variable.
3695
3696 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3699
3700 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3703 file_progress_read_hook.
3704 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3705
3706 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3709 and double.
3710
3711 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3714
3715 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 Rewrite blocklist functions in order to get progress when
3718 reading large extents and decrease amount of blocklist hook calls.
3719
3720 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3721
3722 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3723 of SI suffixes.
3724
3725 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3726
3727 Support --base-clock for serial command to handle weird cards with
3728 non-standard base clock.
3729
3730 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3733 strncpy.
3734 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3735 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3736 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3737 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3738 + strcpy rather than strncpy.
3739
3740 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3743 (check_pool_label): Likewise. Fixes overflow.
3744 (nvlist_find_value): Fix comparison.
3745
3746 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3749 more appropriate functions.
3750
3751 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3754 realloc.
3755
3756 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3759
3760 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3763 on core size.
3764
3765 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3768
3769 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3772 (initialize_tables): reset tl and td to NULL after freeing.
3773
3774 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3777
3778 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3781 of supported tags.
3782
3783 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3784
3785 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3786
3787 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3790 quirks.
3791
3792 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3795 a page in protected space.
3796
3797 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3800 allocate space for zero-sized modules.
3801
3802 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3805
3806 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3807
3808 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3809
3810 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3813 safeguards. Fixes a crash with i386/pc/console.c.
3814
3815 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3818 and grub_hostfs_init.
3819
3820 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3823 windows method on other platforms without good stat as well.
3824
3825 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3828
3829 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 Make / in btrfs refer to real root, not the default volume.
3832 Modify mkrelpath to work even if device is mounted with subvolid option.
3833
3834 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3835
3836 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3837 extra_dist.
3838 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3839 extra_dist.
3840
3841 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3844 fails.
3845
3846 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3847
3848 * docs/autoiso.cfg: New file.
3849
3850 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3853 COND_GRUB_PE2ELF conditions.
3854
3855 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3858 "vnd", "rd" and "fd" disks.
3859
3860 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 Move grub_disk_write out of kernel into disk.mod.
3863
3864 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3867 handling.
3868
3869 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/kern/misc.c (grub_abort): Make static
3872
3873 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3876 transform invalid unicode codepoints.
3877
3878 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3881 \0 checking.
3882
3883 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3886
3887 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 Consolidate cpuid code.
3890
3891 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 Move cpuid code to cpuid.h and TSC code to tsc.c.
3894
3895 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3896
3897 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3898
3899 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3900
3901 * util/grub-mkconfig.in: Replace $0 with $self.
3902 * util/grub-reboot.in: Likewise.
3903 * util/grub-set-default.in: Likewise.
3904
3905 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3906
3907 * docs/osdetect.cfg: New file.
3908
3909 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3910
3911 * tests/util/grub-shell.in: Add new --debug option.
3912
3913 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3914
3915 * tests/test_unset.in: New test.
3916
3917 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3918
3919 * tests/test_sha512sum.in: New test.
3920
3921 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3924 * include/grub/misc.h: Remove strncat.
3925 * grub-core/lib/posix_wrap/string.h: Likewise.
3926
3927 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
3930 Try to handle more than 0xFFFF packets.
3931 Reported by: Bernhard Übelacker <bernhardu>.
3932 He also spotted few overflows in first version of this patch.
3933
3934 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * tests/date_unit_test.c: New test.
3937
3938 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
3941 of first three years after start of validity of unixtime.
3942
3943 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
3946 division as the one making more sense.
3947 (update_screen): Likewise.
3948 (complete): Likewise.
3949
3950 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
3953
3954 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 Make char and string width grub_size_t rather than grub_ssize_t.
3957
3958 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
3961 unsigned.
3962 (grub_history_replace): Likewise.
3963
3964 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3965
3966 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
3967 appropriate.
3968
3969 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3970
3971 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
3972 appropriate.
3973
3974 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
3977 Use unsigned divisions rather than signed variants.
3978
3979 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/video/readers/png.c (grub_png_convert_image): Use
3982 unsigned arithmetics.
3983 Add missing break.
3984
3985 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
3988
3989 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
3992 rather than signed one.
3993 (recovery): Likewise.
3994
3995 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3996
3997 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
3998
3999 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4002 than signed.
4003
4004 2013-10-25 Jon McCune <jonmccune@google.com>
4005
4006 * docs/grub.texi: Cleanup security documentation around signatures.
4007
4008 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4011
4012 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4015 than int.
4016
4017 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4020 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4021 functions when compiling for kernel.
4022
4023 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4026 unsigned long long when using %llu.
4027
4028 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4031 terminal after updating progress.
4032
4033 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4036 argument. We don't disable Gate A20 in this code.
4037
4038 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4041 Conceptually based on change in branch "vbe-on-coreboot".
4042
4043 2013-10-24 Robert Millan <rmh@gnu.org>
4044
4045 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4046 numeric constants with their symbolic equivalent.
4047 Taken from branch "vbe-on-coreboot".
4048
4049 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4050
4051 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4052
4053 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4056 divmod64 for offset division.
4057
4058 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4059
4060 Rename .bzrignore to .gitignore. Add "*.o" rule.
4061
4062 * .bzrignore: Renamed to...
4063 * .gitignore: ...this.
4064
4065 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4066
4067 Add new progress module that displays the load progress of files.
4068
4069 * grub-core/lib/progress.c: New file.
4070 * grub-core/Makefile.core.def (progress): New module.
4071 * grub-core/kern/file.c (grub_file_open): File name added.
4072 * (grub_file_read): Progress hook added.
4073 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4074 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4075 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4076 * include/grub/file.h (struct grub_file): Add progress module members.
4077 * include/grub/term.h (struct grub_term_output): Likewise.
4078 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4079 Terminal velocity added.
4080 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4081 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4082 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4083 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4084 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4085 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4086 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4087 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4088 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4089 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4090 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4091 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4092
4093 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 Verify signatures of signatures unless --skip-sig is specified.
4096
4097 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4098
4099 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4100 \0 checking.
4101
4102 Saves 70 bytes on compressed image.
4103
4104 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4107 check.
4108
4109 Saves 10 bytes on compressed image.
4110
4111 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/kern/misc.c (grub_isprint): Move to ...
4114 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4115
4116 Saves 20 bytes on compressed image due to remving exporting.
4117
4118 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4121
4122 Saves 5 bytes on compressed image.
4123
4124 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4127 function get_utf8.
4128
4129 Saves 379 bytes on compressed image.
4130
4131 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4134
4135 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4138
4139 Saves 40 bytes on compressed image.
4140
4141 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4142
4143 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4144 mask rather than 64-bit type.
4145
4146 Saves 20 bytes on compressed image.
4147
4148 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4151 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4152
4153 Saves 273 bytes on compressed image.
4154
4155 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4158 variable length arrays.
4159
4160 Saves 50 bytes on compressed image.
4161
4162 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4165
4166 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 * grub-core/fs/ufs.c: Remove variable length arrays.
4169
4170 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4173
4174 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * grub-core/fs/zfs.c: Remove variable length arrays.
4177 Reduces zfs.mod by 160 bytes (208 compressed).
4178
4179 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4182
4183 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/net/arp.c: Remove variable length arrays.
4186 * grub-core/net/bootp.c: Likewise.
4187 * grub-core/net/dns.c: Likewise.
4188 * grub-core/net/icmp6.c: Likewise.
4189 * grub-core/net/net.c: Likewise.
4190
4191 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/fs/ntfs.c: Remove variable length arrays.
4194 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4195 compressed).
4196
4197 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * grub-core/fs/hfs.c: Remove variable length arrays.
4200 Reduces hfs.mod by 8 bytes (52 compressed).
4201
4202 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/udf.c: Remove variable length arrays.
4205 Increases udf.mod by 128 bytes (but decreases by 13 when
4206 compressed).
4207
4208 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * grub-core/fs/iso9660.c: Remove variable length arrays.
4211 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4212 compressed).
4213
4214 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4217 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4218 compressed).
4219
4220 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/fs/xfs.c: Remove variable length arrays.
4223 Reduces xfs.mod by 40 bytes (43 compressed).
4224
4225 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/fs/fshelp.c: Remove variable length arrays.
4228 Reduces fshelp.mod by 116 bytes (23 compressed).
4229
4230 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * grub-core/normal/completion.c: Remove variable length arrays.
4233 * grub-core/normal/menu_entry.c: Likewise.
4234
4235 Reduces normal.mod by 496 bytes.
4236
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4240 by 356 bytes (158 compressed).
4241
4242 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4245 by 364 bytes (169 compressed).
4246
4247 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4250 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4251 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4252
4253 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4256 bitmasks to small structures of size chosen to fit in registers.
4257
4258 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * conf/Makefile.common: Use -freg-struct-return on i386. This
4261 decreases code size and improves performance.
4262
4263 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4264
4265 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4266
4267 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4270 "(null)" string.
4271 Simplify expressions to save around 256 bytes in kernel.img.
4272 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4273
4274 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4277 Use GRUB_UTIL_FD_O_* rather than O_*.
4278
4279 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 Add haiku-specific functions.
4282
4283 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4286
4287 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 Move stat () and device mode checking into OS-dependent files as
4290 long as performance doesn't suffer.
4291
4292 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 Split make_system_path_relative_to_its_root into separate file
4295 relpath.c from getroot.c as it's common between unix and haiku
4296 but otherwise haiku doesn't use any functions from unix getroot.c.
4297
4298 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4301 New function.
4302 (grub_util_is_special_file): Likewise.
4303
4304 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4307 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4308
4309 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4312 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4313
4314 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4317 (load_image): Likewise.
4318
4319 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * util/grub-render-label.c: Move backend part to ...
4322 * util/render-label.c: ... here.
4323
4324 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4327 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4328
4329 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4332
4333 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4336 CD-ROM in case when it's declared as having subpartitions.
4337
4338 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 Don't add -lm on haiku.
4341
4342 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4343 and empty on haiku.
4344 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4345 -lm.
4346
4347 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * configure.ac: Use -melf_*_haiku as target on haiku.
4350
4351 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * Makefile.util.def: Add util/setup.c to extra_dist.
4354
4355 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4356
4357 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4358 unknown types through.
4359
4360 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4363 (grub_util_check_char_device): Likewise.
4364 * include/grub/emu/getroot.h: Likewise.
4365
4366 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4369 memset rather than inline static function.
4370
4371 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4374 not doing embedded decompressor.
4375
4376 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4377
4378 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4379 shadowing.
4380 * grub-core/kern/disk.c: Likewise.
4381 * grub-core/kern/misc.c: Likewise.
4382 * include/grub/parser.h: Likewise.
4383 * include/grub/script_sh.h: Likewise.
4384 * include/grub/zfs/zfs.h: Likewise.
4385
4386 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4389
4390 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4393 defined before trying to use it.
4394
4395 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4398 warning.
4399
4400 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4403 Use __unused__ rather than __used__ on gcc < 3.2.
4404
4405 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4408 gcc < 4.0.
4409 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4410
4411 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4412
4413 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4414
4415 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4418 * include/grub/emu/misc.h: Likewise.
4419
4420 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4423 cur_color.
4424
4425 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4426
4427 * grub-core/tests/checksums.h: Regenerated due to progress bar
4428 get_minimal_size changes.
4429
4430 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4431
4432 Added `tr' command support.
4433
4434 * grub-core/commands/tr.c: New file.
4435 * grub-core/Makefile.core.def: Build rules for new module.
4436
4437 * tests/grub_cmd_tr.in: New test.
4438 * Makefile.util.def: Build rules for new test.
4439
4440 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4441
4442 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4443
4444 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4445
4446 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4447 * docs/gurb.texi: Likewise.
4448
4449 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4450
4451 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4452 Pixmap highlighted section with east and west slices was displayed
4453 incorrectly due to negative width of the central slice.
4454
4455 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4456
4457 * docs/grub.texi: Graphical options information update.
4458 Removed outdated. Updated current. Inserted missed.
4459
4460 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * docs/grub.texi: Mention few new platform-specific commands.
4463
4464 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4465
4466 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4467 currently used so this doesn't really have any effect.
4468 Reported by: Douglas Ray <dougray>
4469
4470 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4473 compilation but prevents gcc from displaying messages in non-Latin
4474 alphabets.
4475 * conf/Makefile.common: Likewise.
4476
4477 2013-10-16 Hiroyuki YAMAMORI
4478
4479 Handle Japanese special keys.
4480 Reported by: Hiroyuki YAMAMORI.
4481 Codes supplied by: Hiroyuki YAMAMORI.
4482
4483 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4484
4485 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4486
4487 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4488
4489 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4490 * docs/grub.texi: Likewise.
4491
4492 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4495 value in case of incomplete read.
4496 (grub_util_fd_write): Likewise.
4497
4498 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4501
4502 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * util/grub-editenv.c (create_envblk_file): More from here ...
4505 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4506
4507 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4510 canonicalize file name before doing the rest.
4511
4512 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4515 mingw32.
4516
4517 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 Define grub_util_is_directory/regular/special_file and
4520 use OS-dependent versions rather than to rely on stat().
4521
4522 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * util/grub-mkimage.c: Move backend part to ...
4525 * util/mkimage.c: ... here.
4526
4527 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 Allow compilation with mingw64 albeit with warnings due to lack of
4530 %llx/%llu.
4531
4532 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4533 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4534 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4535 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4536 on mingw64.
4537 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4538
4539 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 Remove leftover references to some of the system headers.
4542
4543 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4546 read.
4547
4548 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4551 of strerror.
4552
4553 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 Split out blocklist retrieving from setup.c to
4556 grub-core/osdep/blocklist.c and add windows implementation since
4557 generic version doesn't work on NTFS on Windows due to aggressive
4558 unflushable cache.
4559
4560 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4563 files.
4564
4565 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4568 Cut tailing newline. Remove arbitrary limitation. Always use
4569 grub_util_tchar_to_utf8.
4570
4571 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4572
4573 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4574 * tests/printf_unit_test.c (printf_test): Add %% tests.
4575 Reported by: Paulo Flabiano Smorigo.
4576
4577 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4580 implement fsync.
4581
4582 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4585 use nvlist_lookup_string and don't use nvlist_print.
4586
4587 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4590 closedir to handle filename charset translation.
4591
4592 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * include/grub/emu/hostdisk.h: Move file operations to
4595 * include/grub/emu/hostfile.h: ... here.
4596
4597 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4600 unicode path.
4601
4602 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4605
4606 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4607
4608 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4609 and remove export.h.
4610
4611 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 * grub-core/kern/emu/error.c: Removed.
4614 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4615 explicitly as it's already in libgnu.a.
4616
4617 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4620 config-util.h include.
4621
4622 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 Split emunet into platform-dependent and GRUB-binding parts. Keep
4625 platform-dependent part in kernel for easy access to OS functions.
4626
4627 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4628
4629 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4630 open/read/write.
4631
4632 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4633
4634 * grub-core/osdep/windows/emuconsole.c: New file.
4635
4636 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4637
4638 * conf/Makefile.extra-dist: Add osdep/*/init.c
4639
4640 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4643
4644 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 * util/grub-probe.c (probe): Separate different drives in hint-str
4647 by spaces and not newlines.
4648 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4649
4650 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4651
4652 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4653 Handle CD-ROMs.
4654
4655 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 Pass-through unknown E820 types. It required reorganisation of mmap
4658 module.
4659
4660 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4661
4662 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4663
4664 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4667 fseeko.
4668
4669 2013-10-14 qwertial <qwertial>
4670
4671 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4672
4673 2013-10-14 Jon McCune <jonmccune@google.com>
4674
4675 * docs/grub.texi: Document new signatures possibility.
4676
4677 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4680
4681 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4684 missing prototype.
4685 (grub_util_tchar_to_utf8): Likewise.
4686
4687 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4690 * grub-core/kern/emu/main.c: Add missing include.
4691 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4692 Don't call grub_util_init_nls.
4693 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4694 Likewise.
4695
4696 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4699 stat.
4700
4701 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4702
4703 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4704
4705 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4708
4709 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 Add a wrapper for fopen. On unix-like systems just pass-through. On
4712 windows use unicode version.
4713
4714 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 Move set_program_name and init_nls to host_init. On windows
4717 fix in this fuction console and argument charset as well.
4718
4719 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4720
4721 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4722 GRUB_ENABLE_CRYPTODISK.
4723
4724 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4725 GRUB_ENABLE_CRYPTODISK.
4726 * util/grub-mkconfig_lib.in: Likewise.
4727
4728 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4729
4730 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4731
4732 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4733
4734 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4735 error when enabling debug.
4736
4737 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4738
4739 * configure.ac: Use -melf_*_obsd on openbsd.
4740
4741 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4744
4745 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * include/grub/misc.h: Use gnu_printf rather than printf as format
4748 template since our functions are independent of libc.
4749
4750 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * util/grub-setup.c (setup): Move copying of partition table as
4753 futher up as possible to avoid possible overwrite by floppy routines.
4754
4755 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4758
4759 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4760
4761 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4762 * docs/grub.texi: Likewise.
4763
4764 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4765
4766 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4767 it's mostly unused. Move vestiges to the callers.
4768
4769 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4772 version of salt and hash. Use grub_snprintf rather than snprintf.
4773
4774 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * docs/grub.texi: Fix problem with braces.
4777
4778 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4779
4780 * conf/Makefile.extra-dist: Fix extra-dist list.
4781 * grub-core/Makefile.core.def: Likewise.
4782
4783 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * docs/grub.texi: Document disk names used on Windows and AROS.
4786
4787 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4790 with AROS devs.
4791 * grub-core/osdep/aros/hostdisk.c: Likewise.
4792
4793 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 Avoid including hostfile.h when not necessarry as it pulls
4796 in OS-specific headers which may redefine generic names
4797 like "far".
4798
4799 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4800
4801 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4802 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4803 scrollbar_bottom_pad
4804 * docs/grub.texi: Likewise.
4805
4806 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4807
4808 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4809
4810 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4813
4814 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4817 Removed.
4818 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4819 Made static.
4820
4821 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4824 leftover.
4825
4826 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 Move OS-specific driver configuration to grub_util_fd_open. This
4829 moves OS-dependent parts from kern/emu/hostdisk.c to
4830 grub-core/osdep/*/hostdisk.c.
4831
4832 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * util/grub-mkimage.c (generate_image): Use size_t instead of
4835 grub_size_t.
4836 * util/grub-mkimagexx.c (locate_sections): Likewise.
4837 (load_image): Likewise.
4838
4839 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4842 size_t.
4843 (grub_util_write_image): Likewise.
4844
4845 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4848 get random when no RNG is available.
4849 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4850
4851 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * include/grub/util/lvm.h: Removed.
4854
4855 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4856
4857 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4858 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4859
4860 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4863
4864 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4867
4868 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4869
4870 * grub-core/net/drivers/emu/emunet.c: Move to ..
4871 * grub-core/osdep/linux/emunet.c: ..here.
4872
4873 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * util/ieee1275/ofpath.c: Move to ...
4876 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4877 * grub-core/osdep/basic/ofpath.c: ..here.
4878
4879 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 Move password-querying (util-version) routines to grub-core/osdep.
4882
4883 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 Move sleep routines to grub-core/osdep.
4886
4887 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 Move OS-dependent files to grub-core/osdep and document it.
4890
4891 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4894 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4895
4896 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4899
4900 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * util/misc.c: Remove leftover inclusion of malloc.h.
4903
4904 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4905
4906 * include/grub/setjmp.h: Remove leftover GRUBOF.
4907
4908 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4909
4910 * util/raid.c: Fold into ...
4911 * util/getroot_linux.c: ... here. Make all functions static.
4912
4913 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4916 macros to GRUB ones.
4917
4918 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4919
4920 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4921 occasional bug. If there are too many boot entries or too low
4922 scrollbar height then we need to use another formula to calculate
4923 the position and size of the scrollbar thumb.
4924
4925 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4928
4929 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4930
4931 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
4932 * docs/grub.texi: Likewise.
4933
4934 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4935
4936 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
4937 viewport.
4938
4939 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4940
4941 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
4942 minimal width calculations.
4943
4944 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * docs/grub.texi: Update note on colors on emu console.
4947
4948 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4949
4950 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
4951 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
4952 it's FS and not GRUB limitation.
4953
4954 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
4957
4958 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
4959
4960 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
4961
4962 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4963
4964 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
4965 kernels by version order.
4966
4967 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
4970
4971 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 Add AROS hostdisk and getroot routines.
4974
4975 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 Make cryptodisk and diskfilter probe data retrievable programmatically
4978 and not just printable.
4979
4980 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 Split random retrieving code into separate files.
4983
4984 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
4987 R_ARM_V4BX.
4988
4989 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4990
4991 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
4992 condition.
4993 * grub-core/tests/fake_input.c: Likewise.
4994 * grub-core/tests/cmdline_cat_test.c: Likewise.
4995
4996 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * grub-core/video/capture.c: Do not do finalization when .fini
4999 is called as there is explicit capture_end.
5000
5001 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5004 changing windows to avoid crash.
5005
5006 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5009
5010 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5011
5012 * po/exclude.pot: Add several strings to exclude.
5013
5014 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5017
5018 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5021 ./util/grub-gen-asciih.c to exclude list.
5022
5023 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5026 and don't mark error strings for translation.
5027
5028 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5029
5030 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5031 properly in case of missing block size.
5032
5033 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * grub-core/lib/arm/setjmp.S: Add missing license section.
5036
5037 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * po/swiss.sed: Add replacement for key names and for term computer.
5040
5041 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5042
5043 * grub-core/gfxmenu/theme_loader.c: New global options for the
5044 theme background image handling. desktop-image-scale-method,
5045 desktop-image-h-align, desktop-image-v-align.
5046 * grub-core/gfxmenu/view.c: Likewise.
5047 * include/gfxmenu_view.h: Likewise.
5048 * include/bitmap_scale.h: Proportional scale functions introduced.
5049 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5050 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5051 cases of unexpected input variables for scale functions.
5052 * docs/grub.texi: Updated documentation for new options.
5053
5054 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5057
5058 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5059
5060 * grub-core/tests/checksums.h: Corrected due to changes in
5061 bilinear interpolation function.
5062
5063 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5064
5065 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5066 to eliminate artefacts in bilinear interpolation.
5067
5068 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * grub-core/video/readers/tga.c: Support paletted tga.
5071
5072 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5075 incorrect cbcr setting when in color mode.
5076
5077 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * grub-core/video/readers/png.c: Support paletted images and clean up
5080 greyscale support.
5081
5082 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5083
5084 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5085 usage of wrong table which resulted in mishandling of 4-byte
5086 sequences.
5087
5088 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * grub-core/term/terminfo.c: Add Home and End key sequences.
5091
5092 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5095 Fix formula for computing total number of bytes.
5096
5097 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5100 image processing, fix big-endian and support grayscale.
5101
5102 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5105 Correctly will with maximum transparency when using index color.
5106
5107 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * grub-core/video/readers/png.c: Support grayscale
5110
5111 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5112
5113 * grub-core/video/readers/jpeg.c: Support grayscale.
5114
5115 2013-09-26 Jon McCune <jonmccune@google.com>
5116
5117 * grub-core/commands/loadenv.c: Support skipping signature check
5118 and variable names filtering.
5119
5120 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5123 * grub-core/kern/emu/hostfs.c: Likewise.
5124 * util/getroot_unix.c: Likewise.
5125
5126 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5129 Migrate all explicit defines to this new one.
5130
5131 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5134 grub_util_fd_strerror when using grub_util_fd_*.
5135 (grub_util_fd_open_device): Likewise.
5136 (grub_util_biosdisk_read): Likewise.
5137 (grub_util_biosdisk_write): Likewise.
5138 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5139 (grub_util_fd_strerror): Likewise.
5140 (grub_util_fd_sync): Likewise.
5141 (grub_util_fd_close): Likewise.
5142 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5143 (grub_util_fd_close): Likewise.
5144 (grub_util_fd_strerror): Likewise.
5145 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5146 function proto rather than macro.
5147 (grub_util_fd_sync): Likewise.
5148 (grub_util_fd_open): Likewise.
5149 (grub_util_fd_strerror): New proto.
5150
5151 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5152
5153 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5154 platforms on which it doesn't work.
5155
5156 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5159 stat immediately to where it's used.
5160
5161 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * util/getroot.c (grub_util_check_block_device): Move to ...
5164 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5165 * util/getroot.c (grub_util_check_char_device): Move to ...
5166 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5167
5168 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5171 disk closing logic.
5172
5173 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5174
5175 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5176
5177 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5178
5179 * docs/grub.texi (File name syntax): Document ZFS filenames
5180 (/volume@snapshot/...).
5181
5182 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5185 Always return full path. Fixes a problem with mkrelpath.
5186
5187 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5188
5189 * util/grub-install.in: Add GPT PReP support.
5190 * util/grub-probe.c (probe): Support GPT partition type.
5191 (main): Support -t gpt_parttype.
5192
5193 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5194
5195 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5196
5197 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5198
5199 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5200
5201 2013-09-23 Tim Hardeck <thardeck>
5202
5203 * util/grub.d/10_hurd.in: Filter out character for the class.
5204 * util/grub.d/10_kfreebsd.in: Likewise.
5205 * util/grub.d/10_linux.in: Likewise.
5206 * util/grub.d/20_linux_xen.in: Likewise.
5207
5208 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5209
5210 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5211 "changed".
5212
5213 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5214
5215 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5216 boot partition.
5217
5218 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5219
5220 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5221 doesn't use posix_wrap. Keep literal -fno-builtin however.
5222
5223 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5226
5227 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5228 2013-09-23 neil
5229
5230 * configure.ac: Do not enable -Wmissing-noreturn as its
5231 usefulness is limited and creates problems on some OS notably with
5232 code generated by bison.
5233
5234 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5235 2013-09-23 neil
5236
5237 * configure.ac: Do not explicitly enable -Waddress as it's not
5238 supported by all gcc and when it is, it's already enabled by -Wall.
5239
5240 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5243 desactivated use of EDID at all.
5244
5245 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5246 2013-09-23 neil
5247
5248 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5249 video if no text is available.
5250
5251 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5252 2013-09-23 neil
5253
5254 * configure.ac: Substitute TARGET_RANLIB.
5255
5256 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5257 2013-09-23 neil
5258
5259 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5260
5261 Based on patches from AROS.
5262
5263 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5264 2013-09-23 neil
5265
5266 * grub-core/Makefile.am: Override STRIP and RANLIB.
5267 * configure.ac: compute TARGET_RANLIB.
5268 * INSTALL: Document TARGET_RANLIB
5269
5270 Based on patches from AROS.
5271
5272 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5273
5274 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5275 that floppies are unpartitioned.
5276
5277 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5278
5279 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5280 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5281
5282 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5285 less nice but more portable.
5286 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5287
5288 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5291 for cheat_fd.
5292 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5293 functions.
5294 (grub_cryptodisk_cheat_insert): Likewise.
5295 (grub_cryptodisk_close): Likewise.
5296
5297 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5298
5299 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5300 Use windows path for DEFAULT_DIRECTORY.
5301
5302 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5303
5304 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5305 difference was likely just gcc version, not anything mingw-related.
5306
5307 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 Use Winapi on both cygwin and mingw32 to share more code between both.
5310
5311 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5312
5313 * util/grub-install.in: Add --grub-editenv option.
5314 * util/grub-install_header (grub_compress_file): Explicitly check for
5315 plain file to avoid cp error.
5316
5317 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5318
5319 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5320 names; fix LVM driver name (lvm, not lv).
5321 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5322 names.
5323
5324 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5327 files rather than one file with loads of #if's.
5328 * util/getroot.c: Likewise.
5329
5330 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5333
5334 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5337 GNU/Hurd to the list of checked PRNG.
5338
5339 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5342
5343 2013-09-21 Ales Nesrsta <starous@volny.cz>
5344
5345 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5346
5347 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5350 * grub-core/disk/lvm.c: Add LVM UUIDs.
5351 * util/getroot.c: Use LVM UUIDs whenever possible.
5352
5353 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5354
5355 * docs/grub.texi (Networking commands): Add documentation for
5356 network related commands.
5357
5358 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5361 to determine if device is handled by devmapper.
5362 (convert_system_partition_to_system_disk): Likewise.
5363 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5364 already done in grub_util_open_dm.
5365
5366 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5367
5368 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5369 Clean up stack manipulation (sync_caches_armv*)
5370
5371 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5372
5373 * util/lvm.c: Remove since unused. Remove remaining references.
5374
5375 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 Handle the case of partitioned LVM properly.
5378
5379 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5380 Stop on meeting LVM, mpath or DMRAID.
5381 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5382 (read_device_map): Likewise.
5383 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5384 device is full disk rather than erroring out on LVM and similar cases.
5385
5386 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5389
5390 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5393 4K before the end.
5394 Reported by: Leif Lindholm
5395
5396 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5397 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5400 codes.
5401
5402 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5403
5404 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5405 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5406
5407 2013-09-18 Douglas Ray <dougray@cpan.org>
5408
5409 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5410 as secure.
5411
5412 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5413
5414 * docs/grub.texi: Fix broken link.
5415
5416 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5417
5418 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5419 to break endless loop.
5420
5421 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5422
5423 * util/grub-fstest.c: Fix several printf formats.
5424 * util/grub-mkimage.c: Likewise.
5425 * util/grub-mkimagexx.c: Likewise.
5426 * util/grub-script-check.c: Likewise.
5427
5428 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5431 error.
5432
5433 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5436
5437 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5438
5439 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5440 removed in current versions cygwin_conv_*.
5441
5442 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * configure.ac: Disable efiemu runtime on cygwin.
5445
5446 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5449 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5450
5451 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5452
5453 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5454 error message.
5455
5456 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5457
5458 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5459 windows variant.
5460 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5461 data.
5462
5463 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5464
5465 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5466 when on x86 and not cygwin.
5467 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5468 -Wl,-melf_x86_64.
5469
5470 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * configure.ac: Set CPP to build one when checkoing for freetype for
5473 build.
5474
5475 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5478 [!GRUB_BUILD]: Remove has_argument.
5479
5480 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5483 Replace with a dummy.
5484
5485 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * configure.ac: Don't change host_os from mingw to cygwin.
5488
5489 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * configure.ac: Change target_os from windows to cygwin.
5492
5493 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5496
5497 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5498 (build-grub-gen-asciih): Likewise.
5499 (build-grub-gen-widthspec): Likewise.
5500 * Makefile.util.def (grub-pe2elf): Remove.
5501 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5502 * configure.ac: Separate tests for build.
5503 Move ./build-grub-pe2elf to grub-core.
5504 Fix typo.
5505 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5506 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5507 defined.
5508 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5509 constants.
5510 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5511 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5512 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5513
5514 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5517 mingw32 as well based on grub_util_get_disk_size.
5518 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5519 grub_util_get_fd_size.
5520 (sync): Removed.
5521 (fsync): Moved to ...
5522 * grub-core/kern/emu/misc.c (fsync): ... here.
5523
5524 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * include/grub/mm.h (grub_extend_alloc): Remove.
5527 * grub-core/loader/i386/pc/plan9.c: Use own version of
5528 grub_extend_alloc with appropriate types.
5529
5530 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5531
5532 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5533
5534 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5537
5538 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 Fix dependencies on cygwin.
5541
5542 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5543 dependencies when used and defined.
5544 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5545
5546 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5549 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5550
5551 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5554 implementation available to cause compile-time rather than runtime
5555 error.
5556
5557 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * util/grub-fstest.c: Don't check for symlinks on windows.
5560
5561 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * INSTALL: Mention unavailability of man pages when cross-compiling.
5564
5565 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5568 and gcry_log_bug.
5569 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5570
5571 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * INSTALL: Document cross-compilation.
5574 * acinclude.m4: Determine whether nm support -P and --defined-only.
5575 * configure.ac: Add TARGET_ to all variables pertaining to target
5576 that don't have it yet.
5577 * gentpl.py: Likewise.
5578 * grub-core/Makefile.am: Likewise.
5579 * grub-core/genmod.sh.in: Likewise.
5580 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5581 as well.
5582
5583 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5584
5585 * configure.ac: Remove -Wempty-body. It's not essential and needs
5586 recent gcc.
5587
5588 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5589
5590 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5591 * util/getroot.c: Likewise.
5592
5593 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5594
5595 * grub-core/disk/ahci.c: Add needed explicit cast.
5596 * grub-core/lib/backtrace.c: Likewise.
5597 * grub-core/net/ip.c: Likewise.
5598 * grub-core/net/tcp.c: Likewise.
5599 * grub-core/net/udp.c: Likewise.
5600
5601 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5604
5605 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * util/import_gcry.py: Add final newline in visibility.h.
5608
5609 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * conf/Makefile.common: Fix typo.
5612
5613 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5616
5617 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * Makefile.am (widthspec.h): Fix typo.
5620 * util/grub-gen-widthspec.c: Likewise.
5621
5622 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 Move ascii.h and widthspec.h generation to a separate build-time-only
5625 tool.
5626
5627 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5628
5629 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5630 Always fill bootdisk info and improve check for NetBSD disklabel.
5631
5632 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * conf/Makefile.extra-dist: Add util/bin2h.c.
5635 Reported by: floppym.
5636
5637 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5640
5641 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * configure.ac: Disable unifont and starfield if no freetype was found.
5644
5645 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5646
5647 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5648 on NetBSD and OpenBSD.
5649
5650 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5651
5652 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5653
5654 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5655
5656 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5657 reduced. Inheritant options are processed during the theme loading.
5658
5659 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5660
5661 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5662
5663 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5664
5665 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5666
5667 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5668
5669 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5670 using qemu.
5671
5672 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5673
5674 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5675 remove-potcdate.sed.
5676
5677 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5678
5679 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5680 unused attribute from pull argument.
5681
5682 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5683
5684 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5685 memory leak.
5686
5687 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5688
5689 * util/getroot.c (pull_lvm_by_command): add --separator option
5690 to vgs call to disable padding of output to 10 characters.
5691
5692 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5695 here ...
5696 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5697 here.
5698
5699 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5702 length.
5703
5704 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5707 full Canadian cross. Tested with build=x86_64, host=arm,
5708 target=ppc-ieee1275.
5709
5710 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 * configure.ac: Error if no $BUILD_CC could be found.
5713 Reported by: DevHC.
5714
5715 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5718 i386-multiboot.
5719
5720 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5721
5722 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5723 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5724
5725 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5726
5727 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5728 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5729 falling back to the partition device, otherwise a later call to this
5730 function may fail spuriously.
5731 Reported by Axel Beckert. Fixes Debian bug #708614.
5732
5733 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5734
5735 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5736
5737 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5738
5739 Prevent shadowing of stdlib's devname(3) on BSD.
5740
5741 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5742 and devlast to diskname and disklast, respectively.
5743
5744 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5745
5746 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5747
5748 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5749
5750 * docs/grub.texi: Introduce terminal window position options:
5751 terminal-left: terminal window's left position
5752 terminal-top: terminal window's top position
5753 terminal-width: terminal window's width
5754 terminal-height: terminal window's height
5755 terminal-border: terminal window's border width
5756 * grub-core/gfxmenu/theme-loader.c: Likewise.
5757 * include/grub/gfxmenu_view.h: Likewise.
5758 * po/exlude.pot: Likewise.
5759 * grub-core/gfxmenu/view.c: Likewise.
5760 Also updated minimal window size.
5761 Also terminal_sanity_check function has been introduced.
5762 * grub-core/tests/checksums.h: Update (terminal window height
5763 is adjusted now for low resolution screen)
5764
5765 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5768 position).
5769
5770 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * po/exclude.pot: Add few recent exceptions.
5773
5774 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * tests/grub_func_test.in: Add unicode.pf2.
5777
5778 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5781 standard rather than noral color, in line with other terminals.
5782
5783 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5784
5785 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5786 analysis.
5787
5788 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5791
5792 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5795 inappropriate printf.
5796
5797 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5798
5799 * .bzrignore: Remove grub-core/lib/dtc-grub,
5800 grub-core/Makefile.libfdt.def
5801 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5802
5803 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5804
5805 * include/grub/video.h (grub_video_register): Keep double-linked as
5806 well as single-linked invariants.
5807 Reported by: qwertial.
5808
5809 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * grub-core/commands/nativedisk.c (get_uuid): Handle
5812 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5813
5814 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5815
5816 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5817 maximum of NW, N, NE heights instead of N's height and maximum of
5818 NW, W, SW widths instead of W's width. (So the box will be always
5819 correctly drawn)
5820
5821 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5822
5823 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5824 Fix misuse of variable count.
5825
5826 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5827 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5828 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 New ports to arm-uboot and arm-efi.
5831 Mostly by Leif Lindholm with some additions from
5832 Francesco Lavra and cleanup by Vladimir Serbinenko.
5833
5834 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5837 and not before.
5838 Reported by: Leon Drugi.
5839
5840 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5843 Reported by: Paulo Flabiano Smorigo.
5844
5845 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5846
5847 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5848
5849 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5850
5851 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5852
5853 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5856
5857 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5858
5859 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5860
5861 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5862
5863 * grub-core/net/bootp.c: Export net_* variables.
5864 * grub-core/net/net.c: Likewise.
5865
5866 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5867
5868 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5869
5870 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5873
5874 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5877
5878 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5881
5882 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5883
5884 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5885 <= 0.
5886
5887 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5888
5889 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5890 functions.
5891
5892 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5893
5894 * grub-core/fs/zfs/zfs_lz4.c: New file.
5895 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5896
5897 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5898
5899 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5900
5901 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5902
5903 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5904 (check_pool_label): Likewise.
5905 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5906
5907 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5908
5909 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5910
5911 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5912
5913 * docs/grub.texi (Commands): Document postition parameters
5914 for menuentry command.
5915
5916 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5917
5918 * util/grub-mknetdir.in: Remove stray line from help output.
5919
5920 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 Remove early sm712 init as there is no reason for it (the "watchdog"
5923 effect was due to wrong GPIO map).
5924
5925 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5926
5927 * grub-core/commands/pcidump.c: Remove static variables.
5928
5929 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * grub-core/commands/sleep.c: Refresh screen before sleeping.
5932
5933 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5934
5935 * configure.ac: Move delimiter after the infos.
5936
5937 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
5940
5941 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
5944 not filling whole 8x16 space.
5945
5946 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
5949
5950 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * configure.ac: Indicate which liblzma is used if any.
5953
5954 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
5955 2013-06-21 Craig Sanders <savannah@taz.net.au>
5956
5957 * util/grub-reboot.in: Document submenu usage.
5958
5959 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5960
5961 * .bzrignore: Update with a number of new test-related files.
5962
5963 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
5964
5965 * util/grub-script-check.c: Fail on scripts containing no
5966 commands, to guard against corrupted grub-mkconfig setups that
5967 produce no useful output.
5968 * tests/grub_script_no_commands.in: New test.
5969 * Makefile.util.def (grub_script_no_commands): Add.
5970 Reported by Hans Putter. Fixes Debian bug #713886.
5971
5972 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5973
5974 * grub-core/disk/diskfilter.c: Forgot to remove comment
5975 from previous commit.
5976
5977 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5978
5979 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
5980 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
5981
5982 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5983
5984 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
5985
5986 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
5987
5988 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
5989 rescan diskfilter devices until nothing new is found.
5990
5991 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 Fix casts when compiling coreboot-specific code for 64-bit EFI.
5994
5995 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 Don't try to detect cbfs on *-emu.
5998
5999 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6000
6001 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6002
6003 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 Add support for processed coreboot payload chainloading.
6006
6007 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 Enable coreboot information commands even when not loaded as
6010 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6011
6012 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 Support for cbfs. Also factor out the part which is common
6015 for all archives to a separate module. This splits tar from cpio
6016 as they are very different but keeps cpio, cpio_be, odc and newc
6017 together since they're very similar.
6018
6019 2013-06-15 David Michael <fedora.dm0@gmail.com>
6020
6021 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6022 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6023
6024 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6025
6026 * tests/grub_script_eval.in: Really add the eval test.
6027
6028 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 Move flavour-specific parts out of common cpio.c file and
6031 rename remaining to cpio_common.c
6032
6033 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6034
6035 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6036 off new function grub_script_execute_new_scope. Change callers to use
6037 either of them as appropriate.
6038 * grub-core/commands/eval.c: New command eval.
6039 * docs/grub.texi (Commands): Document it.
6040
6041 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6042
6043 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6044 to fetch values when listing.
6045
6046 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6047
6048 Fix make dist on non-pc.
6049
6050 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6051
6052 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6053 without a device name.
6054
6055 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 Remove enable_executable_check as it's not needed anymore.
6058 Reported by: dougray.
6059
6060 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6063 ambigouos RAID before discovering RAIDs on top of it.
6064 Reported by: bodom.
6065
6066 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 Fix typo (failback vs fallback).
6069
6070 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6071
6072 * util/grub.d/30_os-prober.in: Add support for probing EFI
6073 System Partition (as of os-prober 1.58).
6074
6075 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * configure.ac: Add yet another path to unifont. For parabola.
6078
6079 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6080
6081 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6082 handling to copy the killed characters to the kill buffer as
6083 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6084 stored as char. Eliminates UCS4 truncation and corruption
6085 observed when killing characters with Ctrl-u and yanking them
6086 back with Ctrl-y.
6087
6088 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 Detach optional parts of gfxterm and integrate in with coreboot init.
6091
6092 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 Move blit and fill dispatcher to appropriate files to decrease export
6095 and relocation overhead.
6096
6097 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6100 functions.
6101
6102 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * grub-core/Makefile.am: Fix compilation problem with some
6105 automake versions.
6106
6107 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6110
6111 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6112
6113 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6114 automake versions.
6115
6116 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6117
6118 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6119 SSDT.
6120
6121 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6122
6123 * grub-core/partmap/dfly.c: New partition map.
6124
6125 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6128 checking.
6129 Reported by: Francesco Lavra.
6130
6131 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6132
6133 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6134 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6135 false conditions.
6136 * conf/Makefile.common: define dist_grubconf_DATA
6137
6138 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 Progressively skip menu elements on small terminals rather
6141 than crashing.
6142
6143 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6146 to avoid losing last column.
6147
6148 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 * po/exclude.pot: Add missing string "%C".
6151
6152 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6155 after the test.
6156
6157 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * util/grub-install.in: Gettextize "Not found" message.
6160
6161 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6162
6163 Fix distfiles list.
6164 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6165
6166 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6167
6168 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6169 present.
6170 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6171
6172 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6175
6176 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6179 attribute since structure is not necessarily aligned.
6180
6181 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6182
6183 * docs/grub.texi (Device syntax): Clarify description of network
6184 drives.
6185
6186 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6189 for vasprintf presence.
6190
6191 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * util/grub-install.in: Handle efibootmgr presence check.
6194 Reported by: Leif Lindholm.
6195
6196 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6199 new strings to translate.
6200
6201 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6204 yet another string (pun intended) to translate.
6205
6206 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * po/POTFILES-shell.in: Autogenerate it.
6209
6210 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6213
6214 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6217 misnomer.
6218
6219 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6220
6221 * docs/grub.texi (Network): Add description of net_default_interface,
6222 net_default_ip and net_default_mac. Rewrite variables description
6223 to emphasize that they are per-interface.
6224
6225 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 New test: cmdline and cat.
6228
6229 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 * grub-core/commands/cat.c: Show UTF-8 characters.
6232
6233 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * conf/Makefile.common: Poison float and double on non-emu.
6236
6237 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6238
6239 * configure.ac: Don't disable extended registers on emu.
6240
6241 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 * configure.ac: Don't use extended registers on x86_64.
6244 Reported by: Peter Jones.
6245
6246 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/term/efi/console.c: Fix compile error.
6249
6250 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 Compressed HFS+ support.
6253
6254 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6257 pixel".
6258
6259 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6260
6261 Menu color test.
6262
6263 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/tests/setjmp_test.c: New test.
6266
6267 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 New variables 'net_default_*' to determine MAC/IP of default interface.
6270
6271 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6272
6273 * tests/gettext_strings_test.in: A test to check for strings not
6274 marked for translation.
6275
6276 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * autogen.sh: Exclude unused libgcrypt files from translation.
6279
6280 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 Simplify few strings.
6283
6284 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 Mark few forgotten strings for translation.
6287
6288 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6289
6290 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6291 rather than printf.
6292
6293 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6296 rather than printf.
6297 * grub-core/video/readers/tga.c: Likewise.
6298
6299 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * tests/priority_queue_unit_test.cc: New test.
6302
6303 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6306 than printf.
6307
6308 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6309
6310 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6311 variable for one time boot menu entry.
6312
6313 2013-05-05 Bean <bean123ch@gmail.com>
6314
6315 * grub-core/commands/testspeed.c: New command testspeed.
6316
6317 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 Factor-out human-size printing.
6320
6321 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 Agglomerate more mallocs to speed-up gfxterm.
6324
6325 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 Speed-up gfxterm by slightly agglomerating mallocs.
6328
6329 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 More video checks.
6332
6333 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 Speed-up gfxterm by saving intermediate results in index+alpha
6336 format.
6337
6338 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6341 test.
6342
6343 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6344
6345 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6346 line of timeout as it may contain the rest of long line.
6347
6348 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * grub-core/normal/main.c: Fix freed memory dereference.
6351
6352 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6353
6354 Fix several memory leaks.
6355
6356 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6359
6360 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6363
6364 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 Fix test -a and -o precedence.
6367 Reported by: adrian15.
6368
6369 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6372
6373 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6374
6375 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6376 and add it as source to functional_test module.
6377
6378 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6381
6382 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6383
6384 New series of tests for gfxterm and gfxmenu.
6385
6386 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6389 the theme path relative to $prefix/themes.
6390
6391 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6392
6393 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6394 Fix order bug.
6395 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6396
6397 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6398
6399 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6400 descriptor.
6401
6402 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6405 grub_gfxmenu_timeout_notifications.
6406 (grub_gfxmenu_view_destroy): Likewise.
6407
6408 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6411
6412 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 Several fixes to ieee1275 and big-endian video.
6415
6416 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 Add missing exports on mips.
6419
6420 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6423 if no unifont is found.
6424 Restore original keyboard.
6425
6426 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6429 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6430
6431 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 First automated video test (running videotest and comparing results)
6434
6435 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6438 instead of 2 to have full RGB/CMY test pattern.
6439
6440 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 Add few more tests.
6443
6444 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6447 ARCS. All users updated.
6448
6449 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6452
6453 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6456
6457 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6460 Reported by: qwertial.
6461
6462 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6463
6464 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6465 with syntax "XXX deg"/"XXX °".
6466
6467 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 Make PCI init in i386-qemu port more robust.
6470
6471 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6472
6473 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6474 cached view is reused.
6475 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6476 open boot menus.
6477
6478 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 Unify more code in grub-install_header.
6481
6482 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 Add few new tests.
6485
6486 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 Enforce disabling of firmware disk drivers when native drivers kick in.
6489
6490 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 * grub-core/commands/nativedisk.c: Customize the list of modules on
6493 platform. Don't try to search for disks already using native drivers.
6494
6495 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6498 platforms.
6499
6500 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6503 handling of variables containing backslash.
6504
6505 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6508 dereference.
6509 Reported by: qwertial.
6510
6511 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6514
6515 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6518 dereference.
6519 Reported by: qwertial.
6520
6521 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6524
6525 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6528
6529 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 New command `nativedisk'.
6532
6533 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6536 * grub-core/loader/i386/bsd.c: Likewise.
6537
6538 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6541
6542 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6545 grub_get_unaligned16 rather than shifts.
6546
6547 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * grub-core/kern/file.c: Use const char * rather than casting to
6550 non-const.
6551
6552 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/commands/probe.c: Add missing grub_device_close.
6555
6556 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * INSTALL: Document linguas.sh.
6559
6560 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 Remove POTFILES.in and regenerate it in autogen.sh.
6563
6564 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 Move --directory/--override-directorry to grub-install_header and unify.
6567
6568 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * grub-core/term/morse.c: Macroify dih and dah.
6571
6572 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6573
6574 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6575
6576 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * grub-core/term/ns8250.c: Systematically probe ports by writing
6579 to SR before using them.
6580
6581 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6582
6583 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6584 disks.
6585 (check_sas): Get sas_adress info.
6586
6587 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6590 ports.
6591
6592 2013-04-27 Leon Drugi <eyak>
6593
6594 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6595 BSS clearing.
6596
6597 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Core compression test.
6600
6601 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 Implement grub_machine_get_bootlocation for ARC.
6604
6605 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 Improve AHCI detection and command issuing.
6608
6609 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6610
6611 Fix pseries test.
6612
6613 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 Make 'make check' work on emu.
6616
6617 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 Replace libcurses with our own vt100 handling for the ease of testing
6620 and decreasing prerequisites.
6621
6622 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6625
6626 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6629 compile when not needed.
6630
6631 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * tests/pseries_test.in: New test.
6634
6635 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 Add test to check that different boot mediums work.
6638
6639 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6642 ofw limited ISO support.
6643
6644 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * configure.ac: Fix loongson conditional.
6647
6648 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 Enable mipsel-arc.
6651
6652 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 Add serial on ARC platform.
6655
6656 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6659 commit.
6660
6661 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * tests/partmap_test.in: Add missing double semicolon.
6664
6665 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 * util/grub-mkrescue.in: Fix loongson filename.
6668
6669 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6670
6671 * util/grub-mkrescue.in: Move all files that don't have a location
6672 set in stone under /boot/grub. Use ISO hard links rather than copies
6673 to save some space.
6674
6675 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6678 bogus SLOF values.
6679
6680 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 Make check work on mips-arc.
6683
6684 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * util/grub-mkrescue.in: Alias sashARCS as sash.
6687
6688 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6691 it's serial.
6692
6693 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * util/grub-install.in: Fix target fo qemu_mips.
6696 Fix extension on EFI.
6697
6698 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6701 in front of chosen entry to mark it even if highlighting is lost.
6702
6703 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6706 gfxpayload=keep if cbfb is active.
6707
6708 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6711
6712 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 Add missing video ids to coreboot and ieee1275 video.
6715
6716 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * util/grub-mkrescue.in: Add mips-arc support.
6719
6720 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6723
6724 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 Move mips-arc link address. Previous link address was chosen
6727 in belief that RAM on SGI platforms grows down while in fact it
6728 grows up from an unusual base.
6729
6730 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6733 Fix a type which prevented CD-ROM and floppy boot.
6734
6735 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 Support coreboot framebuffer.
6738
6739 * grub-core/video/i386/coreboot/cbfb.c: New file.
6740
6741 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6744 detecting too small regions.
6745
6746 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6749
6750 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6753 Remove dprintf.
6754 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6755
6756 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6759 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6760 * grub-core/loader/powerpc/ieee1275/linux.c
6761 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6762
6763 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6766 Look for /boot-rom as well as /rom/boot-rom.
6767
6768 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6771 handling when creating text_layer failed.
6772 * grub-core/video/video.c (grub_video_create_render_target):
6773 Set result to 0 on error.
6774 (grub_video_delete_render_target): Do not dereference NULL.
6775
6776 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6779 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6780 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6781 (grub_linux_load64): Mask out 2 high bits.
6782
6783 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6784
6785 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6786 more place.
6787
6788 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6789
6790 Add support for pseries and other bootinfo machines to grub-mkrescue.
6791
6792 Tested by: Paulo Flabiano Smorigo.
6793
6794 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 * util/grub-mkrescue.in: Add GPT for EFI boot.
6797
6798 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6801 It improves performance in qemu.
6802
6803 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * build-aux/snippet: Add missing gnulib files.
6806
6807 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6808
6809 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6810
6811 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6812
6813 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6814
6815 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6816 2013-04-15 Peter Jones <pjones@redhat.com>
6817
6818 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6819 sectors.
6820 Based on patch by Peter Jones.
6821
6822 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 Fix DMRAID partition handling.
6825
6826 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * tests/grub_cmd_date.in: Skip on sparc64.
6829
6830 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6833 firmware error messages.
6834
6835 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6838 source and destination differ.
6839
6840 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6843 detection.
6844
6845 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6848 match config-util.h to avoid warnings and increase compatibility.
6849
6850 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6851 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 Add option to compress files on install/image creation.
6854
6855 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * docs/grub-dev.texi: Rearrange menu to match the section order.
6858 Reported by: Bryan Hundven.
6859
6860 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6861
6862 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6863
6864 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 Move GRUB out of system area when using xorriso 1.2.9 or later.
6867
6868 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * tests/grub_cmd_date.in: Add missing exit 1.
6871
6872 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * tests/partmap_test.in: Skip on sparc64.
6875
6876 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 Support grub-shell on sparc64.
6879
6880 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 Support mkrescue on sparc64.
6883
6884 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6887 Needed on OpenBIOS due to incomplete device tree.
6888
6889 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6892 would be otherwise excluded.
6893
6894 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6897 Inline name defines used only once.
6898
6899 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 Fix memory leaks in ofnet.
6902 Reported by: Francesco Lavra.
6903
6904 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * docs/man/grub-glue-efi.h2m: Add missing file.
6907
6908 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6911
6912 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 Better support Apple Intel Macs on CD.
6915
6916 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Replace stpcpy with grub_stpcpy in tools.
6919
6920 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 Handle Japanese special keys.
6923 Reported by: Hiroyuki YAMAMORI.
6924 Codes supplied by: Hiroyuki YAMAMORI.
6925
6926 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * util/grub-mkimage.c: Document memdisk implying --prefix.
6929
6930 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
6933 much we can do about it anyway.
6934
6935 2013-04-12 Aleš Nesrsta <starous@volny.cz>
6936
6937 Fix handling of split transfers.
6938
6939 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/net/http.c: Fix bad free.
6942
6943 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
6946 than buffer size.
6947
6948 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 Disable partmap check on i386-ieee1275 due to openfirmware issues.
6951
6952 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * tests/util/grub-shell.in: Fix it on powerpc.
6955
6956 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 Turn off QEMU ACPI-way since new releases don't have shutdown port
6959 anymore.
6960
6961 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6962
6963 * docs/grub.texi: Update coreboot status info.
6964
6965 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * tests/grub_cmd_date.in: New test for datetime.
6968
6969 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * tests/partmap_test.in: Fix missing qemudisk setting.
6972
6973 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6974
6975 Support i386-ieee1275 grub-mkrescue and make check on it.
6976
6977 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
6980 feature for it.
6981
6982 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
6985 GRUB_CMDLINE_XEN_DEFAULT.
6986 Reported by: Marc Warne (GigaTux) <gigatux>
6987
6988 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 Import new gnulib.
6991
6992 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 Use ACPI shutdown intests as traditional port was removed.
6995
6996 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
6997
6998 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6999 distinction.
7000
7001 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7004 Fix few warining messages and leaks while on it.
7005
7006 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7007
7008 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7009 links under grub-core/lib/libgcrypt-grub/mpi.
7010
7011 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 Fix ia64-efi image generation on big-endian machines. Deduplicate
7014 some code while on it.
7015 Reported by: Leif Lindholm.
7016
7017 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7018
7019 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7020 as extra_dist.
7021
7022 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7023
7024 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7025
7026 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7027
7028 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7029 texinfo-5.1.
7030
7031 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 * grub-core/normal/term.c: Few more fixes for menu entry editor
7034 rendering.
7035 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7036
7037 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 * grub-core/normal/term.c: Few more fixes for menu entry editor
7040 rendering.
7041 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7042
7043 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7044
7045 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7046 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7047
7048 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7049
7050 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7051 instead of hardcoding grub.mo.
7052
7053 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7054
7055 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7056
7057 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7058
7059 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7060 grub-core/disk/geli.c.
7061
7062 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 * util/grub-mkfont.c: Prefer enum to #define.
7065
7066 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7069
7070 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7071
7072 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7073
7074 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7077
7078 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7081
7082 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * include/grub/bsdlabel.h: Use enums.
7085
7086 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7087
7088 Move GRUB_CHAR_BIT to types.h.
7089
7090 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7091
7092 * docs/grub.texi: Document more user commands.
7093
7094 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7095
7096 * docs/grub.texi: Document menuentry --id option.
7097
7098 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7099
7100 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7101
7102 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 Unify file copying setup across different install scripts. Add
7105 options for performing partial install.
7106
7107 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7108 2013-04-04 Peter Jones <pjones@redhat.com>
7109
7110 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7111
7112 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 Use TSC as a possible time source on i386-ieee1275.
7115
7116 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7119 Init err.
7120
7121 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7122
7123 * util/grub-setup.c (setup): Handle some corner cases.
7124
7125 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7128
7129 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * grub-core/commands/verify.c: Save verified file to avoid it being
7132 tampered with after verification was done.
7133
7134 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7137 reported width by one to compensate for curesor algorithm problem.
7138
7139 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7140
7141 Fix screen corruption in menu entry editor and simplify the code
7142 flow while on it.
7143
7144 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7145
7146 * util/grub-mount.c (fuse_init): Return error if fuse_main
7147 failed.
7148
7149 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7150
7151 * include/grub/elf.h: Add missing ARM relocation codes and fix
7152 existing ones.
7153
7154 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7155
7156 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7157
7158 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7159 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7162 into account when calculating radius.
7163
7164 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7165
7166 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7167
7168 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7169
7170 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7171
7172 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7173
7174 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7175 missing closing bracket.
7176
7177 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7178
7179 * INSTALL: Mention xorriso requirement.
7180
7181 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7182
7183 * grub-core/commands/verify.c: Fix hash algorithms values for
7184 the first three hashes - they start with 1, not with 0.
7185
7186 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7189 Try terminating EFI services several times due to quirks in some
7190 implementations.
7191
7192 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7193
7194 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7195 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7196 BankField extended opcodes.
7197 (get_sleep_type): Add minimal scope handling (just enough to
7198 handle setting the scope to the root path).
7199 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7200 * include/grub/acpi.h: Add enumeration values for Event, Device,
7201 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7202
7203 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7204
7205 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7206 memory leak.
7207
7208 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 * grub-core/disk/ahci.c: Give more time for AHCI request.
7211
7212 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7215 command.
7216
7217 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 Replace the region at 0 from coreboot tables to available in BSD
7220 memory map.
7221
7222 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7223
7224 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7225 non-BIOS platforms.
7226
7227 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7228
7229 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7230 platforms.
7231
7232 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7235 handling of multi-device filesystems.
7236
7237 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7240 platforms.
7241
7242 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 Add new 'proc' filesystem framework and put luks_script into it.
7245
7246 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7247
7248 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7249 and qemu.
7250
7251 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7252
7253 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7254
7255 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 Add ability to generate newc additions on runtime.
7258
7259 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7262 description.
7263
7264 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * po/POTFILES.in: Regenerate.
7267
7268 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * grub-core/commands/verify.c (hashes): Add several hashes
7271 from the spec.
7272
7273 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 Slight improve in USB-related boot-time checkpoints.
7276
7277 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 * grub-core/commands/boottime.c: Fix copyright header.
7280
7281 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7284 coreboot tables content. Support for cbmemc.
7285
7286 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7287
7288 Fix a conflict between ports structures with 2 controllers of
7289 same kind.
7290
7291 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7292
7293 * include/grub/boottime.h: Add missing file.
7294
7295 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 Initialize USB ports in parallel to speed-up boot.
7298
7299 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 Fix USB devices not being detected when requested
7302 due to delayed attach.
7303
7304 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 Implement boot time analysis framework.
7307
7308 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 Remove get_endpoint_descriptor and change all functions needing
7311 descriptor to just receive it as argument rather than endpoint
7312 address.
7313
7314 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7315
7316 Better estimate the maximum USB transfer size.
7317
7318 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 Resend a packet if we got the wrong buffer in status.
7321
7322 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7325 multiplication rather than division.
7326
7327 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7330 than divisions.
7331
7332 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7335 operations to have intended shifts and not divisions.
7336
7337 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7340 intended shifts rather than division.
7341
7342 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7343
7344 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7345 computation for some years before epoch. Avode confusing division
7346 while on it.
7347
7348 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * grub-core/video/i386/pc/vbe.c
7351 (grub_video_vbe_print_adapter_specific_info): Replace division by
7352 shifts.
7353
7354 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 Adjust types in gdb module to have intended unsigned shifts rather than
7357 signed divisions.
7358
7359 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7362 maximum size is 4G - 1 on hfs
7363
7364 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7367
7368 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7371 function.
7372
7373 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7374
7375 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7376 causing gcc error with gcc 4.7.1.
7377
7378 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7379
7380 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7381 dereference null pointer. While the code is technically correct, gcc
7382 may eliminate a null check if pointer is already dereferenced.
7383
7384 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7385
7386 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7387 OOM check.
7388 * grub-core/normal/term.c (read_terminal_list): Likewise.
7389
7390 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 Lift up core size limits on some platforms. Fix potential memory
7393 corruption with big core on small memory systems. Document remaining
7394 limits.
7395
7396 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7399 gotoxy to 0,0.
7400
7401 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 Remove all trampoline support. Add -Wtrampolines when
7404 present. Remove symbols used for trampolines to make
7405 link fail if trampolines are present.
7406
7407 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7410 append out of its parent.
7411
7412 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7413
7414 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7415 parent.
7416
7417 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7420 all vars to a macro. All users updated.
7421
7422 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7425 i386-ieee1275.
7426
7427 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7430
7431 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7434
7435 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 Move to more hookless approach in IEEE1275 devices handling.
7438
7439 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/kern/term.c (grub_term_normal_color),
7442 (grub_term_highlight_color): Add back lost defaults.
7443
7444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 Make elfload not use hooks. Opt for flags and iterators instead.
7447
7448 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7451 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7452
7453 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7456
7457 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7460 hook pass-through parameter. All users updated and unnested.
7461
7462 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7465 out of its parent.
7466
7467 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/fs/hfs.c: Remove nested functions.
7470
7471 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7474 the context through.
7475 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7476
7477 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * util/grub-editenv.c (list_variables): Move print_var out of its
7480 parent.
7481
7482 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7485 function.
7486
7487 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 * grub-core/gentrigtables.c: Make tables const.
7490
7491 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Remove nested functions from videoinfo iterators.
7494
7495 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7498 for 64-bit platforms.
7499
7500 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7503 a FOR_CHILDREN macro.
7504
7505 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7508 platform from firmware path.
7509
7510 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 Enable linux16 on non-BIOS systems for i.a. memtest.
7513
7514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7515 correctly.
7516 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7517
7518 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7521 Fix end of table condition.
7522
7523 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7526 out of its parent.
7527
7528 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * grub-core/fs/jfs.c: Remove nested functions.
7531
7532 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/fs/minix.c: Remove nested functions.
7535
7536 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * grub-core/fs/iso9660.c: Remove nested functions.
7539
7540 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7543 of parent function.
7544
7545 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7546
7547 * util/grub-fstest.c: Remove nested functions.
7548
7549 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * grub-core/loader/machoXX.c: Remove nested functions.
7552
7553 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7554
7555 Remove nested functions from disk and file read hooks.
7556
7557 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7558 (struct grub_disk): Add read_hook_data member.
7559 * include/grub/file.h (struct grub_file): Likewise.
7560 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7561 argument.
7562
7563 Update all callers.
7564
7565 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7566
7567 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7568 Fix off by one error in enumerating extended partitions.
7569
7570 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7571
7572 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7573 memory leak if device name is not found.
7574
7575 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7576
7577 * grub-core/normal/menu_entry.c (update_screen): remove
7578 unused variable `off' which caused scroll down arrow to be always shown.
7579
7580 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7581
7582 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7583 access to unallocated memory.
7584
7585 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7586
7587 * Makefile.util.def: Add partmap/msdos.c to common library.
7588 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7589 * grub-core/disk/ldm.c: Check for existence of
7590 GRUB_PC_PARTITION_TYPE_LDM.
7591
7592 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7593
7594 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7595 sizes and display sector size.
7596
7597 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 Implement new command cmosdump.
7600
7601 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7602
7603 Support Openfirmware disks with non-512B sectors.
7604
7605 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7606 size of the disk.
7607 * (grub_ofdisk_get_block_size): New function.
7608 * (grub_ofdisk_prepare): Use the correct block size.
7609 * (grub_ofdisk_read): Likewise.
7610 * (grub_ofdisk_write): Likewise.
7611 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7612 New proto.
7613
7614 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7617
7618 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7619
7620 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7621 on first error.
7622
7623 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7626 freeing it.
7627
7628 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 Implement USBDebug (full USB stack variant).
7631
7632 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7635 unless they have unexpected values.
7636
7637 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7638
7639 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7640 grub_print_error.
7641
7642 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7645 zero-out of port structure.
7646
7647 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7648
7649 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7650 of extended attributes.
7651
7652 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7653
7654 * util/grub-install.in: change misleading comment about
7655 device.map creation
7656
7657 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7658
7659 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7660 when menu highlight color isn't set.
7661
7662 2013-01-27 C. Masloch <pushbx@38.de>
7663
7664 Improve FreeDOS direct loading support compatibility.
7665
7666 * include/grub/i386/relocator.h (grub_relocator16_state):
7667 New member ebp.
7668 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7669 variable.
7670 (grub_relocator16_boot): Handle %ebp.
7671 * grub-core/lib/i386/relocator16.S: Likewise.
7672 * grub-core/loader/i386/pc/freedos.c:
7673 Load BPB to pass kernel which partition to load from.
7674 Check that kernel file is not too large.
7675 Set register dl to BIOS unit number as well.
7676
7677 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7678
7679 * util/grub-reboot.in (usage): Document the need for
7680 GRUB_DEFAULT=saved.
7681 * util/grub-set-default.in (usage): Likewise.
7682 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7683
7684 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7687 than defining WORDS_BIGENDIAN manually.
7688
7689 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7692 invariants.
7693
7694 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7695
7696 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7697 nested.
7698 (blit_comb: add_device_width): Likewise.
7699
7700 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7701
7702 Remove nested functions from USB iterators.
7703
7704 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7705 (grub_usb_controller_iterate_hook_t): Likewise.
7706 (grub_usb_iterate): Add hook_data argument.
7707 (grub_usb_controller_iterate): Likewise.
7708 (struct grub_usb_controller_dev.iterate): Likewise.
7709
7710 Update all implementations and callers.
7711
7712 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7715 margin when not needed.
7716
7717 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7718
7719 Make color variables global instead of it being per-terminal.
7720
7721 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7724 asterisk.
7725
7726 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7727
7728 Fix powerpc and sparc64 build failures caused by un-nesting memory
7729 map iterators.
7730
7731 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7732
7733 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7734 parameter declarations.
7735
7736 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7737
7738 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7739
7740 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 Improve spkmomdem reliability by adding a separator between bytes.
7743
7744 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7745
7746 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7747 an Acer registration utility with several sightings in the wild.
7748 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7749
7750 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7751
7752 Remove nested functions from filesystem directory iterators.
7753
7754 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7755 (struct grub_fs.dir): Add hook_data argument.
7756
7757 Update all implementations and callers.
7758
7759 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7760
7761 * docs/grub.texi (Multi-boot manual config): Fix typo for
7762 "recommended".
7763
7764 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7765
7766 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7767 until after its use in generate_image.
7768
7769 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7770
7771 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7772 initrd size to addr_min, since the initrd will be allocated after
7773 this address.
7774
7775 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7776
7777 * conf/Makefile.common: Fix autogen rules to pass definition
7778 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7779
7780 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7781
7782 * include/grub/elf.h: Update ARM definitions based on binutils.
7783
7784 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7785
7786 Split long USB transfers into short ones.
7787
7788 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7789
7790 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7791 is interrupted by ESC.
7792
7793 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7794
7795 * util/grub-script-check.c (main): Uniform the error message.
7796
7797 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7798
7799 Remove nested functions from ELF iterators.
7800
7801 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7802
7803 Remove nested functions from device iterators.
7804
7805 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7806 (grub_arc_iterate_devs): Add hook_data argument.
7807 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7808 (struct grub_ata_dev.iterate): Add hook_data argument.
7809 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7810 (grub_device_iterate): Add hook_data argument.
7811 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7812 (struct grub_disk_dev.iterate): Add hook_data argument.
7813 (grub_disk_dev_iterate): Likewise.
7814 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7815 Likewise.
7816 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7817 Likewise.
7818 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7819 type.
7820 (struct grub_partition_map.iterate): Add hook_data argument.
7821 (grub_partition_iterate): Likewise.
7822 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7823 (struct grub_scsi_dev.iterate): Add hook_data argument.
7824
7825 Update all callers.
7826
7827 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7828
7829 Fix typos for "developer" and "development".
7830
7831 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7832
7833 Add license header to spkmodem-recv.c.
7834
7835 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7836
7837 Rewrite spkmodem to use PIT for timing. Double the speed.
7838
7839 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 Add new command pcidump.
7842
7843 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7844
7845 New terminal outputs using serial: morse and spkmodem.
7846
7847 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7848
7849 Improve bidi handling in entry editor.
7850
7851 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7854 argument to prevent name collision.
7855
7856 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7857
7858 Remove nested functions from script reading and parsing.
7859
7860 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7861 getline_data argument, passed to getline.
7862 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7863 getline_data argument, passed to grub_parser_split_cmdline.
7864 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7865 lexerstate->getline_data to lexerstate->getline.
7866 (grub_script_lexer_init): Add getline_data argument, saved in
7867 lexerstate->getline_data.
7868 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7869 argument, passed to grub_script_parse.
7870 * grub-core/script/script.c (grub_script_parse): Add getline_data
7871 argument, passed to grub_script_lexer_init.
7872 * include/grub/parser.h (grub_parser_split_cmdline): Update
7873 prototype. Update all callers to pass appropriate getline data.
7874 (struct grub_parser.parse_line): Likewise.
7875 (grub_rescue_parse_line): Likewise.
7876 * include/grub/reader.h (grub_reader_getline_t): Add void *
7877 argument.
7878 * include/grub/script_sh.h (struct grub_lexer_param): Add
7879 getline_data member.
7880 (grub_script_parse): Update prototype. Update all callers to pass
7881 appropriate getline data.
7882 (grub_script_lexer_init): Likewise.
7883 (grub_normal_parse_line): Likewise.
7884
7885 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7886 data argument.
7887 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7888 static instead of nested. Rename to ...
7889 (grub_parser_execute_getline): ... this.
7890 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7891 data argument.
7892 * grub-core/normal/main.c (read_config_file: getline): Make static
7893 instead of nested. Rename to ...
7894 (read_config_file_getline): ... this.
7895 (grub_normal_read_line): Add unused data argument.
7896 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7897 getline): Make static instead of nested. Rename to ...
7898 (grub_script_execute_sourcecode_getline): ... this.
7899 * util/grub-script-check.c (main: get_config_line): Make static
7900 instead of nested.
7901
7902 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7903
7904 Remove nested functions from memory map iterators.
7905
7906 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7907 argument, passed to hook.
7908 * grub-core/kern/i386/coreboot/mmap.c
7909 (grub_linuxbios_table_iterate): Likewise.
7910 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7911 instead of nested.
7912 (grub_machine_mmap_iterate): Add hook_data argument.
7913 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7914 Add hook_data argument, passed to hook.
7915 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7916 Likewise.
7917 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7918 Likewise.
7919 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7920 Likewise.
7921 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7922 Likewise.
7923 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7924 Likewise.
7925 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7926 Likewise.
7927 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7928 (grub_machine_mmap_iterate): Likewise.
7929 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
7930 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
7931 prototype.
7932 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
7933 Remove NESTED_FUNC_ATTR from here and from all users.
7934 (grub_mmap_iterate): Update prototype.
7935 (grub_efi_mmap_iterate): Update prototype. Update all callers to
7936 pass appropriate hook data.
7937 (grub_machine_mmap_iterate): Likewise.
7938
7939 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
7940 static instead of nested.
7941 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
7942 Rename to ...
7943 (lsmmap_hook): ... this.
7944 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
7945 Likewise.
7946 (grub_efiemu_mmap_fill: fill_hook): Likewise.
7947 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
7948 heap_init): Likewise.
7949 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
7950 Rename to ...
7951 (mmap_iterate_hook): ... this.
7952 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
7953 Likewise.
7954 * grub-core/lib/ieee1275/relocator.c
7955 (grub_relocator_firmware_get_max_events: count): Likewise.
7956 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
7957 to ...
7958 (grub_relocator_firmware_fill_events_iter): ... this.
7959 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
7960 hook): Likewise. Rename to ...
7961 (grub_relocator_alloc_chunk_align_iter): ... this.
7962 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
7963 Rename to ...
7964 (generate_e820_mmap_iter): ... this.
7965 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
7966 Rename to ...
7967 (count_hook): ... this.
7968 (grub_linux_boot: hook): Likewise. Rename to ...
7969 (grub_linux_boot_mmap_find): ... this.
7970 (grub_linux_boot: hook_fill): Likewise. Rename to ...
7971 (grub_linux_boot_mmap_fill): ... this.
7972 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
7973 hook): Likewise. Rename to ...
7974 (grub_fill_multiboot_mmap_iter): ... this.
7975 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
7976 hook): Likewise. Rename to ...
7977 (count_hook): ... this.
7978 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
7979 hook): Likewise. Rename to ...
7980 (grub_fill_multiboot_mmap_iter): ... this.
7981 * grub-core/loader/powerpc/ieee1275/linux.c
7982 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
7983 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
7984 Likewise. Rename to ...
7985 (alloc_phys_choose): ... this.
7986 (determine_phys_base: get_physbase): Likewise.
7987 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
7988 find_hook): Likewise.
7989 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
7990 (malloc_hook: count_hook): Likewise.
7991 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
7992 Likewise. Rename to ...
7993 (lower_hook): ... this.
7994 (grub_mmap_get_upper: hook): Likewise. Rename to ...
7995 (upper_hook): ... this.
7996 (grub_mmap_get_post64: hook): Likewise. Rename to ...
7997 (post64_hook): ... this.
7998 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
7999 Likewise. Rename to ...
8000 (lower_hook): ... this.
8001 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8002 (upper_hook): ... this.
8003 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8004 (grub_mmap_iterate: fill_hook): Likewise.
8005 (fill_mask): Pass addr and mask within a single struct.
8006 (grub_cmd_badram: hook): Make static instead of nested. Rename
8007 to ...
8008 (badram_iter): ... this.
8009 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8010 (cutmem_iter): ... this.
8011
8012 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8015 delimit path in strings using quotes.
8016 * util/getroot.c (grub_guess_root_devices): Likewise.
8017 (grub_make_system_path_relative_to_its_root): Likewise.
8018 * util/grub-probe.c (probe): Likewise.
8019 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8020 (xrealpath): Likewise.
8021
8022 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8023
8024 Fix compilation with older compilers.
8025
8026 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8027 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8028 declarations.
8029 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8030 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8031 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8032 identifier with b.
8033 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8034 * include/grub/crypto.h: Add type defines.
8035 * util/import_gcrypth.sed: Remove duplicate type defines.
8036
8037 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 New command list_trusted.
8040
8041 * grub-core/commands/verify.c (grub_cmd_list): New function.
8042
8043 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8044
8045 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8046 info message.
8047
8048 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8049
8050 Remove nested functions from PCI iterators.
8051
8052 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8053 passed to hook. Update all callers to pass appropriate hook data.
8054 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8055 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8056 Remove NESTED_FUNC_ATTR from here and from all users.
8057 (grub_pci_iterate): Update prototype.
8058 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8059 instead of nested. Rename to ...
8060 (grub_cs5536_find_iter): ... this.
8061 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8062 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8063 Likewise.
8064 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8065 Likewise.
8066 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8067 Likewise.
8068 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8069 Likewise.
8070 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8071 * grub-core/video/radeon_fuloong2e.c
8072 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8073 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8074 find_card): Likewise.
8075 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8076 Likewise.
8077
8078 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * grub-core/commands/verify.c: Mark messages for translating.
8081
8082 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8083
8084 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8085 fatal.
8086
8087 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8088
8089 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8090 fatal.
8091
8092 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * autogen.sh: Do not try to delete nonexistant files.
8095 * util/import_gcrypth.sed: Add some missing header removals.
8096
8097 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8098
8099 Clean up dangling references to grub-setup.
8100 Fixes Ubuntu bug #1082045.
8101
8102 * docs/grub.texi (Images): Refer generally to grub-install rather
8103 than directly to grub-setup.
8104 (Installing GRUB using grub-install): Remove direct reference to
8105 grub-setup.
8106 (Device map) Likewise.
8107 (Invoking grub-install): Likewise.
8108 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8109 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8110 * util/grub-install.in (usage): Likewise.
8111
8112 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8113 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8114 grub-setup.
8115 * configure.ac: Remove grub_setup output variable.
8116
8117 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8118 to grub-bios-setup.
8119 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8120 grub-setup to grub-sparc64-setup.
8121
8122 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 Import gcrypt public-key cryptography and implement signature checking.
8125
8126 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8127
8128 * grub-core/fs/ntfs.c: Ue more appropriate types.
8129 * grub-core/fs/ntfscomp.c: Likewise.
8130 * include/grub/ntfs.h: Likewise.
8131
8132 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 Support Apple FAT binaries on non-Apple platforms.
8135
8136 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8137 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8138 Likewise.
8139 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8140 Apple FAT binaries.
8141
8142 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8145 sector devices.
8146
8147 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8148
8149 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8150 explicitly zeroing elements.
8151 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8152 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8153 of elements in a structure already allocated using grub_zalloc.
8154 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8155
8156 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8157
8158 * docs/grub.texi (grub_cpu): New subsection.
8159 (grub_platform): Likewise.
8160
8161 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8164
8165 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8166
8167 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8168 divisions.
8169
8170 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8171
8172 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8173 * grub-core/fs/ntfscomp.c: Likewise.
8174 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8175 (grub_ntfs_comp): Likewise.
8176
8177 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8180 Rename to ...
8181 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8182 of groups_per_block. All users updated.
8183
8184 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8187 grub_error properly.
8188 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8189 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8190
8191 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8192
8193 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8194 always in /boot/zfs.
8195 Reported by: Yuta Satoh.
8196
8197 2013-01-03 Yuta Satoh <nigoro>
8198
8199 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8200 ${grub_probe}
8201
8202 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * configure.ac: Extend -Wno-trampolines to host.
8205
8206 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8209 entry->len = 0.
8210
8211 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8212
8213 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8214 (Invoking grub-script-check): Likewise.
8215
8216 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8217
8218 * docs/grub.texi (Invoking grub-mount): New section.
8219 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8220
8221 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8222
8223 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8224 test failures, so that a failing unit test correctly causes 'make
8225 check' to fail.
8226
8227 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8228
8229 Fix failing printf test.
8230
8231 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8232 '$' in the correct order when collecting type information.
8233
8234 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8235
8236 * docs/grub.texi (configfile): Explain environment variable
8237 handling.
8238 (source): New section.
8239 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8240
8241 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8242
8243 Remove several trivially-unnecessary uses of nested functions.
8244
8245 * grub-core/commands/i386/pc/sendkey.c
8246 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8247 instead of nested.
8248 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8249 Rename to ...
8250 (legacy_file_getline): ... this.
8251 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8252 Likewise.
8253 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8254 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8255 to ...
8256 (probe_dummy_iter): ... this.
8257 * grub-core/kern/i386/coreboot/mmap.c
8258 (grub_linuxbios_table_iterate: check_signature): Likewise.
8259 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8260 check_varstate): Likewise. Mark inline.
8261 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8262 an additional parameter.
8263 (find_long: fnd_long): Likewise. Pass two additional parameters.
8264 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8265 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8266 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8267 Likewise. Rename to ...
8268 (grub_cmos_find_port_iter): ... this.
8269 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8270 Rename to ...
8271 (find_rtc_iter): ... this.
8272
8273 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8274 function directly into the function body, since it is only called
8275 once.
8276
8277 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8278
8279 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8280 __attribute__ ((unused)).
8281 * grub-core/video/bochs.c (find_card): Likewise.
8282 * grub-core/video/cirrus.c (find_card): Likewise.
8283 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8284 * grub-core/video/sis315pro.c (find_card): Likewise.
8285 * grub-core/video/sm712.c (find_card): Likewise.
8286
8287 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8288
8289 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8290 Fixes Savannah bug #37821.
8291
8292 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8293
8294 Apply program name transformations at build-time rather than at
8295 run-time. Fixes Debian bug #696465.
8296
8297 * acinclude.m4 (grub_TRANSFORM): New macro.
8298 * configure.ac: Create output variables with transformed names for
8299 most programs.
8300 * util/bash-completion.d/grub-completion.bash.in: Use
8301 pre-transformed variables for program names.
8302 * util/grub-install.in: Likewise.
8303 * util/grub-kbdcomp.in: Likewise.
8304 * util/grub-mkconfig.in: Likewise.
8305 * util/grub-mkconfig_lib.in: Likewise.
8306 * util/grub-mknetdir.in: Likewise.
8307 * util/grub-mkrescue.in: Likewise.
8308 * util/grub-mkstandalone.in: Likewise.
8309 * util/grub-reboot.in: Likewise.
8310 * util/grub-set-default.in: Likewise.
8311 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8312 * tests/util/grub-shell-tester.in: Remove unused assignment.
8313 * tests/util/grub-shell.in: Likewise.
8314 * util/grub.d/00_header.in: Likewise.
8315
8316 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8317
8318 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8319
8320 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8321 HAVE_RAW_DECL_GETS.
8322 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8323
8324 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8327 Reported by: Eriks Latosheks <foresterlv>.
8328
8329 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * docs/grub.texi (Network): Update instructions on generating netboot
8332 image.
8333
8334 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8337 around device name if necessarry.
8338
8339 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8340
8341 * util/grub-install.in: Follow the symbolic link parameter added
8342 to the file command.
8343
8344 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8345
8346 * util/grub-install.in: Remove stale TODO.
8347
8348 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8349
8350 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8351 dynamic allocation for the bootpath buffer.
8352
8353 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8354
8355 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8356 window too small.
8357
8358 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8361 argument rather than font name. All users updated.
8362 (grub_gfxterm_set_window): Likewise.
8363
8364 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8365
8366 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8367 from working.
8368
8369 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 * util/getroot.c (convert_system_partition_to_system_disk): Support
8372 nbd disks.
8373
8374 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8377 infinite loop on corrupted FS.
8378
8379 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 Fix big-endian mtime.
8382
8383 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8384 together sec and usec.
8385 (grub_ufs_dir): Use correct byteswapping for UFS time.
8386
8387 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8388
8389 Support big-endian UFS1.
8390
8391 * Makefile.util.def (libgrubmods): Add ufs_be.c
8392 * grub-core/Makefile.core.def (ufs1_be): New module.
8393 * grub-core/fs/ufs_be.c: New file.
8394 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8395 the file.
8396
8397 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8398
8399 * include/grub/types.h: Fix functionality unaffecting typo in
8400 GRUB_TARGET_WORDSIZE conditional macro.
8401
8402 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8403
8404 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8405
8406 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8407
8408 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8409 that /netbsd appears first (when it exists).
8410
8411 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8412
8413 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8414 Fixes Savannah bug #37558.
8415
8416 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8417
8418 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8419 description of extract_entries_configfile.
8420
8421 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8422
8423 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8424 preferred_address.
8425 (grub_cmd_linux): Likewise.
8426 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8427 preferred_lifetime. Update all users.
8428
8429 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8430
8431 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8432 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8433
8434 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8435
8436 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8437 errors from grub-probe to /dev/null, not stdout.
8438
8439 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8440
8441 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8442 sector 1.
8443
8444 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8445
8446 * util/grub-install.in: Make the error message if $source_dir
8447 doesn't exist more useful.
8448
8449 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8450
8451 Fix grub-emu build on FreeBSD.
8452
8453 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8454 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8455 headers on Linux.
8456 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8457 implementation is currently Linux-specific.
8458 * util/getroot.c (exec_pipe): Define only on Linux or when either
8459 libzfs or libnvpair is unavailable.
8460 (find_root_devices_from_poolname): Remove unused path variable.
8461
8462 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8463
8464 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8465 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8466 should fit before end == 63.
8467
8468 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8469
8470 * util/grub-setup.c (write_rootdev): Remove unused core_img
8471 parameter. Update all callers.
8472 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8473 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8474 GRUB_SETUP_BIOS.
8475
8476 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8477
8478 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8479 (grub_add_tab): New function.
8480 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8481 * util/grub.d/10_illumos.in: Likewise.
8482 * util/grub.d/10_kfreebsd.in: Likewise.
8483 * util/grub.d/10_linux.in: Likewise.
8484 * util/grub.d/10_netbsd.in: Likewise.
8485 * util/grub.d/10_windows.in: Likewise.
8486 * util/grub.d/10_xnu.in: Likewise.
8487 * util/grub.d/20_linux_xen.in: Likewise.
8488 * util/grub.d/30_os-prober.in: Likewise.
8489
8490 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8493 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8494 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8495 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8496 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8497 ieee1275-nocursor.
8498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8499 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8500
8501 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8504 le-conversion.
8505 Reported by: BURETTE, Bernard.
8506
8507 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8508
8509 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8510 from comment.
8511
8512 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8513
8514 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8515 IEEE1275 machines. Fixes powerpc-emu compilation.
8516 * include/grub/terminfo.h: Likewise.
8517
8518 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8521 a const pointer.
8522 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8523 const pointer.
8524 (efiemu_set_variable): Make vendor_guid a const pointer.
8525
8526 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 Don't require grub-mkconfig_lib to generate manpages for programs.
8529
8530 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8531 dependencies, don't add grub-mkconfig_lib.
8532 (program): Pass empty adddeps.
8533 (script): Pass grub-mkconfig_lib as adddeps.
8534
8535 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8538 * util/getroot.c (grub_find_device): Likewise.
8539 (get_mdadm_uuid): Likewise.
8540 (grub_util_is_imsm): Likewise.
8541 (grub_util_pull_device): Likewise.
8542 * util/grub-probe.c (probe): Likewise.
8543
8544 2012-09-10 Benoit Gschwind <gschwind>
8545
8546 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8547 (devs): Add devpath_8.
8548
8549 2012-09-08 Peter Jones <pjones@redhat.com>
8550
8551 * grub-core/Makefile.core.def (efifwsetup): New module.
8552 * grub-core/commands/efi/efifwsetup.c: New file.
8553 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8554 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8555 New define.
8556 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8557
8558 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8559
8560 * configure.ac: Add SuSe path.
8561
8562 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8563
8564 * NEWS: Fix typo.
8565
8566 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8567
8568 * util/import_gcry.py: Sort cipher_files, to make build system
8569 generation more deterministic.
8570
8571 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8574 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8575 (grub_set_datetime): Likewise.
8576
8577 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8578
8579 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8580 warnings.
8581
8582 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8585
8586 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8589
8590 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8591
8592 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8593 required for checkouts from bzr, but it may be useful for users or
8594 distributors wishing to update translations against a tarball
8595 distribution, and it can be helpful for the tarball to be a superset
8596 of what's in bzr.
8597
8598 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8599
8600 * Makefile.am (EXTRA_DIST): Add
8601 grub-core/tests/boot/linux.init-mips.S,
8602 grub-core/tests/boot/linux.init-ppc.S, and
8603 grub-core/tests/boot/linux-ppc.cfg.
8604
8605 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8606
8607 * grub-core/mmap/mips/loongson: Remove empty directory.
8608
8609 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8610
8611 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8612 gone.
8613
8614 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8615
8616 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8617 grub-sparc64-setup.
8618
8619 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8620
8621 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8622
8623 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8624
8625 * po/POTFILES.in: Regenerated.
8626
8627 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8628
8629 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8630 (NetBSD): New subsection.
8631
8632 2012-07-22 Ales Nesrsta <starous@volny.cz>
8633
8634 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8635 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8636
8637 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8640 * util/grub.d/10_hurd.in: Add missing quoting.
8641 * util/grub.d/10_illumos.in: Likewise.
8642 * util/grub.d/10_kfreebsd.in: Likewise.
8643 * util/grub.d/10_linux.in: Likewise.
8644 * util/grub.d/20_linux_xen.in: Likewise.
8645
8646 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 New command `lsefi'.
8649
8650 * grub-core/Makefile.core.def (lsefi): New module.
8651 * grub-core/commands/efi/lsefi.c: New file.
8652 * include/grub/efi/api.h: Add more GUIDs.
8653
8654 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8657 (grub_bsd_elf32_hook): Likewise.
8658 (grub_bsd_elf64_size_hook): Likewise.
8659 (grub_bsd_elf64_hook): Likewise.
8660 (grub_bsd_load_elf): Likewise.
8661
8662 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8663
8664 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8665 if hash function is unavailable.
8666 (dec_stream_header): Likewise.
8667
8668 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8671 filter state.
8672
8673 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 Fix coreboot compilation.
8676
8677 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8678 (grub_vga_text_init_real): ... this.
8679 (grub_vga_text_fini): Rename to ...
8680 (grub_vga_text_fini_real): ... this.
8681
8682 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8685
8686 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 * grub-core/lib/legacy_parse.c: Support clear and testload.
8689
8690 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8691
8692 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8693
8694 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8697
8698 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8699
8700 * grub-core/net/tftp.c (ack): Fix endianness problem.
8701 (tftp_receive): Likewise.
8702 Reported by: Michael Davidsaver.
8703
8704 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8707
8708 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8711 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8712 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8713
8714 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8717 efi_mmap_size.
8718 Reported by: Stuart Hayes.
8719
8720 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8721
8722 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8723
8724 * grub-core/Makefile.core.def (mda_text): New module.
8725 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8726 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8727 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8728 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8729 here.
8730 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8731 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8732 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8733 here.
8734 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8735 to ..
8736 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8737 ... here
8738 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8739 here.
8740 * grub-core/term/i386/vga_common.c: Removed.
8741 * include/grub/i386/vga_common.h: Likewise.
8742 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8743 (grub_vga_cr_bw_read): Likewise.
8744 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8745 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8746 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8747 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8748 grub_vga_cr_read/grub_vga_cr_write.
8749 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8750
8751 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8752
8753 * configure.ac: Bump version to 2.00.
8754 * grub-core/normal/main.c (features): Add feature_200_final.
8755
8756 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8757 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8758
8759 * NEWS: Fix unclarity and language mistakes.
8760
8761 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8762
8763 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8764 additional size to 3 pages.
8765 Reported by: Stuart Hayes.
8766
8767 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8768
8769 * NEWS: Add 2.00 entry.
8770
8771 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8772
8773 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8774 put explicit "/" for empty path.
8775 (wildcard_expand): Improve dprintf.
8776
8777 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8780 it's equal to currnode. This can happen with "" symlink.
8781
8782 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8783
8784 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8785 echo shell command by printf command.
8786
8787 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8790 the value returned by firmware is the maximal position, not diumension.
8791 (grub_terminfo_output_state): Use a more sane fallback.
8792
8793 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8794
8795 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8796
8797 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8800 frequency to 150 MHz.
8801
8802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8803
8804 Apple fixes.
8805
8806 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8807 __APPLE_
8808 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8809 definition.
8810 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8811
8812 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 Handle slash in HFS label.
8815
8816 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8817 (grub_hfs_dir): Tanslate slash.
8818 (grub_hfs_label): Don't translate slash.
8819
8820 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8823 network protocol listing since it introduces problematic dependency on
8824 net module.
8825
8826 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8829
8830 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8831
8832 Init video early on yeeloong to avoid being rebooted by watchdog.
8833
8834 * grub-core/Makefile.am (gensm712): New target.
8835 (sm712_start.S): Likewise.
8836 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8837 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8838 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8839 description.
8840 * include/grub/vga.h: Move registry definitions to...
8841 * include/grub/vgaregs.h: ... here.
8842
8843 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8844
8845 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8846 signedness.
8847
8848 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8851 platforms with firmware disk drivers in the core.
8852
8853 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8856 informative verbose message.
8857 (read_lv): Handle 64-bit segment size.
8858
8859 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8862
8863 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8866 character but still remove trainling spaces.
8867 (grub_fat_label): Ignore archive flag.
8868
8869 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8872 cast between linux_kernel_header and linux_kernel_params.
8873
8874 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8877 type for size.
8878 (grub_raid6_recover_func_t): Likewise.
8879 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8880 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8881
8882 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8885
8886 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8887
8888 Fix overflow.
8889
8890 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8891 [__NetBSD__]: Add explicit cast before bitshift.
8892
8893 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * configure.ac: Bump to 2.00~rc1.
8896
8897 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8900 half of $a0.
8901
8902 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8903 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8904
8905 * docs/grub.texi: Fix search syntax.
8906 (Multi-boot manual config): Put msdos rather than GPT example.
8907 Grammar corrections.
8908
8909 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8912
8913 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8916
8917 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8920 message on double free. Put the value of magic in case of mismatch.
8921
8922 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 Speed-up video on yeeloong.
8925
8926 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8927 add cached_ptr.
8928 (grub_video_sm712_video_fini): Unmap cached_ptr.
8929 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
8930 (grub_video_sm712_set_active_render_target): Removed.
8931 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
8932 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
8933 sync caches.
8934
8935 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8936
8937 Avoid flushing the same line multiple times on loongson.
8938
8939 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
8940 Step in 32 bytes and not 1 byte.
8941 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
8942 Likewise.
8943
8944 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
8947 subvolumes.
8948
8949 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 Implement flow control for http.
8952
8953 * grub-core/net/http.c (parse_line): Handle response 206.
8954 (http_receive): Stall if too many packets are in the queue.
8955 (http_establish): Fix range header.
8956 (http_seek): Fix double free.
8957 (http_close): Likewise.
8958 (http_packets_pulled): New function.
8959 (grub_http_protocol): Set http_seek
8960 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
8961 (ack_real): Set window depending on i_stall.
8962 (grub_net_send_tcp_packet): Likewise.
8963 (grub_net_tcp_stall): New function.
8964 (grub_net_tcp_unstall): Likewise.
8965 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
8966 (grub_net_tcp_unstall): Likewise.
8967
8968 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/net/tftp.c: Decrease stall to 50 packets.
8971
8972 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
8975
8976 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * tests/util/grub-shell.in: Fix a typo.
8979
8980 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 Implement flow control for tftp.
8983
8984 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
8985 packets but stop only if stop condition is satisfied.
8986 (grub_net_fs_read_real): Call packets_pulled after real read. Use
8987 `stall' instead of `eof' as stop condition.
8988 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
8989 (http_err): Likewise.
8990 * grub-core/net/tftp.c (ack): Replace the first argument with data
8991 instead of socket.
8992 (tftp_receive): Stall if too many packets are in wait queue.
8993 (tftp_packets_pulled): New function.
8994 (grub_tftp_protocol): Set packets_pulled.
8995 * include/grub/net.h (grub_net_packets): New field count.
8996 (grub_net_put_packet): Increment count.
8997 (grub_net_remove_packet): Likewise.
8998 (grub_net_app_protocol): New field `packets_pulled'.
8999 (grub_net): New field `stall'.
9000
9001 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9002
9003 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9004 sync part to handle them.
9005
9006 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9007
9008 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9009 * grub-core/net/drivers/ieee1275/ofnet.c
9010 (grub_ieee1275_net_config_real): Likewise.
9011
9012 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9015 the direct route for server/gateway.
9016
9017 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9020 IP address to server name since we may not hame the DNS.
9021
9022 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9025 freeing random buffer on failure.
9026 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9027
9028 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9031
9032 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9035 reserved bytes.
9036 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9037 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9038 Handle malloc error correctly.
9039
9040 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9041
9042 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9043 blocks.
9044
9045 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9048 increment.
9049
9050 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9051
9052 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9053 none is explicitly specified.
9054
9055 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9058 while reallocating.
9059
9060 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9061
9062 Respect netmask from bootp/dhcp.
9063
9064 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9065 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9066 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9067 into ...
9068 (grub_net_add_ipv4_local): ... this.
9069 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9070 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9071 (grub_net_add_ipv4_local): New proto.
9072
9073 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9076 determining EFI memory map size.
9077
9078 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9081
9082 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9085 when looking for partition separator.
9086
9087 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9088
9089 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9090 Escape commas.
9091
9092 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 Restructure FAT driver to avoid hook in label reading as it hits a
9095 GCC bug.
9096
9097 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9098 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9099 (grub_fat_iterate_dir): Split into ...
9100 (grub_fat_iterate_init): ... this, ...
9101 (grub_fat_iterate_fini): ... this, ...
9102 (grub_fat_iterate_dir_next): ... and this. All users updated.
9103
9104 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9105
9106 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9107 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9108 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9109 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9110 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9111 New fields last_key and last_key_time.
9112 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9113 extended key-esc into extended key-extended key.
9114
9115 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9116
9117 Avoid unnecessary memcpy of whole video buffer.
9118
9119 * grub-core/video/fb/video_fb.c (dirty): New struct.
9120 (framebuffer): Add members current_dirty and previous_dirty.
9121 (dirty): New function.
9122 (grub_video_fb_fill_rect): Update dirty.
9123 (common_blitter): Likewise.
9124 (grub_video_fb_scroll): Likewise.
9125 (doublebuf_blit_update_screen): Copy only dirty part.
9126 (doublebuf_pageflipping_update_screen): Likewise.
9127 (grub_video_fb_doublebuf_blit_init): Init dirty.
9128 (doublebuf_pageflipping_init): Likewise.
9129 (grub_video_fb_setup): Likewise.
9130
9131 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9134 poll rate.
9135
9136 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 Fix wildcard regexp dot and other special characters handling.
9139 Reported by: Robert Mabee.
9140
9141 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9142 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9143 (split_path): Trigger expansion on '?'.
9144 (unescape): New function.
9145 (wildcard_expand): Unescape parts copied without globbing.
9146 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9147 (grub_script_arglist_to_argv): Don't unescape expansions.
9148
9149 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * include/grub/net.h (grub_net_card): New member txbufsize.
9152 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9153 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9154 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9155 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9156 txbufsize.
9157 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9158 compatible property to check for macs. Set
9159 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9160 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9161 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9162 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9163 (send_card_buffer): Use txbuf.
9164 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9165 nested function out of the parent while on it.
9166
9167 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9168
9169 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9170 presence check.
9171 (grub_ieee1275_net_config_real): Fix config pointer.
9172
9173 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9176 filename parsing to non-block devices.
9177
9178 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9181
9182 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9185 All users updated.
9186
9187 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9190 UUID search command even if hints probing failed.
9191
9192 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * po/POTFILES.in: Regenerated.
9195
9196 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 Speed-up video on fuloong.
9199
9200 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9201 New function.
9202 (grub_pci_device_unmap_range): Handle non-cached address.
9203 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9204 add direct_ptr.
9205 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9206 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9207 (grub_video_sis315pro_set_active_render_target): Removed.
9208 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9209 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9210 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9211 sync caches.
9212 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9213 New proto.
9214
9215 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 * docs/grub.texi (Multi-boot manual config): New section.
9218
9219 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9220
9221 Avoid slow read-back from VRAM.
9222
9223 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9224 Move from here ...
9225 * grub-core/video/fb/video_fb.c
9226 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9227 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9228 (front_target): Remove front_target. Add pages.
9229 (grub_video_fb_init): Skip setting front_pages.
9230 (grub_video_fb_fini): Likewise.
9231 (doublebuf_blit_update_screen): Use pages.
9232 (grub_video_fb_doublebuf_blit_init): Likewise.
9233 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9234 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9235 (grub_video_fb_setup): Prefer doublebuffing.
9236
9237 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9240 gzio.
9241
9242 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Add loongson tests.
9245
9246 * tests/util/grub-shell.in: Handle loongson.
9247 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9248 drivers.
9249 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9250 Reboot instead of shutdown if REBOOT is defined.
9251
9252 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9255 sized ports since unlike on real hardware qemu supports only 32-bit
9256 regs.
9257
9258 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9261 * util/grub-mkrescue.in: Handle loongson.
9262
9263 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9266 Set is_part appropriately.
9267 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9268 names. Canonicalize partition without full disk.
9269
9270 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 Revert usb-quiesce since it's wrong.
9273
9274 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9275 (grub_ofdisk_init): Don't do quiesce.
9276
9277 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9280 PowerMac workaround to Xserves as well.
9281 Information supplied by: Benjamin Herrenschmidt.
9282
9283 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 Don't assume that beginning address is also the entry point on ppc.
9286
9287 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9288 (grub_linux_boot): Use linux_entry.
9289 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9290 (grub_linux_load64): Likewise.
9291
9292 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9295
9296 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9299 needlessly lose the console.
9300
9301 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9302
9303 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9304 space.
9305
9306 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9307
9308 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9309 than current grub_get_rtc() not implemented when booted with
9310 coreboot without TSC.
9311
9312 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9313 Add machine/time.h to kernel headers on loongson.
9314 * grub-core/Makefile.core.def (kernel): Remove
9315 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9316 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9317 (grub_get_rtc): Likewise.
9318 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9319 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9320 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9321 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9322 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9323 rather than installing known non-working time source.
9324 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9325 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9326 * include/grub/time.h: Don't include machine/time.h.
9327 * include/grub/efi/time.h: Removed.
9328 * include/grub/i386/efi/time.h: Likewise.
9329 * include/grub/i386/ieee1275/time.h: Likewise.
9330 * include/grub/powerpc/ieee1275/time.h: Likewise.
9331 * include/grub/sparc64/ieee1275/time.h: Likewise.
9332 * include/grub/x86_64/efi/time.h: Likewise.
9333
9334 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 Remove dot on i and j when combining with above diacritics.
9337
9338 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9339 value.
9340 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9341 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9342 with dotless variants when any combining above is present.
9343
9344 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9347 text and not binary.
9348
9349 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9350
9351 Stop polling as soon as we have the packet we were waiting for.
9352
9353 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9354 All users updated.
9355 * grub-core/net/arp.c (have_pending): New var.
9356 (pending_req): Likewise.
9357 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9358 stop indicator.
9359 (grub_net_arp_receive): Set have_pending.
9360 * grub-core/net/dns.c (recv_data): New field stop.
9361 (recv_hook): Set stop.
9362 (grub_net_dns_lookup): Init stop and use as stop condition.
9363 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9364 condition.
9365 * grub-core/net/net.c (grub_net_poll_cards): New argument
9366 stop_condition. Stop when it goes true.
9367 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9368 indicator.
9369 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9370
9371 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 Keep TX and RX buffers on EFI rather than always allocate new ones.
9374
9375 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9376 card. All users updated.
9377 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9378 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9379 (get_card_packet): Likewise.
9380 (grub_efinet_findcards): Init new fields.
9381
9382 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9383
9384 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9385 compilation error on sparc64.
9386
9387 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 Use ITC on IA64 rather than broken routine based on daytime.
9390
9391 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9392 ia64.
9393 (grub_get_rtc) [__ia64__]: Likewise.
9394 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9395 (get_itc): New function.
9396 (grub_rtc_get_time_ms): Likewise.
9397 (grub_machine_init): Calibrate ITC.
9398 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9399 Keep only on non-ia64. Don't export since it's broken and used only
9400 if TSC is unavailable.
9401
9402 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9405 even if it's used.
9406 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9407 Skip if parent is unused.
9408
9409 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9410
9411 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9412
9413 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 Fix wildcard escaping.
9416
9417 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9418 * grub-core/script/execute.c (wildcard_escape): .. to here.
9419 Don't escape dot.
9420 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9421 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9422 Don't escape dot.
9423 * grub-core/script/execute.c (gettext_append): Always escape.
9424 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9425 * grub-core/script/yylex.l: Don't cut away the escaping.
9426 * tests/grub_script_echo1.in: Add tests with wildcard.
9427
9428 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9429
9430 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9431 (ftdi_hw_configure): Likewise.
9432 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9433 define.
9434 (real_config): Handle 1.5 stop bits.
9435 (pl2303_hw_configure): Likewise.
9436
9437 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * Makefile.am: Add ppc linux bootcheck.
9440 * grub-core/tests/boot/linux-ppc.cfg: New file.
9441 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9442
9443 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 * tests/grub_script_expansion.in: Skip network protocols.
9446
9447 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9448
9449 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9450
9451 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9454 --rom-directory.
9455 Add -graft-points.
9456
9457 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9458
9459 ESCC serial driver for conducting sautomated tests in qemu.
9460 Not tested on real hardware.
9461
9462 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9463 * grub-core/term/ieee1275/escc.c: New file.
9464 * grub-core/Makefile.core.def (escc): New module.
9465
9466 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9469 invalid on error.
9470 (serial_hw_fetch): Don't read invalid handle.
9471 (serial_hw_put): Don't write into invalid handle.
9472
9473 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 Add a 1.5 stop bits value.
9476
9477 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9478 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9479 GRUB_SERIAL_STOP_BITS_1_5.
9480
9481 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9484 value rather than let it uninited.
9485
9486 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * grub-core/commands/wildcard.c (+check_file): New function.
9489 (wildcard_expand): Don't expand to non-existing files, expand with
9490 suffix and not attempt to expand if not needed.
9491
9492 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9495 out of partitions containing other partitions.
9496
9497 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9500 on some qemu versions with GRUB.
9501
9502 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9503 define.
9504 (grub_openbsd_bootarg_pcibios): New struct.
9505 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9506 Add PCIINFO.
9507
9508 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * tests/util/grub-shell.in: Trim firmware output on EFI.
9511
9512 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9515 and coreboot since it's already in kernel.
9516
9517 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9520 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9521 to here. New return value start. All users updated.
9522 Recursively scan linear mappings.
9523 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9524 proto.
9525 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9526 Use grub_util_get_dm_node_linear_info.
9527 * util/getroot.c (convert_system_partition_to_system_disk): Use
9528 grub_util_info rather than grub_dprintf.
9529 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9530
9531 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9534
9535 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9536 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9537
9538 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * include/grub/types.h (grub_set_unaligned64): New function.
9541 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9542 (setup): Likewise.
9543
9544 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9547 (grub_ofdisk_fini): Quiesce USB devices.
9548
9549 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9550
9551 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9552 caches.
9553
9554 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9555
9556 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9557
9558 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9559
9560 * grub-core/disk/pata.c (grub_pata_pio_read)
9561 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9562 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9563
9564 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9565
9566 Extend automated tests to qemu-mips.
9567
9568 * Makefile.am: reorganise tests and enable qemu-mips.
9569 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9570 * grub-core/tests/boot/linux.init-mips.S: New file.
9571 * tests/partmap_test.in: Handle ata0 disks.
9572 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9573 non-pc i386.
9574
9575 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9578 ia64.
9579 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9580 quotes while on it.
9581
9582 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9585 (grub_halt): Likewise.
9586 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9587
9588 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * grub-core/term/serial.c (grub_serial_register)
9591 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9592 the behaviour in line with x86 platforms.
9593
9594 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9597 (grub_ata_strncpy): Likewise.
9598 (grub_ata_identify): Add missing byteswaps.
9599
9600 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9601
9602 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9603 byte-swap.
9604 (screen_read_char): Likewise.
9605 (grub_vga_text_cls): Likewise.
9606
9607 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9610 filenames.
9611 (make_file_path): Likewise.
9612
9613 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9616 machines.
9617 Tested by: Paulo Flabiano Smorigo.
9618 Crucial information about API supplied by: Coleen <Last name unknown>.
9619 Reviewed by: Coleen <Last name unknown>.
9620
9621 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * util/grub-mkimage.c: Disable -Wcast-align.
9624
9625 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9628 as they are fatal.
9629
9630 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9633
9634 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * util/grub-probe.c (escape_of_path): Fix double free.
9637
9638 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * grub-core/commands/videoinfo.c (hook): Show pitch.
9641
9642 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9645
9646 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9649 (probe): Add ieee1275 to OFW devices.
9650
9651 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9652
9653 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9654
9655 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 Handle IBM OFW path.
9658
9659 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9660 available.
9661 (of_path_of_scsi): Handle vdevice.
9662
9663 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9666 Allocate in multiples of 16 to avoid adding a few bytes free region the
9667 windows bugs upon.
9668
9669 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9672 Allocate in multiples of 16 to avoid adding a few bytes free region the
9673 windows bugs upon.
9674 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9675
9676 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9679 resolutions.
9680 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9681 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9682
9683 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9684
9685 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9686
9687 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9688
9689 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9690 resulted in \\ at the end of the line.
9691
9692 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9695 (grub_parser_cmdline_state): Likewise.
9696 (grub_parser_split_cmdline): Likewise.
9697
9698 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9701 /dev/root and /dev/dm-*.
9702
9703 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9706 fix partially stale display.
9707
9708 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9709
9710 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9711 substraction.
9712
9713 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9716 Fix MBR remapping workaround.
9717 (grub_util_biosdisk_read) [__linux__]: Likewise.
9718
9719 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9722
9723 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * configure.ac: Bump to beta6.
9726
9727 2012-05-31 Christer Weinigel <christer@weinigel.se>
9728
9729 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9730
9731 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9734 (grub_cmd_linux): Likewise.
9735
9736 2012-05-31 Christer Weinigel <christer@weinigel.se>
9737
9738 Fix EHCI low-speed.
9739
9740 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9741 (GRUB_EHCI_MULT_TWO): Likewise.
9742 (GRUB_EHCI_MULT_THREE): Likewise.
9743 (GRUB_EHCI_CMASK_MASK): New enum value.
9744 (GRUB_EHCI_SMASK_MASK): Likewise.
9745 (GRUB_EHCI_CMASK_OFF): Likewise.
9746 (GRUB_EHCI_SMASK_OFF): Likewise.
9747 (grub_ehci_pci_iter): Enable periodic schedule.
9748 (grub_ehci_parse_notrun): Likewise.
9749 (grub_ehci_restore_hw): Likewise.
9750 (grub_ehci_setup_qh): Set flags for low speed transfers.
9751 (grub_ehci_find_qh): Use periodic list for low speed.
9752 (grub_ehci_setup_transfer): Check periodic queue as well.
9753 (grub_ehci_check_transfer): Likewise.
9754 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9755
9756 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9757
9758 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9759 parameter is used.
9760
9761 2012-05-31 Peter Jones <pjones@redhat.com>
9762
9763 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9764 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9765 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9766
9767 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9770 uninited variable. Allocate at least setup_sects.
9771
9772 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 Fix handling of EFI with big memory maps.
9775
9776 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9777 (real_mode_mem): Likewise.
9778 (real_mode_target): Likewise.
9779 (real_mode_pages): Likewise.
9780 (prot_mode_pages): Likewise.
9781 (linux_params): New var.
9782 (linux_cmdline): Likewise.
9783 (free_pages): Don't set real mode variables.
9784 (allocate_pages): Don't allocate real mode memory.
9785 (grub_e820_add_region): Remove the limit.
9786 (grub_linux_boot): Allocate and copy real mode memory.
9787 (grub_linux_unload): Free linux_cmdline.
9788 (grub_cmd_linux): Use temporary storage for parameters.
9789 (grub_cmd_initrd): Likewise.
9790 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9791 (linux_kernel_params): Make it 1K big.
9792
9793 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 * Makefile.util.def: Remove -Wno-format.
9796 * grub-core/Makefile.core.def: Likewise.
9797
9798 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * tests/cmp_unit_test.c: Add missing failure message.
9801 * tests/example_unit_test.c: Likewise.
9802 * tests/printf_unit_test.c: Likewise.
9803
9804 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9807 relaxation of protective MBR requirements.
9808
9809 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * configure.ac: Add condition for COND_HOST_XNU.
9812 * Makefile.util.def (10_xnu): New script.
9813 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9814
9815 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9818 objconv bug.
9819
9820 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9821
9822 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9823 Binary on other platforms stays identical.
9824
9825 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9828 Apple.
9829
9830 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9833
9834 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9837 rather than defining size_t ourselves to avoid conflict.
9838
9839 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9842 initialisation to avoid __bzero reference.
9843
9844 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9847 version.
9848 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9849 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9850 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9851 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9852 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9853
9854 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9857 * grub-core/kern/misc.c: Likewise.
9858 * grub-core/loader/i386/xnu.c: Likewise.
9859 * include/grub/i386/tsc.h: Likewise.
9860 * include/grub/symbol.h: Likewise.
9861
9862 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9865 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9866 on older compiler.
9867
9868 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9871 Implement Apple flavour.
9872 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9873
9874 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9877 (memmove) [__APPLE__]: Likewise.
9878 (memcpy) [__APPLE__]: Likewise.
9879 (memset) [__APPLE__]: Likewise.
9880 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9881 (memmove) [__APPLE__]: Likewise.
9882 (memcpy) [__APPLE__]: Likewise.
9883 (memset) [__APPLE__]: Likewise.
9884
9885 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9888 dependency discard.
9889
9890 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * grub-core/normal/main.c (read_config_file): Provide config_file and
9893 config_directory.
9894 * util/grub.d/41_custom.in: Use config_directoy when available.
9895
9896 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9899 (grub_bfs_dir): Likewise.
9900
9901 2012-05-27 Peter Jones <pjones@redhat.com>
9902
9903 The old code gives arguments to a printf function which can't work
9904 correctly, and the compiler complains.
9905
9906 * grub-core/tests/example_functional_test.c (example_test): Add
9907 missing text.
9908 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9909 * include/grub/test.h (grub_test_assert_helper): New declaration.
9910 (grub_test_assert): Use grub_test_assert_helper.
9911
9912 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9915 (exfctest): ... this to avoid overlong filenames.
9916 All users updated.
9917
9918 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 Handle "." and ".." on squashfs.
9921
9922 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9923 Make inode numbers into stack.
9924 (grub_squash_read_symlink): Use stack.
9925 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9926 (make_root_node): Fill stack.
9927 (grub_squash_open): Use stack.
9928
9929 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9930
9931 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
9932 freeing.
9933
9934 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9935
9936 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
9937 stderr on test calls.
9938
9939 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
9942
9943 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9944
9945 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
9946
9947 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
9950 "..".
9951
9952 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
9955 (grub_hfsplus_iterate_dir): Add "." and "..".
9956
9957 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 * grub-core/fs/cpio.c (canonicalize): Handle "..".
9960 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
9961
9962 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
9965 (find_path): Handle "." and "..".
9966
9967 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
9970 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
9971 (grub_affs_iterate_dir): Handle hardlinks.
9972
9973 2012-05-26 Matthew Garrett <mjg@redhat.com>
9974
9975 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
9976 (grub_efi_console_fini): Likewise.
9977 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
9978 (grub_video_gop_fill_mode_info): Rename to ...
9979 (grub_video_gop_fill_real_mode_info): ... this.
9980 (grub_video_gop_fill_mode_info): New function.
9981 (grub_video_gop_setup): Setup double framebuffer.
9982 (grub_video_gop_get_info_and_fini): Use original framebuffer.
9983 Free offscreen.
9984 (grub_video_gop_swap_buffers): Copy framebuffer.
9985 (grub_video_gop_fini): Free offscreen buffer.
9986 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
9987 New enum.
9988 (grub_efi_gop_blt_pixel): New struct.
9989
9990 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 * gentpl.py: Remove error disabling for objconv.
9993
9994 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * configure.ac: Remove -Wunitialized as it's not available on older
9997 compilers.
9998
9999 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 Fix extent overflow comparator.
10002
10003 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10004 (grub_hfsplus_read_block): Set type.
10005 (grub_hfsplus_cmp_extkey): Compare type.
10006
10007 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10010
10011 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10012
10013 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10014 than 0.
10015
10016 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10017
10018 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10019 (dejavu_bold_14.pf2): New target.
10020
10021 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * configure.ac: Fix djvu font detection.
10024
10025 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10028 ext* instead of ext2.
10029
10030 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10033 name with \0.
10034
10035 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10036
10037 * docs/grub-dev.texi: Remove dot from .png.
10038
10039 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10040
10041 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10042 protective entry in any slot.
10043 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10044 if protective entry is found in any slot.
10045
10046 Protective entry in non-first slot make no sense but is a widespread
10047 brain damage.
10048
10049 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10052
10053 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10056 with old reiserfs.
10057 (grub_reiserfs_open): Don't free root.
10058
10059 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10060
10061 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10062 after freeing for safety.
10063
10064 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10067 Reported by: Jordan Uggla.
10068
10069 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10070
10071 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10072 actual implementation. Specifically, clarify that the grub menu will
10073 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10074 passed.
10075
10076 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10077
10078 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10079 of r0.
10080
10081 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 Remove unjustified hard dependency of normal.mod on gfxterm.
10084
10085 * include/grub/term.h (grub_term_output): New member fullscreen.
10086 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10087 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10088 (grub_gfxterm): Set .fullscreen.
10089 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10090 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10091
10092 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10095 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10096 Mention case-insensitive AFFS, SFS and JFS.
10097
10098 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10101
10102 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10105 a bad FS.
10106
10107 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10110 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10111
10112 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10115 (grub_jfs_mount): Fill caseins.
10116 (grub_jfs_find_file): Respect caseins.
10117
10118 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10119
10120 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10121 through UTF-16.
10122
10123 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10126 New argument origpath. All users updated.
10127
10128 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10131 (read_attr): Ensure that we read start of possibly compressed block.
10132
10133 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10136 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10137 All users updated.
10138
10139 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10142 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10143 (dejavu.pf2): Replace with ...
10144 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10145 this.
10146
10147 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10148
10149 * util/grub.d/20_linux_xen.in: Add missing line.
10150
10151 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10154 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10155 (grub_utf16_to_utf8): Likewise.
10156
10157 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10158
10159 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10160 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10161 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10162 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10163 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10164 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10165
10166 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10169 a bad FS.
10170
10171 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10174 (grub_udf_read_symlink): Handle read_string failure.
10175
10176 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10179 comment.
10180
10181 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 Fix handling of UDF symlinks.
10184
10185 * grub-core/fs/udf.c (read_string): New argument outbuf.
10186 All users updated.
10187 (grub_ufs_read_symlink): Rename to ...
10188 (grub_udf_read_symlink): ... this. All users updated.
10189 Handle symlinks with more than one component.
10190
10191 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10192
10193 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10194 symlinks. Replace leading colon with a slash.
10195
10196 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10199 filename.
10200
10201 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10202
10203 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10204 match in inner node.
10205
10206 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10207
10208 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10209 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10210 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10211 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10212 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10213 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10214 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10215 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10216 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10217
10218 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 Use grub-probe and not cmp to check that disk is empty.
10221
10222 * util/grub-install.in: Use grub-probe for zero-check.
10223 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10224 (probe): Handle PRINT_ZERO_CHECK.
10225 (argp_parser): Handle -t zero_check.
10226
10227 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 Flush block cache on adding disk to device map.
10230
10231 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10232 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10233 adding.
10234 (read_device_map): Likewise.
10235 (open_device): Flush on opening.
10236
10237 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10240 (handle_symlink): Fix off-by-one error.
10241 Canonicalize the target.
10242 (grub_cpio_dir): Canonicalize the name.
10243 Fix memory leak.
10244 Set directory.
10245 (grub_cpio_open): Canonicalize the name.
10246
10247 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10250 handling.
10251
10252 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10255 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10256
10257 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10258
10259 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10260 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10261 All users updated.
10262
10263 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10266 counterpart.
10267
10268 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10269
10270 Fix UFS1 big file support.
10271
10272 * grub-core/fs/ufs.c (INODE): Removed.
10273 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10274 64-bit.
10275 (INODE_MODE): Simplify.
10276 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10277 (grub_ufs_lookup_symlink): Don't use INODE.
10278
10279 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10280
10281 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10282
10283 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10284 (grub_minix_data): Replace log_block_size with block_size.
10285 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10286 (grub_minix_mount): Fill block_size.
10287
10288 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 * configure.ac: Bump to beta5.
10291
10292 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 Fix wrapped HFS+ handling.
10295
10296 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10297 blocks_start. All users updated.
10298 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10299 wrapping offset.
10300 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10301
10302 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 Fix long symlinks on reiserfs.
10305
10306 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10307 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10308 (grub_reiserfs_iterate_dir): Save size for non-directories.
10309 (grub_reiserfs_open): Don't reread stat block as we already know the
10310 size.
10311 (grub_reiserfs_read): Split into...
10312 (grub_reiserfs_read_real): ... and ...
10313 (grub_reiserfs_read): ...this.
10314
10315 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 Fix non-indexed JFS.
10318
10319 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10320 (grub_jfs_data): New field namecomponentlen.
10321 (grub_jfs_mount): Fill namecomponentlen.
10322 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10323
10324 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10327 * tests/grub_script_echo1.in: Add tests.
10328
10329 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10330
10331 * util/grub-install.in: Ignore empty devicetree directory.
10332
10333 2012-05-08 Bean <bean123ch@gmail.com>
10334
10335 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10336 All users updated.
10337 (free_rsm): Free header as well.
10338 (free_old_fragments): Fix memory leak.
10339 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10340 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10341 (destroy_pq): Likewise.
10342 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10343
10344 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10347 resulting hash as a precaution.
10348
10349 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10352 '_' in variable names.
10353 * grub-core/net/net.c (grub_net_network_level_interface_register):
10354 Likewise.
10355
10356 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 Fix AFFS with non-512B blocks.
10359
10360 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10361 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10362 (grub_affs_data): Replace blocksize with log_blocksize.
10363 (grub_affs_read_block): Fix non-512B blocks.
10364 (grub_affs_read_symlink): Likewise.
10365 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10366 (grub_affs_read): Fix non-512B blocks.
10367 (grub_affs_label): Likewise.
10368 (grub_affs_mtime): Likewise.
10369 (grub_affs_mount): Fix block detection routine.
10370
10371 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10372
10373 Add filesystem mtime to AFFS.
10374
10375 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10376 (aftime2ctime): New function.
10377 (grub_affs_dir): Use aftime2ctime.
10378 (grub_affs_label): Fix return value.
10379 (grub_affs_mtime): New function.
10380 (grub_affs_fs): Add mtime.
10381
10382 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10383
10384 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10385 UTF-8.
10386
10387 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10388
10389 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10390 UTF-8.
10391
10392 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10395
10396 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10397
10398 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10399 flags.
10400 (FLAGS_CASE_SENSITIVE): New enum value.
10401 (cache_entry): New struct.
10402 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10403 cache_size and cache.
10404 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10405 Add log_blocksize and fshelp_flags.
10406 (grub_sfs_read_extent): Handle non-512 blocks.
10407 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10408 (grub_sfs_read_file): Handle non-512 blocks.
10409 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10410 fshelp_flags.
10411 (grub_sfs_read_symlink): Handle non-512 blocks.
10412 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10413 (grub_sfs_dir): Free cache.
10414 (grub_sfs_close): Likewise.
10415
10416 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10419 filesystems.
10420
10421 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10422
10423 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10424
10425 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10428
10429 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10432 (grub_sfs_read_extent): Likewise.
10433 (grub_sfs_read_block): Likewise.
10434 (grub_sfs_mount): Likewise.
10435 (grub_sfs_iterate_dir): Likewise.
10436 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10437 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10438
10439 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10440
10441 Fix errors on compressed NTFS with 512B clusters.
10442
10443 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10444 types.
10445 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10446 not 0.
10447 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10448 Relax check for inline extents.
10449 (ntfscomp): Return correct -1 on error and not 0.
10450
10451 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10452
10453 * util/grub-install.in: Fix handling of prefix containing spaces.
10454
10455 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10458 (grub_squash_read_data): Fix offset byte-swapping.
10459
10460 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10463 per common usage and preffered in several parts of code.
10464 (grub_memcmp): Likewise.
10465 (grub_strncmp): Likewise.
10466 * include/grub/misc.h (grub_strcasecmp): Likewise.
10467 (grub_strncasecmp): Likewise.
10468 * Makefile.util.def (cmp_test): New test.
10469 (grub_script_strcmp): Likewise.
10470 * tests/cmp_unit_test.c: New file.
10471 * tests/grub_script_strcmp.in: Likewise.
10472 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10473
10474 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10475
10476 * include/grub/pci.h: Move enums into no-asm part.
10477
10478 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10481
10482 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10483
10484 * util/getroot.c (find_hurd_root_device): Try to make error message
10485 and comments to translators clearer.
10486
10487 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10490
10491 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10492
10493 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10494 btrfs.
10495
10496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * docs/grub.cfg: Update.
10499
10500 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * docs/grub.texi (PXE): Remove not present variables.
10503
10504 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10505
10506 * grub-core/net/net.c (defserver_set_env): New function.
10507 (defserver_get_env): Likewise.
10508 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10509
10510 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10513 entries.
10514
10515 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10516
10517 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10518 * grub-core/kern/emu/hostdisk.c: Likewise.
10519
10520 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10521
10522 Handle hurd userspace partitions.
10523
10524 * util/getroot.c (find_hurd_root_device): New function.
10525 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10526
10527 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10528
10529 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10530 names.
10531 Reported by: Bastian Blank.
10532
10533 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10536 crossing page boundary.
10537
10538 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10539
10540 Fix B-tree search in BFS, especially in presence of non-ASCII
10541 characters.
10542
10543 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10544 (find_in_b_tree): Use standard bsearch + btree algorithm.
10545
10546 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10549 and so on.
10550
10551 2012-05-03 Matthew Garrett <mjg@redhat.com>
10552 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10553
10554 Suspend broadcom cards in order to stop their DMA.
10555
10556 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10557 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10558 (pci): Don't build on x86 EFI.
10559 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10560 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10561 New function.
10562 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10563 stop_broadcom if running on EFI.
10564 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10565 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10566 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10567 (grub_pci_find_capability): New proto.
10568
10569 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * docs/grub.texi: Remove dot from the extension as it apparently
10572 doesn't work with some makeinfo versions.
10573
10574 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10577 with GRUB expectance.
10578
10579 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10582
10583 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10586 zero after directory block since last entry may be not 0-terminated if
10587 it ends on block boundary. Use continue instead of if spanning whole
10588 loop.
10589
10590 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10591
10592 Support 4K sectors UDF inline files.
10593
10594 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10595 (grub_udf_extended_file_entry): Likewise.
10596 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10597 All users updated.
10598 (get_fshelp_size): New function.
10599 (grub_udf_read_icb): Read whole block.
10600 (grub_udf_iterate_dir): Likewise.
10601 (grub_udf_dir): Likewise.
10602 (grub_udf_open): Likewise.
10603
10604 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10607
10608 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10611 inline symlinks in addition to workaround.
10612
10613 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10616
10617 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10620
10621 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10624
10625 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10626
10627 Fix reiserfs big seek times.
10628
10629 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10630 exact. All users updated.
10631 (grub_reiserfs_read): Use nearest btree search for seeking.
10632 Fix return value on error.
10633
10634 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10637 entries.
10638 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10639 * docs/grub.texi: Update menuentry description.
10640
10641 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10644 crash when embedding onto filesystem.
10645
10646 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10647
10648 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10649 name.
10650
10651 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10654
10655 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10658 commit.
10659
10660 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10661 2012-05-01 Bean <bean123ch@gmail.com>
10662
10663 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10664
10665 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10668 Special behaviour for len = 0 to read whole file isn't used anywhere and
10669 can cause buffer ovewrflows in several places.
10670
10671 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10674
10675 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 Handle RAIDZ on non-512B sectors.
10678
10679 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10680 max_children_ashift.
10681 (fill_vdev_info_real): Fill max_children_ashift.
10682 (read_device): Use max_children_ashift.
10683
10684 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10687
10688 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10691 disk names.
10692 * docs/grub.texi: Update device.map parts.
10693
10694 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10695
10696 Don't scan into non-diskfilter devices having diskfilter names.
10697
10698 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10699 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10700 handling.
10701 (scan_disk_hook): New function.
10702
10703 2012-04-29 Bean <bean123ch@gmail.com>
10704
10705 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10706 allocation.
10707
10708 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10709
10710 * configure.ac: Detect starfield theme font path
10711 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10712
10713 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10716 geometry on serial consoles.
10717
10718 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10721 because of network consoles.
10722
10723 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10726 handling.
10727
10728 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10729
10730 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10731 falls on Q syndrom.
10732
10733 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10736 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10737
10738 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10741 Allocate at lest 8192 for temporary buffer as required for lzo.
10742
10743 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10744
10745 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10746 to cluster_bits, since it's already added in.
10747 (grub_fat_read_data): Likewise.
10748
10749 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10752 as long as cluster size is multiple of 512 bytes.
10753
10754 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * util/grub-mkrescue.in: Fix locale directory.
10757
10758 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 * grub-core/kern/emu/hostdisk.c (map): Make static.
10761
10762 2012-04-23 Bean <bean123ch@gmail.com>
10763
10764 * util/grub-fstest.c (fstest): Add missing break.
10765
10766 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10767
10768 Fix hurd build.
10769
10770 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10771 not define nr variable.
10772 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10773 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10774 grub_find_device): Do not define.
10775
10776 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 Fix kfreebsd compile and behaviour.
10779
10780 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10781 format-security.
10782 * util/getroot.c: Fix wait.h include.
10783 (grub_guess_root_devices): Error if grub_find_device fails.
10784 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10785 (grub_util_get_dev_abstraction): Likewise.
10786 (grub_util_pull_device): Likewise.
10787 (grub_util_get_grub_dev): Likewise.
10788 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10789
10790 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 Fix and unify wholedisk detection.
10793
10794 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10795 is_part. All users updated.
10796 (device_is_wholedisk): Removed.
10797 (grub_util_biosdisk_get_grub_dev): Use is_part.
10798
10799 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10800
10801 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10802 mode.
10803
10804 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10805
10806 * configure.ac: Bump to beta4.
10807
10808 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10809
10810 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10811 --fs-uuid --set UUID syntax.
10812
10813 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10816 disunification.
10817
10818 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10821
10822 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10823
10824 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10825
10826 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10827
10828 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10829
10830 2012-04-18 Bean <bean123ch@gmail.com>
10831
10832 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10833 place.
10834
10835 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10838 users updated.
10839 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10840 corresponding to GRUB partitions.
10841 (grub_util_biosdisk_write): Likewise.
10842
10843 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 Scan mdraid before LVM.
10846
10847 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10848 (grub_diskfilter_register_front): ... this.
10849 (grub_diskfilter_register_back): New function.
10850 All users of grub_diskfilter_register updated.
10851
10852 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10853
10854 * util/grub-install.in: Fix an automatic target detection bug.
10855
10856 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * util/grub-install.in: New option --efi-directory.
10859
10860 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10861
10862 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10863 boot services if we have no other choice.
10864
10865 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10866
10867 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10868 document it.
10869 * tests/util/grub-shell.in: Update to --directory.
10870
10871 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10872
10873 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10874
10875 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10878 (grub_minix_read_file): Likewise.
10879 (grub_minix_read_inode): Likewise.
10880 (grub_minix_find_file): Likewise.
10881 (grub_minix_dir): Likewise.
10882
10883 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 * util/grub-setup.c (setup): Fix partition handling and blocklist
10886 check.
10887
10888 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10889
10890 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10891 redundant buggy overlap check.
10892
10893 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10896 and grub-mknetdir.
10897
10898 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10899
10900 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10901 kh.loadflags on pre-2.00 kernels.
10902
10903 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10904
10905 Terminate UNDI and PXE before launching the payload to avoid problems
10906 with DMA.
10907
10908 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10909 (grub_loader_flags): ... this. All users updated.
10910 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10911 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10912 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10913 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10914 function.
10915 (grub_pxe_restore): Likewise.
10916 (fini_hnd): New var.
10917 (GRUB_MOD_INIT): Register shutdown hook.
10918 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10919 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10920 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10921 (grub_loader_set): Rename second argument to flags.
10922
10923 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10926 written bytes.
10927 (grub_get_num_of_utf8_bytes): New function.
10928 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
10929 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
10930 executing it.
10931 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
10932 (grub_ucs4_to_utf8): Change return type.
10933
10934 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10935
10936 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
10937 warning.
10938 * grub-core/fs/bfs.c (hop_level): Likewise.
10939 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
10940
10941 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 * grub-core/lib/adler32.c: Recode due to license unclearness.
10944
10945 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10946
10947 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
10948 (test_header): Likewise.
10949
10950 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 Fix --help formatting.
10953
10954 * util/grub-mkconfig_lib.in (print_option_help): New function.
10955 (grub_fmt): Likewise.
10956 * util/grub-install.in: Use print_option_help and grub_fmt.
10957 * util/grub-kbdcomp.in: Likewise.
10958 * util/grub-mkconfig.in: Likewise.
10959 * util/grub-mknetdir.in: Likewise.
10960 * util/grub-mkrescue.in: Likewise.
10961 * util/grub-mkstandalone.in: Likewise.
10962 * util/grub-reboot.in: Likewise.
10963 * util/grub-set-default.in: Likewise.
10964 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10965
10966 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10967
10968 * linguas.sh: Remove autogenerated *.po.
10969
10970 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10971
10972 * po/README: Move language fetcing to ...
10973 * linguas.sh: ... here.
10974 * po/README: Point to linguas.sh.
10975
10976 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * po/README: Exclude ko.po due to disclaimer problems.
10979
10980 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
10983 len = 0.
10984 (grub_gettext_translate_real): Handle 0th string.
10985 (grub_gettext_translate): Ensure that "" isn't translated.
10986
10987 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
10990 TRANSLATORS comment.
10991 (grub_diskfilter_print_partmap): Propagate changing of error into
10992 warning.
10993
10994 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
10997 to uint64_t to prevent overflow.
10998 (grub_diskfilter_lv): Increase start_extent and extent_count
10999 to uint64_t to prevent overflow.
11000
11001 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11002
11003 * configure.ac: Increase version.
11004
11005 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11008
11009 * po/Rules-translit: New file.
11010 * po/arabic.sed: Likewise.
11011 * po/cyrillic.sed: Likewise.
11012 * po/greek.sed: Likewise.
11013 * po/hebrew.sed: Likewise.
11014 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11015 * po/Makefile.in.in: Add extra_dist4.
11016
11017 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11018
11019 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11020
11021 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11022 modify names. Introduce MODE_BIGENDIAN.
11023 * grub-core/fs/minix_be.c: New file.
11024 * grub-core/fs/minix2_be.c: Likewise
11025 * grub-core/fs/minix3_be.c: Likewise.
11026 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11027 minix3_be.
11028 * grub-core/Makefile.core.def (minix_be): New module.
11029 (minix2_be): Likewise.
11030 (minix3_be): Likewise.
11031
11032 2012-04-01 Felix <email@hamburg.de>
11033
11034 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11035 (devs): Add MBP 2011.
11036
11037 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11040
11041 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * grub-core/normal/cmdline.c (print_completion): New field
11044 prompt_len.
11045 (grub_cmdline_get): Handle width properly.
11046
11047 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11048
11049 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11050
11051 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11052
11053 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11054 after 29th of February.
11055
11056 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 Fix exfat endianness handling.
11059
11060 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11061 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11062 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11063 Byte-swap utf16 when necessary.
11064 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11065
11066 2012-03-31 Anton Blanchard <anton@samba.org>
11067 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 Fix btrfs endianness handling.
11070
11071 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11072 (lower_bound): Make root uint64_t. Use root in le.
11073 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11074 (find_path): Fix template key init.
11075 (grub_btrfs_dir): Fix mtime byteswap.
11076 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11077
11078 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11079
11080 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11081 recursion_depth. Break infinite resursions. All users updated.
11082
11083 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11086 after free.
11087 Reported by: Peter Jones.
11088
11089 2012-03-31 Anton Blanchard <anton@samba.org>
11090
11091 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11092 8 bit values.
11093
11094 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * util/grub-install.in: Fix nvram call for PreP.
11097
11098 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11099
11100 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11101 the error when some elements are missing into a warning.
11102
11103 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11106
11107 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11108
11109 * docs/grub.texi (Invoking grub-probe): New section.
11110 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11111
11112 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 Fix tab and wide character handling in editor and menu.
11115
11116 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11117 agglomerate control characters with combining marks.
11118 (bidi_line_wrap): Allow break on tab.
11119 (grub_unicode_get_comb_start): New function.
11120 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11121 and tab correctly.
11122 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11123 with a space.
11124 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11125 fixed_tab_size. All users updated.
11126 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11127 (grub_term_getcharwidth): Handle \t.
11128 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11129 and copy.
11130
11131 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11132
11133 Handle big-endian mdraid.
11134
11135 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11136 * grub-core/Makefile.core.def (mdraid09_be): New module.
11137 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11138 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11139 * grub-core/disk/mdraid_linux_be.c: New file.
11140
11141 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11144
11145 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11146
11147 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11148 missing quotes which caused confusion among translators.
11149
11150 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 * util/grub-mkconfig_lib.in: Fix typo.
11153
11154 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11157 spaces.
11158 * tests/grub_script_leading_whitespace.in: New file.
11159 * Makefile.util.def (grub_script_leading_whitespace): New test.
11160
11161 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11164 to work.
11165
11166 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11169 starts with control character.
11170
11171 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11174 overflow.
11175 (grub_gdb_outbuf): Likewise.
11176
11177 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11180 zero terminator. Fixes a crash.
11181
11182 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11185 beyond 4 GiB.
11186 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11187 images independently of preffered adderss field.
11188
11189 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11192 * grub-core/commands/regexp.c: Likewise.
11193 * grub-core/loader/i386/linux.c: Likewise.
11194 * grub-core/partmap/msdos.c: Likewise.
11195 * grub-core/script/execute.c: Likewise.
11196 * grub-core/term/gfxterm.c: Likewise.
11197
11198 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11199
11200 Add variable parsing in $"..." and fix several mismatches with bash.
11201
11202 * Makefile.util.def (grub_script_gettext): New test.
11203 * grub-core/script/execute.c (parse_string): New function.
11204 (gettext_append): Likewise.
11205 (grub_script_arglist_to_argv): Use gettext_append.
11206 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11207 * tests/grub_script_gettext.in: New file.
11208
11209 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 Fix handling of leading spaces in scripts.
11212
11213 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11214 spaces.
11215 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11216 other than skipping \r. All users updated.
11217 * tests/grub_script_echo1.in: Add space-related tests.
11218 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11219
11220 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11223
11224 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * configure.ac: Bump up the version to beta2.
11227
11228 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11229
11230 Fix gettext reload bugs (e.g. inability to disable gettext
11231 once enabled).
11232
11233 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11234 main_context and secondary_context. All functions updated.
11235 (grub_gettext_translate): Rename to ...
11236 (grub_gettext_translate_real): ... this. Return NULL on failed
11237 translate.
11238 (grub_gettext_translate): Handle secondary context.
11239 (grub_gettext_delete_list): Close file and zero-out the context.
11240 (grub_mofile_open): Don't call grub_gettext_delete_list.
11241 Don't close file.
11242 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11243 if locale="" to avoid pointless error message.
11244 (grub_gettext_env_write_lang): Update lang even if load fails.
11245 Handle secondary context.
11246 (grub_gettext_reread_prefix): New function.
11247 (read_main): Likewise.
11248 (read_secondary): Likewise.
11249 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11250 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11251 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11252 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11253
11254 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11255
11256 * configure.ac: Decrease warning level to avoid spurious warnings and
11257 to be able to compile with GCC 4.2.
11258 * Makefile.util.def: Remove -Wno-error=logical-op.
11259
11260 2012-03-10 William Bittner <william.bittner@gmail.com>
11261
11262 * util/import_unicode.py: Add missing brackets around string for
11263 python 3 support.
11264
11265 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11266
11267 Fix efi chainloader on network root.
11268
11269 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11270 network devices.
11271 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11272 New function.
11273
11274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11277 unused show_text member.
11278 * docs/grub.texi: Document "text" property.
11279
11280 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11283 in dprintf.
11284
11285 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 Fix IMSM handling on Fedora.
11288
11289 * util/getroot.c (grub_util_is_imsm): New function.
11290 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11291
11292 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * Makefile.am: Strip gold section.
11295 * conf/Makefile.common: Likewise.
11296 * gentpl.py: Likewise.
11297 * grub-core/Makefile.core.def: Likewise.
11298 * grub-core/genmod.sh.in: Likewise.
11299
11300 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11301
11302 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11303 * util/grub.d/20_linux_xen.in: Likewise.
11304 Based on Debian patch.
11305
11306 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 * util/grub.d/10_linux.in: Fix syntax error resulting in
11309 Richard Laager's patch.
11310 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11311
11312 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11313
11314 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11315 dependencies.
11316
11317 2012-03-10 Richard Laager <rlaager@wiktel.com>
11318
11319 * util/grub.d/10_linux.in: Fix ZFS root passing.
11320
11321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11324 * grub-core/commands/xnu_uuid.c: Likewise.
11325 * grub-core/loader/efi/appleloader.c: Likewise.
11326 * grub-core/script/execute.c: Likewise.
11327 * grub-core/script/main.c: Likewise.
11328 * util/grub-mkfont.c: Likewise.
11329
11330 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * util/grub-mkfont.c (options): Use more appropriate "select" that
11333 "set" for face index.
11334
11335 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11336
11337 * util/grub-editenv.c (options): Gettextize command summaries.
11338
11339 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11342 "out of memory" error messagge.
11343
11344 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11347 of diskfilter for diskfilter on diskfilter support.
11348
11349 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11350
11351 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11352
11353 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11356 themes/starfield.
11357
11358 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11361
11362 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11363
11364 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11365
11366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11367
11368 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11369 of error message.
11370
11371 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11372
11373 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11374
11375 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11376
11377 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11378 message.
11379 * util/grub-install.in: Fix and gettextize error message.
11380
11381 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11384 Gettextize.
11385 * util/grub-mount.c (options): Likewise.
11386
11387 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11388
11389 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11390 gettextize.
11391 * grub-core/commands/search_wrap.c (options): Likewise.
11392
11393 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11396
11397 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11400 size calculation.
11401 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11402 none is known.
11403
11404 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11407 "temporary" since it's used in identifier and is limited in space.
11408
11409 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 * po/POTFILES.in: Regenerate. Include *.h since they contain
11412 translatable strings as well.
11413
11414 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11417 byte-swap on big-endian.
11418 Reported by: Lennart Sorensen
11419
11420 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11423 (allocate_pages): Improve dprintf.
11424 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11425 code32_start. Fill code32_start and kernel_alignment in params.
11426 (grub_cmd_initrd): Use prot_init_space.
11427
11428 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11429
11430 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11431
11432 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11433
11434 * util/grub-install.in: Add missing dot at the end of sentence.
11435
11436 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11437
11438 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11439 * grub-core/commands/videotest.c: Likewise.
11440 * grub-core/loader/i386/linux.c: Likewise.
11441
11442 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11445 sentence.
11446 Reported by: Milo Casagrande.
11447
11448 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11449
11450 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11451 * grub-core/commands/gptsync.c: Likewise.
11452 * grub-core/commands/hashsum.c: Likewise.
11453 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11454 * grub-core/commands/legacycfg.c: Likewise.
11455 * grub-core/io/gzio.c: Likewise.
11456 * grub-core/net/net.c: Likewise.
11457 * grub-core/term/gfxterm.c: Likewise.
11458 * grub-core/term/terminfo.c: Likewise.
11459 * grub-core/tests/test_blockarg.c: Likewise.
11460 * grub-core/video/video.c: Likewise.
11461 * util/grub-install.in: Likewise.
11462 * util/grub-mkfont.c: Likewise.
11463
11464 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11467
11468 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * grub-core/commands/search_wrap.c (options): Fix a typo.
11471 Reported by: David Prévot.
11472
11473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11476 description.
11477
11478 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 * util/grub-script-check.c (main): Fix a syntax error message which was
11481 unclear.
11482
11483 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11486
11487 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11490 messages.
11491
11492 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11495 without argument.
11496 * util/grub-mount.c (options): Likewise.
11497
11498 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11501
11502 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 * grub-core/net/http.c: Add TRANSLATORS comments.
11505 * grub-core/normal/cmdline.c: Likewise.
11506 * grub-core/normal/misc.c: Likewise.
11507 * grub-core/partmap/msdos.c: Likewise.
11508 * grub-core/parttool/msdospart.c: Likewise.
11509 * grub-core/script/execute.c: Likewise.
11510 * grub-core/script/main.c: Likewise.
11511 * grub-core/term/terminfo.c: Likewise.
11512 * grub-core/video/bitmap.c: Likewise.
11513 * util/grub-install.in: Likewise.
11514 * util/grub-mkimage.c: Likewise.
11515 * util/grub-mklayout.c: Likewise.
11516 * util/grub-setup.c: Likewise.
11517
11518 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11521 with similar messages in grub-fstest.
11522
11523 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * util/grub-install.in: Unify "option requires an argument" message
11526 with similar messages in other files.
11527 * util/grub-mkconfig.in: Likewise.
11528
11529 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11530
11531 * util/grub-set-default.in: Replace printf with gettext_printf (the
11532 string in in question is already translated from grub-reboot)
11533
11534 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11535
11536 * configure.ac: Bump up the version to beta1.
11537
11538 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11539
11540 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11541 case when min_align = 0.
11542
11543 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11544
11545 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11546 and fix a case when line_start overflows.
11547
11548 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11549
11550 * util/grub-reboot.in (usage): Mention id posibility.
11551 * util/grub-set-default.in (usage): Likewise.
11552
11553 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11554
11555 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11556 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11557 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11558 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11559 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11560 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11561 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11562
11563 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * grub-core/commands/menuentry.c (options): Remove
11566 GRUB_ARG_OPTION_REPEATABLE.
11567 Reported by: Andreas Vogel
11568
11569 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11570
11571 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11572
11573 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11574
11575 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11576 error.
11577
11578 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11579
11580 Use sort -V by the idea of Georgi Georgiev.
11581
11582 * util/grub-mkconfig_lib.in (version_sort): New function.
11583 (version_test_numeric): Use version_sort.
11584
11585 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 Use submenus in grub-mkconfig.
11588
11589 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11590 * util/grub-mkconfig_lib.in (grub_quote): New function.
11591 (gettext_printf): Use gettext and not gettext_quoted to fix several
11592 messages.
11593 * util/grub.d/10_hurd.in: Use submenus.
11594 * util/grub.d/10_kfreebsd.in: Likewise.
11595 * util/grub.d/10_linux.in: Likewise.
11596 * util/grub.d/10_netbsd.in: Likewise.
11597 * util/grub.d/20_linux_xen.in: Likewise.
11598 * util/grub.d/30_os-prober.in: Likewise.
11599 * util/grub.d/10_illumos.in: Add missing quoting.
11600 * util/grub.d/10_windows.in: Likewise.
11601
11602 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 Fix menu title instability bug.
11605
11606 * grub-core/commands/menuentry.c (options): New option --id.
11607 (grub_normal_add_menu_entry): New argument id. All users updated.
11608 (grub_cmd_menuentry): Handle --id.
11609 (grub_menu_init): Accept unknown arguments.
11610 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11611 feature_menuentry_options.
11612 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11613 saved_entry.
11614 (get_entry_number): Match with id as well.
11615 * include/grub/menu.h (grub_menu_entry): New member id.
11616 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11617 * util/grub.d/00_header.in: Define menuentry_id_option.
11618 * util/grub.d/10_hurd.in: Define id.
11619 * util/grub.d/10_illumos.in: Likewise.
11620 * util/grub.d/10_kfreebsd.in: Likewise.
11621 * util/grub.d/10_linux.in: Likewise.
11622 * util/grub.d/10_netbsd.in: Likewise.
11623 * util/grub.d/10_windows.in: Likewise.
11624 * util/grub.d/20_linux_xen.in: Likewise.
11625 * util/grub.d/30_os-prober.in: Likewise.
11626
11627 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11628
11629 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11630 "scope" with "body".
11631
11632 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11633
11634 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11635 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11636 prot_size and prot_file_size.
11637
11638 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11639
11640 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11641 All users updated. If easily=1 require raid-5/-6 to be full.
11642 (is_node_readable): Likewise.
11643 (scan_devices): Scan incomplete but readable LVs at the end.
11644 (grub_diskfilter_memberlist): Pull missing devices.
11645 (insert_array): Skip scanning until device is complete or scan is
11646 done otherwise.
11647 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11648 check.
11649 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11650 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11651
11652 2012-03-03 Matthew Garrett <mjg@redhat.com>
11653 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 Avoid EFI boot services when loading Linux.
11656
11657 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11658 avoid_efi_bootservices. All users updated.
11659 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11660 argument avoid_efi_bootservices. All users updated.
11661 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11662 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11663 align, min_align, relocatable, prefered_address. All users updated.
11664 Allocate avoiding boot services if kernel is relocatable.
11665 (grub_cmd_linux): Check if kernel is relocatable.
11666 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11667 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11668 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11669 avoid_efi_boot_services.
11670 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11671 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11672 (linux_kernel_params): Likewise.
11673
11674 2012-03-03 Matthew Garrett <mjg@redhat.com>
11675 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 Use EDID on EFI.
11678
11679 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11680 datasize_out.
11681 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11682 modes. Set gop_handle.
11683 (grub_video_gop_get_edid): New function.
11684 (grub_gop_get_preferred_mode): Likewise.
11685 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11686 (grub_video_efi_gop_adapter): Set .get_edid.
11687 * include/grub/efi/edid.h: New file.
11688 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11689
11690 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * util/grub-install.in: Load efivars unconditionally.
11693
11694 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 * po/Rules-piglatin: Change suffix from .po-update-en to
11697 .po-update-en-piglatin.
11698
11699 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 Add a pig farm.
11702
11703 * po/piglatin.sed: New file.
11704 * po/en@piglatin.header: Likewise.
11705 * po/Rules-piglatin: Likewise.
11706 * po/README: Add en@piglatin to autogenerated languages.
11707
11708 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11709
11710 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11711 "Command for ...".
11712 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11713 "Check" since we don't check anything.
11714 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11715 is 64-bit one.
11716 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11717 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11718 (grub_md_sha512_real): Likewise.
11719
11720 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11721
11722 * grub-core/commands/gptsync.c: Fix typographic quoting.
11723 * grub-core/commands/ieee1275/suspend.c: Likewise.
11724 * grub-core/commands/parttool.c: Likewise.
11725 * grub-core/commands/search_wrap.c: Likewise.
11726 * grub-core/commands/videoinfo.c: Likewise.
11727 * grub-core/gfxmenu/gui_label.c: Likewise.
11728 * grub-core/hello/hello.c: Likewise.
11729 * grub-core/kern/emu/main.c: Likewise.
11730 * grub-core/net/net.c: Likewise.
11731 * grub-core/normal/menu.c: Likewise.
11732 * grub-core/normal/menu_text.c: Likewise.
11733 * grub-core/normal/misc.c: Likewise.
11734 * util/grub-editenv.c: Likewise.
11735 * util/grub-install.in: Likewise.
11736 * util/grub-kbdcomp.in: Likewise.
11737 * util/grub-mkconfig.in: Likewise.
11738 * util/grub-mknetdir.in: Likewise.
11739 * util/grub-mkrescue.in: Likewise.
11740 * util/grub-mkstandalone.in: Likewise.
11741 * util/grub-reboot.in: Likewise.
11742 * util/grub-set-default.in: Likewise.
11743 * util/grub-setup.c: Likewise.
11744 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11745
11746 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11749 * grub-core/commands/keystatus.c: Likewise.
11750 * grub-core/commands/loadenv.c: Likewise.
11751 * grub-core/commands/probe.c: Likewise.
11752 * grub-core/commands/regexp.c: Likewise.
11753 * grub-core/commands/true.c: Likewise.
11754 * grub-core/commands/videoinfo.c: Likewise.
11755 * grub-core/disk/cryptodisk.c: Likewise.
11756 * grub-core/disk/ldm.c: Likewise.
11757 * grub-core/disk/loopback.c: Likewise.
11758 * grub-core/disk/luks.c: Likewise.
11759 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11760 * grub-core/kern/disk.c: Likewise.
11761 * grub-core/kern/emu/hostdisk.c: Likewise.
11762
11763 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11766 * util/grub-install.in: Add missing quote in the comment.
11767
11768 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11771 * grub-core/commands/lsmmap.c: Likewise.
11772 * grub-core/commands/minicmd.c: Likewise.
11773 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11774 * grub-core/commands/regexp.c: Likewise.
11775 * grub-core/gdb/gdb.c: Likewise.
11776 * grub-core/term/gfxterm.c: Likewise.
11777 * util/grub-mkconfig.in: Likewise.
11778 * util/grub-mkfont.c: Likewise.
11779 * util/grub-mklayout.c: Likewise.
11780 * util/grub-mknetdir.in: Likewise.
11781 * util/grub-mkrescue.in: Likewise.
11782 * util/grub.d/30_os-prober.in: Likewise.
11783
11784 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11787 with "Direct color" and "Packed" with "Packed pixel".
11788 (grub_cmd_videoinfo): Simplify legend.
11789
11790 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11793 absolutely unclear error message.
11794
11795 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * util/grub-mkstandalone.in: Remove confusing leftover print.
11798
11799 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11800
11801 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11802 comments.
11803 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11804 (GRUB_MOD_INIT): Likewise.
11805 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11806 VGA mode.
11807 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11808 comments.
11809 * util/grub-install.in (usage): Likewise.
11810 Spell ID in whole letters.
11811 Add missing ending dot.
11812 Quote variables.
11813 * util/grub-reboot.in: Fix capitalisation.
11814 * util/grub-set-default.in: Likewise.
11815
11816 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11819 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11820 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11821 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11822 Disable -Werror for -Wdeprecated-declarations.
11823 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11824 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11825 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11826 (grub_util_get_grub_dev): Make luks handling dependent on
11827 HAVE_DEVICE_MAPPER and not __linux__.
11828 (get_win32_path): Fix format security.
11829 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11830 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11831 Don't try grub_find_zpool_from_dir.
11832 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11833 #ifdef-out paresdir.
11834
11835 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11836
11837 * util/grub-pe2elf.c (usage): Add missing noreturn.
11838 (write_section_data): Rename name to shname to avoid shadowing.
11839 (write_symbol_table): Rename name to symname to avoid shadowing.
11840 Fix write_reloc_section call.
11841
11842 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11845 to ensure that it's after the last byte of .text.
11846
11847 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 * util/ieee1275/ofpath.c (my_isdigit): New function.
11850 (trailing_digits): Use my_isdigit.
11851 (strip_trailing_digits): Likewise.
11852
11853 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11854
11855 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11856 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11857
11858 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * grub-core/kern/i386/pc/startup.S: Define __start.
11861
11862 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11863
11864 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11865 strip already transforms he format.
11866
11867 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11870
11871 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * util/grub-install.in: Add missing gettext init.
11874 * util/grub-kbdcomp.in: Likewise.
11875 * util/grub-mkconfig.in: Likewise.
11876 * util/grub-mknetdir.in: Likewise.
11877 * util/grub-mkrescue.in: Likewise.
11878 * util/grub-mkstandalone.in: Likewise.
11879 * util/grub-reboot.in: Likewise.
11880 * util/grub-set-default.in: Likewise.
11881 * util/grub.d/00_header.in: Likewise.
11882 * util/grub.d/10_hurd.in: Likewise.
11883 * util/grub.d/10_windows.in: Likewise.
11884 * util/grub.d/30_os-prober.in: Likewise.
11885 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11886
11887 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * po/Rules-swiss: Fix header comment.
11890
11891 2012-02-29 Andreas Vogel <anvoit>
11892
11893 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11894 resulted in leak of arguments.
11895
11896 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11899 reed_solomon_size const definition instead of computing it since
11900 Apple assembler doesn't support the later.
11901
11902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * gentpl.py (kernel): Rewrite Apple part.
11905
11906 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11909
11910 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11911
11912 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11913 ELF section gap.
11914 (load_image): Likewise.
11915
11916 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11917
11918 * configure.ac: Fix a typo in previous commit.
11919
11920 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 Don't add -Wl,-N on Apple platform.
11923
11924 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11925 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11926
11927 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * grub-core/Makefile.core.def (lzma_decompress): Use
11930 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
11931
11932 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11933
11934 * grub-core/genmod.sh.in: Rewrite the Apple part.
11935
11936 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11937
11938 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
11939 comparison.
11940
11941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11942
11943 * acinclude.m4 (grub_CHECK_PIC): New test.
11944 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
11945
11946 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11947
11948 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
11949 to avoid the warning.
11950
11951 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
11954 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
11955 after. All users updated.
11956
11957 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 Use the common size routine in hostfs so we can read disks as well.
11960
11961 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
11962 (grub_util_get_fd_size): ... this. Return size in bytes.
11963 All users updated.
11964 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
11965 grub_util_get_fd_size.
11966
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
11970 Add blocksize retrieval.
11971
11972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * configure.ac: Restore CFLAGS after efiemu check.
11975
11976 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
11979 Apple bug.
11980
11981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
11984
11985 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
11988 (grub_cmd_halt): Likewise.
11989
11990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
11993 for local arithmetics.
11994 Break %sp init into 2 instructions.
11995 Add 0 byte at the end.
11996
11997 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11998
11999 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12000 before loops.
12001
12002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12005 for context.
12006
12007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * grub-core/disk/ldm.c (make_vg): Init part.name.
12010 (grub_ldm_detect): Silence spurious warning.
12011 (grub_util_is_ldm): Likewise.
12012
12013 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12016 sane value to avoid a spurious warning.
12017
12018 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12019
12020 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12021 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12022
12023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12026 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12027
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12031 hardcoding the relevant info.
12032
12033 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12036 missing const qualifiers.
12037 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12038
12039 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * util/getroot.c [__APPLE__]: Add missing includes.
12042 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12043
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12047
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12049
12050 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12051 avoid conflicts.
12052
12053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054
12055 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12056
12057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12058
12059 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12060 and grub_file_close call.
12061
12062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 Add LZSS Mach-O support (needed for new xnu kernelcache).
12065
12066 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12067 * grub-core/loader/lzss.c: New file.
12068 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12069 on Mach-O open failure.
12070 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12071 Don't free cmdsXX in uncompressedXX is set.
12072 (grub_macho_file): Init new fields.
12073 New argument is_64bit. All users updated.
12074 Handle compressed. Error out if no suitable architecture is found.
12075 Don't close file.
12076 (grub_macho_open): New argument is_64bit. All users updated.
12077 * grub-core/loader/macho32.c: Add defines for new fields.
12078 * grub-core/loader/macho64.c: Likewise.
12079 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12080 (grub_macho_parse): Handle compressed.
12081 Defer actual processing if compressed.
12082 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12083 "filename". All users updated.
12084 (grub_macho_size): New argument "filename". All users updated.
12085 (grub_macho_get_entry_point): Likewise.
12086 (grub_macho_load): Handle compressed.
12087 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12088 (GRUB_MACHO_LZSS_OFFSET): New define.
12089 (grub_decompress_lzss): New proto.
12090 * include/grub/machoload.h (grub_macho_file): New fields to handle
12091 compressed.
12092 (grub_macho_contains_macho64): Remove proto.
12093 (grub_macho_contains_macho32): Likewise.
12094 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12095
12096 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12097
12098 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12099
12100 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12101
12102 Fix make dist.
12103
12104 * Makefile.am (starfield_theme_files): New var.
12105 (starfield_DATA): Use starfield_theme_files.
12106 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12107 Add bootcheck-related files.
12108 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12109 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12110 and font_char_metrics.txt.
12111 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12112 (setjmp): Add lib/ia64/longjmp.S.
12113 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12114 * po/POTFILES.in: Regenerate.
12115 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12116 DISTFILES.common.extra1.
12117 * util/devicemap.c: Removed.
12118 * grub-core/lib/i386/relocator_backward.S: Likewise.
12119 * util/import_gcry.py: Remove unused files. Add extra_dist for
12120 ChangeLog.
12121
12122 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12123
12124 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12125 grub_gettext_delete_list before changing grub_gettext_max to avoid
12126 running out of array bounds.
12127
12128 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12131 grub_vga_text_init/grub_vga_text_fini.
12132
12133 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12136
12137 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12138
12139 * configure.ac: Bump to 2.00~beta0.
12140
12141 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12142
12143 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12144 missing initialisation.
12145
12146 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12147
12148 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12149
12150 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 Support v2 xnu boot arguments.
12153
12154 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12155 New argument fsbfreq_out.
12156 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12157 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12158 be used.
12159 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12160 darwin_version.
12161 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12162 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12163 (grub_xnu_boot_params): Rename to ...
12164 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12165 (grub_xnu_boot_params_v2): New struct.
12166
12167 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12170 zeroing of CRC field before computing CRC.
12171
12172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12173
12174 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12175 Change order of allocations to decrease fragmentation.
12176
12177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12180
12181 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12182
12183 Use write-combining MTRR to speed up video with buggy BIOSes.
12184
12185 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12186 (cpuid): New define.
12187 (rdmsr): Likewise.
12188 (wrmsr): Likewise.
12189 (mtrr_base): Likewise.
12190 (mtrr_mask): Likewise.
12191 (grub_vbe_enable_mtrr_entry): New function.
12192 (grub_vbe_enable_mtrr): Likewise.
12193 (grub_vbe_disable_mtrr): Likewise.
12194 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12195 control off to BIOS.
12196 (grub_video_vbe_init): Fill mtrr.
12197 (grub_video_vbe_fini): Disable mtrr.
12198 (grub_video_vbe_get_info_and_fini): Likewise.
12199 (grub_video_vbe_setup): Enable mtrr.
12200
12201 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12202
12203 * include/grub/partition.h (grub_partition_map): Change prototype of
12204 embed to take a maximum value for nsectors.
12205 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12206 * include/grub/fs.h (grub_fs): Likewise.
12207 * grub-core/partmap/msdos.c (embed_signatures): New array.
12208 (pc_partition_map_embed): Check for and avoid sectors matching any
12209 of the signatures in embed_signatures, up to max_nsectors.
12210 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12211 returned sector map to max_nsectors.
12212 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12213 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12214 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12215 * util/grub-setup.c (setup): Allow for the embedding area being
12216 split into multiple blocklists. Tell dest_partmap->embed the
12217 maximum number of sectors we care about.
12218
12219 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12222 Specify blocklist_install and reserver_first_sector for all fs.
12223 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12224 blocklists.
12225
12226 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * util/grub-install.in: Clarify strings.
12229 Fix source dir check.
12230
12231 2012-02-27 Richard Laager <rlaager@wiktel.com>
12232
12233 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12234 "zfs" and "fuse.zfs" as synonyms.
12235
12236 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * configure.ac: Put platform and target_cpu substitutions back since
12239 they are used for directories.
12240
12241 2012-02-27 Richard Laager <rlaager@wiktel.com>
12242 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12243
12244 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12245 * util/grub.d/20_linux_xen.in: Likewise.
12246
12247 2012-02-27 Richard Laager <rlaager@wiktel.com>
12248
12249 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12250 with full paths.
12251
12252 2012-02-27 Richard Laager <rlaager@wiktel.com>
12253
12254 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12255 unescape.
12256
12257 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12258
12259 Don't use insecure popen in getroot.
12260
12261 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12262 (exec_pipe): ... here.
12263 (find_root_devices_from_poolname): Use exec_pipe.
12264
12265 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 Remove platform and target_cpu replacement.
12268
12269 * configure.ac: Remove platform and target_cpu substitutions.
12270 * tests/util/grub-shell.in: Use modinfo.
12271 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12272 explicitly.
12273
12274 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275
12276 Autodetect platform in grub-install but allow override.
12277
12278 * util/grub-install.in: Autodetect platform. Support --target and
12279 --directory. Read platform from modinfo.sh.
12280
12281 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 Support btrfs multi-volume probe.
12284
12285 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12286 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12287 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12288 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12289 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12290 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12291 grub_find_root_devices_from_btrfs if on btrfs.
12292
12293 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 Remove any awareness of *.c util files about target.
12296
12297 * Makefile.util.def (grub-setup): Split to ...
12298 (grub-bios-setup): ... and this.
12299 (grub-sparc64-setup): ... and this.
12300 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12301 * docs/man/grub-setup.h2m: Split into ...
12302 * docs/man/grub-sparc64-setup.h2m: ... this.
12303 * docs/man/grub-bios-setup.h2m: ... and this.
12304 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12305 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12306 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12307 (grub_target_addr_t): Remove.
12308 (grub_target_size_t): Remove.
12309 (grub_target_ssize_t): Remove.
12310 * util/grub-install.in: Use new grub-*-setup.
12311 * util/grub-mkimagexx.c (Elf_Word): New define.
12312 (Elf_Half): Likewise.
12313 (Elf_Section): Likewise.
12314 (ELF_ST_TYPE): Likewise.
12315 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12316 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12317
12318 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12319
12320 Replace grub_target_addr with more appropriate types.
12321
12322 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12323 grub_target_addr with grub_addr.
12324 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12325 grub_target_addr with grub_port.
12326 (grub_cmd_write): Likewise.
12327 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12328 grub_target_addr with grub_addr.
12329 (grub_cmd_write): Likewise.
12330 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12331
12332 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12335 const qualifier for vendor_guid.
12336
12337 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12338
12339 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12340 const qualifier.
12341 (efiemu_memequal): Likewise.
12342 (find_variable): Likewise.
12343
12344 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12345
12346 Fix missing console prototype on qemu-mips.
12347
12348 * include/grub/mips/qemu_mips/console.h: New file.
12349
12350 2012-02-27 Matthew Garrett <mjg@redhat.com>
12351 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12354 * include/grub/efi/efi.h: Likewise.
12355 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12356 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12357 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12358 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12359 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12360 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12361
12362 2012-02-27 Matthew Garrett <mjg@redhat.com>
12363
12364 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12365
12366 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12367
12368 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12369 error.
12370
12371 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12372
12373 * configure.ac: Remove inappropriate use of program_transform_name
12374 on grubdir and bootdir but allow explicit specification of those
12375 variables.
12376
12377 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12378
12379 * util/grub-mknetdir.in (grub_prefix): Removed.
12380 (subdir): Use @bootdirname@ and @grubdirname@.
12381
12382 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12385
12386 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12387
12388 * po/POTFILES.in: Regenerated.
12389
12390 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12391
12392 Remove improper use of program_transform_name on pkglibrootdir.
12393
12394 * configure.ac (pkglibrootdir): Removed.
12395 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12396 * util/grub-mkimage.c: Likewise.
12397
12398 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12399
12400 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12401 warning.
12402
12403 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * util/grub-install.in: Use file identifier if no UUID is available
12406 or user explicitly prompted for it.
12407
12408 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12409
12410 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12411 (freebsd_get_zfs): New function.
12412 (grub_freebsd_boot): Pass zfs UUID.
12413 (grub_cmd_freebsd): Set zfs UUID.
12414
12415 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12418 pkglibrootdir.
12419
12420 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12421
12422 Add configure flag to control libzfs integration.
12423
12424 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12425
12426 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12427
12428 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12429 device.
12430 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12431 small devices.
12432
12433 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12436 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12437 be used on non-modules.
12438
12439 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12440 Rename to grub_boot_init.
12441 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12442 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12443 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12444 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12445 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12446 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12447 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12448 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12449 includes.
12450 (grub_machine_init): Remove empty inits.
12451 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12452 includes.
12453 (grub_machine_init): Remove empty inits.
12454 * grub-core/term/arc/console.c: Remove explicit proto.
12455 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12456 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12457 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12458 grub_at_keyboard_fini.
12459 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12460 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12461 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12462 grub_gfxterm_fini.
12463 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12464 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12465 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12466 grub_vgatext_fini.
12467 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12468 * grub-core/term/serial.c (GRUB_MOD_INIT)
12469 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12470 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12471 grub_serial_fini.
12472 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12473 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12475 grub_terminfo_fini.
12476 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12477 (GRUB_MOD_FINI): Likewise.
12478 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12479 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12480 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12481 grub_video_radeon_fuloong2e_fini.
12482 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12483 [LOONGSON]: Rename to grub_video_sis315pro_init.
12484 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12485 grub_video_sis315pro_fini.
12486 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12487 [LOONGSON]: Rename to grub_video_sm712_init.
12488 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12489 grub_video_sm712_fini.
12490 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12491 (grub_at_keyboard_fini): Likewise.
12492 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12493 Don't declare grub_{modname}_init.
12494 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12495 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12496 New proto.
12497 (grub_keylayouts_fini) [!EMU]: Likewise.
12498 * include/grub/serial.h (grub_serial_init) [!EMU]:
12499 New proto.
12500 (grub_serial_fini) [!EMU]: Likewise.
12501 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12502 New proto.
12503 (grub_terminfo_fini) [!EMU]: Likewise.
12504 * include/grub/video.h (grub_font_init) [!EMU]:
12505 New proto.
12506 (grub_font_fini) [!EMU]: Likewise.
12507 (grub_gfxterm_init) [!EMU]: Likewise.
12508 (grub_gfxterm_fini) [!EMU]: Likewise.
12509 (grub_video_sm712_init) [!EMU]: Likewise.
12510 (grub_video_sm712_fini) [!EMU]: Likewise.
12511 (grub_video_sis315pro_init) [!EMU]: Likewise.
12512 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12513 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12514 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12515
12516 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 Make nand a prefix for nand devices.
12519
12520 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12521
12522 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12523
12524 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12525 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12526
12527 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12528
12529 * include/grub/env.h (grub_env_find): Remove prototype.
12530 * grub-core/kern/env.c (grub_env_find): Make static.
12531 (grub_env_set): Remove useless set.
12532
12533 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12534
12535 * grub-core/kern/i386/realmode.S: Remove useless align.
12536
12537 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12538
12539 * include/grub/dl.h (grub_dl_load_file): Don't export.
12540
12541 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12544 grub_dprintf.
12545
12546 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12549 grub_errors.
12550 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12551 not reloading whole superblock but only the part which is really needed.
12552 Remove useless grub_errors.
12553 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12554 grub_errors.
12555
12556 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 Don't export grub_get_rtc.
12559
12560 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12561 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12562
12563 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12566
12567 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12568
12569 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12570 argument since it can be deduced from diskfilter. All users updated.
12571
12572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12573
12574 Remove prio_list.
12575
12576 * include/grub/list.h (grub_prio_list): Removed.
12577 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12578 GRUB_COMMAND_PRIO_MASK.
12579 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12580 GRUB_COMMAND_FLAG_ACTIVE.
12581 (grub_prio_list_insert): Removed.
12582 (grub_prio_list_remove): Likewise.
12583 (GRUB_AS_PRIO_LIST): Likewise.
12584 (GRUB_AS_PRIO_LIST_P): Likewise.
12585 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12586 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12587 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12588 * grub-core/kern/command.c (grub_register_command_prio): Inline
12589 the prio_list code.
12590 (grub_unregister_command): Likewise.
12591
12592 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 Fix interrupt mixup from previous commit.
12595
12596 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12597 (grub_realidt): New var.
12598 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12599 Load idt.
12600 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12601 New declaration.
12602 (grub_relocator16_boot): Set grub_relocator16_idt.
12603 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12604 (LOCAL(realidt)): ... this.
12605 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12606 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12607 (grub_realidt): New variable.
12608
12609 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12612 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12613 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12614 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12615 Gettextize.
12616 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12617 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12618 * po/POTFILES.in: Regenerate.
12619
12620 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12623 errors.
12624
12625 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12626
12627 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12628 \0.
12629 (add_length): Likewise.
12630
12631 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12632 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12633
12634 GDB serial and backtrace support.
12635
12636 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12637 (prot_to_real): Likewise.
12638 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12639 * grub-core/Makefile.core.def (backtrace): New module.
12640 (gdb): Likewise.
12641 * grub-core/gdb/cstub.c: New file.
12642 * grub-core/gdb/gdb.c: Likewise.
12643 * grub-core/gdb/i386/idt.c: Likewise.
12644 * grub-core/gdb/i386/machdep.S: Likewise.
12645 * grub-core/gdb/i386/signal.c: Likewise.
12646 * grub-core/lib/i386/backtrace.c: Likewise.
12647 * grub-core/lib/backtrace.c: Likewise.
12648 * include/grub/backtrace.h: Likewise.
12649 * include/grub/gdb.h: Likewise.
12650 * include/grub/i386/gdb.h: Likewise.
12651
12652 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12655 New function.
12656 (add_length): Likewise.
12657 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12658 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12659 proto.
12660 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12661 __argp_get_display_len.
12662
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 $"..." support in scripts.
12666
12667 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12668 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12669 * grub-core/script/yylex.l: Likewise.
12670 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12671 value.
12672
12673 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 * gentpl.py: Remove obsolete pkglib_DATA handling.
12676
12677 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12678
12679 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12680 mailing list.
12681
12682 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12683 * util/grub-kbdcomp.in: Likewise.
12684 * util/grub-mkconfig.in: Likewise.
12685 * util/grub-mkconfig_lib.in: Likewise.
12686 * util/grub-mknetdir.in: Likewise.
12687 * util/grub-mkrescue.in: Likewise.
12688 * util/grub-mkstandalone.in: Likewise.
12689 * util/grub-reboot.in: Likewise.
12690 * util/grub-set-default.in: Likewise.
12691 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12692
12693 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12694
12695 Remove GRUB_PREFIX.
12696
12697 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12698 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12699 used for backward compatibility.
12700
12701 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12702
12703 Add new all_video module.
12704
12705 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12706 * grub-core/Makefile.core.def (all_video): New module.
12707 * grub-core/genmoddep.awk: Generate dependency of all_video from
12708 video.lst.
12709 * grub-core/lib/fake_module.c: New file.
12710 * grub-core/normal/main.c (features): Add feature_all_video_module.
12711 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12712 don't do explicit search again.
12713 insmod all_video in load_video if available.
12714
12715 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 Another round of string clarification and adding TRANSLATORS comments.
12718
12719 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12722
12723 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12726 to grub_ssize_t.
12727 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12728 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12729
12730 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12731
12732 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12733 trailing newline implicitly. All users updated.
12734
12735 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736
12737 Implement serial on IEEE1275 and EFI.
12738
12739 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12740 on emu. Mention arc and emu as the only platforms without serial
12741 support.
12742 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12743 ieee1275 platforms.
12744 * grub-core/term/efi/serial.c: New file.
12745 * grub-core/term/ieee1275/serial.c: Likewise.
12746 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12747 specification if no ns8250 driver is available.
12748 (grub_cmd_serial): Likewise.
12749 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12750 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12751 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12752 (grub_efi_parity_type_t): New type.
12753 (grub_efi_stop_bits_t): Likewise.
12754 (grub_efi_serial_io_interface): New struct.
12755 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12756 available for all interfaces.
12757 Add EFI and IEEE1275 fields.
12758 (grub_ofserial_init): New proto.
12759 (grub_efiserial_init): Likeiwse.
12760 * util/grub.d/00_header.in: Don't check for the presence of serial
12761 module.
12762
12763 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12764
12765 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12766 name as if it was an alias.
12767
12768 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12769
12770 * grub-core/commands/lsacpi.c (options): Fix typo.
12771
12772 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 Convert grub-emu to argp.
12775
12776 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12777 emu.
12778 * util/argp_common.c: Rename to ...
12779 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12780 Add missing includes.
12781 * grub-core/kern/emu/main.c: Convert to argp.
12782 * po/POTFILES.in: Regenerate.
12783 * util/grub-install.in (usage): Make first letter lowcase in messages
12784 for uniformity.
12785 * util/grub-setup.c (options): Likewise.
12786
12787 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12788
12789 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12790 Put back accidently commented-out code.
12791
12792 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12793
12794 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12795 loop check using Brent algorithm.
12796 (grub_hfsplus_btree_search): Likewise.
12797
12798 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12799
12800 * util/grub-install.in: Fix usage of wrong device for PreP install.
12801
12802 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * conf/Makefile.common (CFLAGS_GNULIB): Add
12805 -Wno-unsafe-loop-optimizations.
12806 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12807 on tools.
12808 * grub-core/commands/legacycfg.c: Add pragma to skip
12809 -Wunsafe-loop-optimizations.
12810 (check_password_md5_real): Fix loop counter type.
12811 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12812 reading.
12813 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12814 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12815 loop condition.
12816 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12817 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12818 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12819 condition.
12820 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12821 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12822 avoid possible infinite loops.
12823 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12824 and -Wunsafe-loop-optimizations.
12825 * grub-core/script/yylex.l: Likewise.
12826 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12827 (print_glyphs): Avoid infinite loops.
12828 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12829
12830 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12831
12832 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12833 to avoid infinite loop.
12834 (disp_acpi_rsdt_table): Likewise.
12835
12836 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 * grub-core/font/font.c (grub_font_load): Add support for default
12839 path for fonts ($prefix/fonts).
12840 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12841 for checking if string is a path.
12842 * grub-core/normal/main.c (features): Add feature_default_font_path.
12843 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12844 * util/grub.d/00_header.in: Use default directory if possible.
12845 * util/grub-install.in: Install unicode.pf2.
12846
12847 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12848
12849 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12850 * po/Rules-swiss: New file.
12851 * po/swiss.sed: Likewise.
12852
12853 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 * grub-core/fs/btrfs.c (find_device): Fix typos.
12856 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12857 * util/grub-mkrelpath.c (argp_parser): Likewise.
12858 Reported by: Yuri Chornoivan.
12859
12860 2012-02-23 Dalet Omega <daletomega@gmail.com>
12861
12862 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12863 for usual informative messages.
12864
12865 2012-02-23 Dalet Omega <daletomega@gmail.com>
12866
12867 Starfield theme.
12868
12869 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12870 * conf/Makefile.common: Define starfielddir.
12871 * configure.ac: Configure starfield.
12872 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12873 * themes/starfield/README: Likewise.
12874 * themes/starfield/blob_w.png: Likewise.
12875 * themes/starfield/boot_menu_c.png: Likewise.
12876 * themes/starfield/boot_menu_e.png: Likewise.
12877 * themes/starfield/boot_menu_n.png: Likewise.
12878 * themes/starfield/boot_menu_ne.png: Likewise.
12879 * themes/starfield/boot_menu_nw.png: Likewise.
12880 * themes/starfield/boot_menu_s.png: Likewise.
12881 * themes/starfield/boot_menu_se.png: Likewise.
12882 * themes/starfield/boot_menu_sw.png: Likewise.
12883 * themes/starfield/boot_menu_w.png: Likewise.
12884 * themes/starfield/slider_c.png: Likewise.
12885 * themes/starfield/slider_n.png: Likewise.
12886 * themes/starfield/slider_s.png: Likewise.
12887 * themes/starfield/src/blob_nw.xcf: Likewise.
12888 * themes/starfield/src/bootmenu/: Likewise.
12889 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12890 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12891 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12892 * themes/starfield/src/slider_c.xcf: Likewise.
12893 * themes/starfield/src/slider_n.xcf: Likewise.
12894 * themes/starfield/src/slider_s.xcf: Likewise.
12895 * themes/starfield/src/terminalbox/: Likewise.
12896 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12897 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12898 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12899 * themes/starfield/starfield.png: Likewise.
12900 * themes/starfield/terminal_box_c.png: Likewise.
12901 * themes/starfield/terminal_box_e.png: Likewise.
12902 * themes/starfield/terminal_box_n.png: Likewise.
12903 * themes/starfield/terminal_box_ne.png: Likewise.
12904 * themes/starfield/terminal_box_nw.png: Likewise.
12905 * themes/starfield/terminal_box_s.png: Likewise.
12906 * themes/starfield/terminal_box_se.png: Likewise.
12907 * themes/starfield/terminal_box_sw.png: Likewise.
12908 * themes/starfield/terminal_box_w.png: Likewise.
12909 * themes/starfield/theme.txt: Likewise.
12910
12911 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 * util/grub.d/00_header.in: Add missing export theme.
12914
12915 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12918 already included.
12919 Reported by: Eren D.
12920
12921 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 * conf/Makefile.common (grubdatadir): Removed.
12924 (Makefile.am): Move eveything grubdata to pkgdata.
12925
12926 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12927
12928 * grub-core/commands/acpihalt.c (get_sleep_type):
12929 Remove unused variable.
12930
12931 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
12934 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
12935 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
12936 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
12937 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
12938 i18n with gettext no-op.
12939 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
12940 GRUB_ACPI_OPCODE_STRING_CONST.
12941 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
12942 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
12943
12944 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * po/POTFILES.in: Regenerate.
12947
12948 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12949
12950 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
12951 -Wno-error=missing-noreturn.
12952
12953 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
12956 condition to avoid possibly infinite loops.
12957 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
12958 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
12959
12960 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
12963 condition to avoid possibly infinite loops.
12964
12965 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
12968 on show_error.
12969
12970 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
12973
12974 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
12977
12978 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 * util/bin2h.c (usage): Add missing attribute noreturn.
12981
12982 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12983
12984 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
12985 if the size isn't divisible by 512.
12986
12987 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12988
12989 Make list_push and list_remove functions rather than inline functions
12990 to decrease size and avoid aliasing violations.
12991
12992 * include/grub/list.h (grub_list_push): Move to ...
12993 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
12994 * include/grub/list.h (grub_list_remove): Move to ...
12995 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
12996
12997 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12998
12999 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13000 and -Wunused-result.
13001
13002 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13005 Reported by: Seth Goldberg
13006
13007 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13010
13011 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13012
13013 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13014 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13015 command line.
13016 * docs/grub.texi (Simple configuration): Document
13017 GRUB_CMDLINE_GNUMACH.
13018
13019 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * conf/Makefile.common (platform_SCRIPTS): New variable.
13022 (platform_PROGRAMS): Likewise.
13023 * gentpl.py: Mark *,module and *.image for install.
13024 * grub-core/gdb_grub.in: Add a notice of expected environment.
13025 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13026 (gmodule.pl): Likewise.
13027
13028 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 Replace grub_checkkey with grub_getkey_noblock.
13031
13032 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13033 (grub_getkey_noblock): ... this. All users updated.
13034
13035 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * grub-core/kern/emu/console.c: Move to ...
13038 * grub-core/term/emu/console.c: ...here.
13039 (grub_ncurses_getkey): Fix return value if no key is detected.
13040
13041 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13044 (grub_unit_test_fini): Likewise.
13045 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13046
13047 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * include/grub/test.h (GRUB_UNIT_TEST)
13050
13051 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13052
13053 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13054 Better error handling.
13055 (grub_script_return): Likewise.
13056 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13057
13058 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13061 rimplicit redifinition.
13062
13063 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13066 GRUB.
13067
13068 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13071 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13072 prompt here.
13073
13074 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13077 as GRUB_ERR_BUG. Don't malloc if no device is available.
13078
13079 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13080
13081 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13082 Mark calling with invalid term as GRUB_ERR_BUG.
13083
13084 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13087 packets rather than raising an error.
13088
13089 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13090
13091 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13092 in if.
13093
13094 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13097 diagnostic to dprintf.
13098 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13099
13100 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13101
13102 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13103 device name.
13104
13105 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13108 (grub_ntfs_iterate_dir): Likewise.
13109
13110 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13111
13112 Efiemu stylistic fixes and gettext.
13113
13114 * grub-core/efiemu/i386/loadcore32.c
13115 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13116 * grub-core/efiemu/i386/loadcore64.c
13117 (grub_arch_efiemu_relocate_symbols64): Likewise.
13118 * grub-core/efiemu/i386/pc/cfgtables.c
13119 (grub_machine_efiemu_init_tables): Likewise.
13120 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13121 (grub_efiemu_loadcore_initXX): Add a filename argument.
13122 All users updated.
13123 Improved error message.
13124 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13125 Add a filename argument.
13126 All users updated.
13127 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13128 Reclassify double relocation as GRUB_ERR_BUG.
13129
13130 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13133 handling.
13134
13135 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13138 on partition.
13139
13140 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13141
13142 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13143
13144 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 Improve string. Gettextize.
13147
13148 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13151 utils.
13152 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13153
13154 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13157 [GRUB_UTIL]: New function.
13158 (insert_array) [GRUB_UTIL]: Store partmaps.
13159 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13160 partmaps.
13161 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13162 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13163 (probe_abstraction): Print diskfilter and not raid.
13164 Reported by: Lennart Sorensen
13165
13166 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13169 * util/grub-mkimagexx.c (MASK3): New define.
13170 (add_value_to_slot_20b): Use MASK3.
13171 (add_value_to_slot_21): Likewise.
13172 (relocate_addresses): Fix format specification.
13173 (load_image): Explicitly init symtab_section.
13174
13175 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13178 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13179
13180 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13183 on powerpc.
13184 Reported by: Lennart Sorensen
13185
13186 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13187
13188 * gentpl.py: Add missing license header.
13189 * docs/grub.texi: Update copyright year.
13190
13191 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13192
13193 Source grub-mkconfig_lib from the build directory at build time.
13194 Suggested by: Vladimir Serbinenko.
13195
13196 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13197 * util/grub-install.in: Define pkgdatadir if not already set, and source
13198 grub-mkconfig_lib from there.
13199 * util/grub-kbdcomp.in: Likewise.
13200 * util/grub-mkconfig.in: Likewise.
13201 * util/grub-mknetdir.in: Likewise.
13202 * util/grub-mkrescue.in: Likewise.
13203 * util/grub-mkstandalone.in: Likewise.
13204 * util/grub-reboot.in: Likewise.
13205 * util/grub-set-default.in: Likewise.
13206 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13207
13208 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 Increase warning level.
13211
13212 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13213 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13214 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13215 (TARGET_CFLAGS): Likewise.
13216 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13217 * grub-core/Makefile.core.def (decompressor_xz): Add
13218 -Wno-unreachable-code.
13219 (normal): Add -Wno-redundant-decls.
13220 (xzio): Add -Wno-unreachable-code.
13221 (lzopio): Add -Wno-redundant-decls -Wno-error.
13222 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13223 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13224 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13225 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13226 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13227 * grub-core/kern/i386/coreboot/init.c: Add exception to
13228 -Wsuggest-attribute=noreturn.
13229 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13230 * grub-core/kern/ia64/dl_helper.c: Likewise.
13231 * grub-core/kern/mips/dl.c: Likewise.
13232 * grub-core/kern/sparc64/dl.c: Likewise.
13233 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13234 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13235 (memcmp): Likewise.
13236 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13237 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13238 * grub-core/loader/mips/linux.c: Likewise.
13239 * grub-core/loader/multiboot_elfxx.c: Likewise.
13240 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13241 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13242 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13243 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13244 fixme.
13245 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13246 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13247 Fix prototype.
13248
13249 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13250
13251 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13252 address.
13253
13254 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13257 Avoid improper use of strings.
13258 (grub_cmd_legacy_initrdnounzip): Likewise.
13259
13260 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13263 attribute.
13264 (grub_util_info): Likewise.
13265 (grub_util_error): Likewise.
13266
13267 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13268
13269 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13270 * util/grub-fstest.c (fstest): Likewise.
13271
13272 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13273
13274 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13275 (grub_md_sha512_real): Likewise.
13276 (grub_util_get_geli_uuid): Likewise.
13277 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13278 (grub_util_biosdisk_open): Fix format specification.
13279 Respect format security.
13280 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13281 (xrealloc): Likewise.
13282 (xasprintf): Likewise.
13283
13284 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * util/import_gcry.py: Include grub/crypto.h in init.c.
13287
13288 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13289
13290 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13291 (generate_image): Make prefix a const char *.
13292 Fix format specifications. Respect format security.
13293 Avoid void * arithmetics.
13294 Avoid shadowing.
13295 (argp_parser): Remove unused variable. Respect format security.
13296 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13297 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13298 (count_funcs): Remove unused variable.
13299 (relocate_addresses): Fix format specification.
13300 Disable x86-64 with elf32. Remove unused variables.
13301 (add_fixup_entry): Avoid shadowing.
13302 (make_reloc_section): Fix format specification.
13303 Use assert.
13304 (locate_sections): Fix format specifications.
13305 (load_image): Avoid shadowing.
13306
13307 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13308
13309 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13310 Fix format specifications. Respect format security.
13311 Don't translate already translated grub_errmsg.
13312 (argp_parser): Remove unused variable
13313
13314 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13317
13318 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13321 (main): Likewise. Use xmalloc. Respect format security.
13322
13323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13326 a const char *.
13327 (argp_parser): Remove unused variable.
13328
13329 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13330
13331 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13332 (add_pixel): Make static.
13333 (add_font): Likewise.
13334 (write_string_section): Make name and str a const char *.
13335 (write_be16_section): Make name a const char *.
13336 (print_glyphs): Make static.
13337 (write_font_ascii_bitmap): Likewise.
13338 (write_font_width_spec): Likewise.
13339 (write_font_pf2): Likewise.
13340 (argp_parser): Remove unused variable.
13341 Respect format security.
13342 (main): Avoid shadowing. Respect format security.
13343
13344 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 * util/grub-editenv.c (argp_parser): Make static.
13347 (create_envblk_file): Use xmalloc.
13348 (open_envblk_file): Likewise.
13349 Resepect format security.
13350 (set_variables): Respect format security.
13351
13352 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13353
13354 * util/getroot.c (grub_find_device): Respect format security.
13355 (get_mdadm_uuid): Remove unused variable.
13356 (grub_util_pull_device): Dont call gettext on already translated
13357 grub_errmsg.
13358 (find_system_device): Remove unused variable.
13359 (grub_util_get_grub_dev): Likewise.
13360 (grub_make_system_path_relative_to_its_root): Respect format security.
13361
13362 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13363
13364 * util/grub-fstest.c (execute_command): Make first argument
13365 a const char *.
13366 (read_file): Avoid shadowing.
13367 Reuse underlying error message if device open fails.
13368 (cmd_cmp): Respect format security.
13369 (root): Make const char *.
13370 (fstest): Remove args argument and use global copy.
13371 Respect format security.
13372 (argp_parser): Make static.
13373 (main): Make default_root const char *.
13374
13375 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13376
13377 * util/grub-mount.c (root): Make const char *.
13378 (execute_command): Make first argument a const char *.
13379 (fuse_init): Respect format security.
13380 (argp_parser): Make static. Remove unused variable.
13381 (main): Make default_root a const char *.
13382 Respect format security.
13383
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * util/grub-probe.c (probe): Don't call gettext on already translated
13387 grub_errmsg.
13388 Remove unused variables.
13389 (argp_parser): Remove unused variable.
13390
13391 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13392
13393 * util/grub-script-check.c (argp_parser): Remove unused variable.
13394 (main): Rename read to curread to avoid shadowing.
13395
13396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 * util/misc.c (grub_util_write_image_at): Fix format specification.
13399 (grub_util_write_image): Likewise.
13400 (grub_script_execute_argument_to_string): Removed (unused).
13401 (grub_script_execute_menuentry): Likewise.
13402 (grub_putchar): Likewise.
13403
13404 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13405
13406 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13407 (FUNCTION) [GRUB_UTIL]: Likewise.
13408 (VARIABLE) [GRUB_UTIL]: Likewise.
13409
13410 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13413 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13414
13415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13418 buffer.
13419
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13423 (LzmaEnc_SaveState): Removed (unused).
13424 (LzmaEnc_RestoreState): Likewise.
13425 (LzmaEnc_InitPriceTables): Made static.
13426 (LzmaEnc_Construct): Likewise.
13427 (LzmaEnc_FreeLits): Likewise.
13428 (LzmaEnc_Destruct): Likewise.
13429 (LzmaEnc_Init): Likewise.
13430 (LzmaEnc_InitPrices): Likewise.
13431 (LzmaEnc_Finish): Likewise.
13432 (LzmaEnc_PrepareForLzma2): Removed (unused).
13433 (LzmaEnc_MemPrepare): Likewise.
13434 (LzmaEnc_GetNumAvailableBytes): Likewise.
13435 (LzmaEnc_GetCurBuf): Likewise.
13436 (LzmaEnc_CodeOneMemBlock): Likewise.
13437
13438 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13439
13440 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13441 (grub_util_ldm_embed): Likewise.
13442
13443 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13444
13445 * util/grub-editenv.c (print_var): Rename name to varname to
13446 avoid shadowing.
13447 (main): Rename index to curindex to avoid shadowing.
13448 Make filename a const char *.
13449
13450 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13451
13452 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13453 to arg_getline to avoid shadowing.
13454
13455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13458 disk_ to avoid shadowing.
13459
13460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13463 curindex to avoid shadowing.
13464 Make static.
13465 (MatchFinder_GetNumAvailableBytes): Make static.
13466
13467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13470 avoid shadowing.
13471
13472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13475 argument from encrypt to do_encrypt to avoid shadowing.
13476
13477 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13480 incorrect nesting of #if's.
13481
13482 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13483
13484 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13485 checks which are always false on some platforms.
13486 (grub_cmd_lsacpi): Likewise.
13487 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13488 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13489 Likewise.
13490
13491 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13494 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13495
13496 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13499 re_dfa_t to avoid breaking alignment invariants.
13500 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13501 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13502
13503 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13506 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13507
13508 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13511 Fix declaration.
13512
13513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13516 conserve alignment invariants.
13517 (grub_ehci_ehcc_read16): Likewise.
13518 (grub_ehci_oper_read32): Likewise.
13519 (grub_ehci_oper_write32): Likewise.
13520 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13521 Conserve alignment invariants.
13522
13523 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13526 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13527 declarations.
13528
13529 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13532 Remove unused variable.
13533
13534 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13537 Remove set in if.
13538
13539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 * include/grub/net.h: Remove double declarations.
13542
13543 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 Remove "payload" command in ia64 Linux loader since I couldn't
13546 find any evidence of it being used for anything.
13547 Replace "relocate" command with an environment variable
13548
13549 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13550 fields.
13551 (ia64_boot_payload): Removed.
13552 (last_payload): Likewise.
13553 (RELOCATE_OFF): Likewise.
13554 (RELOCATE_ON): Likewise.
13555 (RELOCATE_FORCE): Likewise.
13556 (relocate): Likewise.
13557 (free_pages): Don't free payloads.
13558 (grub_load_elf64): Use common error messages.
13559 Use "linux_relocate" variable.
13560 Increase the space after boot_params.
13561 (grub_cmd_payload): Removed.
13562 (grub_cmd_relocate): Likewise.
13563 (grub_cmd_fpswa): Improve messages.
13564 (cmd_payload): Removed.
13565 (cmd_relocate): Likewise.
13566 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13567 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13568
13569 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13570
13571 Convert UHCI to DMA framework.
13572
13573 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13574 (grub_uhci_pci_iter): Fill new members
13575 (grub_alloc_td): Use P2V and V2P functions.
13576 (grub_free_queue): Likewise.
13577 (grub_alloc_qh): Likewise.
13578 (grub_uhci_setup_transfer): Likewise.
13579 (grub_uhci_check_transfer): Likewise.
13580
13581 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13582
13583 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13584 Remove assignment in if while on it.
13585
13586 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13587
13588 * util/grub-mkstandalone.in: Fix modules directory.
13589
13590 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13591
13592 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13593 on i386-pc target.
13594 (argp_parser): Accept "auto" as compression specification.
13595
13596 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13597
13598 Fix `help' with unloaded modules.
13599
13600 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13601 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13602 (grub_dyncmd_dispatcher): Small stylistic fix.
13603 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13604 explicit help is requested.
13605
13606 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13609 Explicitly init restart while on it.
13610
13611 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13612
13613 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13614 uninited variable.
13615
13616 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13617
13618 * util/grub-mknetdir.in: Use . rather than source for POSIX
13619 compatibility.
13620
13621 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13624
13625 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13628 variable.
13629
13630 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13633 without quotes.
13634
13635 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13638
13639 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13642 iteration of partitions.
13643
13644 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13645
13646 Improve gettext support. Stylistic fixes and error handling fixes while
13647 on it.
13648
13649 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13650
13651 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13652 part. Instead setup the correct stack in RM.
13653 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13654 for stack.
13655 * include/grub/i386/relocator_private.h: New file.
13656
13657 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13660 argument.
13661 * util/grub-fstest.c (options): Add missing DEVICE part.
13662
13663 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13664
13665 Clarify and unify messages.
13666
13667 * grub-core/commands/hashsum.c (options): Unify messages.
13668 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13669 literal-only message as translatable.
13670 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13671 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13672 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13673 commands.
13674 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13675 key, not the key used to unlock. Clarify what it's used for.
13676 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13677 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13678 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13679 * util/grub-editenv.c (options): Unify "verbose" message.
13680 * util/grub-fstest.c (read_file): Unify error message.
13681 (fstest): Add quotes around commands.
13682 (options): Unify "verbose" message.
13683 * util/grub-install.in: Add quotes around variable name.
13684 * util/grub-kbdcomp.in: Unify error message.
13685 * util/grub-mkfont.c (main): Likewise.
13686 * util/grub-mkrescue.in: Likewise.
13687 * util/grub-mklayout.c (options): Unify "verbose" message.
13688 * util/grub-mkstandalone.in: Unify help and verbose messages.
13689 * util/grub-mount.c (options): Unify "verbose" message.
13690 * util/grub-probe.c (options): Likewise.
13691 * util/grub-script-check.c (options): Likewise.
13692 * util/grub-setup.c (setup): Unify no-terminator message.
13693 (options): Use DEVICE and not DEV.
13694 Unify "verbose" message.
13695 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13696
13697 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 Improve and unify messages.
13700
13701 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13702 name. All users updated.
13703 Print filename in error.
13704 (read_device_map): Print filename in error.
13705 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13706 (grub_util_get_os_disk): Likewise.
13707 (grub_util_biosdisk_get_grub_dev): Likewise.
13708 (grub_util_check_block_device): Likewise.
13709 (grub_util_check_char_device): Likewise.
13710 (grub_make_system_path_relative_to_its_root): Likewise.
13711 * util/grub-editenv.c (create_envblk_file): Likewise.
13712 (open_envblk_file): Likewise.
13713 (write_envblk): Likewise.
13714 * util/grub-fstest.c (cmd_cp): Likewise.
13715 (cmd_cat): Likewise.
13716 (cmd_cmp): Likewise.
13717 * util/grub-menulst2cfg.c (main): Likewise.
13718 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13719 (write_font_width_spec): Likewise.
13720 (write_font_pf2): Likewise.
13721 * util/grub-mkimage.c (generate_image): New argument outname.
13722 All users updated.
13723 Remove unreacheable message.
13724 (options): Unify messages.
13725 (help_filter): Likewise.
13726 * util/grub-mklayout.c (usage): Removed (unused).
13727 (main): Print filename in error.
13728 * util/grub-mkrescue.in: Fix wrong quoting.
13729 * util/grub-setup.c (setup): Print filename in error.
13730 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13731 (check_sas): Likewise.
13732 * util/misc.c (grub_util_get_fp_size): Removed.
13733 (grub_util_get_image_size): Print filename in error.
13734 (grub_util_read_at): Removed.
13735 (grub_util_read_image): Print filename in error.
13736 (grub_util_load_image): Likewise.
13737 (grub_util_write_image_at): New argument filename. All users updated.
13738 Print filename in error.
13739 (grub_util_write_image): New argument filename. All users updated.
13740 Print filename in error.
13741 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13742 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13743
13744 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13745
13746 * grub-core/Makefile.core.def (pxechain): New module.
13747 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13748 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13749 function.
13750 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13751 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13752
13753 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13754
13755 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13756 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13757 * include/grub/err.h (grub_error_saved): New struct.
13758 (grub_errmsg): Make array size explicit.
13759 * include/grub/misc.h (grub_error_save): New function.
13760 (grub_error_load): Likewise.
13761 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13762 (grub_error_push): Update `errno' member name.
13763 (grub_error_pop): Likewise
13764 * grub-core/net/tftp.c (tftp_data): New member save_err.
13765 (tftp_receive): Save error.
13766 (tftp_open): Restore error.
13767
13768 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13771 to real mode down to execute A20-related code in protected mode as
13772 intended.
13773
13774 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13775
13776 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13777 NULL when the argument `level' has an unexpected value.
13778
13779 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 Move platform-dependent files from $prefix to $prefix/$platform.
13782
13783 * config.h.in (GRUB_TARGET_CPU): New definition.
13784 (GRUB_PLATFORM): Likewise.
13785 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13786 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13787 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13788 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13789 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13790 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13791 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13792 * grub-core/normal/term.c (read_terminal_list): Likewise.
13793 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13794 $prefix/locale.
13795 (grub_gettext_init_ext): Likewise.
13796 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13797 grub_platform.
13798 * util/grub-install.in: Update directories.
13799 * util/grub-mknetdir.in: Likewise.
13800 * util/grub-mkrescue.in: Likewise.
13801
13802 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13805 grub_error framework. All users updated.
13806
13807 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13808
13809 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13810 lists (by always binsearching), improve caching (cache strings
13811 used for binsearch, not only results), improve
13812 maintainability (by using more structured binary search) and correct
13813 error handling.
13814
13815 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/script/execute.c (grub_script_return): Fix warning.
13818
13819 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13820
13821 * grub-core/script/execute.c (grub_script_return): Fix potential
13822 NULL-dereference.
13823 Reported by: Jim Meyering.
13824
13825 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * po/POTFILES.in: Regenerate.
13828 * util/grub-install.in: Gettextize the strings missed in first pass.
13829
13830 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * Makefile.util.def (grub-mkdevicemap): Removed.
13833 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13834 * include/grub/util/deviceiter.h: Removed.
13835 * util/deviceiter.c: Likewise.
13836 * util/getroot.c (grub_util_get_os_disk): New function.
13837 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13838 replacement for EFI.
13839 * util/grub-mkdevicemap.c: Removed.
13840 * util/grub-probe.c (probe): Handle PRINT_DISK.
13841 (argp_parser): Handle -t disk.
13842
13843 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 * util/grub-mkfont.c: Migrate to argp.
13846 * util/grub-mklayout.c: Likewise.
13847 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13848 * util/grub-mkrelpath.c: Likewise.
13849 * util/grub-probe.c: Likewise.
13850 * util/grub-script-check.c: Likewise.
13851
13852 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 * util/grub-reboot.in: Add missing datarootdir.
13855 Add missing newline.
13856 * util/grub-set-default.in: Add missing datarootdir.
13857 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13858 * util/grub-mkrescue.in: Likewise.
13859
13860 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13863
13864 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * util/grub-kbdcomp.in: Add decent help and gettextize.
13867 * docs/man/grub-kbdcomp.h2m: New file.
13868
13869 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 Migrate grub-mkimage.c to argp.
13872
13873 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13874 (grub-setup): Likewise.
13875 * util/grub-setup.c (print_version): Move to ...
13876 * util/argp_common.c (print_version): ... here.
13877 * util/grub-setup.c (argp_program_version_hook): Move to ...
13878 * util/argp_common.c (argp_program_version_hook): ... here.
13879 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13880 safety.
13881 * util/grub-mkimage.c (main): Migrate to argp.
13882
13883 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13884
13885 * util/grub-mkrescue.in: Use same message as
13886 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13887 for better translations.
13888
13889 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13890
13891 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13892 options with generic grub-mkrescue.in with the goal of future
13893 merge.
13894
13895 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * grub-core/kern/mm.c: Add missing include of i18n.h
13898 * grub-core/lib/relocator.c: Likewise.
13899
13900 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13903 error.
13904 (allocate_pages): Check return value.
13905 Replace fatal with error.
13906 (grub_linux_boot): Replace printf with dprintf.
13907 Check find_mmap_size return value.
13908 Replace fatal with error.
13909 Don't call grub_machine_fini.
13910 (grub_load_elf64): Replace printf with dprintf.
13911 (grub_cmd_linux): Likewise.
13912 (grub_cmd_initrd): Likewise.
13913 (grub_cmd_payload): Likewise.
13914
13915 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13916
13917 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13918 message.
13919 * grub-core/video/radeon_fuloong2e.c
13920 (grub_video_radeon_fuloong2e_setup): Likewise.
13921 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13922 * grub-core/video/video.c (grub_video_set_mode): Don't override
13923 standard out of memory message.
13924
13925 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13926
13927 NetBSD disk wedge support.
13928
13929 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
13930 [__NetBSD__]: Handle NetBSD disk wedges.
13931 * util/getroot.c (convert_system_partition_to_system_disk)
13932 [__NetBSD__]: Likewise.
13933
13934 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
13935
13936 * util/grub-mkconfig.in: Use umask rather than chmod to create
13937 grub.cfg.new to avoid insecure grub.cfg.
13938
13939 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13940
13941 * grub-core/commands/ls.c: Gettextize.
13942 * grub-core/commands/setpci.c: Likewise.
13943 * grub-core/commands/videotest.c: Likewise.
13944 * grub-core/disk/geli.c: Likewise.
13945 * grub-core/kern/mm.c: Likewise.
13946 * grub-core/lib/relocator.c: Likewise.
13947 * grub-core/loader/efi/appleloader.c: Likewise.
13948 * grub-core/loader/i386/xnu.c: Likewise.
13949 * grub-core/loader/ia64/efi/linux.c: Likewise.
13950 * grub-core/loader/xnu.c: Likewise.
13951 * grub-core/net/dns.c: Likewise.
13952 * grub-core/net/net.c: Likewise.
13953 * grub-core/script/lexer.c: Likewise.
13954 * grub-core/script/parser.y: Likewise.
13955 * grub-core/script/yylex.l: Likewise.
13956 * util/getroot.c: Likewise.
13957 * util/grub-setup.c: Likewise.
13958
13959 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13960
13961 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
13962 number.
13963
13964 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
13967
13968 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13969
13970 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
13971 macro.
13972 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
13973 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
13974
13975 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
13978 * util/grub-install.in: Gettextize.
13979 * util/grub-mkconfig.in: Likewise.
13980 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
13981 if not available.
13982 (grub_warn): Gettextize.
13983 * util/grub-mknetdir.in: Gettextize.
13984 * util/grub-mkrescue.in: Likewise.
13985 * util/grub-mkstandalone.in: Likewise.
13986 * util/grub-reboot.in: Likewise.
13987 * util/grub-set-default.in: Likewise.
13988 * util/grub.d/00_header.in: Likewise.
13989 * util/grub.d/10_hurd.in: Likewise.
13990 * util/grub.d/10_kfreebsd.in: Likewise.
13991 * util/grub.d/10_linux.in: Likewise.
13992 * util/grub.d/10_netbsd.in: Likewise.
13993 * util/grub.d/10_windows.in: Likewise.
13994 * util/grub.d/20_linux_xen.in: Likewise.
13995 * util/grub.d/30_os-prober.in: Likewise.
13996 * po/POTFILES-shell.in: Regenerate.
13997
13998 2012-02-03 Richard Laager <rlaager@wiktel.com>
13999
14000 * util/grub-mkimage.c (main): Fix format-security warning.
14001 * util/grub-mkrelpath.c (main): Likewise.
14002 * util/grub-probe.c (main): Likewise.
14003
14004 2012-02-03 Richard Laager <rlaager@wiktel.com>
14005
14006 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14007 failure.
14008 Put back lost PRINT_DRIVE.
14009
14010 2012-02-03 Richard Laager <rlaager@wiktel.com>
14011
14012 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14013 (grub_guess_root_devices): Replace strlen with sizeof.
14014 Avoid crash.
14015 (find_root_devices_from_poolname): Remove unused variable.
14016 Handle raidzN.
14017
14018 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 Support install on multi-device filesystems.
14021
14022 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14023 (grub_guess_root_devices): ...this. Return char **. All users updated.
14024 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14025 Removed.
14026 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14027 (find_root_devices_from_poolname): ... here.
14028 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14029 Support zfs-fuse.
14030 (grub_guess_root_device): Rename to ...
14031 (grub_guess_root_devices): ... this. Return char **. All users updated.
14032 * util/grub-install.in: Handle multi-device filesystems.
14033 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14034 argument. All users updated.
14035 Handle multi-device filesystems.
14036 Use 'delim' as separator.
14037 Remove device check to allow filesystems on file.
14038 (main): Support -0 argument. Handle multi-device.
14039 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14040 Fix a cross-device check while on it.
14041 (arguments): Remove root_dev.
14042 (argp_parser): Remove -r.
14043 (main): Remove root_dev.
14044
14045 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14048
14049 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14050
14051 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14052 symbol.
14053 Reported by: NODA, Kai <nodakai>.
14054
14055 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 Fix ehci on amd64.
14058
14059 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14060 pointers.
14061 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14062 (grub_ehci_setup_qh): Likewise.
14063 (grub_ehci_find_qh): Likewise.
14064 (grub_ehci_transaction): Likewise.
14065 (grub_ehci_setup_transfer): Likewise.
14066 (grub_ehci_check_transfer): Likewise.
14067 (grub_ehci_portstatus): Likewise.
14068 (grub_ehci_detect_dev): Likewise.
14069 (grub_ehci_transfer_controller_data): New field td_last_phys.
14070 (grub_ehci_setup_transfer): Fill td_last_phys.
14071 (grub_ehci_check_transfer): Use td_last_phys.
14072
14073 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14074
14075 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14076 if no submenu is present.
14077
14078 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14079
14080 CBI support.
14081
14082 * include/grub/usb.h (grub_usbms_protocol_t): New values
14083 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14084 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14085 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14086 (grub_usbms_dev): Add subclass, protocol and intrpt.
14087 Remove in_maxsz and out_maxsz.
14088 (grub_usbms_reset): Rename to ...
14089 (grub_usbms_bo_reset): .. this.
14090 (grub_usbms_cbi_cmd): New function.
14091 (grub_usbms_cbi_reset): Likewise.
14092 (grub_usbms_reset): Likewise.
14093 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14094 (grub_usbms_transfer): Rename to ...
14095 (grub_usbms_transfer_bo): ... this.
14096 (grub_usbms_transfer_cbi): Likewise.
14097 (grub_usbms_transfer): Likewise.
14098
14099 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14100 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14101
14102 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14103 the support for the CS5536 modification thereos and few bugfixes.
14104
14105 * grub-core/Makefile.core.def (ehci): New module.
14106 * grub-core/bus/usb/ehci.c: New file.
14107 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14108 port and hubaddr. All users updated.
14109 Save port and hubaddr into dev structure.
14110 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14111 define.
14112 * include/grub/pci.h (grub_dma_phys2virt): New function.
14113 (grub_dma_virt2phys): Likewise.
14114 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14115
14116 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14119 check as some mkfs implementations omit it.
14120
14121 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14122
14123 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14124
14125 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14126
14127 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14128 Add new member volname2.
14129 (grub_jfs_label): Use volname2 if available.
14130
14131 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14132
14133 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14134 over last_mounted as seen in image generated by mkfs.nilfs2.
14135 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14136
14137 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14138
14139 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14140 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14141 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14142
14143 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14146 over the sector.
14147
14148 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14151 subvolume name (by removing a bogus and useless check).
14152
14153 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14154
14155 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14156 sizeof while on it.
14157
14158 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14159
14160 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14161 (grub_scsi_read_capacity10): ... this.
14162 (grub_scsi_read_capacity16): New function.
14163 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14164 0xffffffff.
14165 Fix off-by-one error.
14166 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14167 64-bit unsigned.
14168 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14169 (grub_scsi_read_capacity10): ... this.
14170 (grub_scsi_read_capacity_data): Rename to ...
14171 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14172 (grub_scsi_read_capacity16): New struct.
14173 (grub_scsi_read_capacity16_data): Likewise.
14174 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14175 grub_scsi_cmd_read_capacity10.
14176 New command grub_scsi_cmd_read_capacity16.
14177
14178 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14179
14180 SCSI >2TiB support.
14181
14182 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14183 (grub_scsi_write16): Likewise.
14184 (grub_scsi_read): Use read16 when necessary.
14185 (grub_scsi_write): Likewise.
14186 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14187 (grub_scsi_write16): Likewise.
14188 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14189
14190 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 SCSI write support (for usbms mainly).
14193
14194 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14195 a const pointer.
14196 (grub_scsi_write): Implement.
14197 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14198
14199 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14202 variable.
14203
14204 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14207
14208 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * po/POTFILES.in: Regenerate.
14211
14212 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14215 with grub_printf to avoid unnecessary fatal failure.
14216
14217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14220 (INT_MAX): Likewise.
14221 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14222 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14223 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14224 (strcpy): Likewise.
14225 (strstr): Likewise.
14226 (strchr): Likewise.
14227 (strncpy): Likewise.
14228 (strcat): Likewise.
14229 (strncat): Likewise.
14230 (strcoll): Likewise.
14231 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14232 (GRUB_INT_MAX): Likewise.
14233
14234 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14237 unexpected error.
14238 (optimize_utf8): Likewise.
14239 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14240
14241 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * grub-core/boot/i386/pc/lnxboot.S: Use
14244 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14245 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14246 location.
14247 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14248 definition.
14249 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14250
14251 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14254 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14255 now to avoid double free.
14256 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14257 hostdisk.
14258 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14259 * util/grub-probe.c (escape_of_path): Always return a new copy.
14260 (print_full_name): Escape path.
14261 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14262 Fix hints on abstractions.
14263
14264 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14265
14266 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14267 Don't add "root" line if no compatibility hont is available.
14268 Suggested by: Seth Goldberg.
14269
14270 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14273 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14274 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14275 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14276
14277 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14280
14281 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * util/grub-pe2elf.c (ehdr): Make static.
14284 (shdr): Likewise.
14285 (num_sections): Likewise.
14286 (offset): Likewise.
14287
14288 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 Eliminate ofpath limits and possible overflows.
14291
14292 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14293 (OF_PATH_MAX): Removed.
14294 (MAX_DISK_CAT): New const.
14295 (find_obppath): Use allocated rather than preallocated buffer.
14296 Return result. Argument of_path removed. All users updated.
14297 Add missing fdstat.
14298 (xrealpath): New function.
14299 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14300 Allocate rather than use preallocated buffer. All users updated.
14301 (__of_path_common): Use allocated rather than preallocatecd buffer.
14302 Return result. Argument of_path removed. All users updated.
14303 (vendor_is_ATA): Read only needed part form the file.
14304 (check_sas): Allocate depending on contents rather than fixed.
14305 (main) [STANDALONE]: Handle NULL result.
14306
14307 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14310
14311 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14312
14313 Cryptodisk write support.
14314
14315 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14316 (grub_cryptodisk_decrypt): Moved logic to ...
14317 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14318 (grub_cryptodisk_write): Implement.
14319 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14320 (grub_util_fd_write): ... this. Make global.
14321 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14322
14323 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14324
14325 * include/grub/list.h (grub_list_remove): Don't crash if element is
14326 removed twice.
14327
14328 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 Rename ofconsole to console.
14331
14332 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14333 as sysnonym to console.
14334 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14335 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14336 Rename grub_ofconsole_ to grub_console_. All users updated
14337 (grub_console_term_output): Rename "ofconsole" to "console".
14338 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14339 as "console".
14340
14341 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14344 handling.
14345 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14346 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14347 GRUB_DISK_DEVICE_FILE_ID.
14348
14349 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14350
14351 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14352 and improve performance.
14353
14354 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14355
14356 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14357 missing ieee1275/ prefix on whole disk.
14358
14359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14362 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14363
14364 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14365
14366 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14367
14368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14369
14370 Merge common RAID and LVM logic to an abstract diskfilter.
14371 Add LDM support using the same framework.
14372
14373 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14374 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14375 (libgrubmods): Remove grub-core/disk/raid.c and
14376 grub-core/partmap/gpt.c.
14377 * grub-core/Makefile.core.def (ldm): New module.
14378 (raid): Renamed to diskfilter. All users updated.
14379 * grub-core/disk/raid.c: Moved to ...
14380 * grub-core/disk/diskfilter.c: ... here.
14381 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14382 (lv_num): New var.
14383 (find_array): Renamed to ...
14384 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14385 (grub_is_array_readable): Renamed to ...
14386 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14387 (insert_array): New argument id.
14388 (is_node_readable): New function.
14389 (scan_device): Rename to ...
14390 (scan_disk): .. this. Restrict to one disk.
14391 (scan_devices): New function.
14392 (grub_diskfilter_iterate): Support multi-LV.
14393 Skip invisible and nameless LVs.
14394 (grub_diskfilter_memberlist): Support multi-LV.
14395 (grub_diskfilter_read_node): New function.
14396 (grub_raid_read): Most of logic moved to ...
14397 (read_segment): ... here
14398 (read_lv): New function.
14399 (grub_diskfilter_get_vg_by_uuid): New function.
14400 (grub_diskfilter_make_raid): Likewise.
14401 * grub-core/disk/ldm.c: New file.
14402 * grub-core/disk/lvm.c (vg_list): Removed.
14403 (lv_count): Likewise.
14404 (scan_depth): Likewise.
14405 (is_lv_readable): Likewise.
14406 (grub_lvm_getvalue): Advance pointer past the number.
14407 (find_lv): Removed.
14408 (do_lvm_scan): Refactored into ...
14409 (grub_lvm_detect): ... this. Support raid.
14410 (grub_lvm_iterate): Removed.
14411 (grub_lvm_memberlist): Likewise.
14412 (grub_lvm_open): Likewise.
14413 (grub_lvm_close): Likewise.
14414 (read_lv): Likewise.
14415 (read_node): Likewise.
14416 (is_node_readable): Likewise.
14417 (is_lv_readable): Likewise.
14418 (grub_lvm_read): Likewise.
14419 (grub_lvm_write): Likewise.
14420 (grub_lvm_dev): Use diskfilter
14421 (GRUB_MOD_INIT): Likewise.
14422 (GRUB_MOD_FINI): Likewise.
14423 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14424 new interface.
14425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14426 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14427 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14428 grub_diskfilter_read_node.
14429 Fix a bug with xor.
14430 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14431 grub_diskfilter_read_node.
14432 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14433 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14434 (grub_disk_dev_iterate): Move from here...
14435 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14436 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14437 Make global.
14438 (grub_hostdisk_find_partition_start): Likewise.
14439 (grub_hostdisk_os_dev_to_grub_drive): New function.
14440 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14441 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14442 * util/getroot.c (make_device_name): ... here.
14443 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14444 Move to ...
14445 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14446 * grub-core/kern/emu/hostdisk.c
14447 (convert_system_partition_to_system_disk): Move to ...
14448 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14449 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14450 * util/getroot.c (device_is_wholedisk): ... here.
14451 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14452 * util/getroot.c (find_system_device): ... here.
14453 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14454 Move to ...
14455 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14456 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14457 Move to ...
14458 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14459 Handle LDM.
14460 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14461 Move to ...
14462 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14463 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14464 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14465 DISKFILTER.
14466 * include/grub/raid.h: Renamed to ...
14467 * include/grub/diskfilter.h: ... this.
14468 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14469 (GRUB_RAID_LAYOUT_*): Make into array.
14470 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14471 (grub_diskfilter_vg): New struct.
14472 (grub_diskfilter_pv_id): Likewise.
14473 (grub_raid_member): Removed.
14474 (grub_raid_array): Likewise.
14475 (grub_diskfilter_pv): New struct.
14476 (grub_diskfilter_lv): Likewise.
14477 (grub_diskfilter_segment): Likewise.
14478 (grub_diskfilter_node): Likewise.
14479 (grub_diskfilter_get_vg_by_uuid): New proto.
14480 (grub_raid_register): Inline.
14481 (grub_diskfilter_unregister): Likewise.
14482 (grub_diskfilter_make_raid): New proto.
14483 (grub_diskfilter_vg_register): Likewise.
14484 (grub_diskfilter_read_node): Likewise.
14485 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14486 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14487 (grub_util_is_ldm): Likewise.
14488 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14489 (grub_hostdisk_find_partition_start): Likewise.
14490 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14491 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14492 New definition.
14493 (grub_gpt_partition_map_iterate): New proto.
14494 * include/grub/lvm.h (grub_lvm_vg): Removed.
14495 (grub_lvm_pv): Likewise.
14496 (grub_lvm_lv): Likewise.
14497 (grub_lvm_segment): Likewise.
14498 (grub_lvm_node): Likewise.
14499 * util/getroot.c [...]
14500 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14501 (probe_abstraction): Likewise.
14502 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14503 (main): Remove dead logic.
14504
14505 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14506
14507 Simplify root device discover and don't fail when trying to open
14508 incorrect devices.
14509
14510 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14511 function.
14512 (get_diskname_from_path): Likewise.
14513 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14514 of iterating.
14515
14516 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14519
14520 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14523 pastthe end.
14524
14525 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * util/grub-install.in: Add missing \.
14528 Reported by: gentoofan
14529
14530 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14533 (direct_read): Use correct compressed size.
14534 (grub_squash_read_data): Likewise.
14535
14536 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * docs/grub.texi (Platform limitations): New section.
14539 (Platform-specific operations): Likewise.
14540 * docs/grub-dev.texi (Porting): Likewise.
14541
14542 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 IEEE1275 disk write support.
14545
14546 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14547 const void *.
14548 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14549 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14550 and seek loginc to ...
14551 (grub_ofdisk_prepare): ... here.
14552 (grub_ofdisk_write): Implement.
14553
14554 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14555
14556 ARC disk write support.
14557
14558 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14559 (reopen): New argument writable. All users updated.
14560 Handle required access mode.
14561 (grub_arcdisk_write): Implement.
14562 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14563 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14564
14565 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14568 (read_sblock): Don't attempt to read superblocks outside the disk size.
14569
14570 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14573 first superblock to find the second one when possible.
14574
14575 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 * util/grub-install.in: Fix an ARC bug.
14578 Print a warning if no platform-specific setup is available.
14579
14580 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14581
14582 Use static allocation rather than scratch pointer in reed_solomon.
14583 It decreases its size significantly and avoids a variable in .text.
14584
14585 * grub-core/lib/reed_solomon.c (scratch): Removed.
14586 (chosenstat): New const or static array.
14587 (sigma): Likewise.
14588 (errpot): Likewise.
14589 (errpos): Likewise.
14590 (sy): Likewise.
14591 (mstat): Likewise.
14592 (errvals): Likewise.
14593 (eqstat): Likewise.
14594 (pol_evaluate): Replace x with log_x argument. All users updated.
14595 (syndroms): Removed.
14596 (gauss_solve): Use statically allocated arrays.
14597 (rs_recover): Likewise.
14598 Calculate syndroms directly.
14599 (decode_block): Use statically allocated arrays.
14600 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14601 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14602
14603 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 Eliminate fixed limit on reed solomon decoder length.
14606
14607 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14608 rather than hardcoding the address.
14609 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14610 no_reed_solomon_length.
14611 Move gate_a20 to no-reed-solomon part.
14612 Don't force a particular size of no reed-solomon part.
14613 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14614 Removed.
14615 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14616 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14617
14618 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/commands/wildcard.c (match_files): Handle filenames
14621 without explicit device.
14622 (wildcard_expand): Don't add explicit device if not already present.
14623 * tests/grub_script_echo1.in: Add a new expansion test.
14624
14625 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 Replace single-linked with double-linked lists. It results in more
14628 compact and more efficient code.
14629
14630 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14631 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14632 (grub_list_remove): Moved from here ...
14633 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14634 (grub_prio_list_insert): Set prev.
14635 * include/grub/list.h (grub_list): Add prev. All users updated.
14636
14637 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 Handle newer autotools. Add some missing quotes while on it.
14640
14641 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14642 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14643 (pkgdata_DATA): ... here.
14644 * Makefile.util.def (update-grub_lib): Removed.
14645 * conf/Makefile.common (pkglib_DATA): Removed.
14646 (pkglib_SCRIPTS): Likewise.
14647 (pkgdata_DATA): New variable.
14648 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14649 needed.
14650 Add missing quotes.
14651 Remove unused variable while on it.
14652 * tests/util/grub-shell.in: Likewise.
14653 * util/grub-install.in: Likewise.
14654 * util/grub-mkconfig.in: Likewise.
14655 * util/grub-mknetdir.in: Likewise.
14656 * util/grub-mkrescue.in: Likewise.
14657 * util/grub-mkstandalone.in: Likewise.
14658 * util/grub.d/00_header.in: Likewise.
14659 * util/grub.d/10_hurd.in: Likewise.
14660 * util/grub.d/10_illumos.in: Likewise.
14661 * util/grub.d/10_kfreebsd.in: Likewise.
14662 * util/grub.d/10_linux.in: Likewise.
14663 * util/grub.d/10_netbsd.in: Likewise.
14664 * util/grub.d/10_windows.in: Likewise.
14665 * util/grub.d/20_linux_xen.in: Likewise.
14666 * util/grub.d/30_os-prober.in: Likewise.
14667 * util/update-grub_lib.in: Removed.
14668
14669 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14670
14671 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14672 a workaround for intel problem.
14673
14674 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14675 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14676 2012-01-23 pfsmorigo
14677
14678 * util/grub-install.in: Support dd'in into PreP partition.
14679 * util/grub-probe.c (probe): Support discovering partition type.
14680 (main): Support -t msdos_parttype.
14681
14682 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14683
14684 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14685 infinite recursion using counter.
14686 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14687 init to skip it if the magic check fails.
14688 (dec_stream_header): Init s->crc32.
14689
14690 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14691 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14692 2012-01-22 Richard Laager <rlaager@wiktel.com>
14693
14694 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14695 All users updated.
14696 (find_bestub): Determine correct size.
14697 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14698 (scan_disk): Align the size down.
14699 Call check pool before find_bestub to have ashift.
14700
14701 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14704 dprintf in no-malloc zone.
14705
14706 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14707
14708 * configure.ac: Add back in test for limits.h.
14709
14710 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 Support 4K-sector NTFS.
14713
14714 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14715 (grub_ntfs_data): Remove blocksize.
14716 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14717 Remove data argument. All users updated.
14718
14719 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14720
14721 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14722 being in .text to avoid dprel references.
14723 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14724 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14725 (grub_arch_highmemsize): Likewise.
14726 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14727 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14728 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14729
14730 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14733
14734 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14735 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14736
14737 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14738
14739 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14740 GRUB_UTIL.
14741 (grub_set_datetime_cmos): Likewise.
14742
14743 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 Make XZ compression parameters dependent on target and not host CPU.
14746
14747 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14748 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14749
14750 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14751
14752 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14753 set but not used variable.
14754
14755 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14758 created when no uuid support is compiled into mkfs.reiser.
14759
14760 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14763 (utf8_to_macroman): Do the opposite.
14764 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14765
14766 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14767
14768 * configure.ac: Refise build qemu_mips w/o unifont.
14769
14770 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14771
14772 Eliminate grub_min/grub_max prone to overflow usage.
14773
14774 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14775 (poll_nonroot_hub): Likewise.
14776 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14777 (grub_affs_label): Likewise.
14778 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14779 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14780 (grub_hfs_label): Likewise.
14781 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14782 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14783 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14784 (zap_leaf_array_get): Likewise.
14785 (dnode_get_path): Likewise.
14786 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14787 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14788 * grub-core/script/execute.c (grub_script_break): Likewise.
14789 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14790 grub_max.
14791 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14792 * include/grub/misc.h (grub_min): Removed.
14793 (grub_max): Likewise.
14794
14795 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14796
14797 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14798 direct.inode = 0.
14799
14800 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14803
14804 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14805
14806 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14807
14808 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14809
14810 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14811 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14812
14813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14816 rather than a hack for grub_strncasemap.
14817
14818 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14819
14820 Support multiple initrds
14821 Note: part of this was accidently committed in r3739.
14822
14823 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14824 initrd.
14825 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14826 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14827 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14828 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14829 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14830
14831 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14834 disks with unknown size.
14835 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14836
14837 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 Remove defines pertaining to arbitrary limits not affecting GRUB
14840 anymore.
14841
14842 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14843 (EXT2_MAX_SYMLINKCNT): Likewise.
14844 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14845 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14846 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14847 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14848 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14849 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14850 (DN_MAX_OBJECT_SHIFT): Likewise.
14851 (DN_MAX_OFFSET_SHIFT): Likewise.
14852 (DN_MAX_OBJECT): Likewise.
14853 (DNODES_PER_LEVEL_SHIFT): Likewise.
14854 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14855 (SPA_MAXBLOCKSIZE): Likewise.
14856 (SPA_BLOCKSIZES): Likewise.
14857 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14858 (MZAP_MAX_BLKSZ): Likewise.
14859
14860 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14861
14862 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14863 handle NULL appropriately.
14864 Remove MIN.
14865
14866 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14867
14868 Fix efiemu.
14869
14870 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14871 cpu/types.h.
14872 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14873 * configure.ac: Fix efiemu check.
14874
14875 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14876
14877 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14878 grub_probe.
14879 Reported by: adamwill
14880
14881 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14882
14883 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14884
14885 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 Fix handling of wide characters in gfxterm.
14888
14889 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14890 (clear_char): Likewise.
14891 (paint_char): Skip code == NULL chars.
14892 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14893
14894 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14895
14896 * grub-core/normal/charset.c: Move comment to right place.
14897
14898 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14899
14900 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14901 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14902 (grub_affs_mount): Revert the correct version checking.
14903
14904 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 * docs/grub.texi (Unicode): Mention several other unsupported features.
14907
14908 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14909
14910 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14911 case statements as compile-time one.
14912 (direct_read): Prevent spurious warnings.
14913 (grub_squash_read_data): Likewise.
14914
14915 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14916
14917 Various squash4 fixes and LZO and XZ support.
14918
14919 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14920 Add xzembed source files.
14921 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14922 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14923 (grub_squash_inode): New subtype long_dir.
14924 (SQUASH_TYPE_LONG_DIR): New inode type.
14925 (COMPRESSION): New enum.
14926 (XZBUFSIZ): New const.
14927 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14928 (read_chunk): Use data->decompress.
14929 (zlib_decompress): New function.
14930 (lzo_decompress): Likewise.
14931 (xz_decompress): Likewise.
14932 (squash_mount): Set new data fields.
14933 (grub_squash_iterate_dir): Handle long dir.
14934 (squash_unmount): Free xzdec and xzbuf.
14935 (grub_squash_open): Check ino type.
14936 (direct_read): Stylistic fixes. Use data->decompress.
14937 (grub_squash_read_data): Likewise.
14938 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
14939 (get_byte): Likewise.
14940 (grub_zlib_disk_read): Removed.
14941 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
14942 (GRUB_POSIX_BOOL_DEFINED): New define.
14943 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
14944 * grub-core/lib/xzembed/xz.h: Addmissing includes.
14945 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
14946 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
14947
14948 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 Don't override more informative errors.
14951
14952 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
14953 * grub-core/font/font.c (open_section): Likewise.
14954 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
14955 filename. Don't override errors.
14956 (grub_cmd_openbsd_ramdisk): Don't override errors.
14957 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
14958 (grub_cmd_initrd): Likewise.
14959 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14960 (grub_cmd_initrd): Likewise.
14961 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
14962 (grub_cmd_linux): Likewise.
14963 (grub_cmd_initrd): Likewise.
14964 (grub_cmd_payload): Likewise.
14965 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14966 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
14967 (grub_cmd_module): Likewise.
14968 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14969 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14970 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
14971 (grub_cmd_xnu_mkext): Likewise.
14972 (grub_cmd_xnu_ramdisk): Likewise.
14973 (grub_xnu_check_os_bundle_required): Likewise.
14974 (grub_xnu_load_kext_from_dir): Likewise.
14975 (grub_cmd_xnu_kextdir): Likewise.
14976 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
14977
14978 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14979
14980 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
14981 as 1024 in block size field. Found on one of my test images.
14982 Small optimisation while on it.
14983
14984 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
14987 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
14988 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
14989 performance fixes while on it.
14990 (grub_sfs_close): Fix memory leak while on it.
14991 (grub_sfs_label): Convert Latin1 to UTF-8.
14992
14993 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
14996 space to avoid overflows.
14997 (grub_hfs_label): Convert from macroman to UTF-8.
14998
14999 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15000
15001 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15002
15003 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15006
15007 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15008
15009 * unicode: Import Unicode 6.0 data.
15010
15011 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15014 outside of range.
15015
15016 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 Avoid cutting in the middle of UTF-8 character.
15019
15020 * include/grub/charset.h (grub_getend): New function.
15021 * grub-core/script/function.c (grub_script_function_find): Use
15022 grub_getend.
15023 * grub-core/normal/completion.c (add_completion): Likewise.
15024
15025 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15028 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15029 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15030 (GRUB_UNICODE_TAG_END): Likewise.
15031 (GRUB_UNICODE_LAST_VALID): Likewise.
15032
15033 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15036 len and make it smaller. All users updated.
15037 * util/import_unicode.py: Put length and not end character.
15038 Check length.
15039
15040 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 Make better Unicode-compliant and unify some UTF-8 code pathes.
15043
15044 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15045 valid character.
15046 (grub_is_valid_utf8): Use grub_utf8_process.
15047 Check resulting code range.
15048 (grub_utf8_to_ucs4): Use grub_utf8_process.
15049 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15050 valid character.
15051
15052 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15055
15056 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15057
15058 * docs/grub.texi (Filesystems): Mention AFS.
15059
15060 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15061
15062 * docs/grub.texi (Filesystems): Clarify restrictions.
15063 (Regexp): Mention non-Unicode regexp behaviour.
15064 (Other): Mention non-Unicode matching behaviour.
15065
15066 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15067
15068 Make HFS implementation use MacRoman.
15069
15070 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15071 (macroman): New const array.
15072 (macroman_to_utf8): New function.
15073 (utf8_to_macroman): Likewise.
15074 (grub_hfs_find_dir): Use utf8_to_macroman.
15075 (grub_hfs_dir): Use macroman_to_utf8.
15076 Set case_insensitive.
15077
15078 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15081
15082 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15083
15084 Integrate hints into autogeneration scripts.
15085
15086 * docs/grub.texi (Filesystems): Add a hostdisk example.
15087 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15088 (grub-probe): Add ofpath.
15089 * gentpl.py: Remove group nosparc64.
15090 * grub-core/commands/search.c (cache_entry): New struct.
15091 (cache): New var.
15092 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15093 * grub-core/commands/search_wrap.c (options): Add platform-specific
15094 hint options.
15095 (grub_cmd_search): Handle platform-specific hints.
15096 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15097 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15098 (grub_util_biosdisk_data): Likewise.
15099 (grub_util_biosdisk_open): Set device_map.
15100 (read_device_map): Handle "" as indication of no map.
15101 Set device_map.
15102 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15103 (grub_util_biosdisk_get_compatibility_hint): New function.
15104 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15105 * include/grub/emu/hostdisk.h
15106 (grub_util_biosdisk_get_compatibility_hint): New proto.
15107 * util/grub-install.in: Don't call grub-mkdevicemap.
15108 Add platform-specific hint to load.cfg.
15109 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15110 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15111 hints. Set root preliminary to compatibility hint, not to OS name.
15112 * util/grub-probe.c (PRINT_*): Add hints.
15113 (print): Make static.
15114 (escape_of_path): New function.
15115 (guess_bios_drive): Likewise.
15116 (guess_efi_drive): Likewise.
15117 (guess_baremetal_drive): Likewise.
15118 (print_full_name): Likewise.
15119 (probe): Handle hints.
15120 (main): Likewise.
15121 * util/ieee1275/devicemap.c: Removed.
15122 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15123 updated.
15124 (grub_util_devname_to_ofpath): Return NULL on failure.
15125
15126 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15127 resource leak.
15128 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15129
15130 * po/POTFILES.in: Regenerated.
15131
15132 Allow purely long options
15133
15134 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15135 (SHORT_ARG_USAGE): Likewise.
15136 (grub_arg_show_help): Compare opt with help_options.
15137 (parse_option): Receive opt as argument. If makes big simplificatons.
15138 All users updated
15139
15140 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15143 Restructure to avoid warning.
15144
15145 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * util/grub-install.in: Account for possible escaped comma in device
15148 name.
15149
15150 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15153 channel.
15154
15155 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15156
15157 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15158 allocation and zero-setting.
15159 (grub_ieee1275_get_devname): Check that alias is complete.
15160
15161 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15162
15163 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15164 unaligned segments.
15165
15166 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15169 prefix.
15170 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15171 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15172 Add ieee1275 prefix.
15173
15174 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15175
15176 * docs/grub.texi (Filesystems): Update.
15177
15178 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 Support odc, newc and bigendian cpio formats.
15181
15182 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15183 * grub-core/Makefile.core.def (newc): New module.
15184 (odc): Likewise.
15185 (cpio_be): Likewise.
15186 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15187 (MAGIC): Likewise.
15188 (MAGIC2): Likewise.
15189 (head) [MODE_ODC]: Adapt for the format.
15190 (head) [MODE_NEWC]: Likewise.
15191 (head) [!MODE_*]: Write fields of interest as arrays.
15192 (MAGIC_USTAR): Removed.
15193 (read_number) [MODE_NEWC]: Change to hex.
15194 (read_number) [!MODE_*]: Parse binary arrays.
15195 (grub_cpio_find_file): Factor out the code for better structure and
15196 always use read_number.
15197 (grub_cpio_mount): Use MAGIC and MAGIC2.
15198 (grub_cpio_dir): Exit on first hook non-0 return.
15199 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15200 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15201 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15202 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15203 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15204 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15205 * grub-core/fs/newc.c: New file.
15206 * grub-core/fs/odc.c: Likewise.
15207 * grub-core/fs/cpio_be.c: Likewise.
15208
15209 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15210
15211 Fix handling of tar numbers occupying the whole field.
15212
15213 * grub-core/fs/cpio.c (read_number): New function.
15214 (grub_cpio_find_file): Use read_number instead of strtoull.
15215
15216 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15219 occupying the whole field size.
15220
15221 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15222
15223 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15224
15225 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15228
15229 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15230
15231 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15232 TARGET_IMG_LDFLAGS.
15233
15234 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15235
15236 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15237 (mountinfo_entry): Increase the field size to take escaping into
15238 account.
15239 (find_root_device_from_libzfs): Add one byte to size of strings for
15240 security.
15241
15242 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15245 an assert.
15246 * util/grub-setup.c (setup): Likewise.
15247
15248 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15251 _LzmaDecodeA.
15252
15253 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 * docs/grub.texi (Internationalisation): New section.
15256
15257 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * docs/grub.texi (Loopback booting): New section.
15260
15261 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15262
15263 * util/grub-mkstandalone.in: Fix minor typo errors.
15264
15265 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15266
15267 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15268
15269 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15270 net/icmp.c and net/icmp6.c.
15271 (http): New module.
15272 (priority_queue): Likewise.
15273 * grub-core/io/bufio.c: Rewritten.
15274 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15275 TYPE_WITH_CONFIGFILE_OPTION.
15276 (legacy_commands): Add bootp and dhcp.
15277 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15278 (grub_legacy_parse): Likewise.
15279 * grub-core/lib/priority_queue.c: New file.
15280 * grub-core/net/arp.c: Add missing license header.
15281 (arp_find_entry): Removed.
15282 (arp_find_entry): Likewise.
15283 (grub_net_arp_resolve): Rename to ...
15284 (grub_net_arp_send_request): ...this.
15285 (grub_net_arp_receive): New card argument.
15286 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15287 Set router and DNS server.
15288 (grub_net_configure_by_dhcp_ack): Handle routing information.
15289 (grub_cmd_bootp): Set checksum.
15290 (grub_bootp_init): Remove net_dhcp.
15291 * grub-core/net/dns.c: New file.
15292 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15293 completion.
15294 (get_card_packet): Handle allocation.
15295 (grub_efinet_findcards): Set mtu.
15296 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15297 (get_card_packet): Handle allocation.
15298 (emucard): Set mtu.
15299 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15300 (GRUB_MOD_INIT): Set mtu.
15301 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15302 mtu.
15303 (get_card_packet): Handle allocation.
15304 (grub_ofnet_findcards): Set mtu.
15305 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15306 assert.
15307 (grub_net_recv_ethernet_packet): Handle IPv6.
15308 * grub-core/net/http.c: New file.
15309 * grub-core/net/icmp.c: Likewise.
15310 * grub-core/net/icmp6.c: Likewise.
15311 * grub-core/net/ip.c (ip6addr): New type.
15312 (ip6hdr): Likewise.
15313 (reassemble): Likewise.
15314 (cmp): New function.
15315 (reassembles): New variable.
15316 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15317 (id): New variable.
15318 (send_fragmented): New function.
15319 (grub_net_send_ip_packet): Rename to ...
15320 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15321 Handle non-UDP.
15322 (grub_net_recv_ip_packets): Rename to ...
15323 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15324 (free_rsm): New function.
15325 (free_old_fragments): Likewise.
15326 (grub_net_recv_ip4_packets): New function.
15327 (grub_net_send_ip6_packet): Likewise.
15328 (grub_net_send_ip_packet): Likewise.
15329 (grub_net_recv_ip6_packets): Likewise.
15330 (grub_net_recv_ip_packets): Likewise.
15331 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15332 (LINK_LAYER_CACHE_SIZE): New const.
15333 (link_layer_find_entry): New function.
15334 (grub_net_link_layer_add_address): Likewise.
15335 (grub_net_link_layer_resolve_check): Likewise.
15336 (grub_net_link_layer_resolve): Likewise.
15337 (grub_net_ipv6_get_slaac): Likewise.
15338 (grub_net_ipv6_get_link_local): Likewise.
15339 (grub_cmd_ipv6_autoconf): Likewise.
15340 (parse_ip): Handle one number representation.
15341 (parse_ip6): New functoion.
15342 (match_net): Handle IPv6.
15343 (grub_net_resolve_address): Handle IPv6 and DNS.
15344 (grub_net_resolve_net_address): Handle IPv6.
15345 (route_cmp): New function.
15346 (grub_net_route_address): Find best route.
15347 (grub_net_addr_to_str): Handle IPv6.
15348 (grub_net_addr_cmp): New function.
15349 (grub_net_add_addr): Register local route.
15350 (print_net_address): Handle net address.
15351 (grub_net_poll_cards): Retransmit TCP.
15352 (grub_net_poll_cards_idle_real): Likewise.
15353 (have_ahead): New function.
15354 (grub_net_seek_real): Use underlying seek.
15355 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15356 * grub-core/net/tcp.c: New file.
15357 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15358 (cmp): New function.
15359 (ack): Likewise.
15360 (tftp_receive): Handle unordered input.
15361 (destroy_pq): New function.
15362 (tftp_close): Close pq.
15363 * grub-core/net/udp.c: Put missing license header.
15364 (grub_net_udp_socket): New function.
15365 (udp_socket_register): Likewise.
15366 (grub_net_udp_close): Likewise.
15367 (grub_net_recv_udp_packet): Check checksum.
15368 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15369 * include/grub/misc.h (grub_memchr): New function.
15370 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15371 (grub_net_card_driver): Return buf in recv.
15372 (grub_net_slaac_mac_list): New struct.
15373 (grub_network_level_protocol_id): Add ipv6.
15374 (grub_net_network_level_addr): Likewise.
15375 (grub_net_network_level_net_addr): Likewise.
15376 (grub_net_app_protocol): Add seek.
15377 (grub_net_socket): Removed.
15378 (grub_net_sockets): Likewise.
15379 (grub_net_socket_register): Likewise.
15380 (grub_net_socket_unregister): Likewise.
15381 (FOR_NET_SOCKETS): Likewise.
15382 (grub_net_add_addr): Add const.
15383 (GRUB_NET_BOOTP_*): New enum.
15384 (grub_net_addr_cmp): New proto.
15385 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15386 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15387 (grub_net_hwaddr_to_str): NEw proto.
15388 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15389 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15390 (grub_dns_init): New proto.
15391 (grub_dns_fini): Likewise.
15392 (grub_net_tcp_retransmit): Likewise.
15393 (grub_net_link_layer_add_address): Likewise.
15394 (grub_net_link_layer_resolve_check): Likewise.
15395 (grub_net_link_layer_resolve): Likewise.
15396 (grub_net_dns_lookup): Likewise.
15397 (grub_net_add_dns_server): Likewise.
15398 (grub_net_remove_dns_server): Likewise.
15399 (GRUB_NET_TRIES): New const.
15400 (GRUB_NET_INTERVAL): Likewise.
15401 * include/grub/net/arp.h: Mostly rewritten.
15402 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15403 * include/grub/net/ip.h: Mostly rewritten.
15404 * include/grub/net/netbuff.h: Indent.
15405 * include/grub/net/tcp.h: New file.
15406 * include/grub/net/udp.h: Mostly rewritten.
15407 * include/grub/priority_queue.h: New file.
15408 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15409 (grub_swap_bytes64_compile_time): Likewise.
15410 (grub_cpu_to_be16_compile_time): Likewise.
15411 (grub_cpu_to_be32_compile_time): Likewise.
15412 (grub_cpu_to_be64_compile_time): Likewise.
15413 (grub_be_to_cpu64_compile_time): Likewise.
15414
15415 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15418 UINT_TO_PTR with cast.
15419
15420 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15423 don't use them.
15424
15425 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15428 already there.
15429
15430 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15433 confusing ipxe.
15434
15435 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15436
15437 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15438 Add missing const attribute.
15439 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15440 Likewise.
15441 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15442 Likewise.
15443
15444 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15445
15446 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15447 misaligned access.
15448 (serpent_setkey): Likewise.
15449 (serpent_encrypt_internal): Likewise.
15450 (serpent_decrypt_internal): Likewise.
15451 (serpent_encrypt): Don't put an alignment-increasing cast.
15452 (serpent_decrypt): Likewise.
15453 (serpent_test): Likewise.
15454
15455 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15456
15457 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15458
15459 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15460
15461 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15462
15463 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15464 grub_addr_t casts.
15465 (PTR_TO_UINT64): Likewise.
15466 (PTR_TO_UINT32): Likewise.
15467
15468 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15471 because of stack.
15472 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15473 limit.
15474
15475 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15478 text_width > available width a bit more gracefully.
15479
15480 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15481
15482 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15483 current address calculation.
15484
15485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15486
15487 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15488 stack.
15489 (encode_block): Likewise.
15490
15491 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15494 certainety.
15495
15496 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15499 non-RS part to avoid RS messing with GDT.
15500 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15501 Increase to suit in realmode routines.
15502
15503 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15504
15505 * grub-core/kern/i386/realmode.S: Increase alignment.
15506 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15507
15508 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15509
15510 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15511 be deterministic.
15512 (syndroms): Compute 0 syndrom.
15513 (rs_recover): Use 0 syndrom.
15514
15515 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15516
15517 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15518
15519 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15520
15521 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15522 brackets.
15523
15524 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15525
15526 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15527 account.
15528 (get_top_pad): Likewise.
15529 (get_right_pad): Likewise.
15530 (get_bottom_pad): Likewise.
15531
15532 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15533
15534 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15535
15536 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15539 attribute as the structure isn't guaranteed to be properly aligned.
15540 (grub_efi_pci_device_path): Likewise.
15541 (grub_efi_pccard_device_path): Likewise.
15542 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15543 specify the size of `memory_type'.
15544 (grub_efi_vendor_device_path): Likewise.
15545 (grub_efi_controller_device_path): Likewise.
15546 (grub_efi_acpi_device_path): Likewise.
15547 (grub_efi_expanded_acpi_device_path): Likewise.
15548 (grub_efi_atapi_device_path): Likewise.
15549 (grub_efi_scsi_device_path): Likewise.
15550 (grub_efi_fibre_channel_device_path): Likewise.
15551 (grub_efi_1394_device_path): Likewise.
15552 (grub_efi_usb_device_path): Likewise.
15553 (grub_efi_usb_class_device_path): Likewise.
15554 (grub_efi_i2o_device_path): Likewise.
15555 (grub_efi_mac_address_device_path): Likewise.
15556 (grub_efi_ipv4_device_path): Likewise.
15557 (grub_efi_ipv6_device_path): Likewise.
15558 (grub_efi_infiniband_device_path): Likewise.
15559 (grub_efi_uart_device_path): Likewise.
15560 (grub_efi_vendor_messaging_device_path): Likewise.
15561 (grub_efi_hard_drive_device_path): Likewise.
15562 (grub_efi_cdrom_device_path): Likewise.
15563 (grub_efi_vendor_media_device_path): Likewise.
15564 (grub_efi_file_path_device_path): Likewise.
15565 (grub_efi_protocol_device_path): Likewise.
15566 (grub_efi_piwg_device_path): Likewise.
15567 (grub_efi_bios_device_path): Likewise.
15568
15569 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15572 (grub_ucs4_to_utf8_alloc): Likewise.
15573 (grub_ucs4_to_utf8): Likewise.
15574 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15575 (grub_ucs4_to_utf8_alloc): Likewise.
15576
15577 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15578
15579 AFFS never uses unicode.
15580
15581 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15582 (grub_latin1_to_utf8): New inline function.
15583 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15584
15585 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15586
15587 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15588 overflow.
15589
15590 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15593 (grub_squash_dirent_header): Likewise.
15594 (read_chunk): Don't double swap.
15595 (grub_squash_iterate_dir): Fix swap sizes.
15596
15597 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15598
15599 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15600
15601 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15602
15603 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15604 (grub_hfs_iterate_dir): Likewise.
15605
15606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15607
15608 Fix video on platforms where unaligned access is forbidden.
15609 Make several optimisations while on it.
15610
15611 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15612 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15613 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15614 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15615 Disable.
15616 (grub_video_fbblit_replace_16bit_1bit):
15617 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15618 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15619 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15620 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15621 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15622 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15623 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15624 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15625 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15626 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15627 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15628 (grub_video_fbblit_replace_index_RGB888): Likewise.
15629 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15630 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15631 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15632 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15633 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15634 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15635 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15636 Disable.
15637 (grub_video_fbblit_blend_XXX565_1bit):
15638 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15639 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15640 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15641 void *.
15642 * grub-core/video/fb/video_fb.c (common_blitter)
15643 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15644 (grub_video_fb_create_render_target_from_pointer)
15645 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15646 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15647 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15648 definition.
15649 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15650
15651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15652
15653 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15654 HH22 and HM10 relocations.
15655
15656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15659
15660 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15663 allocation succeeded.
15664
15665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15666
15667 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15668 argument a u8 pointer. All users updated.
15669 Handle unaligned buffers.
15670
15671 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15672
15673 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15674 add_part to workaround compiler bug.
15675
15676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15677
15678 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15679
15680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15681
15682 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15683 Reserve alignment invariants.
15684 (grub_multiboot_load): Likewise.
15685 (retrieve_video_parameters): Likewise.
15686 (grub_multiboot_make_mbi): Likewise.
15687
15688 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15691 incorrect pointer.
15692
15693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15696 (grub_pata_pio_write): Likewise.
15697
15698 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15699
15700 Add noreturn attributes and remove unreachable code.
15701
15702 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15703 code.
15704 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15705 code. Mark as noreturn.
15706 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15707 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15708 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15709 unreachable code.
15710 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15711 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15712 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15713 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15714 * include/grub/kernel.h (grub_main): Mark as noreturn.
15715 * include/grub/reader.h (grub_rescue_run): Likewise.
15716
15717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15718
15719 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15720 redundant declaration.
15721
15722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15725 redundant declaration.
15726 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15727
15728 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729
15730 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15731 to ensure alignment.
15732 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15733 alignment. Ensure tmp alignment.
15734 (grub_cmd_hdparm): Ensure buf alignment.
15735 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15736 to ensure alignment.
15737 (grub_ata_dumpinfo): Ensure text alignment.
15738 (grub_atapi_identify): Preserve alignment invariant.
15739 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15740
15741 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15742
15743 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15744 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15745 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15746 * include/grub/misc.h (grub_reboot)
15747 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15748 (grub_halt) [__mips__]: Likewise.
15749
15750 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15751
15752 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15753 Remove redundant declaration.
15754 (grub_mmap_get_post64): Likewise.
15755 (grub_mmap_get_upper): Likewise.
15756 (grub_mmap_get_lower): Likewise.
15757
15758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15761 uint32_t * to ensure alignment.
15762 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15763
15764 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15767 uint16_t * to ensure alignment.
15768 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15769 alignment.
15770
15771 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15772
15773 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15774 to ensure alignment.
15775 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15776
15777 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15780 Handle unaligned pointers.
15781 (u32at): Likewise.
15782 (u64at): Likewise.
15783 (fixup): Use byte access instead of v16at.
15784 (find_attr): Fix imporper usage of v32at.
15785 (read_data): Likewise.
15786 (list_file): Handle byte-swapping and unaligned strings.
15787 (grub_ntfs_label): Likewise.
15788
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15792 as it's not necessarily aligned.
15793
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15797 redundant declaration.
15798 (grub_serial_init): Likewise.
15799 (grub_terminfo_init): Likewise.
15800
15801 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15802
15803 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15804 function.
15805 (ZAP_HASH_IDX): Likewise.
15806 (ZAP_LEAF_HASH_SHIFT): Likewise.
15807 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15808 (LEAF_HASH): Likewise.
15809 (ZAP_LEAF_NUMCHUNKS): Likewise.
15810 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15811 alignment invariants. Return pointer. All users updated.
15812 (ZAP_LEAF_ENTRY): Make into inline function.
15813 (NBBY): Removed.
15814 (xor): LIkewise.
15815 (xor_out): Use grub_crypto_xor.
15816 (dnode_get_path): Use grub_get_unaligned.
15817 (nvlist_find_value): Likewise.
15818 (grub_zfs_nvlist_lookup_uint64): Likewise.
15819 (grub_zfs_nvlist_lookup_string): Likewise.
15820 (get_nvlist_size): Likewise.
15821 (grub_zfs_open): Likewise.
15822 (fill_fs_info): Likewise.
15823 (grub_zfs_dir): Likewise.
15824 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15825 alignment invariants.
15826 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15827 necessarily aligned.
15828
15829 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15832
15833 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15834
15835 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15836 arithmetic to conserve alignment invariants.
15837
15838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15841 redundant declaration.
15842 (grub_efiemu_mm_obtain_request): Likewise.
15843 (grub_efiemu_prepare): Likewise.
15844
15845 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15848 to match types.
15849
15850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15851
15852 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15853 case of aunaligned recptr.
15854 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15855 alignment.
15856 (grub_hfsplus_btree_search): Handle unaligned index.
15857
15858 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15859
15860 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15861 to get freetag and skip.
15862
15863 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15866 array.
15867 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15868 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15869
15870 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15871
15872 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15873 name for checksum and fix allocation algorithm.
15874
15875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * include/grub/types.h (grub_properly_aligned_t): New type.
15878 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15879 (grub_get_unaligned16): Add explicit casts.
15880 (grub_get_unaligned32): Likewise.
15881 (grub_get_unaligned64): Likewise.
15882 (grub_set_unaligned16): New function.
15883 (grub_set_unaligned32): Likewise.
15884
15885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15888
15889 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15892 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15893 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15894
15895 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15896
15897 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15898 conditionals.
15899
15900 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15901
15902 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15903 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15904
15905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15906
15907 Unify and improve RAID and crypto xor.
15908
15909 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15910 changed to grub_crypto_xor
15911 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15912 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15913 Use bigger types when possible.
15914
15915 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15916
15917 * grub-core/disk/raid.c (scan_devices): Fix condition.
15918
15919 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15920
15921 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15922 Make name a const ptr.
15923
15924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15925
15926 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15927 first argument a const pointer.
15928 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
15929 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
15930 proto.
15931 (grub_children_iterate): Likewise.
15932 (grub_machine_mmap_iterate): Remove redundant declaration.
15933
15934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
15937 (grub_cmd_acpi) [!x86]: Disable EBDA.
15938
15939 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15940
15941 Enable UTF8 in gnulib regexp.
15942
15943 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
15944 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
15945 (isupper): Use grub_isupper.
15946 (isascii): New inline function.
15947 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
15948 * grub-core/lib/posix_wrap/wctype.h: Likewise.
15949 * grub-core/normal/charset.c (grub_utf8_process): New function.
15950 (grub_utf8_to_utf16): Use grub_utf8_process.
15951 (grub_encode_utf8_character): New function.
15952 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
15953 * include/grub/charset.h (grub_utf8_process): New declaration.
15954 (grub_encode_utf8_character): Likewise.
15955 * include/grub/misc.h (grub_islower): New inline function.
15956 (grub_isupper): Likewise.
15957 (grub_strchrsub): Moved down to fix the definitions.
15958
15959 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
15962 specification.
15963
15964 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 * include/grub/loader.h (grub_loader_register_preboot_hook):
15967 Use struct preboot * and not void * for handle. All users updated.
15968 (grub_loader_unregister_preboot_hook): Likewise.
15969
15970 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15971
15972 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
15973 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
15974 UTF-16-BE. All users updated.
15975 (grub_hfsplus_cmp_catkey): Fix unicode handling.
15976 (grub_hfsplus_iterate_dir): Likewise.
15977 (grub_hfsplus_label): Likewise.
15978
15979 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
15980
15981 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
15982
15983 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
15984
15985 Add missing const qualifiers.
15986
15987 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
15988 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
15989 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
15990 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
15991 (grub_lvm_check_flag): Likewise.
15992 * grub-core/efiemu/i386/coredetect.c
15993 (grub_efiemu_get_default_core_name): Likewise
15994 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
15995 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
15996 * grub-core/fs/ntfs.c (fixup): Likewise.
15997 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
15998 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
15999 (fzap_lookup): Likewise.
16000 (zap_lookup): Likewise.
16001 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16002 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16003 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16004 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16005 (grub_freebsd_add_meta_module): Likewise.
16006 (grub_cmd_freebsd_module): Likewise.
16007 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16008 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16009 (grub_xnu_writetree_get_size): Likewise.
16010 (grub_xnu_writetree_toheap_real): Likewise.
16011 (grub_xnu_find_key): Likewise.
16012 (grub_xnu_create_key): Likewise.
16013 (grub_xnu_create_value): Likewise.
16014 (grub_xnu_register_memory): Likewise.
16015 (grub_xnu_check_os_bundle_required): Likewise.
16016 (grub_xnu_scan_dir_for_kexts): Likewise.
16017 (grub_xnu_load_kext_from_dir): Likewise.
16018 * grub-core/normal/color.c (color_list): Likewise.
16019 * grub-core/normal/completion.c (current_word): Likewise.
16020 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16021 * grub-core/term/serial.c (grub_serial_find): Likewise.
16022 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16023 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16024 Likewise.
16025 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16026 (grub_freebsd_add_meta_module): Likewise.
16027 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16028 * include/grub/net.h (grub_net_card_driver): Likewise.
16029 (grub_net_card): Likewise.
16030 (grub_net_app_protocol): Likewise.
16031 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16032 * include/grub/serial.h (grub_serial_find): Likewise.
16033 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16034 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16035 (grub_xnu_create_value): Likewise.
16036 (grub_xnu_find_key): Likewise.
16037 (grub_xnu_scan_dir_for_kexts): Likewise.
16038 (grub_xnu_load_kext_from_dir): Likewise.
16039
16040 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16041 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16042 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16043 Moved from here ...
16044 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16045
16046 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16047
16048 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16049
16050 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16053 (read_device): Fix size calculation.
16054
16055 2011-11-25 Robert Millan <rmh@gnu.org>
16056
16057 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16058 (find_root_device_from_libzfs): Add zpool output parser to be used
16059 as fallback when libzfs isn't available.
16060
16061 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16062
16063 * po/Makefile.in.in: Add missing escape-continuation.
16064
16065 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16066
16067 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16068
16069 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16070
16071 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16072
16073 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16076
16077 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16080
16081 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16082
16083 * grub-core/lib/adler32.c: Add missing license specification.
16084 * grub-core/lib/crc64.c: Likewise.
16085 * grub-core/loader/i386/pc/plan9.c: Likewise.
16086 * grub-core/partmap/plan.c: Likewise.
16087
16088 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16089
16090 Add facility to debug GRUB with gdb under qemu.
16091
16092 * grub-core/gdb_grub.in: New file.
16093 * grub-core/gmodule.pl.in: Likewise.
16094 * grub-core/Makefile.core.def (gmodule.pl): New script.
16095 (gdb_grub): Likewise.
16096
16097 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16098
16099 * util/grub-mount.c (argp_parser): Accept relative pathes.
16100 * util/grub-fstest.c (argp_parser): Likewise.
16101
16102 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 Plan9 support.
16105
16106 * Makefile.util.def (libgrubmods): Add
16107 grub-core/partmap/plan.c.
16108 * docs/grub.texi: Notice Plan9 support.
16109 * grub-core/Makefile.core.def (plan9): New module.
16110 (part_plan): Likewise.
16111 * grub-core/loader/i386/pc/plan9.c: New file.
16112 * grub-core/partmap/plan.c: Likewise.
16113 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16114 define.
16115 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16116 * include/grub/mm.h (grub_extend_alloc): New inline function.
16117
16118 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16119
16120 Make Reed-Solomon faster by using power of generator representation of
16121 GF(256)*.
16122
16123 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16124 (gf_double_t): Likewise.
16125 (gf_invert): Removed.
16126 (gf_powx): New array.
16127 (gf_powx_inv): Likewise.
16128 (scratch): Move higher.
16129 (gf_reduce): Removed.
16130 (gf_mul): Use powx.
16131 (gf_invert): Likewise.
16132 (init_inverts): Replaced with ...
16133 (init_powx): ...this. All users updated.
16134 (pol_evaluate): Replace multiplications with additions.
16135 (rs_encode): Likewise.
16136 (gauss_eliminate): Call gf_invert.
16137 (grub_reed_solomon_add_redundancy): Call init_powx.
16138 (grub_reed_solomon_recover): Call init_powx unconditionally.
16139
16140 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16143
16144 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16147 disk->partiton for safety.
16148
16149 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16150
16151 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16152 Fix a memory leak.
16153 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16154
16155 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16156
16157 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16158
16159 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16160
16161 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16162
16163 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16164
16165 Fix spaces handling in proc/self/mountinfo.
16166
16167 * util/getroot.c (unescape): New function.
16168 (grub_find_root_device_from_mountinfo): Use unescape.
16169
16170 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16171
16172 Support ZFS embedding.
16173
16174 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16175 (grub_zfs_fs): Register grub_zfs_embed.
16176
16177 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16178
16179 Fix MIPS compilation.
16180
16181 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16182 * include/grub/offsets.h: Rename decompressor fields from
16183 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16184 * util/grub-mkimage.c (image_targets): Use new names.
16185
16186 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16187
16188 Defer multiboot device parsing until we're in compressed part.
16189
16190 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16191 bsd_part. setdevice has fallen into disuse.
16192 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16193 (bsd_part): Likewise.
16194 (boot_dev): New variable.
16195 (multiboot_trampoline): Don't parse multiboot device.
16196 Pass multiboot device in %edx.
16197 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16198 grub_boot_device.
16199 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16200 Likewise.
16201 * grub-core/kern/i386/pc/startup.S: Save edx.
16202 (grub_boot_drive): Removed.
16203 (grub_install_dos_part): Likewise.
16204 (grub_install_bsd_part): Likewise.
16205 (grub_boot_device): New variable.
16206 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16207 (grub_install_bsd_part): Likewise.
16208 (grub_boot_drive): Likewise.
16209 (grub_boot_device): New variable.
16210 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16211 Removed.
16212 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16213 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16214 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16215 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16216 * util/grub-install.in: Remove redundant condition.
16217
16218 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16219
16220 Fix bug introduced by previous commit.
16221
16222 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16223
16224 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16225
16226 Use decompressors framework on i386-pc. It increases core size
16227 by 46 bytes but improves compatibility and maintainability.
16228
16229 * grub-core/Makefile.core.def (lzma_decompress): New image.
16230 (kernel): Add i386_pc_ldflags.
16231 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16232 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16233 to real_to_prot, prot_to_real and device info.
16234 * include/grub/offsets.h: Renamed decompressor offsets.
16235 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16236 (image_target_desc): Remove raw_size and rename decompressor fields.
16237 (compress_kernel): Handle lzma.
16238 (generate_image): Handle decompressors on i386-pc.
16239
16240 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16241
16242 * configure.ac: Add -fno-asynchronous-unwind-tables.
16243
16244 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16245
16246 Move assembly code to C by using intwrap. It increases core size
16247 by 88 bytes but improves compatibility and maintainability.
16248
16249 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16250 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16251 ... here. Translated to C.
16252 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16253 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16254 ... here. Translated to C.
16255 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16256 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16257 ... here. Translated to C.
16258 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16259 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16260 ... here. Translated to C.
16261 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16262 * grub-core/term/i386/pc/console.c (grub_console_cls):
16263 ... here. Translated to C.
16264 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16265 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16266 ... here. Translated to C.
16267 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16268 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16269 Translated to C.
16270 * grub-core/term/i386/pc/console.c (int10_9): New function.
16271 (grub_console_putchar): Likewise.
16272 * include/grub/i386/pc/console.h: Removed the not anymore shared
16273 functions.
16274
16275 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 Move grub_chainloader_real_boot out of the kernel.
16278
16279 * grub-core/Makefile.am: Remove machine/loader.h.
16280 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16281 Removed.
16282 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16283 variable.
16284 (grub_relocator16_keep_a20_enabled): Likewise.
16285 (grub_relocator16_boot): Fill new variables.
16286 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16287 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16288 relocator.
16289 (grub_chainloader_unload): Likewise.
16290 (grub_chainloader_cmd): Likewise.
16291 * include/grub/i386/pc/loader.h: Removed.
16292 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16293 and esi. All initialisers updated.
16294
16295 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16296 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16297
16298 * Makefile.util.def (grub-mount): New util.
16299 * .bzrignore: Add grub-mount.
16300 * configure.ac: Check for fuse and enable grub-mount if available.
16301 * docs/man/grub-mount.h2m: New file.
16302 * util/grub-mount.c: Likewise.
16303
16304 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16305
16306 * grub-core/commands/efi/fixvideo.c: Gettextize.
16307 * grub-core/commands/hashsum.c: Likewise.
16308 * grub-core/commands/i386/cmostest.c: Likewise.
16309 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16310 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16311 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16312 * grub-core/commands/lsmmap.c: Likewise.
16313 * grub-core/commands/menuentry.c: Likewise.
16314 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16315 * grub-core/commands/setpci.c: Likewise.
16316 * grub-core/loader/i386/bsd.c: Likewise.
16317 * grub-core/loader/i386/linux.c: Likewise.
16318 * util/getroot.c: Likewise.
16319 * util/grub-editenv.c: Likewise.
16320 * util/grub-fstest.c: Likewise.
16321 * util/grub-mkfont.c: Likewise.
16322 * util/grub-mkimage.c: Likewise.
16323 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16324 * util/grub-pe2elf.c: Likewise.
16325 * util/grub-probe.c: Likewise.
16326 * util/grub-setup.c: Likewise.
16327 * util/ieee1275/ofpath.c: Likewise.
16328 * util/misc.c: Likewise.
16329 * util/raid.c: Likewise.
16330
16331 2011-11-11 Robert Millan <rmh@gnu.org>
16332
16333 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16334 __attribute__((unused)) from `os_dev', which *is* being used.
16335
16336 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16339 forgotten define.
16340 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16341 GRUB_IA64_DL_GOT_ALIGN.
16342 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16343 GRUB_IA64_DL_TRAMP_ALIGN.
16344
16345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16346
16347 Replace grub_fatal with normal errors in i386 linux loader.
16348
16349 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16350 (allocate_pages): Check find_efi_mmap_size return value.
16351 (grub_e820_add_region): Return error.
16352 (grub_linux_boot): Check mmap return value.
16353
16354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16355
16356 * grub-core/commands/acpihalt.c: Gettextized.
16357 * grub-core/commands/cacheinfo.c: Likewise.
16358 * grub-core/commands/cmp.c: Likewise.
16359 * grub-core/commands/efi/loadbios.c: Likewise.
16360 * grub-core/commands/gptsync.c: Likewise.
16361 * grub-core/commands/ieee1275/suspend.c: Likewise.
16362 * grub-core/commands/legacycfg.c: Likewise.
16363 * grub-core/commands/memrw.c: Likewise.
16364 * grub-core/commands/minicmd.c: Likewise.
16365 * grub-core/commands/parttool.c: Likewise.
16366 * grub-core/commands/time.c: Likewise.
16367 * grub-core/commands/videoinfo.c: Likewise.
16368 * grub-core/disk/geli.c: Likewise.
16369 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16370 * grub-core/disk/luks.c: Likewise.
16371 * grub-core/disk/lvm.c: Likewise.
16372 * grub-core/font/font_cmd.c: Likewise.
16373 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16374 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16375 * grub-core/gfxmenu/view.c: Likewise.
16376 * grub-core/kern/emu/hostdisk.c: Likewise.
16377 * grub-core/kern/emu/main.c: Likewise.
16378 * grub-core/kern/emu/misc.c: Likewise.
16379 * grub-core/kern/emu/mm.c: Likewise.
16380 * grub-core/kern/mips/arc/init.c: Likewise.
16381 * grub-core/kern/mips/loongson/init.c: Likewise.
16382 * grub-core/kern/partition.c: Likewise.
16383 * grub-core/lib/i386/halt.c: Likewise.
16384 * grub-core/lib/mips/arc/reboot.c: Likewise.
16385 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16386 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16387 * grub-core/loader/i386/xnu.c: Likewise.
16388 * grub-core/loader/multiboot.c: Likewise.
16389 * grub-core/net/bootp.c: Likewise.
16390 * grub-core/net/net.c: Likewise.
16391 * grub-core/normal/term.c: Likewise.
16392 * grub-core/partmap/bsdlabel.c: Likewise.
16393 * grub-core/parttool/msdospart.c: Likewise.
16394 * grub-core/term/gfxterm.c: Likewise.
16395 * grub-core/term/terminfo.c: Likewise.
16396 * grub-core/video/i386/pc/vbe.c: Likewise.
16397 * util/grub-menulst2cfg.c: Likewise.
16398 * util/grub-mkdevicemap.c: Likewise.
16399 * util/grub-mklayout.c: Likewise.
16400 * util/grub-mkrelpath.c: Likewise.
16401 * util/grub-script-check.c: Likewise.
16402 * util/ieee1275/grub-ofpathname.c: Likewise.
16403 * util/resolve.c: Likewise.
16404
16405 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16406
16407 Support %1$d syntax.
16408
16409 * tests/printf_unit_test.c: New file.
16410 * Makefile.util.def (printf_test): New test.
16411 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16412
16413 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16416 fix.
16417
16418 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16419
16420 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16421 dprintf.
16422 * grub-core/font/font.c (grub_font_load): Likewise.
16423
16424 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 * util/grub-macho2img.c: Add comment concerning gettext.
16427 * grub-core/lib/legacy_parse.c: Likewise.
16428
16429 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16430
16431 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16432 (grub_xvasprintf): Likewise.
16433
16434 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 Add const keyword to grub_env_get and gettextize week days.
16437
16438 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16439 (grub_read_hook_datetime): Return const char *.
16440 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16441 updated.
16442 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16443 Mark for gettext.
16444 (grub_get_weekday_name): Return const char *. Call gettext.
16445 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16446 char * and len as the argument. All users updated.
16447 (grub_script_argv_split_append): Receive const char *.
16448 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16449 * include/grub/env.h (grub_env_get): Likewise.
16450 (grub_env_read_hook_t): Return const char *.
16451 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16452 (grub_script_argv_split_append): Likewise.
16453
16454 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16455
16456 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16457
16458 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16461 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16462
16463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16464
16465 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16466 Fix prototype.
16467
16468 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16469
16470 Fix mips compilation.
16471
16472 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16473 normal decoder.
16474 (hashes): Use in embed decoder as well (for sizes).
16475 (dec_stream_header): Fix embed decompressor logic.
16476 (dec_stream_footer): Likewise.
16477
16478 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16479
16480 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16481 an error and not a fatal on unrecognised relocation types.
16482
16483 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16486 Issue error rather than printf on unknown arguments.
16487
16488 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16491 Make buf a const.
16492
16493 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16494
16495 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16496 Fix module name.
16497
16498 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16499
16500 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16501 leftover debug printf.
16502
16503 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16504
16505 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16506
16507 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16508
16509 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16510 A stylistic fix.
16511
16512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16515
16516 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16517
16518 Allow all modules to perform serial IO
16519
16520 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16521 * include/grub/serial.h (grub_serial_port_configure): New inline
16522 function.
16523 (grub_serial_port_fetch): Likewise.
16524 (grub_serial_port_put): Likewise.
16525 (grub_serial_port_fini): Likewise.
16526 (grub_serial_find): New proto.
16527
16528 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 Put symlink at the end of the node and fix a potential
16531 memory corruption.
16532
16533 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16534 Make symlink into an array.
16535 (set_rockridge): Set have_symlink and alloc_dirents.
16536 (grub_iso9660_read_symlink): Use new layout.
16537 (grub_iso9660_iterate_dir): Fix memory corruption.
16538 Use new layout.
16539 (grub_iso9660_dir): Set have_symlink.
16540 (grub_iso9660_open): Likewise.
16541
16542 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 Remove local keyword.
16545
16546 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16547 (version_test_gt): Likewise.
16548 (version_find_latest): Likewise.
16549 (gettext_printf): Likewise.
16550 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16551
16552 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16553
16554 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16555
16556 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16557
16558 Fix ZFS memory and resource leaks.
16559
16560 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16561 All users updated.
16562 Free type on exit.
16563 (fill_vdev_info): New parameter inserted. All users updated.
16564 (check_pool_label): Likewise.
16565 (scan_disk): Likewise.
16566 (scan_devices): Close non-inserted disks.
16567 (fzap_iterate): Free l.
16568 (unmount_device): Free children descripto memory.
16569
16570 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16571
16572 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16573 argument (access out of bounds).
16574
16575 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16578 >= 6 drives.
16579
16580 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16581
16582 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16583 Fix declaration.
16584
16585 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 Fix several memory leaks.
16588
16589 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16590 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16591 (grub_cpio_dir): Likewise.
16592 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16593 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16594 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16595 (grub_romfs_label): Likewise.
16596 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16597 (squash_unmount): New function.
16598 (grub_squash_dir): Fix memory leak.
16599 (grub_squash_open): Likewise.
16600 (grub_squash_read): Likewise.
16601 (grub_squash_mtime): Likewise.
16602 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16603 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16604 * util/grub-fstest.c (fstest): Likewise.
16605
16606 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16609 avoid accessing beyond the array.
16610
16611 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16614
16615 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16616
16617 Several AFFS fixes.
16618
16619 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16620 (GRUB_AFFS_FLAG_FFS): Removed.
16621 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16622 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16623 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16624 (grub_fshelp_node): Make block 32-bit.
16625 Add block_cache and last_block_cache.
16626 (grub_affs_read_block): Fill and use block cache.
16627 (grub_affs_read_file): Removed.
16628 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16629 boot block.
16630 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16631 safety.
16632 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16633 space.
16634 (grub_affs_close): Free block cache.
16635 (grub_affs_read): Use grub_fshelp_read_file directly.
16636
16637 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16638
16639 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16640 with no error set.
16641
16642 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16645 used variable.
16646 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16647 Likewise.
16648
16649 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16652
16653 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16654 byteswap when needed.
16655
16656 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 Fix FreeBSD compilation.
16659
16660 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16661 to avoid circular dependency.
16662 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16663 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16664 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16665
16666 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 Fix ZFS crypto error types.
16669
16670 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16671 (grub_gcm_decrypt): Likewise.
16672 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16673 from PBKDF2.
16674
16675 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 Illumos support.
16678
16679 * Makefile.util.def (10_illumos): New script.
16680 * configure.ac: Set COND_HOST_ILLUMOS.
16681 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16682 Support Illumos calls.
16683 (find_partition_start) [__sun__]: Likewise.
16684 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16685 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16686 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16687 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16688 device.
16689 * util/grub-probe.c (probe) [__sun__]: Do character check.
16690 * util/grub.d/10_illumos.in: New file.
16691
16692 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16693
16694 Support escaped commas in hostdisk.
16695
16696 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16697 (find_grub_drive): Use unescape_cmp.
16698 (make_device_name): Escape commas.
16699
16700 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16701
16702 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16703
16704 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16707 variable.
16708
16709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16710
16711 Support trampoline jumps on powerpc.
16712
16713 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16714 __ia64__ path.
16715 (grub_dl_load_segments): Set mod->sz.
16716 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16717 segments.
16718 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16719 (jump): Likewise.
16720 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16721 function.
16722 (trampoline): New struct.
16723 (trampoline_template): New const.
16724 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16725 * include/grub/dl.h (grub_dl): Add sz element.
16726 [__powerpc__]: Follow __ia64__.
16727 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16728 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16729 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16730 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16731
16732 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16733
16734 ZFS crypto support.
16735
16736 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16737 * grub-core/Makefile.core.def (zfscrypt): New module.
16738 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16739 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16740 it. All users updated.
16741 (grub_zfs_decrypt): New var.
16742 (grub_zfs_load_key): Likewise.
16743 (zio_checksum_functions): Add SHA256+MAC.
16744 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16745 (zio_read): Handle encrypted blocks.
16746 (zap_verify): Remove incorrect check.
16747 (fzap_iterate): Handle non-standard fzap.
16748 (zap_iterate): Likewise.
16749 (zap_iterate_u64): New function.
16750 (dnode_get_fullpath): Load keys.
16751 * grub-core/fs/zfs/zfscrypt.c: New file.
16752 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16753 (grub_crypto_ecb_encrypt): Make input const.
16754 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16755 (grub_crypto_ecb_encrypt): Make input const.
16756 (GRUB_CIPHER_AES): New macro.
16757 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16758 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16759 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16760 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16761 prefix. All users updated.
16762 (grub_zfs_add_key): New proto.
16763 (grub_zfs_decrypt): Likewise.
16764 (grub_zfs_load_key): Likewise.
16765 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16766 * util/grub-fstest.c (options): Add -K option.
16767 (argp_parser): Likewise.
16768
16769 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16770
16771 Support zle compression on ZFS.
16772
16773 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16774 (decomp_table): Add zle.
16775 * include/grub/zfs/zio.h (zio_compress): Add zle.
16776
16777 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16778
16779 Support BtrFS embedding.
16780
16781 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16782 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16783 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16784 * util/grub-setup.c (setup): Use fs embedding if available.
16785 Add additional sanity check.
16786
16787 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 * util/grub-install.in: Fix condition for config_opt.
16790
16791 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16792
16793 Support third redundancy strip on raidz3.
16794
16795 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16796 Return error on singularity. All users updated.
16797 (read_device): Don't stop on 3rd failure on raidz3.
16798
16799 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 Support case-insensitive ZFS subvolumes.
16802
16803 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16804 All users updated.
16805 (zap_hash): Likewise.
16806 (name_cmp): New function.
16807 (zap_leaf_array_equal): New parameter case_insensitive.
16808 All users updated.
16809 (zap_leaf_lookup): Likewise.
16810 (fzap_lookup): Likewise.
16811 (zap_lookup): Likewise.
16812 (dnode_get_path): New parameter case_insensitive. Retrieve case
16813 sensitiviness of a volume. All users updated.
16814 (dnode_get_fullpath): New parameter case_insensitive.
16815 All users updated.
16816 (grub_zfs_dir): Set info.case_insensitiveness.
16817
16818 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16819
16820 Support second redundancy strip on raidz(2,3).
16821
16822 * grub-core/fs/zfs/zfs.c (powx): New array.
16823 (powx_inv): Likewise.
16824 (poly): New const.
16825 (xor_out): New function.
16826 (gf_mul): Likewise.
16827 (recovery): Likewise.
16828 (read_device): Use second redundancy strip.
16829
16830 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16831
16832 Use a power of generator representation of GF(256) multiplication group
16833 to save space time and complexity.
16834
16835 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16836 (raid6_table2): Likewise.
16837 (powx): New array.
16838 (powx_inv): Likewise.
16839 (poly): New const.
16840 (grub_raid_block_mul): Replace with ...
16841 (grub_raid_block_mulx): ...this.
16842 (grub_raid6_init_table): Rewritten.
16843 (grub_raid6_recover): Use power of generator representation.
16844
16845 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16848 for the right device.
16849
16850 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16851
16852 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16853 expected by grub-mkimage and it's more clear since there is no implicit
16854 padding.
16855
16856 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16857
16858 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16859 disk.
16860 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16861
16862 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16863
16864 * util/grub-mkrescue.in: Fix handling xorriso option.
16865
16866 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16867
16868 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16869 NULL.
16870
16871 2011-11-03 crocket <crockabiscuit@gmail.com>
16872
16873 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16874
16875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16876
16877 XZ CRC64 and SHA256 support.
16878
16879 * Makefile.util.def (libgrubmods): Add crc64.c.
16880 * grub-core/Makefile.core.def (crc64): New module.
16881 * grub-core/lib/crc64.c: New file.
16882 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16883 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16884 Fix the type.
16885 (MAX_HASH_SIZE): New define.
16886 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16887 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16888 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16889 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16890 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16891 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16892 Handle non-crc32 hashes.
16893 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16894 (dec_stream_header): Handle non-crc32 hashes.
16895 (dec_stream_footer): Likewise.
16896 (dec_block_header): Likewise.
16897 (dec_main): Likewise.
16898 (xz_dec_init): Likewise.
16899 (xz_dec_reset): Likewise.
16900 (xz_dec_end): Likewise.
16901 * util/import_gcry.py: Add CRC64 line.
16902
16903 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16906 as well.
16907
16908 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16909
16910 Make reiserfs label retrieval similar to other *_label functions.
16911
16912 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16913 (REISERFS_MAX_LABEL_LENGTH): Removed.
16914 (REISERFS_LABEL_OFFSET): Likewise.
16915 (grub_reiserfs_label): Rewritten.
16916
16917 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16918
16919 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16920 field.
16921
16922 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16923
16924 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16925
16926 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
16929 drive failure on both raidz and raidz2.
16930
16931 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 Fix RAIDZ(2) for >= 5 devices.
16934
16935 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
16936 asize argument. All users updated.
16937
16938 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16939
16940 Fix RAIDZ(2).
16941
16942 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
16943 (fill_vdev_info_real): Set ashift.
16944 (read_device): Rewrite RAIDZ part based on reverse engineering.
16945
16946 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16947
16948 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
16949 don't report potentially unavialiable fields in debug output.
16950 (find_path): Fix double-free and memory leak.
16951
16952 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 Read label on UFS1.
16955
16956 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
16957 (grub_ufs_fs): Always set .label.
16958
16959 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16960
16961 Use shifts in UFS.
16962
16963 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
16964 (grub_ufs_data): New field log2_blksz.
16965 (grub_ufs_read_file): Use shifts.
16966 (grub_ufs_mount): Check block size and logarithm it.
16967
16968 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
16969
16970 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
16971 long symlinks.
16972
16973 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16974
16975 Handle symlinks and long names on tar and cpio.
16976
16977 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
16978 (ATTR_FILE): Likewise.
16979 (ATTR_DIR): Likewise.
16980 (ATTR_LNK): Likewise.
16981 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
16982 (grub_cpio_find_file): Fill mode, handle linkname field as well as
16983 L and K entries.
16984 (grub_cpio_mount): Zero-fill data.
16985 (handle_symlink): New function.
16986 (grub_cpio_dir): Handle symlinks.
16987 (grub_cpio_open): Likewise.
16988 (grub_cpio_close) [MODE_USTAR]: Free linkname.
16989
16990 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16991
16992 Fix iso9660 filename limitations and fix memory leaks.
16993
16994 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
16995 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
16996
16997 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
16998
16999 Fix JFS file name length limitations.
17000
17001 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17002 (grub_jfs_diropen): Fix maximum filename length.
17003 (grub_jfs_getent): Fix filename length.
17004 (grub_jfs_lookup_symlink): Fix size checks.
17005
17006 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17009 string.
17010
17011 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17012
17013 Leverage BFS implementation to read AFS.
17014
17015 * Makefile.util.def (libgrubmods): Add afs.c.
17016 * grub-core/Makefile.core.def (afs): New module
17017 * grub-core/fs/afs.c: New file.
17018 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17019
17020 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17021
17022 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17023
17024 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17025
17026 * grub-core/fs/bfs.c: Run indent.
17027
17028 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17029
17030 BFS implementation based on the specification.
17031
17032 * grub-core/fs/bfs.c: New file.
17033 * Makefile.util.def (libgrubmods): Add bfs.c.
17034 * grub-core/Makefile.core.def (bfs): New module.
17035
17036 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 * util/grub-fstest.c (cmd_cp): Clarify error message.
17039 (cmd_cmp): Likewise.
17040
17041 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17042
17043 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17044 and befs_be.
17045
17046 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 Remove afs and befs because of copyright problem.
17049
17050 * grub-core/fs/afs.c: Removed.
17051 * grub-core/fs/afs_be.c: Removed.
17052 * grub-core/fs/befs.c: Removed.
17053 * grub-core/fs/befs_be.c: Removed.
17054 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17055 * grub-core/Makefile.core.def (afs): Removed.
17056 (afs_be): Likewise.
17057 (befs): Likewise.
17058 (befs_be): Likewise.
17059
17060 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17061
17062 Prefer rockridge over Joliet.
17063
17064 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17065 to ...
17066 (set_rockridge): ... here.
17067 (grub_iso9660_mount): Check rockridge on the primary label when
17068 discovering. Ignore Joliet if Rockridge is present.
17069
17070 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17071
17072 Use shifts in nilfs2.
17073
17074 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17075 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17076 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17077 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17078 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17079 (grub_nilfs2_entries_per_block): Replaced with ...
17080 (grub_nilfs2_log_entries_per_block_log): ... this.
17081 (grub_nilfs2_blocks_per_group): Replaced with ...
17082 (grub_nilfs2_blocks_per_group_log): ... this.
17083 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17084 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17085 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17086 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17087 (grub_nilfs2_palloc_entry_offset): Replaced ...
17088 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17089 (grub_nilfs2_dat_translate): Use shifts.
17090 (grub_nilfs2_read_inode): Likewise.
17091 (GRUB_MOD_INIT): Ensure that logs are correct.
17092
17093 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 Use shifts in minix filesystem.
17096
17097 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17098 (GRUB_MINIX_ZONE2SECT): Likewise.
17099 (grub_minix_data): Replace block_size with log_block_size.
17100 (grub_minix_read_file): Use shifts.
17101 (grub_minix_mount): Check block size and take a logarithm.
17102
17103 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17104
17105 Use shifts in squash4.
17106
17107 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17108 (squash_mount): Check block size and take logarithm.
17109 (direct_read): Use shifts.
17110
17111 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17112
17113 Correct befs block counting logic.
17114
17115 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17116 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17117 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17118 (grub_afs_read_inode): Use block_shift.
17119 (RANGE_SHIFT): New definition.
17120 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17121 unexpected conditions, use shifts and appropriate types.
17122 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17123
17124 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17125
17126 * grub-core/disk/raid.c (scan_devices): Check partition.
17127 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17128
17129 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17130
17131 Support BFS (befs) UUID.
17132
17133 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17134 (grub_afs_small_data_element_header): New struct.
17135 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17136 (grub_afs_read_attribute) [MODE_BFS]: New function.
17137 (grub_afs_iterate_dir): Allocate for complete inode.
17138 (grub_afs_mount): Likewise.
17139 (grub_afs_uuid) [MODE_BFS]: New function.
17140 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17141
17142 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17143
17144 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17145 (zfs_unmount): Fix memory leak.
17146
17147 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17148
17149 Support NTFS reparse points.
17150
17151 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17152 (symlink_descriptor): New struct.
17153 (grub_ntfs_read_symlink): New function.
17154 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17155 (grub_ntfs_open): Likewise.
17156
17157 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17158
17159 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17160
17161 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17162
17163 fstest xnu_uuid subcommand.
17164
17165 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17166 grub-core/commands/xnu_uuid.c.
17167 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17168 (fstest): Handle xnu_uuid.
17169 (options): Document xnu_uuid.
17170 (argp_parser): Parse xnu_uuid.
17171
17172 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17173
17174 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17175 -l argument. Add newline at the end if printing.
17176 (GRUB_MOD_INIT): Document -l.
17177
17178 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17181
17182 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 ZFS multi-device and version 33 support.
17185
17186 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17187 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17188 (grub_zfs_data): Add multidev-ice-related fields.
17189 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17190 (dva_get_offset): Make dva const.
17191 (zfs_fetch_nvlist): New function.
17192 (fill_vdev_info_real): Likewise.
17193 (fill_vdev_info): Likewise.
17194 (check_pool_label): Likewise.
17195 (scan_disk): Likewise.
17196 (scan_devices): Likewise.
17197 (read_device): Likewise.
17198 (read_dva): Likewise.
17199 (zio_read_gang): Use read_dva.
17200 (zio_read_data): Likewise.
17201 (zap_leaf_lookup): Add missing endian conversion.
17202 (zap_verify): Add missing endian conversion. All users updated.
17203 (fzap_lookup): Likewise.
17204 (fzap_iterate): Likewise.
17205 (dnode_get_path): Handle SA bonus.
17206 (nvlist_find_value): Make input const. All users updated.
17207 (unmount_device): New function.
17208 (zfs_unmount): Use unmount_device.
17209 (zfs_mount): Use scan_disk.
17210 (zfs_mtime): New function.
17211 (grub_zfs_open): Handle system attributes.
17212 (fill_fs_info): Likewise.
17213 (grub_zfs_dir): Likewise.
17214 (grub_zfs_fs): Add mtime.
17215 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17216 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17217 (SA_MTIME_OFFSET): Likewise.
17218 (SA_SYMLINK_OFFSET): Likewise.
17219 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17220 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17221 (fstest): Support zfsinfo.
17222 (argp_parser): Likewise.
17223
17224 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17227 error.
17228
17229 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 ZFS fixes.
17232
17233 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17234 sharing the same block. Iterate over correct number of indices.
17235 (dnode_get_path): Handle symlinks correctly.
17236
17237 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17240
17241 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 Read label on HFS+.
17244
17245 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17246 (grub_hfsplus_btree_search): Fix types.
17247 (grub_hfsplus_label): Implement.
17248
17249 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17252
17253 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17254
17255 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17256
17257 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 Fix symlink handling on iso9660.
17260
17261 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17262 All users updated.
17263 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17264 (grub_iso9660_read_symlink): Moved most of code ...
17265 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17266
17267 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17268
17269 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17270 Use union to avoid breaking strict-aliasing rules.
17271
17272 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17273
17274 Support multi-extent iso files.
17275
17276 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17277 Add node.
17278 (grub_fshelp_node): Revamp. All users updated.
17279 (FLAG_*): New enum.
17280 (read_node): New function.
17281 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17282 All users updated.
17283 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17284 (get_node_size): New function.
17285 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17286 entries.
17287 Fix memory leak on . and ..
17288 (grub_iso9660_read): Use read_node.
17289 (grub_iso9660_close): Free node.
17290
17291 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17292
17293 Fix tar 4G limit and handle paths containing dot.
17294
17295 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17296 (canonicalize): New function.
17297 (grub_cpio_find_file): Use canonicalize. Store offs in
17298 grub_disk_addr_t.
17299 (grub_cpio_dir): Use grub_disk_addr_t.
17300 (grub_cpio_open): Likewise.
17301
17302 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17303
17304 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17305
17306 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17307 unused flags.
17308 (grub_squash_inode): Add long_file and block_size.
17309 (grub_squash_cache_inode): New struct.
17310 (grub_squash_dirent): Make types into enum.
17311 (SQUASH_TYPE_LONG_REGULAR): New type.
17312 (grub_squash_frag_desc): Add field size.
17313 (SQUASH_BLOCK_FLAGS): New enum.
17314 (grub_squash_data): Use grub_squash_cache_inode.
17315 (grub_fshelp_node): Make ino_chunk 64-bit.
17316 (read_chunk): Minor argument change. All users updated.
17317 (squash_mount): Use correct le_to_cpu.
17318 (grub_squash_open): Handle LONG_REGULAR.
17319 (direct_read): New function.
17320 (grub_squash_read_data): Handle blocks correctly.
17321
17322 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17323
17324 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17325
17326 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17327
17328 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17329
17330 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 Fix 2G limit on ZFS.
17333
17334 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17335 types.
17336 (uberblock_verify): Likewise.
17337 (dmu_read): Likewise.
17338 (grub_zfs_read): Likewise. Remove invalid cast.
17339
17340 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17341
17342 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17343 (grub_jfs_blkno): Fix incorrect shift.
17344 (grub_jfs_read_file): Use more appropriate types.
17345
17346 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 Support triple indirect on minix2 and minix3.
17349
17350 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17351 Declare triple_indir_zone.
17352 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17353 indirect.
17354
17355 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17356
17357 Minix FS fixes.
17358
17359 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17360 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17361 Rename ctime to mtime. All users updated.
17362 (grub_minix_get_file_block): Fix types and double indirect computations.
17363
17364 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17365
17366 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17367 if no label is found.
17368 (grub_fat_iterate_dir): Fix file size type.
17369 (grub_fat_iterate_dir): Likewise.
17370
17371 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17372
17373 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17374 save some space.
17375 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17376 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17377
17378 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17379
17380 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17381
17382 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17383
17384 * util/import_gcry.py: Accept space between # and include.
17385
17386 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17389
17390 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17391
17392 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17393
17394 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17395 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17396 yylex_strncpy.
17397 * grub-core/script/yylex.l: Add fine-grained #pragma.
17398
17399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17402 New inline function.
17403 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17404 Likewise.
17405 (memset) [GRUB_UTIL]: Likewise.
17406 (memcmp) [GRUB_UTIL]: Likewise.
17407
17408 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17409
17410 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17411 inline function rather than a define.
17412
17413 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17414
17415 * util/grub-setup.c: Add missing include.
17416
17417 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17418
17419 * util/ieee1275/grub-ofpathname.c: Add missing include.
17420
17421 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17422
17423 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17424 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17425 Likewise.
17426
17427 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17430 grub_memcmp usage.
17431
17432 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * util/grub-install.in: Add datarootdir as per automake manual
17435 suggestion.
17436 * util/grub-mknetdir.in: Likewise.
17437
17438 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17441 suggestion.
17442 * util/grub.d/10_kfreebsd.in: Likewise.
17443 * util/grub.d/10_linux.in: Likewise.
17444 * util/grub.d/10_netbsd.in: Likewise.
17445 * util/grub.d/10_windows.in: Likewise.
17446 * util/grub.d/20_linux_xen.in: Likewise.
17447
17448 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17449
17450 Remove redundant grub_kernel_image_size.
17451
17452 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17453 _edata and _start.
17454 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17455 the small code. It moves it only by few bytes but simplifies the code.
17456 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17457 _start.
17458 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17459 (grub_kernel_image_size): Removed.
17460 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17461 (grub_kernel_image_size): Removed.
17462 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17463 compiled with Apple toolchain.
17464 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17465 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17466 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17467 (grub_total_module_size): Likewise.
17468 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17469 Removed.
17470 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17471 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17472 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17473 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17474 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17475 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17476 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17477 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17478 Removed.
17479 (grub_total_module_size): Removed.
17480 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17481 (image_targets): Likewise.
17482 Set .compressed_size to no field on sparc.
17483 (generate_image): Remove kernel_image_size handling.
17484
17485 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17486
17487 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17488 NULL pointer dereference.
17489
17490 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17493 done with a dedicated section.
17494
17495 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17496 Ensure the correct position of boot_path.
17497 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17498 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17499 other fields.
17500 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17501 * include/grub/boot.h: Removed. All references removed.
17502 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17503 Removed.
17504 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17505
17506 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17507
17508 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17509 name.
17510
17511 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17512
17513 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17514
17515 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17516
17517 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17518 Don't add the bogus brackets.
17519
17520 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 ExFAT support.
17523
17524 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17525 * grub-core/Makefile.core.def (exfat): New module.
17526 * grub-core/fs/exfat.c: New file.
17527 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17528 (GRUB_FAT_ATTR_*): Make into an enum.
17529 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17530 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17531 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17532 (GRUB_FAT_MAXFILE): Removed.
17533 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17534 (grub_current_fat_bpb_t): New type.
17535 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17536 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17537 (grub_fat_dir_node_t): New type.
17538 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17539 (fat_log2) [MODE_EXFAT]: Removed.
17540 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17541 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17542 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17543 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17544 (grub_fat_label) [MODE_EXFAT]: New function.
17545 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17546 reserved_first_sector to 0.
17547
17548 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 Move grub_reboot out of the kernel.
17551
17552 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17553 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17554 * grub-core/lib/efi/reboot.c: ... here.
17555 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17556 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17557 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17558 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17559 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17560 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17561 * grub-core/lib/ieee1275/reboot.c: ... here.
17562 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17563 * grub-core/lib/mips/arc/reboot.c: ... here.
17564 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17565 * grub-core/lib/mips/loongson/reboot.c: ...here.
17566 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17567 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17568 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17569 * include/grub/i386/reboot.h: New file.
17570 * include/grub/mips/loongson/ec.h: Fix includes.
17571 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17572 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17573 * grub-core/lib/i386/reboot.c: New file.
17574
17575 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 Make grub_prefix into module to fix the arbitrary limit and save
17578 some space.
17579
17580 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17581 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17582 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17583 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17584 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17585 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17586 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17587 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17588 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17589 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17590 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17591 * include/grub/ia64/efi/kernel.h: Removed.
17592 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17593 (grub_prefix): Removed.
17594 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17595 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17596 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17597 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17598 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17599 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17600 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17601 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17602 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17603 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17604 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17605 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17606 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17607 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17608 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17609 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17610 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17611 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17612 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17613 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17614 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17615 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17616 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17617 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17618 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17619 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17620 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17621 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17622 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17623 from module.
17624 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17625 prefix_end.
17626 (image_targets): Likewise.
17627 (generate_image): Put prefix as a module.
17628
17629 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17630
17631 Replace grub_module_iterate with FOR_MODULES.
17632
17633 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17634 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17635 (grub_efi_modules_addr): ...this.
17636 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17637 (grub_efi_init): Set grub_modbase.
17638 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17639 (grub_modbase): New variable.
17640 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17641 (grub_modbase): New variable.
17642 (grub_machine_init): Set grub_modbase.
17643 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17644 (grub_modbase): New variable.
17645 (grub_machine_init): Set grub_modbase.
17646 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17647 (grub_modbase): New variable.
17648 (grub_machine_init): Set grub_modbase.
17649 * grub-core/kern/main.c (grub_module_iterate): Remove.
17650 (grub_modules_get_end): Use grub_modbase.
17651 (grub_load_modules): Use FOR_MODULES.
17652 (grub_load_config): Likewise.
17653 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17654 (grub_modbase): New variable.
17655 (grub_machine_init): Set grub_modbase.
17656 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17657 (grub_modbase): New variable.
17658 (grub_machine_init): Set grub_modbase.
17659 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17660 Removed.
17661 (grub_modbase): New variable.
17662 (grub_machine_init): Set grub_modbase.
17663 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17664 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17665 (grub_module_iterate): Likewise.
17666 (grub_modbase): New variable declaration.
17667 (FOR_MODULES): New macro.
17668
17669 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17670
17671 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17672 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17673
17674 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17675
17676 Fix few obvious type discrepancies.
17677
17678 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17679 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17680 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17681 variable.
17682 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17683 and connected types.
17684 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17685 offset.
17686 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17687 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17688 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17689 and connected types.
17690
17691 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17692
17693 Fix python 3.x incompatibilities.
17694
17695 * gentpl.py: Put brackets around print strings.
17696 * util/import_gcry.py: Open explicitly as utf-8.
17697 Use in instead of has_key.
17698
17699 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17700
17701 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17702 (GRUB_XFS_INO_AGBITS): Make into inline function.
17703 (GRUB_XFS_INO_INOINAG): Likewise.
17704 (GRUB_XFS_INO_AG): Likewise.
17705 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17706 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17707 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17708 (GRUB_XFS_EXTENT_SIZE): Likewise.
17709 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17710 (GRUB_XFS_NEXT_DIRENT): Likewise.
17711 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17712 (grub_xfs_read_file): Fix offset type.
17713
17714 2011-10-15 Robert Millan <rmh@gnu.org>
17715
17716 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17717
17718 2011-10-15 Robert Millan <rmh@gnu.org>
17719
17720 Fix build problem on FreeBSD and GNU/kFreeBSD.
17721
17722 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17723
17724 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17725
17726 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17727
17728 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17729 types.
17730 (grub_hfsplus_btree_recoffset): Likewise.
17731 (grub_hfsplus_btree_recptr): Likewise.
17732 (grub_hfsplus_find_block): Likewise.
17733 (grub_hfsplus_btree_search): Likewise.
17734 (grub_hfsplus_read_block): Likewise.
17735 (grub_hfsplus_read_file): Likewise.
17736 (grub_hfsplus_mount): Likewise.
17737 (grub_hfsplus_btree_iterate_node): Likewise.
17738 (grub_hfsplus_btree_search): Likewise.
17739 (grub_hfsplus_iterate_dir): Likewise.
17740 (grub_hfsplus_read): A small code simplification.
17741
17742 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17743
17744 * grub-core/kern/emu/hostdisk.c
17745 (convert_system_partition_to_system_disk): Don't assume that children
17746 of mapper nodes are mapper nodes.
17747
17748 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17749
17750 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17751 * include/grub/misc.h (grub_isxdigit): New function.
17752 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17753 switched to grub_isxdigit.
17754 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17755 number starting with a letter.
17756
17757 2011-10-09 Robert Millan <rmh@gnu.org>
17758
17759 LVM support for FreeBSD and GNU/kFreeBSD.
17760
17761 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17762 GNU/kFreeBSD.
17763 (LVM_DEV_MAPPER_STRING): Move from here ...
17764 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17765 * util/getroot.c: Include `<grub/util/lvm.h>'.
17766 (grub_util_get_dev_abstraction): Enable
17767 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17768 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17769 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17770 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17771 support it.
17772 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17773 GNU/kFreeBSD.
17774 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17775 when LVM abstraction is required for ${GRUB_DEVICE}.
17776
17777 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17778
17779 Add support for LZO compression in GRUB:
17780 - import of minilzo library,
17781 - LZO decompression for btrfs,
17782 - lzop files decompression.
17783
17784 * grub-core/io/lzopio.c: New file.
17785 * grub-core/lib/adler32.c: Likewise.
17786 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17787 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17788 * grub-core/lib/minilzo/minilzo.c: Likewise.
17789 * grub-core/lib/minilzo/minilzo.h: Likewise.
17790 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17791 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17792 grub-core/lib/minilzo/minilzo.c to common.
17793 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17794 cflags in cppflags.
17795 * grub-core/Makefile.core.def (btrfs): Likewise.
17796 * grub-core/Makefile.core.def (lzopio): New module.
17797 (adler32): Likewise.
17798 * grub-core/fs/btrfs.c: Include minilzo.h.
17799 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17800 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17801 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17802 (grub_btrfs_lzo_decompress): New function.
17803 (grub_btrfs_extent_read): Add support for LZO compression type.
17804 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17805 (GRUB_USHRT_MAX): Likewise.
17806 (GRUB_UINT_MAX): Likewise.
17807 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17808 (UINT_MAX): Likewise.
17809 (CHAR_BIT): Likewise.
17810 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17811 grub-core/lib/posix_wrap/limits.h
17812 (UCHAR_MAX): Likewise.
17813 * include/grub/file.h (grub_file_filter_id): New compression filter
17814 GRUB_FILE_FILTER_LZOPIO.
17815 * include/grub/file.h (grub_file_filter_id): Set
17816 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17817 * include/grub/types.h (grub_get_unaligned16): New function.
17818 (grub_get_unaligned32): Likewise.
17819 (grub_get_unaligned64): Likewise.
17820 * util/import_gcry.py (cryptolist): Add adler32.
17821
17822 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17823
17824 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17825 in perspective decreases the complexity of build system and fixes
17826 compilation right now.
17827
17828 2011-10-01 Ales Nesrsta <starous@volny.cz>
17829
17830 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17831 (fixed problem related to using UHCI with coreboot).
17832
17833 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17834
17835 * gentpl.py: Use Autogen macros so that the output template file
17836 (Makefile.tpl) size is reduced.
17837
17838 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17839
17840 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17841 extra_dist.
17842
17843 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17844
17845 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17846 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17847
17848 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17849
17850 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17851 _fullpath.
17852
17853 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17854
17855 Remove extra declaration of sleep for mingw32.
17856
17857 * util/misc.c (sleep) [__MINGW32__]: Removed.
17858 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17859
17860 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17861
17862 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17863 type and packname.
17864 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17865 Resurrected.
17866 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17867 (grub_netbsd_btinfo_bootwedge): New struct.
17868 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17869 New function.
17870 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17871
17872 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17873
17874 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17875 loader.
17876
17877 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17878
17879 Fix incorrect identifiers in bash-completion.
17880
17881 * util/bash-completion.d/grub-completion.bash.in
17882 (_grub_mkpasswd-pbkdf2): Rename to ...
17883 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17884 (_grub_script-check): Rename to ...
17885 (_grub_script_check): ... this. All users updated.
17886
17887 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17890 Return 0 if disk isn't biosdisk.
17891
17892 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17893
17894 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17895 on NetBSD.
17896 * Makefile.util.def (grub-fstest): Likewise.
17897
17898 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17899
17900 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17901 Get sector size from disk label.
17902
17903 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17904
17905 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17906 */README* as well as README*.
17907 Reported by: Axel Beckert.
17908
17909 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17910
17911 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17912 case of less than 256 MiB of RAM.
17913
17914 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17915
17916 * grub-core/commands/wildcard.c (make_regex): Handle @.
17917
17918 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17919
17920 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17921
17922 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17923
17924 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17925 AC_LANG_CONFTEST macros.
17926
17927 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17928
17929 Add grub-fstest option to uncompress data for commands.
17930
17931 * util/grub-fstest.c (uncompress): New var.
17932 (options): New option -u.
17933
17934 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17935
17936 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
17937 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
17938
17939 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17940
17941 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
17942 file type was not recognized correctly (not gzip or corrupted).
17943
17944 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17945
17946 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
17947 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
17948
17949 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17950
17951 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
17952 loongson.
17953 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
17954 video_radeon_fuloong2e.
17955 * grub-core/video/radeon_fuloong2e.c: New file.
17956 * include/grub/video.h (grub_video_id_t): Add new ID
17957 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
17958
17959 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
17962 define.
17963 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
17964 that PRID matches the detected subplatform and reset the subplatform
17965 if it doesn't.
17966
17967 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17968
17969 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
17970
17971 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17972
17973 Fix PCI iterating on functions >= 4.
17974
17975 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
17976 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
17977 Removed.
17978 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
17979 (grub_pci_read): Fix bitmask.
17980 (grub_pci_read_word): Likewise.
17981 (grub_pci_read_byte): Likewise.
17982 (grub_pci_write): Likewise.
17983 (grub_pci_write_word): Likewise.
17984 (grub_pci_write_byte): Likewise.
17985
17986 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17987
17988 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
17989 can still be specified in TARGET_CFLAGS)
17990
17991 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
17992
17993 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
17994
17995 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
17996 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
17997 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
17998 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
17999 (FULOONG): Rename to ...
18000 (FULOONG2F): ... this. All users updated.
18001 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18002 (machtype_fuloong2f_str): ... this.
18003 (machtype_fuloong2e_str): New string.
18004 Check for machtype_fuloong2e_str.
18005 * grub-core/loader/mips/linux.c (loongson_machtypes)
18006 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18007 * grub-core/term/serial.c (loongson_defserial)
18008 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18009 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18010 loongson_defserial.
18011 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18012 Rename to ...
18013 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18014 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18015 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18016 to IMAGE_FULOONG2F_FLASH. All users updated.
18017 (image_targets): Rename images.
18018 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18019
18020 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18021
18022 Make enable of disk cache statistics code configurable.
18023
18024 * configure.ac: --enable-cache-stats added.
18025 * config.h.in (DISK_CACHE_STATS): New define.
18026 * grub-core/Makefile.core.def (cacheinfo): New command.
18027 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18028 * grub-core/commands/cacheinfo.c: New file.
18029 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18030 moved to cacheinfo.c.
18031 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18032 debug code.
18033 * include/grub/disk.h: Likewise.
18034
18035 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18036
18037 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18038 * grub-core/Makefile.am: Likewise.
18039
18040 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18041
18042 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18043 non-zero pull.
18044
18045 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18048 All users updated.
18049 (grub_jfs_lookup_symlink): Use correct starting inode.
18050
18051 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18052
18053 * util/grub-setup.c (main): Add missing gcry initialisation.
18054
18055 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18056
18057 Don't accept text modes on EFI when booting Linux.
18058
18059 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18060 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18061
18062 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18063 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18064
18065 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18066 use of "/path/.." as in grub-install for EFI as well as handling
18067 symlinks correctly.
18068 Fixes Debian bug #637768.
18069
18070 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18071
18072 * util/grub-probe.c: Remove duplicate #include.
18073
18074 2011-08-10 Robert Millan <rmh@gnu.org>
18075
18076 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18077
18078 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18079 function.
18080 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18081 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18082
18083 2011-08-03 Robert Millan <rmh@gnu.org>
18084
18085 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18086 la_array as packed.
18087 Reported by: Zachary Bedell
18088
18089 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18090
18091 * configure.ac: The Loongson port requires grub-mkfont due to its
18092 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18093 be built.
18094
18095 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18096
18097 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18098 processing arguments (otherwise help2man fails when GRUB has not yet
18099 been installed).
18100
18101 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18102
18103 New script grub-mkstandalone.
18104
18105 * Makefile.util.def (grub-mkstandalone): New script.
18106 * docs/man/grub-mkstandalone.h2m: New file.
18107 * util/grub-mkstandalone.in: Likewise.
18108
18109 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18110
18111 Support ATA disks with 4K sectors.
18112
18113 * include/grub/ata.h (grub_ata): New member log_sector_size.
18114 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18115 (grub_ata_identify): Read sector size.
18116 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18117
18118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18119
18120 * util/grub-install.in: Don't use uhci outside of x86.
18121
18122 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 * util/grub-mkrescue.in: Add missing quotes.
18125
18126 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18129 dereference.
18130
18131 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18132
18133 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18134
18135 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 * include/grub/video.h: add missing EXPORT_FUND on
18138 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18139
18140 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 * include/grub/mips/kernel.h: Fix define conflict.
18143
18144 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18145
18146 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18147 all four ways.
18148
18149 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18150
18151 Preferred resolution detection for VBE.
18152
18153 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18154 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18155 the Flat Panel extension, in line with the X.org VESA driver.
18156 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18157 New function.
18158 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18159 (grub_vbe_bios_read_edid): Likewise.
18160 (grub_vbe_get_preferred_mode): Likewise.
18161 (grub_video_vbe_setup): When the mode is "auto", try to get the
18162 preferred mode from VBE, and use the largest mode that is no larger
18163 than the preferred mode (some BIOSes expose a preferred mode that is
18164 not in their mode list!). If this fails, fall back to 640x480 as a
18165 safe conservative choice.
18166 (grub_video_vbe_get_edid): New function.
18167 (grub_video_vbe_adapter): Add get_edid.
18168 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18169 (struct grub_video_adapter): Add get_edid.
18170 (grub_video_edid_checksum): Add prototype.
18171 (grub_video_edid_preferred_mode): Likewise.
18172 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18173 structure.
18174
18175 * grub-core/commands/videoinfo.c (print_edid): New function.
18176 (grub_cmd_videoinfo): Print EDID if available.
18177
18178 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18179 is more appropriate on a wider range of platforms than 640x480.
18180 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18181 documentation.
18182
18183 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18186
18187 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18188
18189 * po/POTFILES.in: Regenerate.
18190
18191 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18192
18193 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18194 incorrect memory usage.
18195
18196 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18197
18198 * util/grub-install.in: Source grub-mkconfig_lib.
18199
18200 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18201
18202 Remove getroot.c from core on emu platform.
18203
18204 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18205 kern/emu/raid.c.
18206 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18207 useless.
18208 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18209 * util/getroot.c (get_win32_path): ... here.
18210 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18211 * util/getroot.c (fini_libzfs): ... here.
18212 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18213 * util/getroot.c (grub_get_libzfs_handle): ... here.
18214 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18215 Moved from here...
18216 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18217 * grub-core/kern/emu/misc.c
18218 (grub_make_system_path_relative_to_its_root): Moved from here...
18219 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18220 * grub-core/kern/emu/getroot.c: Moved from here ...
18221 * util/getroot.c: ... here. All users updated.
18222 * grub-core/kern/emu/raid.c: Moved from here ...
18223 * util/raid.c: ... here. All users updated.
18224
18225 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18226
18227 * po/POTFILES.in: Regenerate.
18228
18229 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18230
18231 Fix compilation on GNU/Linux.
18232
18233 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18234 Disable geli.
18235 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18236 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18237 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18238
18239 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18240 2011-07-07 Michael Gorven <michael@gorven.za.net>
18241 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18242
18243 LUKS and GELI support.
18244
18245 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18246 grub-core/disk/luks.c, grub-core/disk/geli.c,
18247 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18248 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18249 grub-core/lib/arg.c.
18250 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18251 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18252 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18253 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18254 (grub-bin2h): Add libgcry.a.
18255 (grub-mkimage): Likewise.
18256 (grub-mkrelpath): Likewise.
18257 (grub-script-check): Likewise.
18258 (grub-editenv): Likewise.
18259 (grub-mkpasswd-pbkdf2): Likewise.
18260 (grub-pe2elf): Likewise.
18261 (grub-fstest): Likewise.
18262 (grub-mkfont): Likewise.
18263 (grub-mkdevicemap): Likewise.
18264 (grub-probe): Likewise.
18265 (grub-ofpath): Likewise.
18266 (grub-mklayout): Likewise.
18267 (example_unit_test): Likewise.
18268 (grub-menulst2cfg): Likewise.
18269 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18270 * grub-core/Makefile.core.def (cryptodisk): New module.
18271 (luks): Likewise.
18272 (geli): Likewise.
18273 * grub-core/disk/AFSplitter.c: New file.
18274 * grub-core/disk/cryptodisk.c: Likewise.
18275 * grub-core/disk/geli.c: Likewise.
18276 * grub-core/disk/luks.c: Likewise.
18277 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18278 grub_util_is_lvm.
18279 (grub_util_get_dm_abstraction): New function.
18280 (grub_util_follow_gpart_up): Likewise.
18281 (grub_util_get_geom_abstraction): Likewise.
18282 (grub_util_get_dev_abstraction): Use new functions.
18283 (grub_util_pull_device): Pull GELI and LUKS.
18284 (grub_util_get_grub_dev): Handle LUKS and GELI.
18285 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18286 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18287 (follow_geom_up): Removed.
18288 (grub_util_fd_seek): New function.
18289 (open_device): Use grub_util_fd_seek.
18290 (nread): Rename to ..
18291 (grub_util_fd_read): ... this. All users updated.
18292 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18293 (grub_crypto_cbc_decrypt): Likewise.
18294 (grub_crypto_hmac_write): Likewise.
18295 (grub_crypto_hmac_buffer): Likewise.
18296 (grub_password_get): Extend to util.
18297 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18298 New member modname.
18299 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18300 * include/grub/cryptodisk.h: New file.
18301 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18302 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18303 LUKS and GELI.
18304 (grub_util_follow_gpart_up): New proto.
18305 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18306 (grub_util_fd_read): Likewise.
18307 (grub_cryptodisk_cheat_mount): Likewise.
18308 (grub_util_cryptodisk_print_uuid): Likewise.
18309 (grub_util_get_fd_sectors): Likewise.
18310 * util/grub-fstest.c (mount_crypt): New var.
18311 (fstest): Mount crypto if requested.
18312 (options): New option -C.
18313 (argp_parser): Parse -C.
18314 (main): Init and fini gcry.
18315 * util/grub-install.in: Support cryptodisk install.
18316 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18317 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18318 cryptodisk.
18319 (prepare_grub_to_access_device): Likewise.
18320 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18321 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18322 (probe_cryptodisk_uuid): New function.
18323 (probe_abstraction): Likewise.
18324 (probe): Use new functions.
18325 * util/import_gcry.py: Create Makefile.utilgcry.def.
18326 Add modname member.
18327
18328 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18329
18330 Lazy device scanning.
18331
18332 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18333 (grub-setup): Remove util/raid.c.
18334 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18335 * grub-core/disk/lvm.c (scan_depth): New variable.
18336 (grub_lvm_iterate): Rescan if necessary.
18337 (find_lv): New function based on grub_lvm_open.
18338 (grub_lvm_open): Use find_lv. Rescan on error.
18339 (is_node_readable): New function.
18340 (is_lv_readable): Likewise.
18341 (grub_lvm_scan_device): Skip already found disks.
18342 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18343 Stop if searched device is found and readable.
18344 * grub-core/disk/raid.c (inscnt): New variable.
18345 (scan_depth): Likewise.
18346 (scan_devices): New function based on grub_raid_register. Abort if
18347 looked for device is found.
18348 (grub_raid_iterate): Rescan if needed.
18349 (find_array): NEw function based on -grub_raid_open.
18350 (grub_raid_open): Use find_array and rescan.
18351 (insert_array): Set became_readable_at.
18352 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18353 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18354 New function.
18355 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18356 (grub_util_pull_device): New function.
18357 (grub_util_get_grub_dev): Call grub_util_pull_device.
18358 * util/raid.c: Moved to ..
18359 * grub-core/kern/emu/raid.c: ... here.
18360 (grub_util_raid_getmembers): New parameter "bootable".
18361 All users updated. Support 1.x.
18362 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18363 All users updated.
18364 * include/grub/disk.h (grub_disk_pull_t): New enum.
18365 (grub_disk_dev): Change iterate prototype.
18366 All users updated.
18367 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18368 New proto.
18369 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18370 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18371 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18372 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18373 All users updated.
18374 * include/grub/util/raid.h: Removed.
18375
18376 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18377
18378 * po/POTFILES.in: Regenerate.
18379
18380 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18381
18382 Unify sparc init with other ieee1275.
18383
18384 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18385 instead of kern/sparc64/ieee1275/init.c.
18386 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18387 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18388 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18389 grub/machine/kernel.h.
18390 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18391 (grub_claim_heap) [__sparc__]: Use sparc version.
18392 (grub_machine_init): Moved args parsing to
18393 (grub_parse_cmdline): ...this.
18394 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18395 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18396 New definition.
18397 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18398
18399 Move BOOTP to separate file.
18400
18401 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18402 * grub-core/net/net.c: Move all BOOTP functions to
18403 * grub-core/net/bootp.c: ... here.
18404
18405 Use frame interface on PXE.
18406
18407 * grub-core/Makefile.core.def (pxecmd): Removed.
18408 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18409 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18410 * grub-core/i386/pc/pxe.c: Moved from here ...
18411 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18412 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18413 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18414
18415 EFI network support.
18416
18417 * grub-core/Makefile.core.def (efinet): New module.
18418 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18419 here...
18420 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18421 All users updated.
18422 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18423 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18424 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18425 * grub-core/net/drivers/efi/efinet.c: New file.
18426 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18427 (grub_efi_net_config): New extern var.
18428
18429 Various cleanups and bugfixes.
18430
18431 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18432 error.
18433 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18434 disk declared as partition.
18435 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18436 leak on failure.
18437 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18438 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18439 (grub_debug_zalloc): Likewise.
18440 (grub_debug_realloc): Likewise.
18441 (grub_debug_memalign): Likewise.
18442 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18443 Check that target is IPv4.
18444 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18445 local-mac-address as fallback.
18446 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18447 memory leak.
18448 * grub-core/net/ip.c (ipchksum): Rename to ...
18449 (grub_net_ip_chksum): ... this. All users updated.
18450 (grub_net_recv_ip_packets): Special handling for DHCP.
18451 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18452
18453 Unify prefix handling
18454
18455 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18456 (grub_machine_get_bootlocation): ... this.
18457 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18458 (grub_machine_get_bootlocation): ... this.
18459 (grub_prefix): New variable.
18460 (prefix): Removed.
18461 (root_dev): New variable.
18462 (dir): Likewise.
18463 (main): Use new variables.
18464 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18465 Revamped into ...
18466 (grub_machine_get_bootlocation): ... this.
18467 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18468 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18469 (grub_machine_get_bootlocation): ... this.
18470 (grub_machine_set_prefix): Removed.
18471 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18472 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18473 Revamped into ...
18474 (grub_machine_get_bootlocation): ... this.
18475 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18476 (grub_set_prefix_and_root): ... this. All users updated.
18477 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18478 Revamped into ...
18479 (grub_machine_get_bootlocation): ... this.
18480 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18481 (grub_machine_get_bootlocation): New proto.
18482 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18483
18484 Less intrusive and more reliable seek on network implementation.
18485
18486 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18487 (grub_file_seek): Don't call grub_file_net_seek.
18488 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18489 (grub_net_fs_read_real): .. this.
18490 (grub_net_seek_real): Use net->offset.
18491 (grub_net_fs_read): Seek if necessary.
18492
18493 Unify IEEE1275 netwotk config with the other platforms.
18494
18495 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18496 New variable.
18497 (grub_machine_get_bootlocation): Support network.
18498 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18499 Support type and device parsing.
18500 (grub_ieee1275_get_device_type): New function.
18501 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18502 into ...
18503 (grub_ieee1275_net_config_real): ... this.
18504 (grub_ofnet_probecards): Removed.
18505 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18506 * include/grub/ieee1275/ofnet.h: Removed.
18507 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18508 extern var.
18509 (grub_ieee1275_get_device_type): New function.
18510
18511 Unify network device closing across platforms and make more robust.
18512
18513 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18514 grub_grubnet_fini.
18515 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18516 already.
18517 * grub-core/net/net.c (grub_net_network_level_interface_register):
18518 Update num_ifaces.
18519 (grub_net_card_unregister): Close all interfaces.
18520 (receive_packets): Don't poll if no iterfaces are registered.
18521 Open if necessary.
18522 (grub_net_fini_hw): New function.
18523 (grub_net_restore_hw): Likewise.
18524 (fini_hnd): New variable.
18525 (GRUB_MOD_INIT): Register preboot hook.
18526 (GRUB_MOD_FINI): Run and unregister preboot hook.
18527
18528 Poll network cards when idle.
18529
18530 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18531 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18532 * grub-core/net/net.c (receive_packets): Save last poll time.
18533 (grub_net_poll_cards_idle_real): New function.
18534 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18535 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18536 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18537
18538 Rename ofnet interfaces.
18539
18540 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18541 (grub_ofnet_findcards): Use ofnet_%s names.
18542
18543 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18544
18545 Cleanup socket opening.
18546
18547 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18548 (grub_net_fs_close): Likewise.
18549 (grub_net_fs_read_real): Use eof member.
18550 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18551 (+grub_net_udp_close): New inline function.
18552
18553 * include/grub/net/tftp.h: Moved to the top of ...
18554 * grub-core/net/tftp.c: ... here.
18555 * include/grub/net/ip.h: Moved mostly to the top of ...
18556 * grub-core/net/ip.c: ... here.
18557 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18558 * grub-core/net/ethernet.c: ... here.
18559
18560 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18561
18562 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18563 FS name.
18564
18565 * include/grub/net/ip.h (ipv4_ini): Removed.
18566 (ipv4_fini): Likewise.
18567
18568 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18569 (grub_net_send_ip_packets): Likewise.
18570
18571 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18572
18573 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18574 grub_read_cmos prototype.
18575
18576 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18577
18578 VGA text support in qemu-mips
18579
18580 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18581 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18582 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18583 text.
18584 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18585 * grub-core/kern/vga_init.c: ... this.
18586 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18587 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18588 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18589 Adjust.
18590 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18591 GRUB_MACHINE_PCI_IO_BASE.
18592
18593 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 MIPS qemu flash support.
18596
18597 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18598 magic.
18599 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18600 (grub_machine_init): Probe memory if its size isn't known.
18601 * util/grub-mkimage.c (image_targets): Add flash targets.
18602 (generate_image): Handle flash targets.
18603
18604 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 MIPS qemu at_keyboard support.
18607
18608 * gentpl.py (videoinkernel): Add qemu-mips.
18609 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18610 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18611 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18612 modules.
18613 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18614 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18615 * grub-core/term/serial.c (grub_serial_register)
18616 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18617
18618 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18619
18620 CMOS support on sparc.
18621
18622 * gentpl.py (cmos): Add powerpc and sparc.
18623 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18624 powerpc and sparc.
18625 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18626 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18627 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18628 grub_set_datetime_cmos.
18629 * grub-core/lib/ieee1275/cmos.c: New file.
18630 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18631 (find_rtc): Set no_ieee1275_rtc on error.
18632 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18633 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18634 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18635 fail. Move value to argument. All users updated
18636 (grub_cmos_write): Likewise.
18637 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18638 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18639 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18640 grub_get_datetime_cmos and grub_set_datetime_cmos.
18641
18642 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18643
18644 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18645 sourcing grub-mkconfig_lib.
18646 * util/update-grub_lib.in: Likewise.
18647 * util/grub.d/00_header.in: Likewise.
18648 * util/grub.d/10_hurd.in: Likewise.
18649 * util/grub.d/10_kfreebsd.in: Likewise.
18650 * util/grub.d/10_linux.in: Likewise.
18651 * util/grub.d/10_netbsd.in: Likewise.
18652 * util/grub.d/10_windows.in: Likewise.
18653 * util/grub.d/20_linux_xen.in: Likewise.
18654 * util/grub.d/30_os-prober.in: Likewise.
18655
18656 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18657
18658 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18659 default_bg_color rather than black.
18660 (grub_gfxterm_fullscreen): Likewise.
18661 (grub_gfxterm_background_color_cmd): Save new background color in
18662 default_bg_color.
18663
18664 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18667
18668 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18669
18670 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18671 mismerge.
18672
18673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 Chainloading on coreboot support.
18676
18677 * grub-core/Makefile.core.def (chain): Add coreboot.
18678 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18679
18680 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18683 if it happens.
18684
18685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18686
18687 Implement time command.
18688
18689 * grub-core/Makefile.core.def (time): New module.
18690 * grub-core/commands/time.c: New file.
18691 * grub-core/script/parser.y: Remove "time" keyword.
18692 * grub-core/script/yylex.l: Likewise.
18693
18694 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18695
18696 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18697
18698 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18699
18700 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18701 when handling leftovers.
18702
18703 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18704
18705 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18706 so that help2man doesn't fail.
18707
18708 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18709
18710 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18711 type in pointers on sparc64.
18712 (get_card_packet): Likewise.
18713
18714 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18715
18716 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18717 with `*'.
18718 (grub_cmd_videoinfo): Fetch current video mode.
18719
18720 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18721
18722 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18723 because of underlying system restrictions.
18724
18725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18726
18727 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18728 necessary.
18729
18730 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18731
18732 Coreboot video support.
18733
18734 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18735 (vbe): Likewise.
18736 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18737 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18738 here ...
18739 * grub-core/kern/i386/int.S: ... here.
18740 * grub-core/video/i386/pc/vbe.c: Updated includes.
18741 * grub-core/video/i386/pc/vga.c: Likewise.
18742 * include/grub/i386/coreboot/memory.h
18743 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18744 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18745 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18746 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18747 Disable interrupts.
18748 * include/grub/i386/pc/vga.h: Removed. All users updated.
18749
18750 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18751
18752 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18753 definitions for dprintf.
18754 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18755
18756 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18759 prototype.
18760 (get_card_packet): Likewise.
18761
18762 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18763
18764 Display the path of the file when file is not found
18765
18766 * grub-core/fs/fat.c: Display the filename when file is not found.
18767 * grub-core/fs/fshelp.c: Likewise.
18768 * grub-core/fs/hfs.c: Likewise.
18769 * grub-core/fs/jfs.c: Likewise.
18770 * grub-core/fs/minix.c: Likewise.
18771 * grub-core/fs/ufs.c: Likewise.
18772 * grub-core/fs/btrfs.c: Likewise.
18773 * grub-core/commands/i386/pc/play.c: Likewise.
18774
18775 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18776
18777 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18778 pointer checks before calling grub_free().
18779 * grub-core/commands/wildcard.c (match_devices): Likewise.
18780 * grub-core/commands/wildcard.c (match_files): Likewise.
18781 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18782 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18783 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18784 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18785 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18786 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18787 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18788 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18789 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18790
18791 2011-06-25 Patrick <p55@mailinator.com>
18792
18793 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18794
18795 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18796
18797 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18798 (grub_pxe_send): Likewise.
18799 (GRUB_MOD_INIT): Fix types.
18800
18801 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18802
18803 * grub-core/io/xzio.c: Fix code style issues
18804
18805 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18806 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18807
18808 Network infrastructure.
18809 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18810
18811 * include/grub/net/arp.h: New file.
18812 * include/grub/net/device.h: Likewise.
18813 * include/grub/net/ethernet.h: Likewise.
18814 * include/grub/net/ip.h: Likewise.
18815 * include/grub/net/netbuff.h: Likewise.
18816 * include/grub/net/tftp.h: Likewise.
18817 * include/grub/net/udp.h: Likewise.
18818 * include/grub/ieee1275/ofnet.h: Likewise.
18819 * include/grub/emu/export.h: Likewise.
18820 * include/grub/net.h: Likewise.
18821 * grub-core/net/arp.c: Likewise.
18822 * grub-core/net/ethernet.c: Likewise.
18823 * grub-core/net/ip.c: Likewise.
18824 * grub-core/net/udp.c: Likewise.
18825 * grub-core/net/tftp.c: Likewise.
18826 * grub-core/net/netbuff.c: Likewise.
18827 * grub-core/net/net.c: Likewise.
18828 * grub-core/net/drivers/emu/emunet.c: Likewise.
18829 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18830 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18831 export.h.
18832 * grub-core/Makefile.core.def (net): New module.
18833 (tftp): Likewise.
18834 (ofnet): Likewise.
18835 (emunet): Likewise.
18836 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18837 network protocols.
18838 * grub-core/kern/device.c (grub_net_open) : New variable.
18839 (grub_device_open): Handle network device.
18840 (grub_device_close): Likewise.
18841 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18842 (grub_grubnet_fini): Likewise.
18843 (grub_file_seek): Seek in network device.
18844 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18845 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18846 network root.
18847 (grub_machine_fini): Call grub_grubnet_fini.
18848 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18849 network.
18850 (grub_ieee1275_get_aliasdevname): New function.
18851 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18852 Add unofficial Solaris network info.
18853 (grub_multiboot_make_mbi): Likewise.
18854 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18855 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18856 * include/grub/device.h (grub_fs): Removed.
18857 * include/grub/err.h (grub_err_t): Add network-related values.
18858 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18859 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18860 (grub_ieee1275_get_aliasdevname): New proto.
18861 * include/grub/net.h: Rewritten.
18862
18863 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18864
18865 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18866 names.
18867
18868 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18869
18870 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18871 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18872 it truncates the output.
18873 Reported by: Ximin Luo.
18874
18875 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18876
18877 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18878
18879 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18880
18881 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18882 partmap before abstraction.
18883
18884 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18885
18886 * util/grub-mkconfig_lib.in: Add missing quotes.
18887
18888 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18891 old method if mountinfo would return /dev/root and /dev/root doesn't
18892 exist.
18893
18894 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18895
18896 ZFS zlib support
18897
18898 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18899 (decomp_table): Add zlib entries.
18900 (zio_read): USe 8 bits for compression function rather than 3.
18901 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18902
18903 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18904
18905 * grub-core/disk/ahci.c: Add missing license statements.
18906 * grub-core/fs/romfs.c: Likewise.
18907 * grub-core/lib/ia64/setjmp.S: Likewise.
18908 * grub-core/loader/i386/pc/freedos.c: Likewise.
18909 * grub-core/loader/ia64/efi/linux.c: Likewise.
18910 * grub-core/video/colors.c: Likewise.
18911 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18912
18913 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 AHCI support.
18916
18917 * grub-core/Makefile.core.def (ata_pthru): Removed.
18918 (ahci): New module.
18919 (pata): Likewise.
18920 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18921 on unload.
18922 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18923 readwrite.
18924 (grub_hdparm_do_check_powermode_cmd): Likewise.
18925 (grub_hdparm_do_smart_cmd): Likewise.
18926 (grub_hdparm_set_val_cmd): Likewise.
18927 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18928 * grub-core/disk/ahci.c: New file.
18929 * grub-core/disk/ata.c: Factor out the low-level part into ...
18930 * grub-core/disk/pata.c: ... here.
18931 * grub-core/disk/ata_pthru.c: Contents moved to ...
18932 * grub-core/disk/pata.c: ... here.
18933 * grub-core/disk/scsi.c (grub_scsi_names): New array.
18934 (grub_scsi_iterate): Use grub_scsi_names.
18935 (grub_scsi_open): Likewise.
18936 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
18937 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
18938 (grub_ata_regs_t): New struct.
18939 (grub_disk_ata_pass_through_parms): Likewise.
18940 (grub_ata_device): Renamed to ...
18941 (grub_ata): ... this.
18942 (grub_ata_dev): New struct.
18943 Removed all low-level inline functions.
18944 * include/grub/scsi.h: Add PATA and AHCI subsystems.
18945 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
18946 iterate hooks and open. All users updated.
18947 * util/grub-install.in: Handle AHCI disk module.
18948
18949 2011-06-23 Szymon Janc <szymon@janc.net.pl>
18950
18951 Add support for DRI and RSTn markers in JPEG files.
18952
18953 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
18954 (JPEG_MARKER_RST0): Likewise.
18955 (JPEG_MARKER_RST1): Likewise.
18956 (JPEG_MARKER_RST2): Likewise.
18957 (JPEG_MARKER_RST3): Likewise.
18958 (JPEG_MARKER_RST4): Likewise.
18959 (JPEG_MARKER_RST5): Likewise.
18960 (JPEG_MARKER_RST6): Likewise.
18961 (JPEG_MARKER_RST7): Likewise.
18962 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
18963 (grub_jpeg_decode_dri): New function.
18964 (grub_jpeg_decode_sos): Move image data related part into
18965 grub_jpeg_decode_data function.
18966 (grub_jpeg_decode_data): New function.
18967 (grub_jpeg_reset): New function.
18968 (grub_jpeg_decode_jpeg): Handle new markers.
18969
18970 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18971
18972 * util/ieee1275/ofpath.c (check_sas): Close fd.
18973 (main): Free of_path.
18974 Reported by: David Volgyes <dvolgyes>.
18975
18976 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18977
18978 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
18979 Reported by: David Volgyes <dvolgyes>.
18980
18981 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18982
18983 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
18984 file after stat.
18985 Reported by: David Volgyes <dvolgyes>.
18986
18987 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18988
18989 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
18990
18991 Reported by: David Volgyes <dvolgyes>.
18992
18993 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18994
18995 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
18996 Prevent memory leak.
18997
18998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18999
19000 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19001 (main): Close file.
19002 Reported by: David Volgyes <dvolgyes>.
19003
19004 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19005
19006 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19007 to continue if allocation is failed.
19008
19009 Reported by: David Volgyes <dvolgyes>.
19010
19011 2011-06-23 David Volgyes <dvolgyes>
19012
19013 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19014 dereference.
19015
19016 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19017
19018 Fix spurious warning.
19019
19020 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19021 (acorn_partition_map_find): Use .bin member.
19022
19023 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19024
19025 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19026 /dev/root as a valid device.
19027
19028 2011-06-23 Jim Meyering <meyering@redhat.com>
19029
19030 Avoid NULL deref in grub_device_open.
19031
19032 * grub-core/kern/device.c (grub_device_open): Don't dereference
19033 a NULL pointer upon failed grub_env_get.
19034
19035 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19036
19037 Support non-512B sectors and agglomerate reads.
19038
19039 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19040 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19041 (disk_io_guid): Removed.
19042 (make_devices): Locate solely by BlockIO.
19043 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19044 (grub_efidisk_read): Use read_blocks.
19045 (grub_efidisk_write): Use write_blocks.
19046 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19047 log_sector_size.
19048 (get_safe_sectors): Handle non-512B sectors.
19049 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19050 sectors.
19051 (grub_biosdisk_write): Handle non-512B sectors.
19052 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19053 (grub_scsi_read): Remove special non-512B block handling (now handled
19054 one level up).
19055 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19056 and do sanity checks.
19057 (grub_disk_adjust_range): Handle non-512B sectors.
19058 (transform_sector): New function.
19059 (grub_disk_read_small): Likewise.
19060 (grub_disk_read): Rewritten.
19061 (grub_disk_write): Handle non-512B sectors.
19062 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19063 log_sector_size.
19064 (open_device): Use log_sector_size.
19065 (grub_util_biosdisk_read): Likewise.
19066 (grub_util_biosdisk_write): Likewise.
19067 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19068 non-512B sectors.
19069 (pc_partition_map_embed): Likewise.
19070 * include/grub/disk.h (grub_disk): New field log_sector_size.
19071 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19072 (GRUB_DISK_CACHE_BITS): Increased to 6.
19073 * util/grub-fstest.c (fstest): New command testload.
19074 (argp_parser): Likewise.
19075
19076 2011-06-16 Robert Millan <rmh@gnu.org>
19077
19078 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19079 `ata' driver on kernel of FreeBSD 9.
19080
19081 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19082 (get_ataraid_disk_name): New functions.
19083 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19084 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19085 get_ataraid_disk_name() and get_ada_disk_name().
19086
19087 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19088
19089 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19090 input format.
19091
19092 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19093
19094 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19095 `ftp.gnu.org' for `alpha.gnu.org'.
19096
19097 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19098
19099 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19100 partitions under /dev/disk/by-id/.
19101
19102 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19103
19104 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19105 after ten consecutive open failures. Scanning all the way up to
19106 10000 is excessive and can cause serious performance problems in
19107 some configurations.
19108 Fixes Ubuntu bug #787461.
19109
19110 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19113 opening new one.
19114
19115 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19116 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19117
19118 Don't stat devices unless we have to.
19119
19120 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19121 dir == /dev/mapper.
19122 (grub_guess_root_device): Use already known os_dev if possible.
19123 * grub-core/kern/emu/hostdisk.c
19124 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19125 if device is known to be a dm one.
19126
19127 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19128
19129 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19130 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19131 Reported by: Pawel Tecza.
19132
19133 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19136 (lsefisystab): Likewise.
19137 (lssal): Likewise.
19138 (lsefimmap): Likewise.
19139 (hdparm): Enable on qemu-mips.
19140 (setjmp): Add ia64 nodist.
19141 (serial): Simplify tags.
19142
19143 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19144
19145 * Makefile.util.def (grub-ofpathname): Install manual page.
19146
19147 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19148
19149 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19150
19151 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19152
19153 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19154
19155 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19156
19157 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19158 into dprintf.
19159
19160 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 Use full 64-bit division.
19163
19164 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19165 (grub_divmod64): ... this.
19166 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19167 version.
19168
19169 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19170
19171 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19172 `source'.
19173
19174 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19175
19176 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19177 to avoid accidents when debugging with 'sh -x'.
19178 * grub-core/gensyminfo.sh.in: Likewise.
19179 * tests/example_scripted_test.in: Likewise.
19180 * tests/grub_cmd_regexp.in: Likewise.
19181 * tests/grub_script_blanklines.in: Likewise.
19182 * tests/grub_script_dollar.in: Likewise.
19183 * tests/grub_script_expansion.in: Likewise.
19184 * tests/grub_script_final_semicolon.in: Likewise.
19185 * tests/partmap_test.in: Likewise.
19186 * tests/util/grub-shell-tester.in: Likewise.
19187 * tests/util/grub-shell.in: Likewise.
19188
19189 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19190
19191 Move gfxmenu color handling to video, so that gfxterm can use it
19192 too.
19193
19194 * grub-core/gfxmenu/named_colors.c: Move to ...
19195 * grub-core/video/colors.c: ... here. Rename
19196 grub_gui_get_named_color to grub_video_get_named_color.
19197 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19198 * grub-core/video/colors.c (my_isxdigit): ... here.
19199 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19200 Move to ...
19201 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19202 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19203 to ...
19204 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19205
19206 * include/grub/gui.h (grub_gui_color_t): Move to ...
19207 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19208 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19209 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19210 * include/grub/gui.h (grub_gui_map_color): Move to ...
19211 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19212 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19213 to ...
19214 * include/grub/video.h (grub_video_get_named_color): ... here.
19215 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19216 * include/grub/video.h (grub_video_parse_color): ... here.
19217
19218 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19219 video/colors.c.
19220 (gfxmenu): Remove gfxmenu/named_colors.c.
19221 (video) [videomodules]: Add video/colors.c.
19222
19223 Add a background_color command.
19224
19225 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19226 function.
19227 (GRUB_MOD_INIT): Register background_color command.
19228 (GRUB_MOD_FINI): Unregister background_color command.
19229 (redraw_screen_rect): Allow blend/replace of text layer to be
19230 controlled independently from whether there is a background bitmap.
19231 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19232 changing bitmap.
19233
19234 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19235
19236 Patch BPB in ntldr and chainloader --bpb.
19237
19238 * grub-core/fs/fat.c: Include grub/fat.h.
19239 (grub_fat_bpb): Moved to ...
19240 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19241 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19242 grub/ntfs.h.
19243 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19244 Moved from here...
19245 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19246 here.
19247 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19248 New function.
19249 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19250 (GRUB_MOD_INIT): Show --bpb.
19251 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19252 * grub-core/normal/main.c (features): New variable.
19253 (GRUB_MOD_INIT): Set feature_* variables.
19254 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19255 proto.
19256 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19257
19258 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19259
19260 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19261 for cleanness.
19262
19263 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19264
19265 FreeDOS direct loading support.
19266
19267 * docs/grub.texi (Supported OS): Add FreeDOS.
19268 * grub-core/Makefile.core.def (freedos): New module.
19269 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19270 variable.
19271 (grub_relocator16_boot): Handle %ebx.
19272 * grub-core/lib/i386/relocator16.S: Likewise.
19273 * grub-core/loader/i386/pc/freedos.c: New file.
19274
19275 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 Long Linux command line support.
19278
19279 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19280 (maximal_cmdline_size): New variable.
19281 (allocate_pages): Use maximal_cmdline_size.
19282 (grub_cmd_linux): Set and use maximal_cmdline_size.
19283 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19284 (allocate_pages): Use maximal_cmdline_size.
19285 (grub_cmd_linux): Set and use maximal_cmdline_size.
19286 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19287 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19288 and cmdline_size.
19289
19290 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19291 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19292
19293 Improve devmapper support
19294
19295 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19296 (grub_util_is_lvm): New function.
19297 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19298 than lvm if not dmraid.
19299 Handle mapped md nodes.
19300 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19301 (grub_util_device_is_mapped): ... this. Make always available. All users
19302 updated.
19303 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19304 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19305 dmraid nodes.
19306 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19307
19308 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19309
19310 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19311
19312 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19313 * grub-core/modinfo.sh.in: New file.
19314 * grub-core/Makefile.core.def (modinfo.sh): New script.
19315 * util/grub-mknetdir.in: Use modinfo.sh.
19316 * util/grub-mkrescue.in: Likewise.
19317
19318 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19319
19320 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19321 Fix potential usage of Elf32 instead of Elf64 when compiling on
19322 32-bit architecture. Add endianness macros while on it.
19323
19324 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19325
19326 Use mipsel- rather than mips- in directories involving mipsel ports to
19327 allow both endiannesses coexist.
19328
19329 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19330 mips. All conditions adjusted.
19331 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19332 variable.
19333 * util/grub-install.in: Adjust conditions to take renaming into account.
19334 * util/grub-mkimage.c (image_targets): Likewise. New target
19335 mips-qemu_mips-elf for bigendian mips.
19336
19337 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19338
19339 Avoid unnecessary copying on MIPS.
19340
19341 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19342 early if src == dest.
19343 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19344 compression is none.
19345
19346 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19347
19348 Reduce memory footprint on SGI by putting modules before the kernel
19349 as opposed to after.
19350
19351 * grub-core/Makefile.core.def (kernel): Increase linking address.
19352 (none_decompress): Likewise.
19353 (xz_decompress): Likewise.
19354 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19355 address.
19356 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19357 layout change.
19358 (grub_arch_modules_addr): New function.
19359 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19360 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19361 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19362 here.
19363 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19364 (grub_total_modules_size): ... this. Make global.
19365 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19366 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19367 New definition.
19368 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19369 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19370 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19371 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19372 * util/grub-mkimage.c (image_target_desc): New flag
19373 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19374 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19375 (generate_image): Handle images with modules before kernel.
19376
19377 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19378
19379 Prevent potential loss of memory map by overwrite on qemu-mips.
19380
19381 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19382 Save ram size in $s4.
19383 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19384 All users changed to grub_arch_memsize.
19385 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19386 Loongson.
19387 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19388 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19389 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19390 external variable.
19391
19392 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19393
19394 * .bzrignore: Remove grub-dumpbios.
19395
19396 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19397
19398 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19399 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19400 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19401 existing options which append).
19402 * docs/grub.texi (Simple configuration): Document new options.
19403 Reported by: Ian Jackson. Fixes Debian bug #617538.
19404
19405 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19406
19407 * util/grub-fstest.c (cmd_cat): New function.
19408 (fstest): Handle CMD_CAT.
19409 (options): Add cat.
19410 (argp_parser): Handle cat.
19411
19412 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19413
19414 * Makefile.util.def (grub-bin2h): Don't install.
19415 * docs/man/grub-bin2h.h2m: Remove.
19416
19417 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19418
19419 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19420 place.
19421
19422 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19423
19424 Reenable qemu-mips port.
19425
19426 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19427 Fix small arc bug while on it.
19428 * gentpl.py: Handle qemu_mips.
19429 * grub-core/Makefile.am: Likewise.
19430 * grub-core/Makefile.core.def: Likewise.
19431 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19432 inappropriate includes.
19433 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19434 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19435 * grub-core/kern/main.c (grub_modules_get_end)
19436 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19437 * grub-core/kern/mips/qemu-mips: Moved to ..
19438 * grub-core/kern/mips/qemu_mips: ... this.
19439 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19440 (grub_machine_init): Call terminfo_init and serial_init.
19441 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19442 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19443 New variable.
19444 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19445 parameter passing.
19446 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19447 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19448 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19449 * include/grub/mips/qemu_mips/cmos.h: New file.
19450 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19451 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19452 Removed.
19453 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19454 Use correct mips-style address.
19455 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19456 (GRUB_TICKS_PER_SECOND): Removed.
19457 (grub_get_rtc): Likewise.
19458 (grub_cpu_idle): Likewise.
19459 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19460 New definition.
19461 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19462 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19463 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19464 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19465 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19466 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19467 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19468 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19469
19470 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19471
19472 SGI ARCS port.
19473
19474 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19475 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19476 platforms.
19477 * configure.ac: New target mips-arc.
19478 * gentpl.py: Likewise.
19479 * grub-core/Makefile.am: Likewise.
19480 * grub-core/Makefile.core.def: Likewise.
19481 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19482 (none_decompress): Likewise.
19483 (lsdev): New module.
19484 (datetime): Use lib/arc/datetime.c on ARC.
19485 (part_dvh): New module.
19486 * grub-core/commands/arc/lsdev.c: New file.
19487 * grub-core/disk/arc/arcdisk.c: Likewise.
19488 * grub-core/kern/mips/arc/init.c: Likewise.
19489 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19490 aligned addresses.
19491 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19492 support.
19493 (grub_arch_dl_relocate_symbols): Likewise.
19494 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19495 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19496 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19497 platforms.
19498 * grub-core/lib/arc/datetime.c: New file.
19499 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19500 pci.h on non-loongson.
19501 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19502 (grub_linux_boot): Set unused registers to 0.
19503 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19504 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19505 * grub-core/mmap/mips/uppermem.c: ...here.
19506 * grub-core/partmap/dvh.c: New file.
19507 * grub-core/term/arc/console.c: Likewise.
19508 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19509 (grub_terminfo_set_current): Add terminal "arc".
19510 (grub_terminfo_readkey): Support ARC sequences.
19511 * include/grub/arc/arc.h: New file.
19512 * include/grub/arc/console.h: Likewise.
19513 * include/grub/disk.h (grub_disk_dev_id): Add
19514 GRUB_DISK_DEVICE_ARCDISK_ID.
19515 * include/grub/mips/arc/kernel.h: New file.
19516 * include/grub/mips/arc/memory.h: Likewise.
19517 * include/grub/mips/arc/time.h: Likewise.
19518 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19519 * include/grub/mips/kernel.h (grub_halt): ... here.
19520 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19521 here...
19522 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19523 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19524 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19525 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19526 proto.
19527 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19528 from here ...
19529 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19530 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19531 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19532 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19533 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19534 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19535 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19536 (grub_phys_addr_t): Moved from here ...
19537 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19538 (grub_vtop): Moved from here ...
19539 * include/grub/mips/memory.h (grub_vtop): ... here.
19540 (grub_map_memory): Moved from here ...
19541 * include/grub/mips/memory.h (grub_map_memory): ... here.
19542 (grub_unmap_memory): Moved from here ...
19543 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19544 (grub_machine_mmap_iterate): Moved from here ...
19545 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19546 (grub_mmap_get_lower): Moved from here ...
19547 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19548 (grub_mmap_get_upper): Moved from here ...
19549 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19550 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19551 here ...
19552 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19553 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19554 here ...
19555 * include/grub/mips/time.h (grub_get_rtc): ... here.
19556 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19557 here ...
19558 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19559 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19560 here ...
19561 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19562 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19563 definition.
19564 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19565 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19566 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19567 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19568 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19569 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19570 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19571 (GRUB_MACHINE_LINK_ADDR): Likewise.
19572 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19573 to 6.
19574 * util/grub-install.in: Run dvhtool on ARC.
19575 * util/grub-mkimage.c (image_targets): Add mips-arc.
19576 (generate_image): Handle ECOFF output for mips-arc.
19577
19578 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19579
19580 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19581 blocks.
19582
19583 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19584
19585 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19586 after enabling port.
19587
19588 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19589
19590 Skip incorrect USB devices.
19591
19592 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19593 configcnt == 0.
19594 * include/grub/usb.h (grub_usb_err_t): New enum value
19595 GRUB_USB_ERR_BADDEVICE.
19596
19597 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19598
19599 Fuloong video init support.
19600
19601 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19602 well.
19603 (grub_vga_read_arx): New function.
19604 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19605 definition.
19606 (framebuffer): New members io, mmioptr and mmiobase.
19607 (read_sis_cmd): New function.
19608 (write_sis_cmd): Likewise.
19609 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19610 rather than 640x400.
19611 * grub-core/video/sis315_init.c: New file.
19612
19613 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19614
19615 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19616 non-loongson.
19617 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19618 to grub_dl_register_symbol.
19619
19620 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19621
19622 Fix compilation errors.
19623
19624 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19625 potentially unused.
19626 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19627 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19628 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19629 to loongson machines.
19630
19631 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19632
19633 Several FS mtime support.
19634
19635 * grub-core/fs/affs.c (grub_affs_time): New struct.
19636 (grub_affs_file): New field mtime.
19637 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19638 type. Removed 'size'. New field 'di'. All users updated.
19639 (grub_affs_mount): Simplify checsum checking.
19640 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19641 (grub_affs_dir): Handle mtime.
19642 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19643 (grub_cpio_dir): Likewise.
19644 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19645 (grub_hfs_filerec): New field mtime.
19646 (grub_hfs_dir): Handle mtime.
19647 (grub_hfs_mtime): New function.
19648 (grub_hfs_fs): Register grub_hfs_mtime.
19649 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19650 (grub_iso9660_dir): New field mtime.
19651 (grub_fshelp_node): New field dirent.
19652 (iso9660_to_unixtime): New function.
19653 (iso9660_to_unixtime2): Likewise.
19654 (grub_iso9660_read_symlink): Use node->dirent.
19655 (grub_iso9660_iterate_dir): Likewise.
19656 (grub_iso9660_dir): Set mtime.
19657 (grub_iso9660_mtime): New function.
19658 (grub_iso9660_fs): Register grub_iso9660_mtime.
19659 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19660 (grub_jfs_inode): New fields atime, ctime and mtime.
19661 (grub_jfs_dir): Set mtime.
19662 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19663 * grub-core/fs/ntfs.c (list_file): Set mtime.
19664 (grub_ntfs_dir): Likewise.
19665 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19666 (grub_reiserfs_iterate_dir): Set mtime.
19667 (grub_reiserfs_dir): Likewise.
19668 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19669 (grub_fshelp_node): Likewise.
19670 (grub_sfs_iterate_dir): Set mtime.
19671 (grub_sfs_dir): Likewise.
19672 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19673 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19674 (grub_xfs_inode): New fields atime, mtime, ctime.
19675 (grub_xfs_dir): Set mtime.
19676 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19677 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19678 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19679
19680 Support UDF symlinks.
19681
19682 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19683 (grub_ufs_read_symlink): New function. All users updated.
19684
19685 Check amiga partmap checksum.
19686
19687 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19688 (grub_amiga_partition): Likewise.
19689 (amiga_partition_map_checksum): New function.
19690 (amiga_partition_map_iterate): Check checksum.
19691
19692 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19693
19694 ROMFS support.
19695
19696 * Makefile.util.def (libgrubmods.a): Add romfs.
19697 * grub-core/Makefile.core.def (romfs): New module.
19698 * grub-core/fs/romfs.c: New file.
19699
19700 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 Squashfs v4 support.
19703
19704 * Makefile.util.def (libgrubmods.a): Add squash4.
19705 * grub-core/Makefile.core.def (squash4): New module.
19706 * grub-core/fs/squash4.c: New file.
19707 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19708 disk_input_start, disk_input.
19709 (get_byte): Handle disk_input.
19710 (grub_zlib_disk_read): New function.
19711 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19712
19713 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19714 2011-05-15 Feiran Zheng <famcool@gmail.com>
19715
19716 * Makefile.util.def (libgrubmods.a): Add minix3.
19717 * grub-core/Makefile.core.def (minix3): New module.
19718 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19719 (GRUB_MINIX_BSIZE): Removed.
19720 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19721 (grub_minix_ino_t): New type.
19722 (grub_minix_le_to_cpu_ino): New macro.
19723 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19724 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19725 (grub_minix_data): New field block_size.
19726 (grub_minix_read_file): Handle 64-bit correctly.
19727 * grub-core/fs/minix3.c: New file.
19728
19729 2011-05-15 Tristan Gingold <gingold@free.fr>
19730 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19731 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19732
19733 IA64 support.
19734
19735 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19736 * configure.ac: Add ia64-efi target.
19737 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19738 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19739 * gentpl.py: Add ia64_efi platform.
19740 Rename x86_efi to efi and Add ia64-efi. All users updated.
19741 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19742 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19743 Remove kern/generic/rtc_get_time_ms.c on EFI.
19744 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19745 kern/ia64/dl_helper.c on ia64-efi.
19746 Add kern/emu/cache.c on emu.
19747 (linux): Use on loader/ia64/efi/linux.c on ia64.
19748 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19749 whether symbol is a function.
19750 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19751 (grub_symbol): New field 'isfunc'.
19752 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19753 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19754 (grub_dl_load_segments): Place all sections into the same region.
19755 [__ia64__]: Create trampolines and got.
19756 [GRUB_MACHINE_EMU]: Call mprotect.
19757 (grub_dl_resolve_symbols): Resolve symbol type as well.
19758 [__ia64__]: Create function descriptors.
19759 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19760 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19761 (grub_get_rtc): New function.
19762 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19763 * grub-core/kern/emu/cache.S: Renamed to ...
19764 * grub-core/kern/emu/cache_s.S: ... this.
19765 [__ia64__]: Add a nop.
19766 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19767 [__ia64__]: New function.
19768 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19769 * grub-core/kern/ia64/dl.c: New file.
19770 * grub-core/kern/ia64/dl_helper.c: Likewise.
19771 * grub-core/kern/ia64/efi/init.c: New file.
19772 * grub-core/kern/ia64/efi/startup.S: Likewise.
19773 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19774 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19775 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19776 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19777 * grub-core/loader/ia64/efi/linux.c: New file.
19778 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19779 (GRUB_MOD_DEP): Likewise.
19780 (grub_dl) [__ia64__]: New fields got and tramp.
19781 (grub_dl): New field 'base'.
19782 (grub_dl_register_symbol): New argument isfunc. All users updated.
19783 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19784 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19785 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19786 (grub_ia64_dl_get_tramp_got_size): New proto.
19787 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19788 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19789 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19790 * include/grub/efi/api.h: Skip call wrappers on ia64.
19791 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19792 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19793 * include/grub/elf.h (ELF_ST_INFO): New definition.
19794 * include/grub/ia64/efi/kernel.h: New file.
19795 * include/grub/ia64/efi/memory.h: Likewise.
19796 * include/grub/ia64/efi/time.h: Likewise.
19797 * include/grub/ia64/kernel.h: Likewise.
19798 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19799 * include/grub/ia64/time.h: New file.
19800 * include/grub/ia64/types.h: Likewise.
19801 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19802 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19803 New protos.
19804 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19805 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19806 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19807 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19808 All users updated.
19809 (EFI64_HEADER_SIZE): New definition. All users updated.
19810 (image_targets): Add ia64-efi.
19811 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19812 jumpers_addr. All users updated.
19813 Create function descriptors.
19814 (count_funcs): New function.
19815 (unaligned_uint32): New struct.
19816 (MASK20): New definition.
19817 (MASK19): Likewise.
19818 (MASKF21): Likewise.
19819 (add_value_to_slot_20b): New function.
19820 (add_value_to_slot_21_real): Likewise.
19821 (add_value_to_slot_21): Likewise.
19822 (ia64_kernel_trampoline): New struct.
19823 (nopm): New variable.
19824 (jump): Likewise.
19825 (make_trampoline): New function.
19826 (relocate_addresses): Handle ia64.
19827 (make_reloc_section): Likewise.
19828 (load_image): Likewise.
19829
19830 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19831
19832 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19833 warning. Move variables before code while on it.
19834
19835 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19836
19837 Fuloong support.
19838
19839 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19840 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19841 * grub-core/boot/mips/loongson/fuloong.S: New file.
19842 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19843 Explicitly init CS5536.
19844 [FULOONG]: Don't use serial until CS5536 is available.
19845 Set GPIO based on dumps.
19846 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19847 [FULOONG]: Handle GPIO and memory controller differences.
19848 Parse machine type in $a2.
19849 * grub-core/boot/mips/startup_raw.S: Determine and save the
19850 architecture.
19851 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19852 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19853 init on architecture type.
19854 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19855 SIS315E. Don't init at_keyboard on fuloong.
19856 (grub_halt): Support Fuloong.
19857 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19858 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19859 (loongson_machtypes): New array.
19860 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19861 type.
19862 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19863 config. All users updated. Handle CS5536 serial.
19864 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19865 default port on machine type. Register serial as inactive.
19866 * grub-core/video/sis315pro.c: New file.
19867 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19868 definition.
19869 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19870 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19871 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19872 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19873 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19874 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19875 to ...
19876 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19877 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19878 definition.
19879 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19880 (grub_arch_machine): New extern var.
19881 * include/grub/mips/loongson/serial.h
19882 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19883 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19884 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19885 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19886 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19887 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19888 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19889 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19890 * include/grub/term.h (grub_term_register_input_inactive): New inline
19891 function.
19892 (grub_term_register_output_inactive): Likewise.
19893 * include/grub/video.h (grub_video_driver_id): New value
19894 GRUB_VIDEO_DRIVER_SIS315PRO.
19895 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19896 New field "names". All users updated.
19897 New field value IMAGE_FULOONG_FLASH.
19898 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19899
19900 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19901
19902 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19903 and add some clarification.
19904
19905 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19906
19907 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19908 platforms if kernel is compressed.
19909
19910 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19911
19912 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19913 unused modules since currently referrence counter isn't reliable and
19914 there isn't much memory to recover there anyway.
19915
19916 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19917
19918 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19919 rather than resetting it to allow modules to reference themselves
19920 in init.
19921
19922 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19925 counter on dependencies since grub_dl_unref already handles this.
19926
19927 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19928
19929 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
19930 on error if not already done.
19931
19932 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19933
19934 Fix few potential memory misusage.
19935
19936 * grub-core/font/font.c (load_font_index): Don't free char_index to
19937 avoid double free.
19938 (grub_font_load): Zero-fill font at alloc for safety.
19939 Close file on error.
19940 (free_font): Free bmp_idx.
19941
19942 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19943
19944 * docs/grub.texi (Installation): Fix several outdated claims.
19945
19946 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19947
19948 Handle module_license on windows.
19949
19950 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
19951 sections shifted.
19952 (insert_string): Make argument const char * instead of char *.
19953 (write_section_data): Handle long section names.
19954 Handle module_license.
19955
19956 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19957
19958 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
19959 handle class-free menuentries.
19960 (grub_normal_add_menu_entry): Add a check to be sure.
19961
19962 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19963
19964 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
19965 PgUp and PgDown.
19966
19967 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19968
19969 * configure.ac: Bump version to 1.99.
19970
19971 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19972
19973 Give ATA device a bit more time on first try in order to allow disks
19974 to spin up.
19975
19976 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
19977 if dev->present is 1. Reset dev->present on failure.
19978 (grub_ata_device_initialize): Set dev->present to 1.
19979 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
19980 (grub_ata_device): New member 'present'.
19981
19982 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 * util/grub-mkimage.c (generate_image): Update hash.
19985
19986 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19987
19988 Flush caches on DMA memory.
19989
19990 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
19991 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
19992 (grub_dma_free): Likewise.
19993 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
19994
19995 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
19996
19997 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
19998 to avoid asm treating ld and sd as macros.
19999
20000 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20001
20002 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20003 decompressor.
20004
20005 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20006
20007 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20008 grub_decompress_core since later would fail if grub_decompress_core
20009 is too far.
20010
20011 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20012
20013 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20014 R_MIPS_JALR since it's used by newer compiler.
20015
20016 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20017
20018 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20019
20020 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20023 file_path to 0 for surety.
20024 (grub_chainloader_boot): Set exit_data to NULL.
20025 Unset the loader once done.
20026 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20027
20028 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20029
20030 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20031 unknown key into a dprintf.
20032
20033 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20036 on first non-existant partition.
20037
20038 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20039
20040 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20041 openning fails.
20042 Reported by: Mark Korenberg.
20043
20044 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20045
20046 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20047 overflow.
20048
20049 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20050
20051 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20052 before closing to ensure that it will be readable by grub-setup.
20053
20054 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20055
20056 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20057 (devpath_1): Use MAKE_PIWG_PATH.
20058 (devpath_2): Likewise.
20059 (devpath_3): Likewise.
20060 (devpath_4): Likewise.
20061 (devpath_5): Likewise.
20062 (devpath_6): Likewise.
20063
20064 The appleldr.mod was checked that to be binary identical to previous
20065 version.
20066
20067 2011-05-05 Zach <mikezackles>
20068
20069 Support 2010 Macbooks.
20070
20071 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20072 (devs): Add devpath_6.
20073
20074 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20075
20076 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20077 /dev/random. /dev/urandom is good enough for our purposes (salting).
20078
20079 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20080
20081 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20082
20083 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20084
20085 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20086 hexadecimal.
20087
20088 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20089
20090 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20091 and not 0 on failure.
20092
20093 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20094
20095 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20096 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20097 disk; otherwise grub_fs_probe will not fall back to the next
20098 filesystem.
20099 (grub_pxefs_open): Likewise, for consistency.
20100 Reported and tested by: Ezekiel Grave.
20101
20102 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20103
20104 * tests/partmap_test.in: Don't hardcode path to parted.
20105 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20106
20107 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20108
20109 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20110 of `ls' to find out which devices are available.
20111
20112 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20115 than source address for efi mmap buffer.
20116
20117 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20118
20119 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20120 wrong action on non-detecting the magic.
20121
20122 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20123
20124 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20125 already supplied by another part of the module (fixes compilation on
20126 FreeBSD).
20127
20128 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20129
20130 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20131 match the one used by mdadm.
20132
20133 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20134
20135 * po/README: Add instructions for creating po/LINGUAS.
20136
20137 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20138
20139 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20140 #551428.
20141
20142 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20143 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20144 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20145 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20146 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20147 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20148 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20149 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20150 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20151 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20152 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20153 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20154 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20155 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20156 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20157 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20158 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20159 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20160 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20161 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20162 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20163 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20164
20165 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20166
20167 * grub-core/kern/emu/getroot.c
20168 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20169 test that was incorrectly reintroduced in r3214.
20170 Reported by: Ian Dall. Fixes Savannah bug #33133.
20171
20172 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20173
20174 Fix stack pointer handling in 16-bit relocator.
20175
20176 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20177 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20178 Fixes Ubuntu bug #683904.
20179
20180 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20181
20182 * configure.ac: Bump version to 1.99~rc2.
20183
20184 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20187 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20188 * grub-core/lib/x86_64/setjmp.S: Likewise.
20189 * grub-core/lib/mips/setjmp.S: Likewise.
20190 * grub-core/lib/powerpc/setjmp.S: Likewise.
20191 * grub-core/lib/sparc64/setjmp.S: Likewise.
20192
20193 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20196 * grub-core/lib/efi/datetime.c: Likewise.
20197
20198 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20199
20200 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20201 New function.
20202 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20203 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20204 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20205
20206 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20209 bitmap.
20210 (grub_gfxterm_term_init): Likewise.
20211
20212 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20213
20214 Take into account the decorations the computing menu entry width.
20215
20216 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20217 (grub_gfxmenu_create_box): Register get_border_width.
20218 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20219 if available.
20220 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20221 get_border_width.
20222
20223 2011-04-18 Endres Puschner <code@e7p.de>
20224
20225 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20226 Don't skip first class.
20227
20228 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20229
20230 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20231 chunks.
20232 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20233
20234 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20235
20236 Complete 64-bit division support.
20237
20238 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20239 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20240 * include/grub/misc.h (grub_divmod64): Rename to ...
20241 (grub_divmod64_full): ... this.
20242 (grub_divmod64): New inline function.
20243
20244 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20247
20248 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20249
20250 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20251 performing the necessary test.
20252
20253 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20254
20255 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20256 (kfreebsd.elf): Likewise.
20257 (pc-chainloader.elf): Likewise.
20258 (ntldr.elf): Likewise.
20259
20260 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20261
20262 Identify RAID by its UUID rather than (guessed) name.
20263
20264 * grub-core/disk/raid.c (ascii2hex): New function.
20265 (grub_raid_open): Accept mduuid/%s specification.
20266 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20267 (get_mdadm_uuid): ... this.
20268 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20269
20270 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20271
20272 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20273 to negative size.
20274
20275 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20276
20277 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20278 btrfs subvolume.
20279 * util/grub.d/20_linux_xen.in: Likewise.
20280
20281 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20282
20283 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20284 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20285
20286 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20287 Build a list of relevant visible mounts using the mnt_id and
20288 parent_mnt_id fields, and then scan that list at the end.
20289
20290 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20291
20292 * docs/grub.texi (normal): New section.
20293 (normal_exit): New section.
20294 (Embedded configuration): Add reference to normal.
20295 (GRUB only offers a rescue shell): Likewise.
20296 * docs/grub-dev.texi (Error Handling): Fix typo.
20297
20298 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20299
20300 * NEWS: Drop obsolete entry about probe-only btrfs support.
20301
20302 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20303
20304 * util/import_gcry.py: Fix typo.
20305
20306 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20307
20308 * NEWS: Add btrfs support.
20309
20310 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20311 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20312
20313 BtrFS support. Written by me (Vladimir) with important bugfixes and
20314 even more important testing by Colin.
20315
20316 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20317 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20318 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20319 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20320 mem_input_off and mem_input. All users updated to accept in-RAM input.
20321 (gzio_seek): New function.
20322 (test_zlib_header): Likewise.
20323 (grub_gzio_read): Likewise.
20324 (grub_zlib_decompress): Likewise.
20325 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20326 Accept partial and non-virtual mounts.
20327 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20328 avoid receiving /dev/dm-X as device.
20329 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20330 Handle bind and partial mounts.
20331 * grub-core/lib/crc.c: New file.
20332 * include/grub/deflate.h: Likewise.
20333 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20334 proto.
20335 * include/grub/lib/crc.h: New file.
20336
20337 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20338
20339 Implement automatic module license checking according to new GNU
20340 guidelines.
20341
20342 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20343 (grub_dl_load_core): Use grub_dl_check_license.
20344 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20345 (GRUB_MOD_LICENSE): Likewise.
20346 (GRUB_MOD_DUAL_LICENSE): Likewise.
20347 All modules updated.
20348
20349 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20350
20351 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20352 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20353 loaders.
20354 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20355
20356 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20359
20360 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20361
20362 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20363 failed.
20364
20365 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20366
20367 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20368 parenthesis in the middle of the filename.
20369
20370 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20371
20372 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20373 rather than trying to put initrd way too high.
20374 Reported by: Ryan Lortie <desrt@desrt.ca>
20375
20376 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20379 improperly removed string.
20380
20381 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20382
20383 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20384 is_disk.
20385 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20386 (open_device) Likewise.
20387 (grub_util_biosdisk_close): Likewise.
20388 Reported by: Mark Korenberg.
20389
20390 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20391
20392 * util/grub-mkconfig_lib.in: Add missing quotes.
20393
20394 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20395
20396 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20397 is NULL.
20398
20399 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20400
20401 Dynamically count the number of lines for the lower banner.
20402
20403 * grub-core/normal/menu_entry.c (per_term_screen): New member
20404 num_entries.
20405 (print_down): Use num_entries.
20406 (update_screen): Likewise.
20407 (grub_menu_entry_run): Set num_entries.
20408 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20409 num_entries.
20410 (grub_print_message_indented): Move real part to ...
20411 (grub_print_message_indented_real): ... here. Additional argument
20412 dry_run.
20413 (draw_border): Additional argument num_entries.
20414 (print_message): Additional argument dry_run.
20415 (print_entries): Receive menu viewer data.
20416 (grub_menu_init_page): New argment num_entries.
20417 (menu_text_set_chosen_entry): Use num_entries.
20418 (grub_menu_try_text): Likewise.
20419 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20420 All users updated.
20421 (grub_ucs4_count_lines): New function.
20422 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20423 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20424 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20425 (grub_term_border_height): Likewise.
20426 (grub_term_num_entries): Likewise.
20427
20428 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20429
20430 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20431 Remove now unused string.
20432
20433 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20434
20435 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20436 build system.
20437 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20438
20439 (Comment): Fix typo.
20440 (Getting started): General copy-editing.
20441 (Typical Development Experience): Likewise.
20442 (Error Handling): Likewise.
20443 (Video API): Likewise.
20444
20445 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20446
20447 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20448 throughout.
20449
20450 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20451
20452 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20453 directory.
20454
20455 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20456
20457 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20458 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20459 "development".
20460
20461 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20462
20463 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20464 grub_strcpy since the lines aren't necessarily 0-terminated.
20465
20466 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20467
20468 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20469 root on legacy.
20470
20471 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20472
20473 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20474 (GRUB_MOD_INIT): DEVICE isn't optional.
20475
20476 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20477
20478 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20479 word on new line if it's too long anyway. Fixes a hang.
20480
20481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20482
20483 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20484 const.
20485 * util/grub-setup.c (main): Reuse md device name if available.
20486 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20487 not GRUB name as argument.
20488 Based on patch by: Florian Wagner <fwagner>.
20489
20490 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20493 Place mbi on low memory for better compatibility.
20494
20495 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20496
20497 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20498
20499 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20500 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20501
20502 * autogen.sh: Ensure that collate and ctype locale is C.
20503 * conf/Makefile.common: Likewise.
20504
20505 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20506
20507 * grub-core/normal/menu.c: Add missing include.
20508
20509 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20510
20511 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20512
20513 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20514
20515 * util/grub-mkconfig.in: Ignore emacsen backup.
20516
20517 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20518
20519 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20520 on open.
20521 (grub_util_biosdisk_close): Likewise.
20522
20523 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20524
20525 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20526 const attribute and use grub_isdigit.
20527
20528 2011-04-06 Andrey <dev_null@ukr.net>
20529
20530 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20531 gcc warning.
20532
20533 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20536 useful grub_dprintf's.
20537
20538 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20539
20540 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20541
20542 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20545
20546 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20547
20548 Output errors if theme loading failed.
20549
20550 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20551 grub_gfxterm_fullscreen on error paths to ...
20552 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20553 theme loading error.
20554
20555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20558 space for older compilers.
20559 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20560
20561 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20562
20563 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20564 and report them as not RAID members since they are useless for GRUB.
20565 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20566
20567 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 Increase LVM implementation robustness in order not to crash on
20570 configurations like pvmove. Previously code assumed that in some places
20571 only lvs or only pvs are used whereas it seems that they are used
20572 interchangeably.
20573
20574 * grub-core/disk/lvm.c (read_node): New function.
20575 (read_lv): Use read_node.
20576 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20577 Match volumes only at the end when all lvs are found. Take both
20578 pvs (first) and lvs (second) into account.
20579 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20580 mirror_* into node_*. All users updated.
20581 (grub_lvm_stripe): Merge this ...
20582 (grub_lvm_mirror): ... and this ...
20583 (grub_lvm_node): ... into this. All users updated.
20584
20585 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20586
20587 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20588 of function to allow further scanning for LVMs.
20589
20590 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20591
20592 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20593 on failed seek as it breaks open fd reusage.
20594
20595 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20596
20597 * util/grub-install.in: Add a recommendation to use --recheck before
20598 reporting bugs.
20599
20600 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20601
20602 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20603 are obtained.
20604
20605 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20606
20607 GRUB developper manual based on existing Internals section and
20608 contributions by the various authors with active copyright assignment.
20609
20610 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20611 * docs/font_char_metrics.png: New file.
20612 * docs/font_char_metrics.txt: Likewise.
20613 * docs/grub-dev.texi: Likewise.
20614 * docs/grub.texi (Internals): Move from here ...
20615 * docs/grub-dev.texi: ... here.
20616
20617 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20618
20619 Store the loopback device as data on loopback grub_disk structures,
20620 rather than the file it points to. This fixes use of freed memory
20621 if an existing loopback device is replaced.
20622
20623 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20624 disk->data, not dev->file.
20625 (grub_loopback_read): Adjust file assignment to match.
20626 Fixes Ubuntu bug #742967.
20627
20628 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20629
20630 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20631 when replacing an existing device.
20632
20633 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20634
20635 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20636 memory corruptions.
20637
20638 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20639 unsigned.
20640 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20641 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20642 (grub_jfs_read_inode): Likewise.
20643 (grub_jfs_opendir): Likewise. Remove now useless casts.
20644 (grub_jfs_getent): Likewise.
20645 Make ino a grub_uint32_t rather than int.
20646 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20647 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20648 division and module with bit operations.
20649 (grub_jfs_find_file): Make ino a grub_uint32_t.
20650 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20651
20652 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20653
20654 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20655 warning. (This was in fact always initialised before use, but GCC
20656 wasn't smart enough to prove that.)
20657 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20658
20659 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20660
20661 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20662 stack alignment.
20663 (efi_wrap_1): Likewise.
20664 (efi_wrap_2): Likewise.
20665 (efi_wrap_3): Likewise.
20666 (efi_wrap_4): Likewise.
20667 (efi_wrap_5): Likewise.
20668 (efi_wrap_6): Likewise.
20669 (efi_wrap_10): Likewise.
20670 Based on information by: Red Hat/Peter Jones.
20671
20672 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20673
20674 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20675 set-but-not-used variable.
20676
20677 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20678
20679 * docs/grub.texi (Simple configuration): Be more explicit about
20680 GRUB_DEFAULT, and add an example.
20681 Reported by: Leslie Rhorer.
20682
20683 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20684
20685 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20686 shell".
20687
20688 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20689
20690 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20691 * util/grub.d/20_linux_xen.in: Likewise.
20692
20693 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20694
20695 * util/grub.d/10_linux.in: Try alternative config filenames where
20696 we parse config file.
20697 * util/grub.d/20_linux_xen.in: Likewise.
20698
20699 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20700
20701 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20702 * util/grub.d/20_linux_xen.in: Likewise.
20703
20704 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 * grub-core/disk/raid.c (insert_array): Add few potentially
20707 useful grub_util_info.
20708 (grub_raid_register): Likewise.
20709
20710 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20711
20712 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20713 Preserve partition number in mdadm code path.
20714
20715 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20716
20717 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20718 few potentially useful grub_util_info.
20719
20720 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20721
20722 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20723
20724 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20725
20726 * docs/grub.texi (default): Use @example rather than nested
20727 itemized lists to avoid breaking gendocs.
20728
20729 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20730
20731 * docs/grub.texi (Future): Update.
20732
20733 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20734
20735 * docs/grub.texi (Environment): New chapter.
20736 (Changes from GRUB Legacy): Link to "Environment block" section for
20737 details of limitations.
20738 (Simple configuration): Likewise. Link to documentation of gfxmode
20739 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20740 respectively.
20741 (Shell-like scripting): Note that normal variables are stored in the
20742 environment.
20743 (gettext): Link to documentation of lang and locale_dir.
20744 (list_env): New section.
20745 (load_env): New section.
20746 (save_env): New section.
20747
20748 (Reporting bugs): Fix typo.
20749
20750 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20751
20752 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20753 the example.
20754
20755 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20756
20757 * grub-core/term/at_keyboard.c (set_scancodes)
20758 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20759
20760 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20761
20762 * docs/grub.texi (Menu-specific commands): Remove some semantics
20763 that were true in GRUB Legacy but not in GRUB 2.
20764 (submenu): New section.
20765 (false): New section.
20766 (read): New section.
20767 (true): New section.
20768
20769 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20770
20771 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20772
20773 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20774
20775 * docs/grub.texi (Simple configuration): Explain some of the
20776 current limitations of grub-mkconfig.
20777 Reported by: Leslie Rhorer.
20778
20779 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20780
20781 Old macs search for boot.efi rather than for bootia32.efi.
20782
20783 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20784 * util/grub-mkrescue.in: Likewise.
20785 Suggested by: Peter Jones.
20786
20787 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20788
20789 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20790
20791 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20792
20793 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20794 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20795 (grub_lvm_mirror): New struct.
20796 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20797 (grub_lvm_iterate): Iterate only visible volumes.
20798 (grub_lvm_read): Factor out to ..
20799 (read_lv): ... this. Support mirrors.
20800 (grub_lvm_read): New wrapper function.
20801 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20802 stripped or mirrored.
20803
20804 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20805
20806 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20807
20808 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20809
20810 * docs/grub.texi (loopback): New section.
20811
20812 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20813
20814 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20815 removed -p option.
20816
20817 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20818
20819 * docs/grub.texi (BIOS installation): New section, partly based on
20820 previous text in other sections.
20821 (Installing GRUB using grub-install): Replace BIOS discussion with a
20822 cross-reference.
20823 (Images): Likewise.
20824
20825 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20826
20827 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20828 [HAVE_DIOCGDINFO]: Add safety checks.
20829
20830 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20831
20832 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20833 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20834
20835 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20836
20837 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20838 real_sb->size is zero (e.g. RAID-0), get the disk size from
20839 real_sb->data_size instead.
20840 Fixes Ubuntu bug #743136.
20841
20842 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20843
20844 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20845 printf clauses for printing size and start.
20846
20847 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20850 Reported and tested by: Timothy Nikkel.
20851
20852 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20853
20854 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20855 (dirty_region_add_real): ... this.
20856 (dirty_region_add): Don't discard margin refresh when performing
20857 scheduled repaint.
20858
20859 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20860
20861 * grub-core/lib/relocator.c (allocate_regstart)
20862 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20863 terminals are capabple of malloc-free operation.
20864 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20865 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20866
20867 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20868
20869 * util/grub-setup.c: Copy the partition table zone if floppy support
20870 is disabled, even if no partition table is found.
20871
20872 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20873 during POST if an invalid partition table is contained in the PBR
20874 of the active partition when GRUB is installed to a partition.
20875
20876 2011-03-28 Colin Watson <cjwatson@debian.org>
20877
20878 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20879 comment.
20880
20881 2011-03-28 Colin Watson <cjwatson@debian.org>
20882
20883 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20884 to be specific about what kind of RAID device we're scanning for.
20885
20886 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20887
20888 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20889 return freed string.
20890
20891 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20892
20893 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20894
20895 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20896
20897 Use libgeom on FreeBSD to detect partitions.
20898
20899 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20900 (grub-mkrelpath): Likewise.
20901 (grub-script-check): Likewise.
20902 (grub-editenv): Likewise.
20903 (grub-mkpasswd-pbkdf2): Likewise.
20904 (grub-fstest): Likewise.
20905 (grub-mkfont): Likewise.
20906 (grub-mkdevicemap): Likewise.
20907 (grub-probe): Likewise.
20908 (grub-setup): Likewise.
20909 (grub-ofpathname): Likewise.
20910 (grub-mklayout): Likewise.
20911 (example_unit_test): Likewise.
20912 (grub-menulst2cfg): Likewise.
20913 * grub-core/Makefile.core.def (grub-emu): Likewise.
20914 (grub-emu-lite): Likewise.
20915 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20916 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20917 define HAVE_DIOCGDINFO.
20918 (follow_geom_up) [FreeBSD]: New function.
20919 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20920 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20921 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20922 unconditionally of HAVE_DIOCGDINFO.
20923
20924 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20925
20926 Fix FreeBSD compilation problem.
20927
20928 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
20929 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
20930
20931 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
20932
20933 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
20934 Switch back to page zero before loading a kernel, since some kernel
20935 drivers expect that.
20936 Thanks to: Felix Kuehling.
20937
20938 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
20941 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
20942 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
20943
20944 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
20947 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
20948
20949 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20950
20951 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
20952 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
20953 malloc is disabled.
20954
20955 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
20956
20957 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
20958 for modules headers when counting the needed allocation size.
20959
20960 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
20963 if no ASCII character is found to prevent crash.
20964
20965 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
20966
20967 * grub-core/video/bitmap.c (match_extension): Ignore case.
20968
20969 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20970
20971 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
20972
20973 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20974
20975 * grub-core/script/parser.y: Declare "time" as valid argument.
20976
20977 2011-03-23 Peter Jones <pjones@redhat.com>
20978
20979 Fix incorrect assert failure reporting.
20980
20981 * grub-core/tests/example_functional_test.c (example_test): Add
20982 a failure comment.
20983 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
20984 (failure_start): ...this. Check that malloc succeeded.
20985 Don't call xvasprintf. Return failure struct.
20986 (failure_append_vtext): New function.
20987 (failure_append_text): Likewise.
20988 (add_failure): Likewise.
20989 (grub_test_assert_helper): Likewise.
20990 * include/grub/test.h (grub_test_assert_helper): New declaration.
20991 (grub_test_assert): Macro rewritten.
20992
20993 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20994
20995 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
20996
20997 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
20998
20999 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21000
21001 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21002
21003 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21004 into GRUB-style one.
21005
21006 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21007
21008 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21009 error and not grub_errno.
21010 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21011
21012 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21013
21014 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21015 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21016
21017 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21018
21019 * grub-core/efiemu/i386/pc/cfgtables.c
21020 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21021 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21022 (grub_xnu_unlock): Likewise.
21023 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21024
21025 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21026
21027 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21028 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21029 * grub-core/commands/hashsum.c (aliases): Likewise.
21030 * grub-core/commands/setpci.c (pci_registers): Likewise.
21031 * grub-core/disk/usbms.c (attach_hook): Likewise.
21032 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21033 (zio_checksum_table): Likewise.
21034 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21035 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21036 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21037 * grub-core/lib/relocator.c (leftovers): Likewise.
21038 (extra_blocks): Likewise.
21039 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21040 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21041 (modules_last): Likewise.
21042 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21043 (devices): Likewise.
21044 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21045 (modules_last): Likewise.
21046 * grub-core/normal/auth.c (users): Likewise.
21047 * grub-core/normal/context.c (initial_menu): Likewise.
21048 (current_menu): Likewise.
21049 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21050 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21051 (grub_serial_terminfo_input_template): Likewise.
21052 (grub_serial_terminfo_output_template): Likewise.
21053 (grub_serial_terminfo_input): Likewise.
21054 (grub_serial_terminfo_output): Likewise.
21055 (registered): Likewise.
21056 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21057
21058 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21059
21060 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21061 grub_video_mode_type_t.
21062 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21063 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21064 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21065
21066 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21067
21068 * util/grub-install.in: Correct the x86-64 name as x86_64.
21069
21070 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21071
21072 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21073 initial chunk read from the kernel always includes GRUB's multiboot
21074 header, which is now outside the first sector.
21075
21076 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21077
21078 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21079 cached mmap_size, so that this works correctly when called multiple
21080 times.
21081 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21082
21083 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21084
21085 * docs/grub.texi (Simple configuration): Tidy up formatting.
21086
21087 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21088
21089 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21090 Set-but-not-used variable removed.
21091
21092 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21093
21094 Workaround yet another IEEE1275 bug.
21095
21096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21097 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21098 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21099 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21100 is set.
21101 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21102 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21103
21104 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21105
21106 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21107 error.
21108
21109 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21110
21111 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21112 empty, since in that case we can only generate either nothing or a
21113 syntactically invalid configuration file.
21114 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21115
21116 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21117
21118 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21119 (Making a GRUB bootable CD-ROM): Likewise.
21120 (Invoking grub-mkrescue): New section.
21121 Reported by: Yann Dirson. Fixes Debian bug #612585.
21122
21123 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21124
21125 * util/grub-install.in: Remove unnecessary brackets from tr
21126 arguments.
21127 * util/grub.d/10_hurd.in: Likewise.
21128 * util/grub.d/10_kfreebsd.in: Likewise.
21129 * util/grub.d/10_linux.in: Likewise.
21130 * util/grub.d/20_linux_xen.in: Likewise.
21131 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21132
21133 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21134
21135 * include/grub/file.h (not_easly_seekable): Rename to ...
21136 (not_easily_seekable): ... this. Update all users.
21137
21138 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21139
21140 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21141 grub-mkrescue.
21142
21143 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21144
21145 * util/grub-mkimage.c (generate_image): Refuse to create the images
21146 bigger than the actual flash (512K) in Loongson machines. 512K is also
21147 the biggest chip supported by them.
21148
21149 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21150
21151 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21152
21153 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21154
21155 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21156 super_offset field.
21157
21158 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21159
21160 * util/grub-install.in: Ignore install device on platforms
21161 where it doesn't make sense. Always use UUIDs except on pc, efi and
21162 sparc64.
21163 Reported by: Daniel Kahn Gillmor.
21164
21165 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21166
21167 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21168
21169 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21170
21171 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21172 (iterate_real): Don't rely on partition being non-NULL.
21173
21174 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21175
21176 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21177 supported platforms. Put a compile time assert for this rather than
21178 generate a warning with 32-bit shift.
21179
21180 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21181
21182 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21183 logical expression more readable.
21184
21185 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21186
21187 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21188 even if some elements have a name.
21189 Reported by: Alexander GQ Gerasiov.
21190
21191 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21192
21193 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21194 path unreadable if `grub-probe -t abstraction' fails, for example if
21195 memberlist fails on an LVM volume group.
21196 Reported by: Darius Jahandarie.
21197
21198 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21199
21200 * docs/grub.texi (Simple configuration): Document
21201 GRUB_PRELOAD_MODULES.
21202
21203 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21204
21205 * .bzrignore: Remove nonexistent grub-pbkdf2.
21206
21207 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21208
21209 * configure.ac: Bump version to 1.99~rc1.
21210
21211 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21212
21213 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21214 for safety.
21215
21216 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21217
21218 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21219 module.
21220
21221 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21222
21223 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21224
21225 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21228 diskdevid.
21229
21230 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21231
21232 Fix compilation on cygwin.
21233
21234 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21235 -R .drectve on cygwin.
21236 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21237 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21238 (COND_CYGWIN): New condition.
21239 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21240 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21241 not @TARGET_OBJ2ELF@.
21242 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21243 type to determine whether aux is to be used.
21244
21245 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21248 realpath'ed device string.
21249 Handle floppy (somewhat).
21250 Issue error in unknown case rather than garbage.
21251 Reported by: Axel Beckert.
21252
21253 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21254
21255 * util/grub.d/00_header.in (load_video): Handle the case when no video
21256 drivers available.
21257 Thanks to: Axel Beckert.
21258
21259 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21260
21261 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21262 variable. Fixes problem on big endian platforms.
21263
21264 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21265
21266 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21267 It doesn't work well there.
21268
21269 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21270
21271 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21272 warning.
21273 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21274 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21275 counter.
21276
21277 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21278
21279 Use alias->path rather than buggy "canon".
21280
21281 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21282 (ofdisk_hash_add): New argument curcan. All users updated.
21283
21284 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21285
21286 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21287
21288 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21289
21290 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21291 loadmask before doing any calculations. Use correct type for offset.
21292 (grub_linux_load64): Likewise.
21293
21294 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21295
21296 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21297 with NULL.
21298 (console_grub_equivalences_unshift): Likewise.
21299 Reported by: Daniel Dehennin.
21300
21301 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21302
21303 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21304 (set_env_limn_ro): Likewise.
21305 (GRUB_MOD_INIT): Likewise.
21306 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21307 ARRAY_SIZE while on it.
21308 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21309 * grub-core/normal/context.c (grub_env_export): Move from here ...
21310 * grub-core/kern/env.c (grub_env_export): ... here.
21311 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21312 prefix.
21313 * grub-core/kern/main.c (grub_main): Export root and prefix.
21314 * include/grub/env.h (grub_env_export): Export.
21315 Reported by: Seth Goldberg.
21316
21317 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21320 Take into account space used by ELF sections and multiboot palette.
21321 Reported by: Grégoire Sutre.
21322
21323 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21324
21325 * BUGS: New file.
21326
21327 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21328
21329 Pass more appropriate video id to Linux.
21330
21331 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21332 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21333 fill have_vga.
21334 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21335 shift params->lfb_size.
21336 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21337
21338 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21339
21340 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21341
21342 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21343
21344 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21345 separator and pass bootpath/devid even if only one of them is available.
21346 Reported by: Seth Goldberg.
21347
21348 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21351 implementations bug on them.
21352
21353 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21354 memory.
21355 (filter_memory_map): Likewise.
21356
21357 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21360 Reported by: nebuchadnezzar.
21361
21362 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21365 Reported by: nebuchadnezzar.
21366
21367 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21368
21369 Submenu default support.
21370
21371 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21372 auto_boot. All users updated.
21373 Declared static.
21374 Handle chosen and default with submenus.
21375 (grub_menu_execute_with_fallback): Declared static.
21376 Don't notify failure if autobooted. Upper level does it.
21377 (menuentry_eq): New function.
21378 (get_entry_number): Use menuentry_eq.
21379 (show_menu): New parameter "autobooted". All users updated.
21380 (grub_show_menu): Likewise.
21381 * include/grub/normal.h (grub_show_menu): Likewise.
21382 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21383 (grub_menu_execute_with_fallback): Likewise.
21384
21385 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21386
21387 * util/grub-mklayout.c (usage): Update help text.
21388
21389 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21390
21391 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21392
21393 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21394
21395 * util/grub-menulst2cfg.c (main): Trim the line.
21396
21397 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21398
21399 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21400 (grub_machine_init): Don't check amount of low memory as reportedly
21401 INT 12h can be broken and if low memory is too low we wouldn't have
21402 gotten into grub_machine_init anyway.
21403
21404 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21405
21406 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21407 (grub_machine_mmap_iterate): Take low memory into account
21408
21409 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21410
21411 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21412 badfs.
21413 Reported by: TiCPU.
21414
21415 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21416
21417 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21418 members errors.
21419
21420 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21421
21422 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21423 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21424
21425 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21426
21427 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21428 openbsd and netbsd types being in part_bsd module.
21429
21430 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21431
21432 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21433 (_FILE_OFFSET_BITS): Likewise.
21434 Reported by: Seth Goldberg.
21435
21436 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21437
21438 * configure.ac: Check for libdevmapper header.
21439
21440 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21441
21442 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21443 avoid aliasing.
21444 (fzap_lookup): Likewise.
21445 (dnode_get): Likewise.
21446 (make_mdn): Likewise.
21447 (zfs_mount): Likewise.
21448 (fzap_iterate): Use temporary pointer to avoid aliasing.
21449 (grub_zfs_read): Likewise.
21450 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21451 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21452 pointers to avoid aliasing.
21453 (grub_cmd_xnu_kernel64): Likewise.
21454 (grub_xnu_load_driver): Likewise.
21455
21456 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21459 aliasing warning.
21460 (grub_cmd_terminal_output): Likewise.
21461 Reported and tested by: Grégoire Sutre.
21462
21463 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21464
21465 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21466 warning.
21467 Reported and tested by: Grégoire Sutre.
21468
21469 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21470
21471 * configure.ac: Do CPU substitution even if it's specified explicitly.
21472 Reported and tested by: Alain Greppin.
21473
21474 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21477 Reported and tested by: Alain Greppin.
21478
21479 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21480
21481 Satisfy some bison versions need for inttypes.h.
21482
21483 * grub-core/lib/posix_wrap/inttypes.h: New file.
21484 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21485 (int16_t): Likewise.
21486 (int32_t): Likewise.
21487 (int64_t): Likewise.
21488 Reported and tested by: Alain Greppin.
21489
21490 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21493 Silence spurious warning.
21494 Reported and tested by: Alain Greppin.
21495
21496 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21497
21498 * docs/grub.texi (Support automatic decompression): Update with xz
21499 decompression support.
21500
21501 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21502
21503 Improve loaders' kernel command line handling.
21504
21505 * grub-core/lib/cmdline.c: New file.
21506 * include/grub/lib/cmdline.h: Likewise.
21507 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21508 grub_create_loader_cmdline to create kernel command line.
21509 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21510 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21511 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21512 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21513 (linux): Add lib/cmdline.c on common.
21514
21515 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21518 inopos might be unaligned.
21519
21520 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21521
21522 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21523 endian transformations.
21524 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21525 Based on report by: Doug Nazar.
21526
21527 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21528
21529 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21530 array->members[i].start_sector.
21531 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21532
21533 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21534
21535 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21536 Reported and tested by: Grégoire Sutre.
21537
21538 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21539
21540 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21541 avoid causing test failures by clearing the screen.
21542
21543 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21544
21545 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21546 Fix prefix check to handle the case where dir ends with a slash
21547 (most significantly, "/" itself).
21548 Reported by: Michael Vogt.
21549
21550 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 Run terminfo_cls on initing terminfo output to clear the screen and
21553 move the cursor to (0,0).
21554
21555 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21556 Call grub_terminfo_output_init.
21557 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21558 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21559 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21560
21561 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21562
21563 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21564 only when needed.
21565
21566 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21569 CTRL.
21570
21571 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21572
21573 The E820 type 5 is BADRAM, not EXEC_CODE.
21574
21575 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21576 (GRUB_E820_BADRAM): New define.
21577 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21578 into reserved. Propagate BADRAM.
21579 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21580 (GRUB_E820_BADRAM): New define.
21581
21582 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21583
21584 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21585 Ignore the memory post-4G.
21586 (grub_relocator_firmware_alloc_region): Additional debug statement.
21587
21588 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21589
21590 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21591 names.
21592 Reported by: David Pravec.
21593
21594 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21595
21596 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21597 BIOSes.
21598
21599 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21600
21601 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21602 Prevent overflow.
21603 (grub_reed_solomon_recover): Likewise.
21604
21605 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21606
21607 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21608
21609 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21610
21611 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21612 variable.
21613
21614 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21615
21616 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21617 descriptions of extract_legacy_entries_source and
21618 extract_legacy_entries_configfile.
21619 Reported by: Seung Soo, Ha.
21620
21621 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21622
21623 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21624 on devices that do not implement function 0.
21625
21626 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21627
21628 * grub-core/fs/hfsplus.c: Make parent unsigned.
21629 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21630 overflows.
21631 (grub_hfsplus_cmp_extkey): Likewise
21632
21633 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21634
21635 * util/grub-install.in: Correctly use bootloader_id and not
21636 GRUB_DISTRIBUTOR on efibootmgr line.
21637
21638 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21639
21640 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21641
21642 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21643
21644 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21645 Xen and reorder menu item wording to make it clearer that this entry
21646 will launch Xen. Print separate messages when loading Xen and
21647 Linux.
21648
21649 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21652 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21653 loop in case of incorrect amiga partmap.
21654
21655 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21658 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21659 Reported by:EHeM.
21660
21661 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21664 spurious warning.
21665 Reported by: crocket
21666
21667 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21670 Preload EFIemu.
21671 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21672
21673 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21674
21675 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21676 is loaded
21677 (grub_cmd_xnu_kextdir): Likewise.
21678 (grub_cmd_xnu_splash): Likewise.
21679
21680 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21681
21682 Avoid using Reed-Solomon with 0 redundancy.
21683
21684 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21685 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21686 or 0 redundancy.
21687 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21688 (grub_reed_solomon_recover): Likewise.
21689
21690 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 Don't use disk subsystem in freebsd_boot.
21693
21694 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21695 (freebsd_biosdev): Likewise.
21696 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21697 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21698
21699 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21700
21701 Handling of files of unknown size is currently limited. They can't be
21702 used e.g. for initrd or modules. Moreover gzip handling of not
21703 easily seekable files is buggy. Disable unknown file size for now. May
21704 be inefficient but works.
21705
21706 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21707 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21708
21709 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21710
21711 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21712 floppy probe.
21713
21714 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21715
21716 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21717
21718 2010-12-25 Shea Levy <shlevy>
21719
21720 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21721
21722 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21723
21724 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21725 Windows Server 2008.
21726 Reported by: Devin Giddings.
21727
21728 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21729
21730 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21731 writing an error message because of async power management.
21732 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21733 (grub_reboot): Likewise.
21734
21735 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21736
21737 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21738 keep unit tests from failing when they shouldn't.
21739
21740 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21741
21742 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21743 previous patch increased the size of the RS code by 20 bytes (at
21744 least with gcc-4.4), so increase this by 20 bytes to match.
21745 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21746
21747 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21748
21749 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21750 scratch area. Make sure to initialise chosen in standalone mode as
21751 well as non-standalone.
21752 Reported by: Robert Hooker and Andy Whitcroft.
21753 Tested by: Andy Whitcroft.
21754
21755 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21756
21757 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21758 constructing a new unescaped string and passing it to grub_xputs in
21759 one go, rather than passing characters to grub_printf one at a time.
21760
21761 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21762
21763 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21764 initialising utf16.
21765
21766 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21767
21768 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21769 comment. Add an extra layer of quotation, requiring the output of
21770 this function to be used in a printf format string.
21771 (gettext_printf): New function.
21772 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21773 Extract translatable strings from here-documents and use a temporary
21774 variable instead, so that xgettext can find them.
21775 * util/grub.d/10_kfreebsd.in: Likewise.
21776 * util/grub.d/10_linux.in: Likewise.
21777 * util/grub.d/20_linux_xen.in: Likewise.
21778
21779 * po/grub.d.sed: New file.
21780 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21781 arguments. Set c-format flags on all strings extracted from
21782 util/grub.d/ (xgettext refuses to include these itself for strings
21783 it extracted from a shell file, but these really are c-format).
21784
21785 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21786
21787 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21788 Avoid next pointing to nowhere.
21789
21790 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21791
21792 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21793 rather than assuming than rootblock is exactly in the middle.
21794 (grub_affs_label): Likewise.
21795
21796 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21797
21798 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21799 reserved_first_sector to 0.
21800 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21801 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21802 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21803
21804 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21805
21806 Fix handling of UTF-16 UDF labels.
21807
21808 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21809 (read_string): .. here.
21810 (grub_udf_label): Use read_string.
21811
21812 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21813
21814 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21815 editor under argument scope.
21816 Reported by: Jordan Uggla
21817
21818 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21821
21822 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21823
21824 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21825 line, and other keys scroll an entire page (previous handling was
21826 for \r and \n to scroll a page and other keys to scroll two lines).
21827
21828 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21829
21830 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21831 Set ptrdest to correct get_physical_target_address rather than
21832 incorrect get_virtual_current_address.
21833
21834 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21835
21836 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21837 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21838
21839 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21840
21841 * .bzrignore: Ignore grub-core/rs_decoder.S.
21842
21843 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21844
21845 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21846 .mo/.mo.gz opening sequence to ...
21847 (grub_mofile_open_lang): ... here.
21848 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21849 * util/grub.d/00_header.in (grub_lang): Include country part of
21850 locale.
21851 Reported by: Mario Limonciello.
21852
21853 2010-12-09 Robert Millan <rmh@gnu.org>
21854
21855 * NEWS: Document addition of ZFS support.
21856
21857 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21858
21859 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21860 rather than `/ 2', as the latter requires -Wa,--divide which would
21861 require bumping our minimum binutils version.
21862
21863 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21864
21865 * util/grub-script-check.c (main): Print script line number on
21866 error.
21867
21868 2010-12-01 Robert Millan <rmh@gnu.org>
21869
21870 * grub-core/fs/zfs/zfs.c: New file.
21871 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21872 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21873 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21874 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21875
21876 * include/grub/zfs/dmu.h: Likewise.
21877 * include/grub/zfs/dmu_objset.h: Likewise.
21878 * include/grub/zfs/dnode.h: Likewise.
21879 * include/grub/zfs/dsl_dataset.h: Likewise.
21880 * include/grub/zfs/dsl_dir.h: Likewise.
21881 * include/grub/zfs/sa_impl.h: Likewise.
21882 * include/grub/zfs/spa.h: Likewise.
21883 * include/grub/zfs/uberblock_impl.h: Likewise.
21884 * include/grub/zfs/vdev_impl.h: Likewise.
21885 * include/grub/zfs/zap_impl.h: Likewise.
21886 * include/grub/zfs/zap_leaf.h: Likewise.
21887 * include/grub/zfs/zfs.h: Likewise.
21888 * include/grub/zfs/zfs_acl.h: Likewise.
21889 * include/grub/zfs/zfs_znode.h: Likewise.
21890 * include/grub/zfs/zil.h: Likewise.
21891 * include/grub/zfs/zio.h: Likewise.
21892 * include/grub/zfs/zio_checksum.h: Likewise.
21893
21894 * Makefile.util.def: Build ZFS into libgrubmods.
21895 * grub-core/Makefile.core.def: Build zfs.mod.
21896
21897 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21898
21899 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21900 variable.
21901 * grub-core/commands/wildcard.c (match_files): Likewise.
21902
21903 2010-11-30 Robert Millan <rmh@gnu.org>
21904
21905 * grub-core/loader/i386/bsd.c
21906 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21907 whether kernel is loaded using grub_loader_is_loaded(), rather
21908 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21909 certain error conditions.
21910
21911 2010-11-30 Robert Millan <rmh@gnu.org>
21912
21913 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21914 (grub_cmd_echo): Call grub_refresh() after printing a message.
21915
21916 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21917
21918 Avoid using tricks for initialising endian variables.
21919
21920 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21921 Make const.
21922 (GRUB_MOD_INIT): Don't byte-swap.
21923 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21924 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21925 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21926 (grub_swap_bytes32_compile_time): Likewise.
21927 (grub_cpu_to_le32_compile_time): Likewise.
21928 (grub_cpu_to_le16_compile_time): Likewise.
21929
21930 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21931
21932 * util/grub-setup.c (setup): Stop recommending --force. People who
21933 understand the dangers of blocklists are able to find this option
21934 anyway and the ones who don't shouldn't use it anyway.
21935
21936 2010-11-26 Robert Millan <rmh@gnu.org>
21937
21938 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
21939 Update all users.
21940
21941 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
21942
21943 Fix LVM-on-RAID probing.
21944
21945 * util/grub-probe.c (probe): Remember which disk was detected as
21946 RAID (perhaps an LVM physical volume). Use that disk's raidname
21947 rather than that of the top-level disk.
21948
21949 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
21950
21951 Fix cmdline argument quotes for setparams command of menuentry
21952 definitions.
21953
21954 * grub-core/commands/menuentry.c (setparams_prefix): Use single
21955 quotes for arguments.
21956 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
21957 grub_strchrsub function instead.
21958
21959 * include/grub/misc.h (grub_strchrsub): New function.
21960
21961 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21962
21963 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
21964 effort by skipping "." and ".." entries up-front.
21965 Suggested by: Michael Lazarev.
21966
21967 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21968
21969 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
21970 ldflags to ldadd, to fix link line ordering.
21971 (none_decompress): Likewise.
21972
21973 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
21974
21975 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
21976 platforms.
21977 (grub-emu-lite): Remove kern/emu/cache.S.
21978
21979 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21980
21981 * util/deviceiter.c (compare_devices): If the by-id link for a
21982 device couldn't be resolved, fall back to sorting by the by-id link
21983 rather than segfaulting.
21984 Reported and tested by: Daniel Mierswa.
21985
21986 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21987
21988 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
21989 ldflags, to fix link line ordering.
21990
21991 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21992
21993 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
21994 linkers are picky about this.
21995
21996 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
21997
21998 * grub-core/Makefile.am (command.lst): Adjust sed expression
21999 ordering so that extended and priority commands aren't treated as
22000 ordinary commands.
22001
22002 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22003
22004 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22005 Remove byte-swapping function calls, which are not valid in
22006 structure initialisers.
22007 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22008 non-const.
22009 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22010 grub_gpt_partition_type_bios_boot.
22011
22012 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22013
22014 Fix test program build on GNU/kFreeBSD.
22015
22016 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22017 $(LIBNVPAIR)' library dependencies.
22018
22019 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22020
22021 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22022
22023 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22024
22025 * util/grub-install.in: Remove excessive quoting that broke
22026 installations to RAID devices.
22027
22028 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22029
22030 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22031 bootloader version instead of 0.
22032
22033 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22034
22035 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22036 warning.
22037
22038 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22039
22040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22041 retrieve the metadat sector if size isn't known.
22042 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22043
22044 2010-11-18 Robert Millan <rmh@gnu.org>
22045
22046 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22047 with grub_memcmp().
22048
22049 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22050
22051 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22052 arrow.
22053 Reported by: Jordan Uggla.
22054
22055 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22056
22057 Make better UTF compliant.
22058
22059 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22060 sequences as incorrect.
22061 (grub_is_valid_utf8): Likewise.
22062 (grub_utf8_to_ucs4): Likewise.
22063 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22064 (grub_ucs4_to_utf8_alloc): Likewise.
22065 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22066
22067 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 Make legacy_source behave like source.
22070
22071 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22072 grub_show_menu.
22073 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22074
22075 2010-11-16 Colin Watson <cjwatson@debian.org>
22076
22077 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22078 (-Wunused implies -Wunused-parameter, but not vice versa).
22079
22080 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22081
22082 * configure.ac: Make error messages less confusing by testing for
22083 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22084 accepted, but produces a diagnostic if something else is wrong).
22085
22086 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22087
22088 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22089 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22090 (now unused).
22091 (grub_keyboard_controller_init)
22092 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22093 read the initial state since controller isn't inited yet.
22094
22095 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22096
22097 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22098 allocate_regbeg may need to create new chunk header.
22099
22100 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 Fix quoting in legacy parser.
22103
22104 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22105 single quotes.
22106 (grub_legacy_parse): Likewise.
22107 Reported by: Jordan Uggla.
22108 Tested by: Jordan Uggla.
22109
22110 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22111
22112 Don't add -lgcc on i386 and x86_64.
22113
22114 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22115 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22116 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22117
22118 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22119
22120 * configure.ac: Add -Wno-trampolines when supported.
22121
22122 2010-11-14 Modestas Vainius <modax@debian.org>
22123
22124 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22125 fakeraid.
22126
22127 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22128
22129 Add generic logical block size support for UDF.
22130
22131 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22132 (GRUB_UDF_BLKSZ): Removed.
22133 (struct grub_udf_data): New field "lbshift" to hold the logical block
22134 size of the file system in log2 format. All users updated.
22135 (sblocklist): Change type to unsigned.
22136 (grub_udf_mount): Change type of "sblklist" to unsigned.
22137 Move AVDP search before VRS recognition, because the latter requires
22138 knowledge of the logical block size, which is detected during the
22139 former.
22140 Detect and validate logical block size during AVDP search, adding
22141 support for block sizes 512, 1024 and 4096.
22142 Make VRS recognition independent of block size.
22143
22144 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22145
22146 Properly handle deleted files on UDF.
22147
22148 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22149 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22150 set.
22151
22152 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22153
22154 Support reading files larger than 2 GiB.
22155
22156 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22157 "offset" to grub_off_t.
22158 (grub_udf_read_file): Likewise for parameter "pos".
22159
22160 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22163 unavailable.
22164 (Simple configuration): Refer to Changes from GRUB Legacy about
22165 save_env availability.
22166
22167 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22168
22169 * util/grub-install.in: Ignore empty partition table detection
22170 instead of trying to include part_ module.
22171
22172 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22173
22174 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22175 LVM on RAID support.
22176
22177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22178
22179 Properly define WORDS_BIGENDIAN in wrapped environments.
22180
22181 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22182 definition.
22183 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22184
22185 Reported by: Manoel Rebelo Abranches.
22186 Tested by: Manoel Rebelo Abranches.
22187
22188 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22189
22190 * util/grub-mkconfig.in: Fix quoting.
22191
22192 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22193
22194 Support big ext2 files.
22195
22196 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22197 (grub_ext2_read_block): Support triple indirect blocks.
22198 (grub_ext2_read_file): Use 64-bit types and read size_high.
22199 (grub_ext2_open): Read size_high.
22200 Reported by: Ximin Luo.
22201 Tested by: Manoel Rebelo Abranches.
22202
22203 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22204
22205 * util/grub-install.in: Handle filenames containing spaces.
22206 Reported by: Jordan Uggla.
22207 Tested by: Jordan Uggla.
22208
22209 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22210
22211 * util/grub-mkconfig.in (grub_script_check): New variable.
22212 Use grub_script_check instead of grub-script-check.
22213 Reported by: Barry Jackson.
22214
22215 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22216
22217 * docs/grub.texi (menu): Correct the order.
22218 Reported by: D. Hugh Redelmeier.
22219
22220 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22221
22222 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22223 jump.
22224
22225 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22226
22227 * include/grub/elfload.h (grub_elf32_size): New parameter.
22228 All users updated.
22229 Return maximum segments alignment.
22230 (grub_elf64_size): Likewise.
22231 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22232 Return maximum segments alignment.
22233 (grub_elf64_size): Likewise.
22234 * grub-core/loader/powerpc/ieee1275/linux.c:
22235 (grub_linux_claimmap_iterate): New function. Uses the
22236 "available" property in the "memory" node for memory allocation
22237 for kernel in the PowerPC loader.
22238 (grub_linux_load32): Correctly find linux entry point offset.
22239 (grub_linux_load64): Likewise.
22240
22241 2010-11-07 Robert Millan <rmh@gnu.org>
22242
22243 On mips-yeeloong, build with -march=loongson2f when this flag is
22244 available (GCC >= 4.4).
22245 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22246 `-march=mips3'.
22247 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22248 or otherwise add -march=mips3.
22249
22250 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22251
22252 Suppress shell expansion on echo '*' and echo "*" like cases.
22253 Reported by: Jordan Uggla.
22254
22255 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22256 string arguments before shell expansion.
22257 * tests/grub_cmd_echo.in: New testcases.
22258
22259 2010-11-07 Robert Millan <rmh@gnu.org>
22260
22261 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22262 transition.
22263
22264 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 * grub-core/kern/emu/hostdisk.c
22267 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22268
22269 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22270
22271 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22272 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22273 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22274
22275 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22276
22277 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22278
22279 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22280
22281 * util/grub-install.in: Replace useless recomendation to pass
22282 --modules with a recomendation to report a bug.
22283
22284 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 Properly register serial terminfo.
22287 Reported by: Jordan Uggla
22288
22289 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22290 const.
22291 (grub_serial_terminfo_output_template): Likewise.
22292 (grub_cmd_serial): Register "serial" with terminfo.
22293 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22294 grub_serial_terminfo_output.
22295
22296 2010-11-05 Robert Millan <rmh@gnu.org>
22297
22298 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22299 needed).
22300
22301 2010-11-05 Robert Millan <rmh@gnu.org>
22302
22303 On Yeeloong, pass machine type information to Linux.
22304
22305 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22306 (LOONGSON_MACHTYPE): New macro, set to
22307 "machtype=lemote-yeeloong-2f-8.9inches".
22308 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22309 additional argument to Linux.
22310
22311 2010-11-04 Robert Millan <rmh@gnu.org>
22312
22313 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22314 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22315 (its SATA disks are detected as slaveless IDE master drives on
22316 kFreeBSD).
22317 Reported by Carsten Aulbert.
22318
22319 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22320
22321 * util/bin2h.c (main): Fix spelling error in generated output.
22322
22323 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22324
22325 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22326
22327 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22328
22329 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22330 vga= option is supplied.
22331
22332 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22333
22334 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22335 * util/grub.d/10_kfreebsd.in: Likewise.
22336 * util/grub.d/10_linux.in: Likewise.
22337 * util/grub.d/20_linux_xen.in: Likewise.
22338
22339 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22340
22341 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22342 argument as an argument to no-argument option.
22343
22344 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * util/grub.d/10_linux.in: Add missing load_video with explicit
22347 GRUB_GFXPAYLOAD_LINUX.
22348
22349 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22352
22353 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22356 elements with invlid index.
22357 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22358 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22359 members.
22360 * include/grub/raid.h (grub_raid_member): New struct.
22361 (grub_raid_array): Transform devices and start_sector into usage of
22362 grub_raid_member. All users updated
22363 (allocated_devs): New member.
22364
22365 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22368 is modified
22369
22370 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22371
22372 NetBSD build fix for getline function conflict from gnulib.
22373
22374 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22375 components that depend on gnulib headers.
22376 (libgrubmods.a): Renamed from earlier libgrub.a.
22377 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22378
22379 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22380
22381 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22382 install rather than creating a broken install.
22383
22384 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22385
22386 * util/grub-setup.c (argp): Remove misleading example of installing to
22387 a partition.
22388
22389 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22390
22391 * util/grub-setup.c (setup): Clarify the error message.
22392
22393 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22394
22395 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22396
22397 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 * grub-core/kern/emu/misc.c
22400 (grub_make_system_path_relative_to_its_root)
22401 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22402
22403 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 * grub-core/kern/emu/misc.c
22406 (grub_make_system_path_relative_to_its_root): Revert r2882.
22407
22408 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22411 useless field head. All users updated.
22412 (free_subchunk): Correct handling of IN_REGION subchunk.
22413
22414 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22415
22416 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22417 (Supported kernels): Likewise.
22418
22419 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22420
22421 Make mktemp invocations portable.
22422
22423 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22424 exit if mktemp fails.
22425 * tests/grub_script_blockarg.in: Likewise.
22426 * tests/partmap_test.in: Likewise.
22427 * tests/util/grub-shell-tester.in: Likewise.
22428 * tests/util/grub-shell.in: Likewise.
22429 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22430 * Makefile.am: Likewise, and chain shell commands with `&&'
22431 instead of ';'.
22432 * util/grub-mkrescue.in: Use the same explicit template as above, and
22433 exit if mktemp fails.
22434
22435 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22436
22437 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22438 Linux kernel, reported by Dennis Schridde.
22439
22440 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22441
22442 * grub-core/normal/auth.c (grub_auth_check_authentication):
22443 Set-but-not-used variable removed.
22444
22445 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22448 32-bit linux protocol.
22449
22450 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22451
22452 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22453 cursor shape for sanity.
22454
22455 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * docs/grub.texi (Installation): Document buggy BIOS install.
22458
22459 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22460
22461 * docs/grub.texi (Installation): Indent.
22462
22463 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * util/grub-setup.c (setup): New parameter allow_floppy.
22466 (arguments): New member allow_floppy.
22467 (argp_parser): Handle --allow-floppy.
22468 (main): Pass allow_floppy.
22469 * util/grub-install.in: New option --allow-floppy passed though to
22470 grub-setup.
22471
22472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22473
22474 * util/grub-install.in: Handle partitionless disks.
22475
22476 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22477
22478 * util/grub-setup.c (setup): Don't clean blocklists before readability
22479 verfification.
22480
22481 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22482
22483 * docs/grub.texi (Installation): Document embedding zone. Remove
22484 obsolete grub-install example.
22485
22486 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22487
22488 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22489 Set-but-not-used variable ifdef'ed.
22490 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22491 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22492 variable removed.
22493 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22494 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22495 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22496 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22497 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22498 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22499 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22500 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22501 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22502 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22503 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22504 Likewise.
22505
22506 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22507
22508 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22509 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22510 enum value.
22511
22512 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22515 synonym to _S5_. Needed for some DSDTs.
22516
22517 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 Userspace ACPI parser debugging.
22520
22521 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22522 headers and add relevant defines. Don't include standard headers.
22523 (main) [GRUB_DSDT_TEST]: New function.
22524 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22525 Don't declare functions.
22526
22527 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 Remove dead grub_efi_mm_fini.
22530
22531 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22532 (ALLOCATED_PAGES_SIZE): Likewise.
22533 (MAX_ALLOCATED_PAGES): Likewise.
22534 (allocated_pages): Likewise.
22535 (grub_efi_allocate_pages): Don't record allocated pages.
22536 (grub_efi_free_pages): Likewise.
22537 (grub_efi_mm_init): Likewise.
22538 (grub_efi_mm_fini): Removed.
22539
22540 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22543 (grub_efi_mm_init): Take into account the memory map size increase.
22544
22545 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22546
22547 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22548 (serial_hw_put): Wait based on real time rather than port reads. Don't
22549 roken ports.
22550 * include/grub/serial.h (grub_serial_port): New field broken.
22551
22552 2010-10-16 Robert Millan <rmh@gnu.org>
22553
22554 * grub-core/kern/emu/misc.c
22555 (grub_make_system_path_relative_to_its_root): Fix premature return
22556 when processing non-root ZFS filesystems.
22557 Reported by Sergio Talens-Oliag.
22558
22559 2010-10-15 Robert Millan <rmh@gnu.org>
22560
22561 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22562 guarantee compressed ones are processed first.
22563
22564 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22567 grub_efiemu_autocore.
22568
22569 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22570
22571 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22572 rather than 0x1b.
22573 (grub_console_getkey): Use correct jae opcode rather than ja.
22574
22575 2010-10-12 Robert Millan <rmh@gnu.org>
22576
22577 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22578 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22579 variable. All references updated.
22580
22581 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22582
22583 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22584
22585 Correctly distinguish mdraid flavours.
22586
22587 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22588 (insert_array): New argument raid.
22589 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22590 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22591 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22592
22593 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22594
22595 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22596 handling of special keys.
22597
22598 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22599
22600 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22601 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22602
22603 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22604
22605 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22606 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22607 users updated.
22608 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22609 Use right endpoint when querying descriptor.
22610
22611 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22612
22613 Clear out 0x80 color bit on EFI.
22614 Tested by: decoder
22615 Reported by: decoder and meta tech.
22616
22617 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22618 (grub_console_setcolorstate): Clear out 0x80 bit.
22619 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22620 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22621 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22622
22623 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22624
22625 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22626 Set to "auto".
22627
22628 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22629
22630 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22631 mo_file after freeing.
22632
22633 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22634
22635 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22636
22637 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22638
22639 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22640 flags.
22641
22642 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22643
22644 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22645 usage.
22646
22647 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22650
22651 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22652 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22653 and terminfo.h when needed.
22654 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22655 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22656 (terminfo): Enable only on terminfokernel.
22657 (extcmd): Likewise.
22658 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22659 * include/grub/lib/arg.h: Likewise.
22660 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22661 incorrect usage of ->.
22662
22663 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22664
22665 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22666 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22667
22668 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22669
22670 Fix coreboot compilation.
22671
22672 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22673 Take VBE info into account even if only text is supported.
22674 (fill_vbe_info): Take into account the case when only VGA text
22675 is supported.
22676 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22677 on coreboot, multiboot and qemu.
22678
22679 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22680
22681 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22682 debug messages.
22683 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22684
22685 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22688 parameters.
22689
22690 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22693 if they were BSD-style.
22694
22695 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22696
22697 * grub-core/boot/i386/pc/lnxboot.S: Replace
22698 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22699 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22700
22701 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22702
22703 Write embedding zone using Reed-Solomon.
22704
22705 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22706 * grub-core/Makefile.am (rs_decoder.S): New target.
22707 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22708 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22709 (multiboot): Move to RS part.
22710 (post_reed_solomon): New label.
22711 (grub_boot_drive): Move to non-RS part since it's modified in memory
22712 on boot.
22713 Include rs_decoder.S.
22714 * grub-core/lib/reed_solomon.c: New file.
22715 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22716 New definition.
22717 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22718 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22719 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22720 * include/grub/partition.h (grub_partition_map): Change prototype of
22721 embed to allow returning additional sectors.
22722 * include/grub/reed_solomon.h: New file.
22723 * util/grub-setup.c (setup): Handle Reed-Solomon.
22724
22725 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22726
22727 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22728 i386 and x86-64 definedness tests.
22729
22730 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22731
22732 Fix generation of kernel_syms.lst
22733
22734 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22735 ASM_PREFIX
22736
22737 2010-09-26 Robert Millan <rmh@gnu.org>
22738
22739 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22740
22741 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22742 the pool is an array of devices, iterate through it and return the
22743 first device that passes a stat() test (instead of blindly returning
22744 the first one).
22745
22746 2010-09-26 Robert Millan <rmh@gnu.org>
22747
22748 Build fixes for GNU/kFreeBSD.
22749
22750 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22751 to programs that require ZFS conversion.
22752 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22753 kernels that don't have FLOPPY_MAJOR.
22754
22755 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22756
22757 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22758
22759 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22760
22761 Fix grub-emu build.
22762
22763 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22764 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22765 mdraid09 and mdraid1x.
22766
22767 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22768
22769 Re-enable grub-extras.
22770
22771 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22772 avoid confusing Automake. Run autogen only twice, once for the top
22773 level and once for grub-core. Add Makefile.util.def and
22774 Makefile.core.def from extra modules to the appropriate autogen
22775 invocations. If Makefile.common exists in an extra module, include
22776 it in both Makefile.util.am and grub-core/Makefile.core.am;
22777 similarly, include any Makefile.util.common file in Makefile.util.am
22778 and any Makefile.core.common file in grub-core/Makefile.core.am.
22779 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22780 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22781 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22782 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22783
22784 * gentpl.py (gvar_add): Turn GVARS into a set.
22785 (global_variable_initializers): Sort global variables on output.
22786 (vars_init): New function.
22787 (first_time): Likewise.
22788 (library): Ensure that non-global variable initialisations are
22789 emitted before the first time we emit code for a library block.
22790 Append to variables rather than setting them. Only emit
22791 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22792 each conditional path.
22793 (program): installdir() emits an Autogen macro, so must be passed to
22794 var_add rather than gvar_add.
22795 (data): Likewise.
22796 (script): Likewise.
22797 (rules): New function, centralising handling for different target
22798 types. Set up Guile association lists for first_time and vars_init,
22799 and send most output to a diversion so that variable initialisations
22800 can be emitted first.
22801 (module_rules): Use new rules function.
22802 (kernel_rules): Likewise.
22803 (image_rules): Likewise.
22804 (library_rules): Likewise.
22805 (program_rules): Likewise.
22806 (script_rules): Likewise.
22807 (data_rules): Likewise.
22808
22809 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22810
22811 * .bzrignore: Add contrib and grub-core/contrib. Remove
22812 grub-core/Makefile.gcry.am.
22813
22814 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22815
22816 * grub-core/lib/LzFind.c: Add missing include.
22817 * grub-core/lib/LzmaEnc.c: Likewise.
22818 * grub-core/script/lexer.c: Likewise.
22819 * grub-core/script/yylex.l: Likewise.
22820 * util/grub-macho2img.c: Likewise.
22821 * util/grub-menulst2cfg.c: Likewise.
22822 * util/grub-mklayout.c: Likewise.
22823 * util/grub-mkpasswd-pbkdf2.c
22824 * util/grub-mkrelpath.c: Likewise.
22825 * util/resolve.c: Likewise.
22826
22827 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22828
22829 * Makefile.util.def (example_unit_test): Add
22830 grub-core/gnulib/libgnu.a.
22831
22832 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22833
22834 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22835
22836 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22837
22838 Support xz compression on yeeloong.
22839
22840 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22841 * configure.ac: Check for LZMA.
22842 * grub-core/Makefile.core.def (xz_decompress): New target.
22843 (none_decompress): Likewise.
22844 * grub-core/boot/decompressor/minilib.c: New file.
22845 * grub-core/boot/decompressor/none.c: Likewise.
22846 * grub-core/boot/decompressor/xz.c: Likewise.
22847 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22848 * grub-core/kern/mips/cache_flush.S: Likewise.
22849 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22850 * grub-core/kern/mips/startup.S: Move first stage to ...
22851 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22852 nomacro.
22853 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22854 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22855 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22856 Allocate statically.
22857 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22858 Allocate statically or use scratch. Don't check CRC32.
22859 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22860 Allocate statically. Don't check CRC32.
22861 * include/grub/decompressor.h: New file.
22862 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22863 Removed.
22864 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22865 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22866 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22867 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22868 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22869 * util/grub-mkimage.c (grub_compression_t): New type.
22870 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22871 (image_target_desc): New field default_compression.
22872 (image_targets): Adjust yeeloong targets.
22873 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22874 (compress_kernel): New parameter comp.
22875 (generate_image): Likewise. Handle new compression case.
22876 (options): New option --compression
22877 (help): Likewise.
22878 (main): Handle new option.
22879
22880 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22881
22882 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22883
22884 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22885
22886 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22887 typo in __i386__ conditional.
22888
22889 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22890
22891 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22892 include.
22893
22894 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 Implement EFI and ACPI multiboot2 extensions.
22897
22898 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22899 new tags as supported.
22900 (acpiv2_size): New function.
22901 (grub_multiboot_get_mbi_size): Take new tags into account.
22902 (grub_multiboot_make_mbi): Add new tags.
22903 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22904
22905 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22906
22907 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22908 Added missing configuration of USB device.
22909
22910 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22911
22912 * grub-core/normal/menu_entry.c (run): Make sure we always return
22913 a value.
22914
22915 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22916
22917 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22918 NumberOfPages is UINT64 according to the UEFI specification, not
22919 UINTN. Fix printf format.
22920
22921 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22922
22923 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22924 `err' to grub_usb_err_t.
22925 Reported and tested by: KESHAV P.R.
22926
22927 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22928
22929 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
22930 tpart non-const, so that we can assign to it. (Since this is a
22931 typedef, the constness refers to the pointer rather than what it
22932 points to.)
22933
22934 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22935
22936 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
22937 $(top_srcdir)/grub-core/gnulib as well as
22938 $(top_builddir)/grub-core/gnulib.
22939 Reported by: KESHAV P.R.
22940
22941 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22942
22943 * util/grub-install.in: Fix the bootloader ID option to be
22944 consistently --bootloader-id, not --bootloader_id.
22945 Reported by: KESHAV P.R.
22946
22947 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22948
22949 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
22950 check hash checksum." consistently translatable.
22951
22952 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22953
22954 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
22955 $(top_builddir).
22956
22957 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22958
22959 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
22960 (GRUB_MOD_INIT): Register sha1sum command.
22961 (GRUB_MOD_FINI): Unregister sha1sum command.
22962
22963 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22964
22965 Keep boot and grub directory names in sync with utils scripts
22966
22967 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
22968 * config.h.in: Add previous macros.
22969 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
22970 * util/grub-install.in: Use $bootdir and $grubdir variables.
22971
22972 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22973
22974 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
22975 convert partition names to disk names if the new `convert' parameter
22976 is set.
22977 (grub_util_biosdisk_get_grub_dev): If opening the disk device
22978 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
22979 disk in its own right. This can happen with Xen disk images.
22980
22981 2010-09-21 Yves Blusseau <blusseau@zetam.org>
22982
22983 * util/grub-editenv.c: Update strings to avoid warnings when generating
22984 grub.pot file.
22985 * util/grub-setup.c: Likewise.
22986
22987 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22988
22989 * configure.ac: Change version to 1.99~beta0.
22990
22991 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
22992
22993 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22994 Add BADRAM.
22995 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
22996 Likewise.
22997 * include/multiboot.h: Resynced with specification.
22998 * include/multiboot2.h: Likewise.
22999
23000 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23001
23002 Fix po directory handling.
23003
23004 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23005 * grub-core/gnulib/Makefile.am: Import gettext module.
23006 * m4/gnulib-cache.m4: Likewise.
23007 * m4/gnulib-comp.m4: Likewise.
23008 * m4/gettext.m4: New file, from gnulib.
23009 * m4/glibc2.m4: Likewise.
23010 * m4/iconv.m4: Likewise.
23011 * m4/intdiv0.m4: Likewise.
23012 * m4/intl.m4: Likewise.
23013 * m4/intldir.m4: Likewise.
23014 * m4/intlmacosx.m4: Likewise.
23015 * m4/intmax.m4: Likewise.
23016 * m4/inttypes-pri.m4: Likewise.
23017 * m4/lcmessage.m4: Likewise.
23018 * m4/lib-ld.m4: Likewise.
23019 * m4/lib-link.m4: Likewise.
23020 * m4/lib-prefix.m4: Likewise.
23021 * m4/lock.m4: Likewise.
23022 * m4/nls.m4: Likewise.
23023 * m4/po.m4: Likewise.
23024 * m4/printf-posix.m4: Likewise.
23025 * m4/progtest.m4: Likewise.
23026 * m4/threadlib.m4: Likewise.
23027 * m4/uintmax_t.m4: Likewise.
23028 * m4/visibility.m4: Likewise.
23029 * po/Makefile.am: Remove.
23030 * po/Makefile.in.in: New file, from gettext.
23031 ($(DOMAIN).pot-update): Support POTFILES-shell.
23032 * po/Makevars: New file.
23033 * po/POTFILES-shell: Rename to ...
23034 * po/POTFILES-shell.in: ... this. Update.
23035 * po/POTFILES: Rename to ...
23036 * po/POTFILES.in: ... this. Update.
23037 * po/Rules-quot: New file, from gettext.
23038 * po/boldquot.sed: Likewise.
23039 * po/en@boldquot.header: Likewise.
23040 * po/en@quot.header: Likewise.
23041 * po/insert-header.sin: Likewise.
23042 * po/quot.sed: Likewise.
23043 * po/remove-potcdate.sin: Likewise.
23044
23045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23046
23047 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23048
23049 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23050
23051 * util/grub.d/20_linux_xen.in: Use submenus.
23052
23053 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 Support submenus.
23056
23057 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23058 parameter submenu. All users updated.
23059 * grub-core/normal/main.c (free_menu): Rename to ...
23060 (grub_normal_free_menu): ... this. Made global.
23061 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23062 if requested.
23063 * grub-core/normal/menu_entry.c (screen): New field submenu.
23064 (make_screen): Set submenu.
23065 (run): Open new context if requested.
23066 * include/grub/menu.h (grub_menu_entry): New field submenu.
23067 * include/grub/normal.h (grub_normal_free_menu): New proto.
23068
23069 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 Menu entries extractor.
23072
23073 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23074 variants.
23075 (GRUB_MOD_INIT): Register new variants.
23076 (GRUB_MOD_FINI): Unregister new variants.
23077 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23078 into grub_cmd_legacy_source.
23079 (grub_cmd_legacy_source): Implement extractor variants.
23080 (GRUB_MOD_INIT): Register new variants.
23081 (GRUB_MOD_FINI): Unregister new variants.
23082 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23083 as an extractor.
23084 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23085 search as an extractor.
23086 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23087 test as an extractor.
23088 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23089 as an extractor.
23090 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23091 (grub_env_new_context): New function.
23092 (grub_env_context_open): Likewise.
23093 (grub_env_extractor_open): Likewise.
23094 (grub_env_extractor_close): Likewise.
23095 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23096 grub_extractor_level.
23097 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23098 * include/grub/env.h (grub_env_extractor_open): New proto.
23099 (grub_env_extractor_close): Likewise.
23100 * include/grub/normal.h (grub_extractor_level): New external variable.
23101
23102 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23103
23104 Make cutmem accept a region specification.
23105 Suggested by: Samuel Thibault
23106
23107 * grub-core/mmap/mmap.c (parsemem): New function.
23108 (grub_cmd_cutmem): Handle new arguments.
23109
23110 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23111
23112 New command cutmem.
23113
23114 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23115 (GRUB_MOD_INIT): Register new command.
23116 (GRUB_MOD_FINI): Unregister new command.
23117
23118 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23119
23120 Support some annoying BSD and Minix subpartitions.
23121
23122 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23123 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23124 Properly handle concatenation.
23125 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23126 * grub-core/normal/completion.c (iterate_partition): Likewise.
23127 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23128 contain partition. All users updated.
23129 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23130 struct.
23131 (grub_openbsdlabel_partition_map): Likewise.
23132 (bsdlabel_partition_map_iterate): Rename to ..
23133 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23134 (bsdlabel_partition_map_iterate): New function.
23135 (netopenbsdlabel_partition_map_iterate): Likewise.
23136 (netbsdlabel_partition_map_iterate): Likewise.
23137 (openbsdlabel_partition_map_iterate): Likewise.
23138 (GRUB_MOD_INIT): Register new partmaps.
23139 (GRUB_MOD_FINI): Unregister new partmaps.
23140 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23141 (grub_partition_msdos_iterate): ... this. All users updated.
23142 Don't support embedding other than in a minix partition.
23143 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23144 proto.
23145 * include/grub/partition.h (grub_partition): New field msdostype.
23146 * util/grub-install.in: Handle openbsd and netbsd types being in
23147 part_bsd module.
23148
23149 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23152
23153 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23154 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23155 (mdraid09): ... this.
23156 (mdraid1x): New module.
23157 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23158 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23159
23160 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23161
23162 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23163 vsprintf.
23164
23165 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23166
23167 * grub-core/commands/efi/lsefimmap.c: Correct header.
23168 * NEWS: Update.
23169
23170 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23171
23172 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23173 as printf format strings; the translations might contain '%' which
23174 could cause a crash.
23175 (main): Likewise.
23176 * util/grub-fstest.c (argp_parser): Likewise.
23177 * util/grub-setup.c (argp_parser): Likewise.
23178 (main): Likewise.
23179
23180 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23181
23182 Use argp in grub-fstest.
23183
23184 * util/grub-fstest.c: Don't include getopt.h.
23185 Include argp.h.
23186 (root): New variable.
23187 (args_count): Likewise.
23188 (nparm): Likewise.
23189 (num_disks): Likewise.
23190 (images): Likewise.
23191 (cmd): Likewise.
23192 (debug_str): Likewise.
23193 (args): Likewise.
23194 (options): Transformed to argp.
23195 (usage): Removed.
23196 (main): Split argument parsing into ...
23197 (argp_parser): ... this. Changed to argp format.
23198 (argp): New variable.
23199 (main): Use argp_parse.
23200
23201 2010-09-20 Tristan Gingold <gingold@free.fr>
23202 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23203 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23204
23205 * grub-core/commands/efi/lsefimmap.c: New file.
23206 * grub-core/Makefile.core.def (lsefimmap): New module.
23207 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23208
23209 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23210
23211 Pause the execution (10s max) if any errors are displayed so the user
23212 has a chance to see them.
23213
23214 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23215 (grub_print_error): Increment grub_err_printed_errors.
23216 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23217 execution if any errors were displayed.
23218 (show_menu): Remove old code for pause.
23219 * grub-core/normal/menu_entry.c (run): Likewise.
23220 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23221 users updated.
23222 (grub_normal_get_char_counter): Likewise.
23223 * include/grub/err.h (grub_err_printed_errors): New external variable.
23224 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23225
23226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23227
23228 Support multiboot VBE info.
23229
23230 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23231 Take VBE info into account.
23232 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23233 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23234 Call fill_vbe_info when appropriate.
23235 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23236 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23237 as supported.
23238 (grub_multiboot_get_mbi_size): Take new tags into account.
23239 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23240 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23241 Call fill_vbe_tag when appropriate.
23242 (grub_multiboot_make_mbi): Properly align tags.
23243 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23244 function.
23245 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23246 proto.
23247 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23248
23249 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23250
23251 Suport manual terminal geometry specification.
23252
23253 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23254 Save state in grub_ofconsole_terminfo_output.
23255 (grub_ofconsole_term): Use grub_terminfo_getwh.
23256 (grub_ofconsole_getwh): Removed.
23257 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23258 (grub_serial_term): Use grub_terminfo_getwh.
23259 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23260 (options): New struct.
23261 (OPTION_*): New enum.
23262 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23263 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23264 width and height.
23265 (grub_terminfo_getwh): New proto.
23266 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23267
23268 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23269
23270 Handle legacy "terminal" command.
23271
23272 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23273 and FLAG_TERMINAL.
23274 (legacy_commands): Add terminal and title.
23275 (grub_legacy_parse): Handle terminal. Simplify title handling.
23276
23277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23278
23279 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23280 parameters overflow.
23281
23282 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23283
23284 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23285 widthspec.h.
23286
23287 * docs/grub.texi (Shell-like scripting): Document `!'.
23288 (Network): Simplify using new i386-pc-pxe format. Mention
23289 grub-mknetdir.
23290
23291 * NEWS: Update.
23292
23293 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23294
23295 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23296 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23297 when needed.
23298
23299 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23300
23301 * grub-core/commands/efi/lsefisystab.c: Correct header.
23302 * grub-core/commands/efi/lssal.c: Likewise.
23303 * grub-core/commands/testload.c: Likewise.
23304
23305 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23306
23307 * util/grub-mkrescue.in: Add explicit root argument to --set to
23308 prevent the UUID being interpreted as an argument to --set (matches
23309 previous change to prepare_grub_to_access_device).
23310
23311 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23312
23313 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23314 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23315 the verbosity of later #ifs.
23316 (find_partition_start): Define this function on FreeBSD too.
23317 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23318 function.
23319 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23320 on FreeBSD.
23321
23322 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23323
23324 * util/grub-editenv.c: Use argp instead of getopt.
23325
23326 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23327
23328 * util/grub-setup.c: Use argp instead of getopt.
23329
23330 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23331
23332 Use gnulib-tool to create gnulib source files.
23333
23334 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23335 grub-core/gnulib directories
23336 * .bzignore: Add **/.deps and autogenerated gnulib files
23337 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23338 of gnulib macros, add grub-core/gnulib/Makefile
23339 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23340 include m4 directory to aclocal.
23341 * Makefile.util.def: Remove direct compilation of gnulib source files
23342 and use the new grub-core/gnulib/libgnu.a.
23343 * build-aux/config.rpath: move config.rpath from top directory to
23344 build-aux
23345 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23346 in gnulib headers
23347 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23348 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23349 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23350 header.
23351 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23352 string.
23353
23354 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23355
23356 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23357 grub-core/genmod.sh and grub-core/gensyminfo.sh
23358
23359 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23360
23361 Add a test for echo command options.
23362
23363 * tests/grub_cmd_echo.in: New test.
23364 * Makefile.util.def: Rules for new test.
23365
23366 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23367
23368 Remove crc.mod and move crc command to hashsum.mod.
23369 Remove lib/crc.c - users updated to use gcrypt implementation.
23370
23371 * grub-core/commands/crc.c: Removed.
23372 * grub-core/Makefile.core.def (crc): Module removed.
23373 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23374 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23375 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23376 * grub-core/lib/crc.c: Removed.
23377 * include/grub/lib/crc.h: Removed.
23378 * Makefile.util.def (crc): Remove lib/crc.c
23379 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23380 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23381 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23382 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23383 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23384 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23385
23386 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23387
23388 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23389
23390 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23391
23392 Split config.h for util and core.
23393
23394 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23395 (ADDR32): Likewise.
23396 (DATA32): Likewise.
23397 (BSS_START_SYMBOL): Likewise.
23398 (END_SYMBOL): Likewise.
23399 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23400 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23401 * config.h.in: New file.
23402 * configure.ac: Use config-util.h as config define file.
23403 Rename MACHINE into GRUB_MACHINE. All users updated.
23404 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23405 updated.
23406 (NESTED_FUNC_ATTR): Likewise.
23407 Substitue new variables.
23408 (COND_HAVE_ASM_USCORE): New conditional.
23409 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23410 (kernel_syms.lst): Use ASM_PREFIX.
23411 * grub-core/kern/emu/console.c: Include config-util.h.
23412 * grub-core/kern/emu/misc.c: Likewise.
23413 * grub-core/kern/emu/mm.c: Likewise.
23414 * include/grub/emu/misc.h: Likewise.
23415 * include/grub/libgcc.h: Likewise.
23416
23417 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23420 constants usage.
23421 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23422 Fix GRUB_TERM_KEY_* constants usage.
23423 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23424
23425 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23426
23427 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23428 print pointer.
23429 * grub-core/bus/usb/uhci.c: Remove empty define.
23430 (grub_uhci_check_transfer): Add missing cast.
23431 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23432 print pointer.
23433 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23434 PRIuGRUB_SIZE.
23435 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23436
23437 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23438
23439 * grub-core/Makefile.core.def (legacycfg): Add
23440 lib/i386/pc/vesa_modes_table.c on emu.
23441
23442 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23443
23444 Reduce number of temporary files generated by build system.
23445
23446 * grub-core/gencmdlist.sh: Removed.
23447 * grub-core/genfslist.sh: Removed.
23448 * grub-core/genhandlerlist.sh: Removed.
23449 * grub-core/genmodsrc.sh: Removed.
23450 * grub-core/genpartmaplist.sh: Removed.
23451 * grub-core/genparttoollist.sh: Removed.
23452 * grub-core/gentermiinallist.sh: Removed.
23453 * grub-core/genvideolist.sh: Removed.
23454
23455 * grub-core/genmod.sh.in: New file.
23456 * grub-core/gensyminfo.sh.in: New file.
23457
23458 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23459 * conf/Makefile.extra-dist: Update with new files.
23460 * gentpl.py: Remove rules related to unnecessary temporary files.
23461 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23462 and und-* files.
23463 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23464 genmod.sh scripts.
23465 * grub-core/bus/usb/uhci.c: Remove empty #define.
23466 * grub-core/genmoddep.awk: Updated with new syminfo format.
23467 * util/bash-completion.d/Makefile.am: Add config.log to
23468 CLEANFILES.
23469
23470 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23471
23472 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23473
23474 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23475
23476 * util/grub-mkconfig.in: Check the config script for syntax errors
23477 before saving.
23478
23479 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23480 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23481
23482 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23483 platforms.
23484 * util/grub-install.in: Add EFI and IEEE1275 support.
23485 * util/i386/efi/grub-install.in: Removed.
23486 * util/ieee1275/grub-install.in: Likewise.
23487
23488 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23489
23490 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23491 (grub_cmd_cmosclean): Likewise.
23492 (GRUB_MOD_INIT): Register command cmosclean.
23493 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23494 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23495
23496 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23497 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23498 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23499
23500 Add keyboard layouts support.
23501
23502 * Makefile.util.def (grub-mklayout): New file.
23503 (grub-kbdcomp): New script.
23504 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23505 Add keyboard_layouts.h.
23506 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23507 commands/boot.c on yeeloong.
23508 (keylayouts): New module.
23509 * grub-core/bus/usb/ohci.c
23510 * grub-core/bus/usb/uhci.c
23511 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23512 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23513 (attach_root_port): Likewise.
23514 (poll_nonroot_hub): Likewise.
23515 (grub_usb_poll_devices): Likewise.
23516 (detach_device): Close transfer.
23517 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23518 function.
23519 (grub_usb_bulk_setup_readwrite): Likewise.
23520 (grub_usb_bulk_finish_readwrite): Likewise.
23521 * grub-core/commands/keylayouts.c: New file.
23522 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23523 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23524 aliases.
23525 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23526 support scancode 2.
23527 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23528 * include/grub/keyboard_layouts.h: New file.
23529 * util/grub-mklayout.c: New file.
23530 * util/grub-kbdcomp.in: Likewise.
23531
23532 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23533
23534 Unify memory types.
23535
23536 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23537 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23538 types.
23539 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23540 (grub_upper_mem): Likewise.
23541 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23542 * include/grub/memory.h (grub_memory_type_t): New enum.
23543 All users updated.
23544
23545 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23546
23547 * grub-core/Makefile.core.def (lsapm): New module.
23548 * grub-core/commands/i386/pc/lsapm.c: New file.
23549 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23550 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23551 Likewise.
23552 * include/grub/i386/pc/apm.h: New file.
23553 * include/multiboot.h (multiboot_apm_info): New struct.
23554
23555 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23556
23557 GRUB-legacy configuration file support.
23558
23559 * Makefile.util.def (grub-menulst2cfg): New util.
23560 * docs/man/grub-menulst2cfg.h2m: New file.
23561 * grub-core/Makefile.core.def (legacycfg): New module.
23562 * grub-core/commands/legacycfg.c: New file.
23563 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23564 (grub_normal_add_menu_entry): ... this.
23565 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23566 (grub_normal_set_password): ...this.
23567 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23568 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23569 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23570 * grub-core/lib/legacy_parse.c: New file.
23571 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23572 * include/grub/i386/pc/vesa_modes_table.h: New file.
23573 * include/grub/legacy_parse.h: Likewise.
23574 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23575 * util/grub-menulst2cfg.c: New file.
23576
23577 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23578
23579 * grub-core/kern/emu/hostdisk.c
23580 (convert_system_partition_to_system_disk): Initialise node.
23581
23582 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23583
23584 * grub-core/kern/emu/hostdisk.c
23585 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23586 leak.
23587 Reported and based on patch by: Modestas Vainius.
23588
23589 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23590
23591 Fix DM-RAID probing with recent versions of device-mapper udev
23592 rules.
23593
23594 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23595 canonicalise device paths under /dev/mapper/.
23596 (convert_system_partition_to_system_disk): Compare the
23597 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23598 path, since device nodes under /dev/mapper/ are often symlinks.
23599
23600 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23601
23602 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23603
23604 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23605
23606 * configure.ac: Avoid some annoying error messages if freetype-config
23607 program is not found.
23608
23609 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23610
23611 Support RAID on virtio devices, and others.
23612
23613 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23614 Rename to ...
23615 [__MINGW32__] (grub_find_device): ... this.
23616 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23617 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23618 reasonable default if dir is NULL.
23619 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23620 ...
23621 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23622 (grub_guess_root_device): Update callers.
23623 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23624
23625 * util/raid.c (grub_util_getdiskname): Remove.
23626 (grub_util_raid_getmembers): Use grub_find_device rather than
23627 grub_util_getdiskname.
23628
23629 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23630
23631 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23632 needing to be compiled with serial support.
23633 (ls): Indicate that multiple files are accepted.
23634 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23635 indicate that multiple files are accepted.
23636
23637 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23638
23639 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23640 libgrub_a_init.c, and util/bash-completion.d/grub.
23641
23642 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23643
23644 * util/grub-setup.c (setup): Fix incorrect container semantics.
23645
23646 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23647
23648 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23649 misusage.
23650 Reported by: J. Nick Terry
23651
23652 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23653
23654 Move embedding routines to partmap sources files.
23655
23656 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23657 [GRUB_UTIL]: New variable.
23658 (gpt_partition_map_iterate): Set part.parent.
23659 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23660 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23661 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23662 New function.
23663 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23664 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23665 (grub_partition_map) [GRUB_UTIL]: New field embed.
23666 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23667 (setup): Use ->embed.
23668
23669 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23670
23671 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23672 function.
23673 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23674 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23675
23676 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23677
23678 Add function to get completions from usage.
23679
23680 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23681 completions from usage. Use LC_ALL=C to get options properly.
23682
23683 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23684
23685 * grub-core/gnulib/basename-lgpl.c: Imported.
23686 * grub-core/gnulib/basename.c: Likewise.
23687 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23688 * grub-core/gnulib/dirname.c: Likewise.
23689 * grub-core/gnulib/dirname.h: Likewise.
23690 * grub-core/gnulib/stripslash.c: Likewise.
23691
23692 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23693
23694 * grub-core/gnulib/error.c: Resynced.
23695 * grub-core/gnulib/getopt.c: Likewise.
23696 * grub-core/gnulib/getopt_int.h: Likewise.
23697 * grub-core/gnulib/regex.h: Likewise.
23698 * grub-core/gnulib/regex_internal.c: Likewise.
23699 * grub-core/gnulib/regex_internal.h: Likewise.
23700
23701 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23702
23703 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23704 CRC calculations and validity checks.
23705 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23706 calculations.
23707
23708 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23709
23710 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23711
23712 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23713
23714 Fix incorrect echo options handling.
23715 Reported by: Yves Blusseau.
23716
23717 * include/grub/command.h (grub_command_flags_t): New flags
23718 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23719 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23720 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23721
23722 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23723
23724 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23725 users updated.
23726 (GRUB_COMMAND_FLAG_MENU): Likewise.
23727 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23728 (GRUB_COMMAND_FLAG_TITLE): Removed.
23729 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23730 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23731 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23732 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23733 (grub_command_flags_t): New enum. All users updated.
23734
23735 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23736
23737 Fix solaris compilation.
23738
23739 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23740 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23741 (grub-emu-list): Likewise.
23742
23743 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23744
23745 Remove deprecated root command.
23746
23747 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23748 updated.
23749
23750 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 * util/i386/pc/grub-setup.c: Merge this ...
23753 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23754 * util/grub-setup.c: ... into this.
23755 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23756 New struct.
23757
23758 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23759
23760 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23761 possible.
23762
23763 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23764
23765 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23766 allocate p.
23767
23768 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23769
23770 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23771 explicit root argument to set to prevent UUID to be interpreted as
23772 argument to set.
23773
23774 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23777
23778 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 Don't export grub_gate_a20.
23781
23782 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23783 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23784 to ...
23785 (grub_gate_a20): ... this. All users updated.
23786 * include/grub/i386/pc/init.h: Removed. All users updated.
23787
23788 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23789
23790 Create euro.pf2 which supports most European languages.
23791
23792 * Makefile.am (grubdata_DATA): Add euro.pf2.
23793 (euro.pf2): New target.
23794 (CLEANFILES): Add euro.pf2.
23795
23796 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23797
23798 * configure.ac: Disable emu-usb by default to prevent inadvertent
23799 device takeover.
23800
23801 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23802
23803 Disable usbserial on grub-emu since our libusb code isn't good enough
23804 yet.
23805
23806 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23807 (usbserial_pl2303): Likewise.
23808 (usbserial_ftdi): Likewise.
23809
23810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23811
23812 * include/grub/disk.h (grub_disk): Remove has_partitions.
23813 All users updated.
23814 * disk/loopback.c (grub_loopback): Remove has_partitions.
23815 All users updated.
23816 (options): Remove partitions. All users updated.
23817 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23818 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23819 actual partition table is found.
23820
23821 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23822
23823 Remove readability checks (too many false negatives).
23824
23825 * util/grub-install.in: Remove readability checks.
23826 * util/grub-mkconfig.in: Likewise.
23827 * util/grub.d/10_hurd.in: Likewise.
23828 * util/grub.d/10_kfreebsd.in: Likewise.
23829 * util/grub.d/10_linux.in: Likewise.
23830 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23831 way.
23832
23833 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23834
23835 Enable acpi shutdown on all ACPI platforms.
23836
23837 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23838 on coreboo, multiboot and EFI.
23839 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23840 (grub_acpi_halt): Likewise.
23841 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23842 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23843 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23844 * grub-core/lib/i386/halt.c (grub_halt)
23845 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23846
23847 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23848
23849 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23850 context.
23851
23852 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23853
23854 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23855 * grub-core/video/efi_uga.c: Likewise.
23856
23857 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23858
23859 Filter devaliases and never open same device twice.
23860
23861 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23862 (last_ihandle): Likewise.
23863 (ofdisk_hash_ent): New member shortest.
23864 (ofdisk_hash_add): Add canonical path too.
23865 (scan): New function.
23866 (grub_ofdisk_iterate): Iterate over hashed entries.
23867 (compute_dev_path): Don't add :0.
23868 (grub_ofdisk_open): Don't really open the disk.
23869 (grub_ofdisk_close): Avoid closing unrelated disk.
23870 (grub_ofdisk_read): Implement reopen logic.
23871 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23872 New function.
23873 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23874 New proto.
23875
23876 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23877
23878 Fix sparc64.
23879
23880 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23881 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23882 right address. Add sparc64_ieee1275_ldflags.
23883 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23884 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23885 to grub_host_to_target_addr
23886 (load_image): Likewise.
23887
23888 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23889
23890 * grub-core/normal/completion.c (complete_file): Handle device
23891 containing slash.
23892 Fix based on patch by Doug Nazar.
23893
23894 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23895
23896 grub-mknetdir script.
23897
23898 * Makefile.util.def (grub-mknetdir): New module.
23899 * tests/util/grub-shell.in: Support boot=net
23900 * util/grub-mknetdir.in: New file.
23901
23902 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23903
23904 videoinfo on non-vbe.
23905
23906 * grub-core/Makefile.core.def (vbeinfo): Removed.
23907 (vbetest): Removed.
23908 (videoinfo): New module.
23909 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23910 * grub-core/commands/i386/pc/vbetest.c: Removed.
23911 * grub-core/commands/videoinfo.c: New file.
23912 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23913 specification.
23914 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23915 as vbetest.
23916 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23917 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23918 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23919 mode_number. New parameter mode. All users updated.
23920 (grub_video_gop_iterate): New function.
23921 (grub_video_efi_gop): New member iterate.
23922 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23923 (grub_vbe_set_video_mode): Remove setting useless fields.
23924 (vbe2videoinfo): New function.
23925 (grub_video_vbe_iterate): Likewise.
23926 (grub_video_vbe_setup): Use vbe2videoinfo.
23927 (grub_video_vbe_print_adapter_specific_info): New function.
23928 (grub_video_vbe_adapter): New fields iterate and
23929 print_adapter_specific_info.
23930 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
23931 All users updated.
23932 (grub_video_mode_info): New field mode_number.
23933 (grub_video_adapter): New fields iterate and
23934 print_adapter_specific_info.
23935
23936 2010-09-13 Tristan Gingold <gingold@free.fr>
23937 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
23938 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 * grub-core/commands/efi/lsefisystab.c: New file.
23941 * grub-core/commands/efi/lssal.c: Likewise.
23942 * grub-core/Makefile.core.def (lsacpi): New module.
23943 (lsefisystab): Likewise.
23944 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
23945 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
23946 (grub_efi_sal_system_table): New struct.
23947 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
23948 (grub_efi_sal_system_table_memory_descriptor): Likewise.
23949 (grub_efi_sal_system_table_platform_features): Likewise.
23950 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
23951 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
23952 (grub_efi_sal_system_table_ap_wakeup): Likewise.
23953 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
23954
23955 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23956
23957 Support explicit user claim that a device is BIOS-visible.
23958
23959 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
23960 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
23961 * grub-core/kern/emu/hostdisk.c
23962 (convert_system_partition_to_system_disk): Support mdX.
23963 (find_system_device): New parameter add. All users updated.
23964 (grub_util_biosdisk_is_present): New function.
23965 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
23966 proto.
23967
23968 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23969
23970 Search hints support.
23971
23972 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
23973 All users updated.
23974
23975 2010-09-13 Yves Blusseau <blusseau@zetam.org>
23976
23977 Bash completion script for util commands
23978
23979 * Makefile.am: Add util/bash-completion.d directory
23980 * configure.ac: Likewise.
23981 * util/bash-completion.d/Makefile.am: New file.
23982 * util/bash-completion.d/grub-completion.bash.in: Likewise.
23983
23984 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
23987 (print_backlog): set backlog_ucs4 and backlog_glyphs.
23988 Reported by: Yves Blusseau.
23989
23990 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
23993 partition size and offset.
23994
23995 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
23996
23997 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
23998
23999 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24000
24001 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24002
24003 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24004
24005 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24006 (grub_xvasprintf): Likewise.
24007
24008 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24009
24010 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24011
24012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24013
24014 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24015 args ending with NULL.
24016
24017 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24018
24019 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24020 pointer.
24021
24022 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24023
24024 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24025
24026 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24027
24028 Shutdown using ACPI.
24029
24030 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24031 * grub-core/commands/acpihalt.c: New file.
24032 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24033 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24034 (grub_acpi_halt): New proto.
24035 (GRUB_ACPI_SLP_EN): New const.
24036 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24037 (GRUB_ACPI_OPCODE_*): New enum.
24038 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24039
24040 2010-09-11 Tristan Gingold <gingold@free.fr>
24041 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24042 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24043
24044 * commands/lsacpi.c: New file.
24045 * grub-core/Makefile.core.def (lsacpi): New module.
24046 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24047 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24048 (grub_acpi_madt_entry_header): New struct.
24049 (grub_acpi_madt): Likewise.
24050 (grub_acpi_madt_entry_interrupt_override): Likewise.
24051 (grub_acpi_madt_entry_sapic): Likewise.
24052 (grub_acpi_madt_entry_lsapic): Likewise.
24053 (grub_acpi_madt_entry_platform_int_source): Likewise.
24054 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24055 (PRIuGRUB_UINT32_T): Likewise.
24056 (PRIxGRUB_UINT64_T): Likewise.
24057
24058 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 Implement loading palette on ieee1275_fb.
24061
24062 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24063 (have_setcolors): Likewise.
24064 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24065 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24066 (grub_video_ieee1275_set_palette): Implement.
24067
24068 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24069 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24070
24071 * util/grub-install.in (grub_partition): New variable.
24072 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24073 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24074 Fixes a bug reported by Yves Blusseau.
24075
24076 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24077
24078 Fix emu on mipsel.
24079
24080 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24081 =grub_cpu_flush_cache on all mips and not only yeeloong.
24082 * configure.ac (COND_mips): New conditional.
24083 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24084 platforms.
24085 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24086 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24087 [GRUB_LINKER_HAVE_INIT]: New function.
24088 (grub_emu_post_init): Likewise.
24089 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24090 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24091 * include/grub/cache.h (_mips): Include mips/cache.h.
24092 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24093 LVM and RAID prototypes.
24094 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24095 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24096 function.
24097
24098 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24099
24100 * util/grub-install.in: Don't try to verify core.img until after
24101 running grub-mkimage to create it.
24102
24103 2010-09-10 Robert Millan <rmh@gnu.org>
24104
24105 * util/grub.d/10_hurd.in: Add misc readability checks.
24106 * util/grub.d/10_kfreebsd.in: Likewise.
24107 * util/grub.d/10_linux.in: Likewise.
24108
24109 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24110
24111 * util/grub-install.in: ${imgext} won't be defined here until the
24112 install branch is merged. For the meantime, only verify core.img on
24113 i386-pc and sparc64-ieee1275 platforms.
24114
24115 2010-09-10 Robert Millan <rmh@gnu.org>
24116
24117 Solaris support in grub_find_zpool_from_dir(). Thanks
24118 Seth Goldberg for referring to getextmntent() facility.
24119
24120 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24121 `sys/mkdev.h'.
24122 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24123 `<sys/mnttab.h>'.
24124 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24125 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24126 method for finding zpool name.
24127
24128 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24129
24130 grub-fstest needs the host and hostfs modules while other utilities
24131 actively require those modules to be absent, so grub-fstest needs
24132 its own initialisation and finalisation code.
24133
24134 * Makefile.am (grub_fstest.pp): New target.
24135 (grub_fstest_init.lst): Likewise.
24136 (grub_fstest_init.c): Likewise.
24137 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24138
24139 2010-09-10 Robert Millan <rmh@gnu.org>
24140
24141 * configure.ac: Check for `struct statfs.f_fstypename' and
24142 `struct statfs.f_mntfromname'.
24143
24144 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24145 kFreeBSD-specific code.
24146
24147 2010-09-10 Robert Millan <rmh@gnu.org>
24148
24149 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24150 on ZFS. Now non-main filesystems are supported as / too.
24151
24152 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24153
24154 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24155 and grub-core/disk/host.c to ...
24156 (grub-fstest): ... here. Having the host disk implementation
24157 present confuses grub-probe and other utility programs.
24158
24159 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24160 when writing to a file, not when writing to stdout.
24161
24162 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24163
24164 * tests/partmap_test.in: New test for partitions.
24165 * Makefile.util.def: Rules for new test.
24166
24167 2010-09-09 Robert Millan <rmh@gnu.org>
24168
24169 * util/grub-probe.c (probe): Fix a pair of unhandled error
24170 conditions.
24171
24172 2010-09-09 Robert Millan <rmh@gnu.org>
24173
24174 Basic Btrfs support (detection and UUID).
24175
24176 * grub-core/fs/btrfs.c: New file.
24177 * Makefile.util.def (library): Register btrfs.c.
24178 * grub-core/Makefile.core.def: Likewise.
24179
24180 2010-09-08 Robert Millan <rmh@gnu.org>
24181
24182 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24183 with (optional) parameters to specify device and relative path.
24184 * util/grub-install.in: Use is_path_readable_by_grub() to
24185 verify readability of a few critical files.
24186 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24187 verify readability of grub.cfg.new.
24188
24189 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24190
24191 Split minix.mod into minix.mod and minix2.mod.
24192
24193 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24194 * grub-core/Makefile.core.def (minix2): New module.
24195 * grub-core/fs/minix.c: Use definitions instead of runtime version
24196 checking.
24197 * grub-core/fs/minix2.c: New file.
24198
24199 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24200
24201 Add new --boot-directory option to replace --root-directory
24202
24203 * util/grub-install.in: Add new --boot-directory option
24204 * util/grub-reboot.in: Likewise.
24205 * util/grub-set-default.in: Likewise.
24206
24207 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24208
24209 * util/grub-mkconfig.in: Use new variable.
24210
24211 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24212
24213 * configure.ac: Define some useful variables.
24214
24215 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24216
24217 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24218 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24219 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24220 Use terminfo and don't use cursor-on/cursor-off unless it's known
24221 to work.
24222 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24223 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24224
24225 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24226
24227 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24228 starts with "(,", fill the drive containing the loaded image in
24229 between those two characters, but expect that a full partition
24230 specification including partition map names will follow.
24231
24232 2010-09-08 Robert Millan <rmh@gnu.org>
24233
24234 * configure.ac: Remove `--enable-grub-fstest' option.
24235 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24236
24237 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24238 `grub-fstest' instead of `grub-probe' for readability verification.
24239 * util/grub-probe.c (probe): Remove readability verification kludge.
24240
24241 2010-09-08 Robert Millan <rmh@gnu.org>
24242
24243 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24244 initializing `GRUB_FS'.
24245
24246 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24247
24248 Not command (!) support to GRUB script.
24249
24250 * tests/grub_script_not.in: New test.
24251 * Makefile.util.def: Rules for new test.
24252
24253 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24254 ! command as a special case.
24255 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24256
24257 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24258
24259 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24260 grub_free.
24261
24262 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24263
24264 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24265
24266 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24267
24268 * docs/grub.texi (Shell-like scripting): Documentation for break,
24269 continue, shift and return commands.
24270
24271 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24272
24273 Rename CD-ROM to cd on BIOS.
24274
24275 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24276 "cd".
24277 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24278
24279 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24280
24281 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24282 * util/grub-probe.c (main): Likewise.
24283 * util/i386/pc/grub-setup.c (main): Likewise.
24284 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24285 Reported and debugged by: alexxy
24286
24287 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24288
24289 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24290 diagnostic info.
24291
24292 2010-09-05 Jo Shields <directhex@apebox.org>
24293
24294 * util/grub.d/30_os-prober.in: Add missing classes.
24295
24296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24297
24298 * docs/grub.texi (Theme file format): Document new position format.
24299
24300 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24301
24302 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24303 a table. Use @code instead of @verbatim.
24304
24305 2010-09-05 Colin D Bennett <colin@gibibit.com>
24306
24307 Gfxmenu documentation.
24308
24309 * docs/grub.texi (Theme file format): New chapter.
24310
24311 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24312
24313 * grub-core/Makefile.core.def (xzio): New module.
24314 * grub-core/io/xzio.c: New file.
24315 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24316 * grub-core/lib/xzembed/xz_config.h: Likewise.
24317 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24318 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24319 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24320 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24321 * grub-core/lib/xzembed/xz_private.h: Likewise.
24322 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24323 * include/grub/file.h (grub_file_filter_id): New compression filter
24324 GRUB_FILE_FILTER_XZIO.
24325
24326 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24327
24328 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24329 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24330 size.
24331
24332 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24335 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24336
24337 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24338
24339 Uncompressed checksum support.
24340
24341 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24342 (check_list): New parameter uncompress.
24343 (grub_cmd_hashsum): Handle --uncompress.
24344
24345 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24346
24347 Reintroduce testload.
24348
24349 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24350 from here ...
24351 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24352 (GRUB_MOD_INIT): New function.
24353 (GRUB_MOD_FINI): Likewise.
24354 * grub-core/Makefile.core.def (testload): New module.
24355
24356 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24357
24358 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24359 (uint8_t): New type.
24360 (uint16_t): Likewise.
24361 (uint32_t): Likewise.
24362 (uint64_t): Likewise.
24363
24364 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24365
24366 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24367
24368 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24369
24370 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24371 Made static.
24372 (grub_gzfile_open): Removed. All users updated.
24373 (GRUB_MOD_INIT): New function.
24374 (GRUB_MOD_FINI): Likewise.
24375 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24376 (grub_file_filters_enabled): Likewise.
24377 (grub_file_open): Handle filters.
24378 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24379 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24380 * include/grub/file.h (grub_file_filter_id_t): New type.
24381 (grub_file_filter_t): Likewise.
24382 (grub_file_filters_all): New extern variable.
24383 (grub_file_filters_enabled): Likewise.
24384 (grub_file_filter_register): New inline function.
24385 (grub_file_filter_unregister): Likewise.
24386 (grub_file_filter_disable): Likewise.
24387 (grub_file_filter_disable_compression): Likewise.
24388 * include/grub/gzio.h: Removed.
24389
24390 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24391
24392 Filename expansion support for wildcards in GRUB script.
24393
24394 * tests/grub_script_expansion.in: New test.
24395 * Makefile.util.def: Rule for new test.
24396
24397 * grub-core/commands/wildcard.c: New file, implements filename
24398 expansion support for GRUB script.
24399 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24400 * grub-core/script/argv.c: Cosmetic changes.
24401 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24402 Refactored to perform wildcard expansion on arguments.
24403 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24404 struct.
24405
24406 * tests/util/grub-shell.in: Fix quoting for read input.
24407
24408 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24409
24410 Support for updating environment variables with matched substrings
24411 of regexp.
24412
24413 * tests/grub_cmd_regexp.in: New test.
24414 * Makefile.util.def: Rule for new test.
24415
24416 * grub-core/commands/regexp.c: New option -s to update environment
24417 variables with regexp matches.
24418
24419 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24420
24421 * include/grub/file.h (grub_file): New member not_easly_seekable.
24422 (grub_file_seekable): New inline function.
24423 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24424 easily seekable.
24425 (grub_gzio_open): Set not_easly_seekable.
24426 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24427 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24428
24429 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24430
24431 Support for options to appear multiple times on cmdline.
24432
24433 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24434 * grub-core/commands/extcmd.c: Support for repeatable option.
24435 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24436 repeatable option support.
24437
24438 Refactor menuentry into a regular command.
24439
24440 * grub-core/commands/menuentry.c: New file, menuentry command
24441 implementation.
24442 * grub-core/Makefile.core.def: Rule update for normal.mod.
24443 * grub-core/normal/main.c: Moved menuentry creation to
24444 grub-core/commands/menuentry.c.
24445 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24446 (grub_menu_execute_entry_real): Removed.
24447 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24448 function.
24449 (grub_script_execute_menuentry): Removed.
24450 * grub-core/script/parser.y (menuentry): Removed.
24451 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24452 * grub-core/script/yylex.l (menuentry): Removed.
24453 * include/grub/menu.h (grub_menu_init): New prototype.
24454 (grub_menu_fini): New prototype.
24455 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24456 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24457 (grub_script_execute_sourcecode): New prototype.
24458
24459 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24460
24461 "return" command for GRUB script functions.
24462
24463 * tests/grub_script_return.in: New test.
24464 * Makefile.util.def: Rules for new test.
24465
24466 * grub-core/script/execute.c (grub_script_return): New function.
24467 * grub-core/script/main.c: Register/unregister return commaond.
24468 * include/grub/script_sh.h (grub_script_return): New prototype.
24469
24470 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24471
24472 "setparams" command to update positional parameters.
24473
24474 * tests/grub_script_setparams.in: New test.
24475 * Makefile.util.def: Rules for new test.
24476
24477 * grub-core/script/argv.c (grub_script_argv_make): New function.
24478 * grub-core/script/execute.c (replace_scope): New function.
24479 (grub_script_setparams): New function.
24480 * grub-core/script/lexer.c: Remove unused variables.
24481 * grub-core/script/main.c: Register/unregister setparams command.
24482 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24483 (grub_script_setparams): New prototype.
24484
24485 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24486
24487 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24488 grub_free order.
24489
24490 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24491
24492 Support for passing block of commands as an argument to extcmds.
24493
24494 * Makefile.util.def: Rules for new test.
24495 * tests/grub_script_blockarg.in: New test.
24496 * grub-core/tests/test_blockarg.c: New file, block argument
24497 command used in the test.
24498
24499 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24500 (grub_register_extcmd_prio): New function prototype.
24501 (grub_extcmd_dispatcher): New function prototype.
24502 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24503 type.
24504 * include/grub/script_sh.h (struct grub_script): New members
24505 `children', `next_siblings' and `refcnt' for block arguments and
24506 reference counting.
24507 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24508 (grub_script_arg): New member `script' for block argument.
24509 (grub_script_argv): New member `script' for block argument.
24510 (grub_parser_param): New member `scripts' for block argument.
24511 (grub_script_mem_free): New extern function prototype.
24512 (grub_script_ref): New function prototype.
24513 (grub_script_unref): New function prototype.
24514
24515 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24516 extcmd form to support block arguments.
24517 * grub-core/script/argv.c: Block arguments support.
24518 * grub-core/script/execute.c: Likewise.
24519 * grub-core/script/lexer.c: Likewise.
24520 * grub-core/script/main.c: Likewise.
24521 * grub-core/script/script.c: Likewise.
24522 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24523 non-terminals.
24524
24525 * grub-core/commands/acpi.c: Update extcmd implementations with
24526 grub_extcmd_context_t.
24527 * grub-core/commands/cat.c: Likewise.
24528 * grub-core/commands/echo.c: Likewise.
24529 * grub-core/commands/extcmd.c: Likewise.
24530 * grub-core/commands/hashsum.c: Likewise.
24531 * grub-core/commands/hdparm.c: Likewise.
24532 * grub-core/commands/help.c: Likewise.
24533 * grub-core/commands/hexdump.c: Likewise.
24534 * grub-core/commands/i386/cpuid.c: Likewise.
24535 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24536 * grub-core/commands/i386/pc/halt.c: Likewise.
24537 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24538 * grub-core/commands/iorw.c: Likewise.
24539 * grub-core/commands/keystatus.c: Likewise.
24540 * grub-core/commands/loadenv.c: Likewise.
24541 * grub-core/commands/ls.c: Likewise.
24542 * grub-core/commands/lspci.c: Likewise.
24543 * grub-core/commands/memrw.c: Likewise.
24544 * grub-core/commands/probe.c: Likewise.
24545 * grub-core/commands/search_wrap.c: Likewise.
24546 * grub-core/commands/setpci.c: Likewise.
24547 * grub-core/commands/sleep.c: Likewise.
24548 * grub-core/disk/loopback.c: Likewise.
24549 * grub-core/hello/hello.c: Likewise.
24550 * grub-core/loader/i386/bsd.c: Likewise.
24551 * grub-core/loader/xnu.c: Likewise.
24552 * grub-core/term/gfxterm.c: Likewise.
24553 * grub-core/term/serial.c: Likewise.
24554 * grub-core/tests/lib/functional_test.c: Likewise.
24555
24556 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24557
24558 Multi-line quoted strings support.
24559
24560 * grub-core/script/lexer.c (append_newline): Removed.
24561 (grub_script_lexer_yywrap): Refactored.
24562 (grub_script_lexer_init): Refactored.
24563 * grub-core/script/yylex.l (yywrap): New function.
24564 (grub_lexer_resplit): New function.
24565 (grub_lexer_unput): New function.
24566 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24567 and resplit.
24568 * tests/grub_script_echo1.in: Added few more testcases.
24569
24570 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24571
24572 * grub-core/kern/misc.c: Don't add abort alias in utils.
24573 Reported by: echoline.
24574
24575 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24576
24577 Add missing files into "make dist" tarball for other platforms.
24578
24579 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24580 * conf/Makefile.common (dist_noinst_DATA): New variable.
24581 * conf/Makefile.extra-dist: Added missing make dist files.
24582 * grub-core/Makefile.core.def: Likewise.
24583
24584 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24585
24586 Compress grub_prefix.
24587
24588 * grub-core/boot/i386/pc/lnxboot.S: Use
24589 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24590 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24591 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24592 GRUB_MACHINE_PREFIX_END. All users updated.
24593 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24594 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24595 + 0x40.
24596 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24597 * util/grub-mkimage.c (image_target_desc): Change data_end to
24598 prefix_end. All users updated.
24599
24600 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24601
24602 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24603 value.
24604 (grub_openbsd_boot): Likewise.
24605 (grub_netbsd_boot): Likewise.
24606 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24607 (grub_xnu_boot): Likewise.
24608
24609 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24610
24611 * configure.ac: Clean LIBS variable after tests.
24612
24613 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24614
24615 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24616
24617 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24618
24619 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24620 echo if libdevmapper will be used.
24621
24622 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24623
24624 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24625 constant for the same file.
24626
24627 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24628
24629 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24630
24631 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24632
24633 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24634 grub-core/*.pp.
24635
24636 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24637
24638 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24639 required by the boot protocol.
24640
24641 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24642 ebp and edi members.
24643 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24644 state.ebp and state.edi.
24645 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24646 %ebp and %edi according to grub_relocator32_ebp and
24647 grub_relocator32_edi respectively.
24648 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24649 and state.edi.
24650
24651 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24652
24653 Add i386-pc-pxe image target.
24654
24655 * util/grub-mkimage.c (image_target_desc): New enum value
24656 IMAGE_I386_PC_PXE.
24657 (image_targets): New target i386-pc-pxe.
24658 (generate_image): Handle i386-pc-pxe image.
24659
24660 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24661
24662 Fix grub_pxe_scan.
24663
24664 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24665 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24666 All users updated.
24667 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24668 (grub_pxe_pxenv): Correct type.
24669
24670 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24671
24672 * NEWS: Document most of the important changes since 1.98.
24673
24674 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24675
24676 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24677 generated manual page) a little.
24678
24679 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24680
24681 * docs/grub.texi: Add myself as an author.
24682
24683 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24684
24685 * Makefile.util.def (libgrub.a): Add missing sunpc.
24686 Reported by: Seth Goldberg.
24687
24688 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24689
24690 Interrupt wrapping and code simplifications.
24691
24692 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24693 x86_noieee1275 which are functionaly equivalent in this case.
24694 (grub-install): Make source on each platform explicit. Enable on
24695 all noemu.
24696 * gentpl.py (x86_efi_pc): Removed group.
24697 (x86_noefi): Likewise.
24698 (i386_noefi): Likewise.
24699 (x86_noieee1275): Likewise.
24700 (i386_noieee1275): Likewise.
24701 (i386_noefi_noieee1275): Likewise.
24702 (i386_pc_qemu_coreboot): Likewise.
24703 (i386_coreboot_multiboot): Likewise.
24704 (i386_pc_coreboot_multiboot_qemu): Likewise.
24705 (x86_noefi_mips): Likewise.
24706 (noieee1275): Likewise.
24707 (ieee1275_mips): Likewise.
24708 (noemu_noieee1275): Likewise.
24709 (cmos): New group.
24710 (usb): Likewise.
24711 (videoinkernel): Likewise.
24712 (videomodules): Likewise.
24713 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24714 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24715 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24716 include/grub/loader.h, include/grub/msdos_partition.h,
24717 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24718 include/grub/machine/console.h, include/grub/machine/vga.h,
24719 include/grub/machine/vbe.h, include/grub/machine/init.h,
24720 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24721 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24722 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24723 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24724 * grub-core/Makefile.core.def (kernel): Explicit the source for
24725 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24726 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24727 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24728 Use videoinkernel tag.
24729 (usb): Enable on all usb.
24730 (usbserial_common): Likewise.
24731 (usbserial_pl2303): Likewise.
24732 (usbserial_ftdi): Likewise.
24733 (uhci): Enable on all x86.
24734 (ohci): Enable on all pci.
24735 (cmostest): Enable on all CMOS.
24736 (acpi): Include commands/acpi.c on all platforms.
24737 (halt): Add relevant lib/*/halt.c.
24738 (hdparm): Enable on all pci.
24739 (lspci): Likewise.
24740 (usbtest): Enable on all usb.
24741 (ata): Enable on all pci.
24742 (ata_pthru): Likewise.
24743 (usbms): Enable on all usb.
24744 (usb_keyboard): Likewise.
24745 (font): Use tag videomodules.
24746 (bufio): Likewise.
24747 (datetime): Use tag cmos. Enable on all noemu.
24748 (mmap): Use tags common and x86.
24749 (gfxterm): Use tag videomodules.
24750 (bitmap): Likewise.
24751 (bitmap_scale): Likewise.
24752 (video_fb): Likewise.
24753 (video): Likewise.
24754 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24755 adjust padding accordingly. All users updated.
24756 (grub_ohci_transaction): Fix bad format specification.
24757 (GRUB_MOD_INIT): Add asserts for struct size.
24758 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24759 (grub_alloc_td): Likewise.
24760 (grub_free_queue): Likewise.
24761 (grub_uhci_transfer): Likewise.
24762 (grub_uhci_transaction): Fix bad format specification.
24763 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24764 (grub_usb_bulk_readwrite): Likewise.
24765 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24766 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24767 Made static.
24768 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24769 Made static.
24770 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24771 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24772 Transformed into C.
24773 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24774 Moved from here ...
24775 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24776 ... here. Transformed into C. Made static.
24777 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24778 Moved from here ...
24779 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24780 ... here. Transformed into C. Made static.
24781 * grub-core/kern/i386/pc/startup.S
24782 (grub_biosdisk_check_int13_extensions): Moved from here ...
24783 * grub-core/disk/i386/pc/biosdisk.c
24784 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24785 Made static.
24786 * grub-core/kern/i386/pc/startup.S
24787 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24788 * grub-core/disk/i386/pc/biosdisk.c
24789 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24790 Transformed into C. Made static.
24791 * grub-core/kern/i386/pc/startup.S
24792 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24793 * grub-core/disk/i386/pc/biosdisk.c
24794 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24795 Transformed into C. Made static.
24796 * grub-core/kern/i386/pc/startup.S
24797 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24798 * grub-core/disk/i386/pc/biosdisk.c
24799 (grub_biosdisk_get_diskinfo_standard): ... here.
24800 Transformed into C. Made static.
24801 * grub-core/kern/i386/pc/startup.S
24802 (grub_biosdisk_get_num_floppies): Moved from here ...
24803 * grub-core/disk/i386/pc/biosdisk.c
24804 (grub_biosdisk_get_num_floppies): ... here.
24805 Transformed into C. Made static.
24806 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24807 New function.
24808 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24809 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24810 Transformed into C. Made static.
24811 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24812 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24813 Transformed into C. Made static.
24814 * grub-core/kern/i386/ieee1275/init.c: Removed.
24815 * grub-core/kern/i386/misc.S: Likewise.
24816 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24817 Splitted from here ...
24818 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24819 Transformed into C. Made static. All users updated.
24820 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24821 Transformed into C. Made static. All users updated.
24822 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24823 Moved from here...
24824 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24825 Transformed into C. Made static. All users updated.
24826 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24827 Moved from here...
24828 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24829 Transformed into C. Made static. All users updated.
24830 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24831 Removed (replaced by C version).
24832 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24833 Moved from here...
24834 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24835 Transformed into C. Made static.
24836 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24837 Moved from here...
24838 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24839 ... here. Transformed into C.
24840 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24841 Moved from here...
24842 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24843 ... here. Transformed into C.
24844 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24845 Moved from here...
24846 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24847 ... here. Transformed into C. Made static.
24848 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24849 Moved from here...
24850 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24851 ... here. Transformed into C.
24852 * grub-core/kern/i386/pc/startup.S
24853 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24854 * grub-core/video/i386/pc/vbe.c
24855 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24856 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24857 Moved from here...
24858 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24859 ... here. Transformed into C.
24860 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24861 Moved from here...
24862 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24863 ... here. Transformed into C.
24864 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24865 Moved from here...
24866 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24867 ... here. Transformed into C.
24868 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24869 Moved from here...
24870 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24871 ... here. Transformed into C.
24872 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24873 Moved from here...
24874 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24875 ... here. Transformed into C. Made static.
24876 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24877 Moved from here...
24878 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24879 ... here. Transformed into C. Made static.
24880 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24881 Moved from here...
24882 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24883 ... here. Transformed into C. Made static.
24884 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24885 pxe_rm_entry as third argument.
24886 (grub_bios_interrupt): New function.
24887 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24888 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24889 of calling grub_stop.
24890 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24891 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24892 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24893 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24894 * grub-core/lib/i386/halt.c: Moved from here ...
24895 * grub-core/lib/i386/halt.c: ... here.
24896 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24897 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24898 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24899 grub_stop_floppy.
24900 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24901 * include/grub/i386/coreboot/init.h: Removed.
24902 * include/grub/i386/multiboot/init.h: Likewise.
24903 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24904 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24905 * include/grub/i386/pc/int.h: New file.
24906 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24907 (grub_pxe_scan): Removed.
24908 (grub_pxe_call): Update prototype.
24909 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24910 prototypes.
24911 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24912 * include/grub/i386/qemu/init.h: Removed.
24913 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24914 noreturn.
24915 (grub_halt): Likewise.
24916 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24917 (grub_reboot): Likewise.
24918 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24919 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24920 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24921
24922 2010-08-30 Robert Millan <rmh@gnu.org>
24923
24924 * NEWS: Document addition of ZFS support in `grub-install' and
24925 `grub-mkconfig'.
24926
24927 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24928
24929 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
24930 dprintf output.
24931
24932 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24933
24934 Remove leftover embedding of font objects.
24935
24936 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24937 * util/grub-install.in (font): Removed.
24938 * util/grub-mkimage.c (generate_image): Remove font support. All users
24939 updated.
24940
24941 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24942
24943 Remove leftover embedding of font objects.
24944
24945 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
24946 * util/grub-install.in (font): Removed.
24947 * util/grub-mkimage.c (generate_image): Remove font support. All users
24948 updated.
24949
24950 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24951
24952 * docs/grub.texi (Network): Fix reference to pxe_blksize.
24953 Reported by: Ian Turner
24954
24955 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24956
24957 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
24958 timeout to avoid indefinite boot stalling.
24959
24960 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24961
24962 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
24963 (grub_env_write_color_highlight): Likewise.
24964
24965 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24966
24967 * grub-core/normal/term.c (print_more): Return to normal and not
24968 to standard state after printing "---MORE---".
24969
24970 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24971
24972 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
24973 Mask out the bit 0x80 since it has other meaning that specifiing color.
24974
24975 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
24976
24977 New relocator. Allows for more kernel support and more straightforward
24978 loader writing.
24979
24980 * Makefile.am (BOOTTARGET): New variable.
24981 (QEMU32): Likewise.
24982 (linux.init.x86_64): New target.
24983 (linux.init.i386): Likewise.
24984 (multiboot.elf): Likewise.
24985 (kfreebsd.elf): Likewise.
24986 (kfreebsd.aout): Likewise.
24987 (pc-chainloader.elf): Likewise.
24988 (pc-chainloader.bin): Likewise.
24989 (ntldr.elf): Likewise.
24990 (ntldr.bin): Likewise.
24991 (multiboot2.elf): Likewise.
24992 (kfreebsd.init.x86_64): Likewise.
24993 (kfreebsd.init.i386): Likewise.
24994 (knetbsd.init.i386): Likewise.
24995 (kopenbsd.init.i386): Likewise.
24996 (knetbsd.init.x86_64): Likewise.
24997 (kopenbsd.init.x86_64): Likewise.
24998 (linux-initramfs.i386): Likewise.
24999 (linux-initramfs.x86_64): Likewise.
25000 (kfreebsd-mfsroot.i386.img): Likewise.
25001 (knetbsd.image.i386): Likewise.
25002 (kopenbsd.image.i386): Likewise.
25003 (kopenbsd.image.x86_64): Likewise.
25004 (knetbsd.miniroot-image.i386.img): Likewise.
25005 (kfreebsd-mfsroot.x86_64.img): Likewise.
25006 (knetbsd.image.x86_64): Likewise.
25007 (knetbsd.miniroot-image.x86_64.img): Likewise.
25008 (kfreebsd-mfsroot.i386.gz): Likewise.
25009 (bootcheck-kfreebsd-i386): Likewise.
25010 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25011 (bootcheck-kfreebsd-x86_64): Likewise.
25012 (knetbsd.miniroot-image.i386.gz): Likewise.
25013 (bootcheck-knetbsd-i386): Likewise.
25014 (bootcheck-kopenbsd-i386): Likewise.
25015 (bootcheck-kopenbsd-x86_64): Likewise.
25016 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25017 (bootcheck-knetbsd-x86_64): Likewise.
25018 (bootcheck-linux-i386): Likewise.
25019 (bootcheck-linux-x86_64): Likewise.
25020 (bootcheck-linux16-i386): Likewise.
25021 (bootcheck-linux16-x86_64): Likewise.
25022 (bootcheck-multiboot): Likewise.
25023 (bootcheck-multiboot2): Likewise.
25024 (bootcheck-kfreebsd-aout): Likewise.
25025 (bootcheck-pc-chainloader): Likewise.
25026 (bootcheck-ntldr): Likewise.
25027 (CLEANFILES): Add new targets.
25028 (BOOTCHECKS): New variable.
25029 (.PHONY): Add bootchecks.
25030 (SUCCESSFUL_BOOT_STRING): New variable.
25031 (BOOTCHECK_TIMEOUT): Likewise.
25032 (bootcheck): New target
25033 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25034 * configure.ac: Correct efiemu excuse.
25035 * docs/grub.texi (Supported kernels): New chapter.
25036 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25037 include/grub/mm_private.h. Simplify inclusion of
25038 include/grub/boot.h, include/grub/loader.h
25039 and include/grub/msdos_partition.h
25040 (KERNEL_HEADER_FILES) [i386_coreboot]:
25041 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25042 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25043 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25044 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25045 include/grub/machine/loader.h.
25046 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25047 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25048 extra_dist.
25049 (pci.mod): Enable on i386-multiboot.
25050 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25051 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25052 i386-qemu.
25053 (relocator.mod): Rewritten.
25054 (aout.mod): Enable on all x86.
25055 (bsd.mod): Likewise.
25056 (ntldr.mod): New module.
25057 (linux.mod): Use loader/i386/linux.c on all x86.
25058 (xnu.mod): Enable on all x86.
25059 (vga_text.mod): disable on EFI and QEMU.
25060 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25061 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25062 * grub-core/efiemu/loadcore.c: Likewise.
25063 * grub-core/efiemu/main.c: Likewise.
25064 (grub_efiemu_exit_boot_services): Removed.
25065 (grub_efiemu_finish_boot_services): Likewise.
25066 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25067 function.
25068 * grub-core/efiemu/i386/nocfgtables.c: New file.
25069 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25070 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25071 (grub_efi_finish_boot_services): Moved from here ...
25072 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25073 Fille finish memory map and related data.
25074 (finish_mmap_buf): New variable.
25075 (grub_efi_uintn_t finish_mmap_size): Likewise.
25076 (grub_efi_uintn_t finish_key): Likewise.
25077 (grub_efi_uintn_t finish_desc_size): Likewise.
25078 (grub_efi_uint32_t finish_desc_version): Likewise.
25079 (grub_efi_is_finished): Likewise.
25080 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25081 finished.
25082 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25083 (grub_elf64_phdr_iterate): Likewise.
25084 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25085 (grub_os_area_size): Likewise.
25086 (grub_machine_init): Don't reserve os area.
25087 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25088 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25089 * grub-core/kern/i386/loader.S: Removed.
25090 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25091 (grub_os_area_size): Likewise.
25092 (grub_machine_init): Don't reserve os area.
25093 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25094 Don't call grub_dl_unload_all.
25095 Don't include loader.S.
25096 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25097 Declare the memory after _end as available.
25098 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25099 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25100 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25101 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25102 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25103 * include/grub/mm_private.h (grub_mm_header): ... here.
25104 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25105 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25106 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25107 (grub_mm_region): ..here. Removed addr. Added pre_size.
25108 All users updated.
25109 * grub-core/kern/mm.c (base): Renamed to ...
25110 (grub_mm_base): ... this. Made global.
25111 (grub_real_malloc): Alloc from end of region.
25112 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25113 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25114 * grub-core/kern/powerpc/cache_flush.S: ... here.
25115 * grub-core/lib/efi/relocator.c: New file.
25116 * grub-core/lib/i386/relocator.c: Rewritten.
25117 * grub-core/lib/i386/relocator16.S: New file.
25118 * grub-core/lib/i386/relocator32.S: Likewise.
25119 * grub-core/lib/i386/relocator64.S: Likewise.
25120 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25121 * grub-core/lib/i386/relocator_common.S: New file.
25122 * grub-core/lib/ieee1275/relocator.c: Likewise.
25123 * grub-core/lib/mips/relocator.c: Rewritten.
25124 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25125 stylistic adjustments.
25126 * grub-core/lib/powerpc/relocator.c: New file.
25127 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25128 * grub-core/lib/relocator.c: Rewritten.
25129 * grub-core/lib/x86_64/relocator_asm.S: New file.
25130 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25131 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25132 (bsd_tag): New struct.
25133 (tags): New variable.
25134 (tags_last): Likewise.
25135 (netbsd_module): New struct.
25136 (netbsd_mods): New variable.
25137 (netbsd_mods_last): Likewise.
25138 (openbsd_opts): New parameter "serial".
25139 (OPENBSD_SERIAL_ARG): New definition.
25140 (netbsd_opts): New parameter "serial".
25141 (NETBSD_SERIAL_ARG): New definition.
25142 (grub_freebsd_add_meta): Reorganised into ...
25143 (grub_bsd_add_meta): ...this. All users updated.
25144 (grub_freebsd_add_mmap): Reorganised into ...
25145 (generate_e820_mmap): ...this...
25146 (grub_bsd_add_mmap): ...and this. All users updated.
25147 (grub_freebsd_list_modules): Use tags.
25148 (grub_netbsd_add_meta_module): New function.
25149 (grub_netbsd_list_modules): Likewise.
25150 (grub_freebsd_boot): Use relocator and finish EFI.
25151 (grub_openbsd_boot): Likewise.
25152 (grub_netbsd_setup_video): New function.
25153 (grub_netbsd_add_modules): Likewise.
25154 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25155 and finish EFI.
25156 (grub_bsd_unload): Unload tags.
25157 (grub_bsd_load_aout): Use relocator.
25158 (grub_bsd_elf32_size_hook): New function.
25159 (grub_bsd_elf32_hook): Use relocator.
25160 (grub_bsd_elf64_size_hook): New function.
25161 (grub_bsd_elf64_hook): Use relocator.
25162 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25163 (grub_bsd_load): Zero-out openbsd_ramdisk.
25164 (grub_bsd_load): Use relocator.
25165 (grub_cmd_openbsd): Support serial.
25166 (grub_cmd_netbsd): Support modules.
25167 (grub_cmd_freebsd_module): Use relocator.
25168 (grub_netbsd_module_load): New function.
25169 (grub_cmd_netbsd_module): Likewise.
25170 (grub_cmd_openbsd_ramdisk): Likewise.
25171 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25172 kopenbsd_ramdisk.
25173 (GRUB_MOD_FINI): Unregister new commands.
25174 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25175 (grub_freebsd_load_elfmodule_obj): Use relocator.
25176 (grub_freebsd_load_elfmodule): Likewise.
25177 (grub_freebsd_load_elf_meta): Likewise.
25178 (grub_netbsd_load_elf_meta): New function.
25179 (grub_openbsd_find_ramdisk): Likewise.
25180 * grub-core/loader/i386/bsd_helper.S: Removed.
25181 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25182 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25183 * grub-core/loader/i386/efi/linux.c: Likewise.
25184 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25185 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25186 (DEFAULT_VIDEO_MODE): Likewise.
25187 (real_mode_target): New variable.
25188 (prot_mode_target): Likewise.
25189 (initrd_mem_target): Likewise.
25190 (relocator): Likewise.
25191 (efi_mmap_buf): Likewise.
25192 (efi_mmap_size): Likewise.
25193 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25194 (free_pages): Use relocator.
25195 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25196 (grub_linux_setup_video): Return error.
25197 (grub_linux_trampoline_start): Removed.
25198 (grub_linux_trampoline_end): Likewise.
25199 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25200 andd video parameters depending on firmware.
25201 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25202 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25203 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25204 (grub_cmd_initrd): Use relocator.
25205 * grub-core/loader/i386/linux_trampoline.S: Removed.
25206 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25207 (elf_sec_entsize): Likewise.
25208 (elf_sec_shstrndx): Likewise.
25209 (elf_sections): Likewise.
25210 (grub_multiboot_load): Use relocator.
25211 (grub_multiboot_get_mbi_size): Account for sections.
25212 (grub_multiboot_make_mbi): Use relocator and support sections.
25213 (grub_multiboot_add_elfsyms): New function.
25214 (grub_multiboot_free_mbi): Free sections.
25215 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25216 (grub_linux_real_target): Likewise.
25217 (grub_linux_real_chunk): Likewise.
25218 (grub_linux16_prot_size): Likewise.
25219 (grub_linux16_boot): Use relocator.
25220 (grub_linux_unload): Unload relocator.
25221 (grub_cmd_linux): Use relocator.
25222 (grub_cmd_initrd): Likewise.
25223 * grub-core/loader/i386/pc/ntldr.c: New file.
25224 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25225 Don't try to guess CPU frequency.
25226 (grub_xnu_set_video): Stretch bitmap.
25227 (grub_xnu_boot): Use relocator.
25228 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25229 (grub_linux_unload): Free relocator.
25230 (grub_linux_load32): Use relocator.
25231 (grub_linux_load64): Likewise.
25232 (grub_cmd_initrd): Likewise.
25233 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25234 (grub_multiboot_unload): Unload relocator.
25235 (grub_cmd_multiboot): Use relocator.
25236 (grub_cmd_module): Likewise.
25237 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25238 Use relocator and support sections.
25239 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25240 (elf_sec_entsize): Likewise.
25241 (elf_sec_shstrndx): Likewise.
25242 (elf_sections): Likewise.
25243 (grub_multiboot_load): Use relocator.
25244 (grub_multiboot_get_mbi_size): Account for sections.
25245 (grub_multiboot_make_mbi): Use relocator and support sections.
25246 (grub_multiboot_add_elfsyms): New function.
25247 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25248 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25249 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25250 Prototype changed. All users updated.
25251 (grub_xnu_align_heap): Simplified.
25252 (grub_xnu_writetree_toheap): Likewise.
25253 (grub_xnu_unload): Unload relocator.
25254 (grub_cmd_xnu_kernel): Use relocator.
25255 (grub_cmd_xnu_kernel64): Likewise.
25256 (grub_xnu_register_memory): Simplified.
25257 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25258 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25259 EFI is finished.
25260 (grub_console_checkkey): Likewise.
25261 (grub_console_getkey): Likewise.
25262 (grub_console_getwh): Likewise.
25263 (grub_console_getxy): Likewise.
25264 (grub_console_gotoxy): Likewise.
25265 (grub_console_cls): Likewise.
25266 (grub_console_setcolorstate): Likewise.
25267 (grub_console_setcursor): Likewise.
25268 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25269 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25270 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25271 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25272 * grub-core/tests/boot/kernel-8086.S: Likewise.
25273 * grub-core/tests/boot/kernel-i386.S: Likewise.
25274 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25275 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25276 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25277 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25278 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25279 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25280 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25281 * grub-core/tests/boot/linux.cfg: Likewise.
25282 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25283 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25284 * grub-core/tests/boot/linux16.cfg: Likewise.
25285 * grub-core/tests/boot/multiboot.cfg: Likewise.
25286 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25287 * grub-core/tests/boot/ntldr.cfg: Likewise.
25288 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25289 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25290 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25291 New definition.
25292 * include/grub/dl.h (grub_dl_unload_all): Removed.
25293 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25294 (grub_efi_finish_boot_services): Change prototype.
25295 (grub_efi_is_finished): New variable.
25296 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25297 Changed prototype.
25298 (grub_efiemu_finish_boot_services): Removed.
25299 (grub_machine_efiemu_init_tables): New prototype.
25300 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25301 (grub_elf64_phdr_iterate): Likewise.
25302 * include/grub/i386/bsd.h: Include relocator.h.
25303 (freebsd_tag_header): New struct.
25304 (grub_openbsd_bios_mmap): Removed.
25305 (grub_unix_real_boot): Removed.
25306 (grub_freebsd_load_elfmodule32): Changed prototype.
25307 (grub_freebsd_load_elfmodule_obj64): Likewise.
25308 (grub_freebsd_load_elf_meta32): Likewise.
25309 (grub_freebsd_load_elf_meta64): Likewise.
25310 (grub_freebsd_add_meta): Removed.
25311 (grub_netbsd_load_elf_meta32): New prototype.
25312 (grub_netbsd_load_elf_meta64): Likewise.
25313 (grub_bsd_add_meta): Likewise.
25314 (grub_openbsd_ramdisk_descriptor): New struct.
25315 (grub_openbsd_find_ramdisk32): New prototype.
25316 (grub_openbsd_find_ramdisk64): Likewise.
25317 * include/grub/i386/coreboot/loader.h: Removed.
25318 * include/grub/i386/efi/loader.h: Likewise.
25319 * include/grub/i386/ieee1275/loader.h: Likewise.
25320 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25321 to grub_uint32_t.
25322 * include/grub/i386/loader.h: Removed.
25323 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25324 value.
25325 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25326 (grub_phys_addr_t): New type.
25327 (grub_vtop): New inline function.
25328 (grub_map_memory): Likewise.
25329 (grub_unmap_memory): Likewise.
25330 * include/grub/i386/multiboot/loader.h: Removed.
25331 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25332 (NETBSD_BTINFO_CONSOLE): New definition.
25333 (NETBSD_BTINFO_SYMTAB): Likewise.
25334 (NETBSD_BTINFO_MODULES): Likewise.
25335 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25336 (grub_netbsd_bootinfo): New struct.
25337 (grub_netbsd_btinfo_common): Use explicit bitsize.
25338 (grub_netbsd_btinfo_mmap_entry): Removed.
25339 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25340 (grub_netbsd_btinfo_bootdisk): New struct.
25341 (grub_netbsd_btinfo_symtab): Likewise.
25342 (grub_netbsd_btinfo_serial): Likewise.
25343 (grub_netbsd_btinfo_modules): Likewise.
25344 (grub_netbsd_btinfo_framebuf): Likewise.
25345 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25346 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25347 Likewise.
25348 (grub_openbsd_bootargs): Use explicit bitsize.
25349 (grub_openbsd_bootarg_console): New struct.
25350 (GRUB_OPENBSD_COM_MAJOR): New definition.
25351 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25352 * include/grub/i386/pc/efiemu.h: Removed.
25353 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25354 * include/grub/i386/qemu/loader.h: Removed.
25355 * include/grub/i386/relocator.h: Rewritten.
25356 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25357 * include/grub/mips/memory.h: New file.
25358 * include/grub/mips/multiboot.h: Rewritten.
25359 * include/grub/mips/relocator.h: Rewritten.
25360 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25361 (grub_vtop): New function.
25362 (grub_map_memory): Likewise.
25363 (grub_unmap_memory): Likewise.
25364 * include/grub/misc.h (ALIGN_DOWN): New definition.
25365 * include/grub/mm.h (grub_mm_check_real): New proto.
25366 (GRUB_MM_CHECK): New definition.
25367 * include/grub/mm_private.h: New file.
25368 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25369 (grub_multiboot_get_mbi_size): Removed.
25370 (grub_multiboot_make_mbi): Change prottype.
25371 (grub_multiboot_set_accepts_video): New proto.
25372 (grub_multiboot_add_elfsyms): Likewise.
25373 (grub_multiboot_payload_eip): New variable.
25374 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25375 New prototype.
25376 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25377 New definition.
25378 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25379 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25380 * include/grub/powerpc/ieee1275/loader.h: Removed.
25381 * include/grub/powerpc/memory.h: New file.
25382 * include/grub/powerpc/relocator.h: Likewise.
25383 * include/grub/relocator.h: Likewise.
25384 * include/grub/relocator_private.h: Likewise.
25385 * include/grub/sparc64/ieee1275/loader.h: Removed.
25386 * include/grub/x86_64/memory.h: New file.
25387 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25388 (grub_xnu_heap_malloc): Likewise.
25389 (grub_xnu_heap_real_start): Removed.
25390 (grub_xnu_heap_start): Likewise.
25391 (grub_xnu_relocator): New variable.
25392 (grub_xnu_heap_target_start): Likewise.
25393 * tests/util/grub-shell.in: Support non-pc.
25394 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25395
25396 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25397
25398 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25399 on malloc error.
25400 (grub_bidi_logical_to_visual): Check that malloc succeded.
25401 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25402 puts.
25403 (grub_xputs_normal): Likewise.
25404
25405 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25406
25407 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25408 extra_dist.
25409
25410 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25411
25412 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25413
25414 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25415
25416 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25417
25418 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25419
25420 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25421 dprintf.
25422
25423 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25424
25425 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25426
25427 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25428
25429 * grub-core/normal/term.c (print_more): Fix a memory leak.
25430 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25431 (grub_xputs_normal): Likewise.
25432
25433 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25434
25435 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25436 the begining of the string
25437
25438 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25439
25440 * grub-core/script/script.c (grub_script_parse): Free parsed on
25441 failure.
25442
25443 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25444
25445 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25446 on failure.
25447
25448 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25449
25450 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25451 return.
25452
25453 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25454
25455 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25456 (scroll_up): Fix a memory leak.
25457
25458 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25459
25460 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25461 errors.
25462
25463 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25464
25465 Handle USB pendrives exposed as floppies.
25466
25467 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25468 floppy.
25469 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25470 Check for partitions on all devices.
25471
25472 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25473
25474 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25475 (readkey): Likewise.
25476
25477 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25478
25479 Multiple variable names support to "export" command.
25480
25481 * normal/context.c (grub_cmd_export): "export" command supports
25482 multiple variable names.
25483
25484 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25485
25486 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25487 --target=drive output to Mach device name.
25488
25489 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25490
25491 New Automake based build system for GRUB.
25492
25493 * ABOUT-NLS: New file.
25494 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25495 in Makefile.util.def file.
25496 * Makefile.util.def: New file. Autogen build definitions file for
25497 GRUB host utils.
25498 * conf/Makefile.common: New file. Common variables for GRUB host
25499 utils and target modules.
25500 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25501 * docs/Makefile.am: New file. Automake file for docs.
25502 * gentpl.py: New file. Python script to generate Autogen
25503 template.
25504 * grub-core/Makefile.am: New file. GRUB target modules' rules
25505 that doesn't fit in Makefile.core.def file.
25506 * grub-core/Makefile.core.def: New file. Autogen build
25507 definitions file for GRUB target modules.
25508 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25509 specific setjmp.S file.
25510 * po/Makefile.am: New file.
25511
25512 * .bzrignore: New ignores.
25513 * INSTALL: New requirements, without Ruby.
25514 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25515 * autogen.sh: Updated to invoke autogen as necessary.
25516 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25517 and defines for Automake conditionals.
25518 * geninit.sh: Refactoring.
25519
25520 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25521 necessary.
25522 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25523 New prototype.
25524
25525 * include/grub/test.h: Fix functional test modules' naming.
25526 * grub-core/tests/example_functional_test.c: Fix test module name.
25527
25528 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25529 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25530 * util/grub-editenv.c: Likewise.
25531 * util/grub-fstest.c: Likewise.
25532 * util/grub-mkdevicemap.c: Likewise.
25533 * util/grub-mkfont.c: Likewise.
25534 * util/grub-mkimage.c: Likewise.
25535 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25536 * util/grub-probe.c: Likewise.
25537 * util/grub-script-check.c: Likewise.
25538 * util/i386/pc/grub-setup.c: Likewise.
25539 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25540
25541 * tests/util/grub-shell.in: Fix override directory path.
25542 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25543 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25544
25545 * util/lvm.c: Update #includes.
25546 * util/raid.c: Likewise.
25547 * util/resolve.c: Likewise.
25548 * grub-core/bus/emu/pci.c: Likewise.
25549 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25550 * grub-core/lib/posix_wrap/string.h: Likewise.
25551 * grub-core/kern/emu/main.c: Likewise.
25552
25553 * grub-core/gensymlist.sh: New file. Script for generating kernel
25554 symbols file.
25555 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25556
25557 * grub-core/gentrigtables.c: Fix unused variable warnings.
25558
25559 * Makefile.in: Removed.
25560 * conf/any-emu.rmk: Removed.
25561 * conf/common.rmk: Removed.
25562 * conf/i386-coreboot.rmk: Removed.
25563 * conf/i386-efi.rmk: Removed.
25564 * conf/i386-ieee1275.rmk: Removed.
25565 * conf/i386-multiboot.rmk: Removed.
25566 * conf/i386-pc.rmk: Removed.
25567 * conf/i386-qemu.rmk: Removed.
25568 * conf/i386.rmk: Removed.
25569 * conf/mips-yeeloong.rmk: Removed.
25570 * conf/mips.rmk: Removed.
25571 * conf/powerpc-ieee1275.rmk: Removed.
25572 * conf/sparc64-ieee1275.rmk: Removed.
25573 * conf/tests.rmk: Removed.
25574 * conf/x86-efi.rmk: Removed.
25575 * conf/x86_64-efi.rmk: Removed.
25576 * gendistlist.sh: Removed.
25577 * geninitheader.sh: Removed.
25578 * genkernsyms.sh.in: Removed.
25579 * genmk.rb: Removed.
25580 * gensymlist.sh.in: Removed.
25581 * mkinstalldirs: Removed.
25582 * boot: Moved ...
25583 * grub-core/boot: ... to here.
25584 * bus: Moved ...
25585 * grub-core/bus: ... to here.
25586 * commands: Moved ...
25587 * grub-core/commands: ... to here.
25588 * disk: Moved ...
25589 * grub-core/disk: ... to here.
25590 * efiemu: Moved ...
25591 * grub-core/efiemu: ... to here.
25592 * font: Moved ...
25593 * grub-core/font: ... to here.
25594 * fs: Moved ...
25595 * grub-core/fs: ... to here.
25596 * gencmdlist.sh: Moved ...
25597 * grub-core/gencmdlist.sh: ... to here.
25598 * genemuinit.sh: Moved ...
25599 * grub-core/genemuinit.sh: ... to here.
25600 * genemuinitheader.sh: Moved ...
25601 * grub-core/genemuinitheader.sh: ... to here.
25602 * genfslist.sh: Moved ...
25603 * grub-core/genfslist.sh: ... to here.
25604 * genhandlerlist.sh: Moved ...
25605 * grub-core/genhandlerlist.sh: ... to here.
25606 * genmoddep.awk: Moved ...
25607 * grub-core/genmoddep.awk: ... to here.
25608 * genmodsrc.sh: Moved ...
25609 * grub-core/genmodsrc.sh: ... to here.
25610 * genpartmaplist.sh: Moved ...
25611 * grub-core/genpartmaplist.sh: ... to here.
25612 * genparttoollist.sh: Moved ...
25613 * grub-core/genparttoollist.sh: ... to here.
25614 * genterminallist.sh: Moved ...
25615 * grub-core/genterminallist.sh: ... to here.
25616 * gentrigtables.c: Moved ...
25617 * grub-core/gentrigtables.c: ... to here.
25618 * genvideolist.sh: Moved ...
25619 * grub-core/genvideolist.sh: ... to here.
25620 * gettext: Moved ...
25621 * grub-core/gettext: ... to here.
25622 * gfxmenu: Moved ...
25623 * grub-core/gfxmenu: ... to here.
25624 * gnulib: Moved ...
25625 * grub-core/gnulib: ... to here.
25626 * hello: Moved ...
25627 * grub-core/hello: ... to here.
25628 * hook: Moved ...
25629 * grub-core/hook: ... to here.
25630 * io: Moved ...
25631 * grub-core/io: ... to here.
25632 * kern: Moved ...
25633 * grub-core/kern: ... to here.
25634 * lib: Moved ...
25635 * grub-core/lib: ... to here.
25636 * loader: Moved ...
25637 * grub-core/loader: ... to here.
25638 * mmap: Moved ...
25639 * grub-core/mmap: ... to here.
25640 * normal: Moved ...
25641 * grub-core/normal: ... to here.
25642 * partmap: Moved ...
25643 * grub-core/partmap: ... to here.
25644 * parttool: Moved ...
25645 * grub-core/parttool: ... to here.
25646 * script: Moved ...
25647 * grub-core/script: ... to here.
25648 * term: Moved ...
25649 * grub-core/term: ... to here
25650 * tests/example_functional_test.c: Moved ...
25651 * grub-core/tests/example_functional_test.c: ... to here.
25652 * tests/lib/functional_test.c: Moved ...
25653 * grub-core/tests/lib/functional_test.c: ... to here.
25654 * tests/lib/test.c: Moved ...
25655 * grub-core/tests/lib/test.c: ... to here.
25656 * video: Moved ...
25657 * grub-core/video: ... to here.
25658
25659 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25660
25661 Replace --enable-grub-emu-modules with grub-emu-lite.
25662
25663 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25664 cache.S.
25665
25666 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25667 * kern/emu/full.c: New file. For grub-emu specific initialization.
25668 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25669 * kern/emu/main.c: Call initialization function grub_emu_init.
25670
25671 * Makefile.in: Include grub-emu-lite in install.
25672 * commands/parttool.c: Use grub_no_autoload to differentiate
25673 between grub-emu and grub-emu-lite.
25674 * include/grub/misc.h: New variable grub_no_autoload.
25675
25676 * conf/any-emu.rmk: New rules for grub-emu-lite.
25677 * configure.ac: Remove --enable-grub-emu-modules.
25678 * genmk.rb: Cleanup unnecessary rules.
25679 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25680
25681 * normal/main.c: Don't load list files on grub-emu-lite.
25682 * util/misc.c (grub_arch_sync_caches): Removed.
25683
25684 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25685
25686 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25687 grub-mkimage rather than grub-mkelfimage.
25688 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25689
25690 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25691
25692 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25693 a key after CapsLock or NumLock. It's just a qemu bug.
25694
25695 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25696
25697 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25698 needed by libusb wrapper.
25699
25700 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25701
25702 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25703
25704 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25705
25706 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25707 --nounzip is passed.
25708
25709 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25710
25711 USB hotunplugging and USB serial support.
25712
25713 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25714 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25715 (grub_uhci_transfer): Respect timeout and set *actual.
25716 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25717 non-standard length.
25718 (grub_usb_device_attach): Autoload modules.
25719 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25720 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25721 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25722 users updated.
25723 (grub_usb_add_hub): Fill nports and children.
25724 (attach_root_port): Receive hub instead of controller.
25725 All users updated. Fill hub->devices.
25726 (grub_usb_root_hub): Allocate hub->devices.
25727 (detach_device): New function.
25728 (poll_nonroot_hub): Fill children and detach devices.
25729 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25730 actual arguments. All users updated.
25731 (grub_usb_bulk_read_extended): New function.
25732 * bus/usb/serial/common.c: New file.
25733 * bus/usb/serial/ftdi.c: Likewise.
25734 * bus/usb/serial/pl2303.c: Likewise.
25735 * commands/terminal.c (handle_command): Support wildcard.
25736 * commands/usbtest.c: Output "Unknown" instead of empty string.
25737 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25738 (usbserial_common_mod_SOURCES): New variable.
25739 (usbserial_common_mod_CFLAGS): Likewise.
25740 (usbserial_common_mod_LDFLAGS): Likewise.
25741 (pkglib_MODULES): Add usbserial_pl2303.mod.
25742 (usbserial_pl2303_mod_SOURCES): New variable.
25743 (usbserial_pl2303_mod_CFLAGS): Likewise.
25744 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25745 (pkglib_MODULES): Add usbserial_ftdi.mod.
25746 (usbserial_ftdi_mod_SOURCES): New variable.
25747 (usbserial_ftdi_mod_CFLAGS): Likewise.
25748 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25749 (pkglib_MODULES): Add serial.mod.
25750 (serial_mod_SOURCES): New variable.
25751 (serial_mod_CFLAGS): Likewise.
25752 (serial_mod_LDFLAGS): Likewise.
25753 * conf/i386-pc.rmk: Likewise.
25754 * conf/mips-yeeloong.rmk: Likewise.
25755 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25756 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25757 * disk/usbms.c (first_available_slot): New variable.
25758 (grub_usbms_attach): Don't reuse free slots due to potential cache
25759 problems.
25760 * include/grub/serial.h: Moved to ..
25761 * include/grub/ns8250.h: ...this.
25762 * include/grub/serial.h: New file.
25763 * include/grub/term.h (grub_term_poll_usb): New variable.
25764 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25765 readkey. All users updated.
25766 (grub_terminfo_output_state): Pass term to put.
25767 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25768 (grub_usb_controller_dev): Add timeout and actual arguments to
25769 transfer. All users updated.
25770 (grub_usb_interface): New field detach_data.
25771 (grub_usb_device): New fields children and nports.
25772 (grub_usb_ep_type_t): New type.
25773 (grub_usb_get_ep_type): New function.
25774 (grub_usb_bulk_read_extended): Likewise.
25775 * include/grub/usbdesc.h (grub_usb_desc): New type.
25776 * include/grub/usbserial.h: New file.
25777 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25778 * kern/term.c (grub_term_poll_usb): New variable.
25779 (grub_getkey): Call grub_term_poll_usb if set.
25780 (grub_checkkey): Likewise.
25781 (grub_getkeystatus): Likewise.
25782 * term/serial.c: Moved controller-specific parts to ...
25783 * term/ns8250.c: ... here.
25784 * term/serial.c: Mostly rewritten.
25785 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25786 according to spec.
25787
25788 2010-08-20 Robert Millan <rmh@gnu.org>
25789
25790 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25791 a separate module and maybe other interesting combinations.
25792
25793 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25794 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25795 (kfreebsd_entry): Add generic filesystem module load routine.
25796 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25797
25798 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25799
25800 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25801 "numcenter" (I misunderstood the purpose of this entry).
25802 * docs/grub.texi (sendkey): Likewise.
25803
25804 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25805
25806 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25807 status flag options; simply omitting the option is equivalent and
25808 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25809 (keysym_table): Rename "num5numlock" to "numlock".
25810 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25811 can uniformly say that only the last of multiple `sendkey'
25812 invocations has any effect.
25813 * docs/grub.texi (sendkey): New section.
25814
25815 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25816
25817 * commands/i386/pc/sendkey.c (options): Fix three typos.
25818
25819 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25820
25821 Implement sendkey support.
25822
25823 * commands/i386/pc/sendkey.c: New file.
25824 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25825 (sendkey_mod_SOURCES): New variable.
25826 (sendkey_mod_CFLAGS): Likewise.
25827 (sendkey_mod_LDFLAGS): Likewise.
25828
25829 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25830
25831 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25832 fix warnings from Autoconf.
25833
25834 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25835
25836 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25837 to avoid false positives with some assemblers that output things
25838 like "someprefix_func" as part of their output.
25839
25840 2010-08-15 Robert Millan <rmh@gnu.org>
25841
25842 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25843 errors.
25844 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25845 grub_get_libzfs_handle() errors.
25846
25847 2010-08-14 Robert Millan <rmh@gnu.org>
25848
25849 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25850 filesystem is not ZFS.
25851
25852 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25853
25854 Fix for misspelled color names defaulting to black/black (bug
25855 reported by Doug Nazar)
25856
25857 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25858 status to prototype.
25859 * normal/color.c (grub_parse_color_name_pair): Return failure
25860 status.
25861 (grub_env_write_color_normal): Ignore bad color names.
25862 (grub_env_write_color_highlight): Likewise.
25863 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25864
25865 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25866
25867 "shift" command support to GRUB script.
25868
25869 * include/grub/script_sh.h (grub_script_shift): New prototype.
25870 * script/execute.c (grub_script_shift): New function.
25871 * script/main.c (grub_script_init): Register shift command.
25872 (grub_script_fini): Unregister shift command.
25873 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25874
25875 * tests/grub_script_shift.in: New testcase.
25876 * conf/tests.rmk: Rules for new testcase.
25877
25878 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25879
25880 "continue" command support to GRUB script.
25881
25882 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25883 (grub_script_break): Continue support.
25884 * script/main.c (grub_script_init): Register continue command.
25885 (grub_script_fini): Unregister continue command.
25886
25887 * tests/grub_script_continue.in: New testcase.
25888 * conf/tests.rmk: Rules for new testcase.
25889
25890 2010-08-12 BVK Chaitanya <bvk@dbook>
25891
25892 "break" command support to GRUB script.
25893
25894 * conf/common.rmk: Rule updates to grub-script-check.
25895 * include/grub/misc.h (grub_min): New function.
25896 * include/grub/script_sh.h (grub_script_init): New prototype.
25897 (grub_script_fini): New prototype.
25898 (grub_script_break): New prototype.
25899 * script/main.c (grub_script_init): New function.
25900 (grub_script_fini): New function.
25901 * script/execute.c (grub_script_break): New function.
25902 * normal/main.c: Calls to grub_script_{init,fini}.
25903 * util/grub-script-check.c (grub_script_break): New function.
25904
25905 * tests/grub_script_break.in: New testcase.
25906 * conf/tests.rmk: Rules for new test case.
25907
25908 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25909
25910 Function parameters support to GRUB script.
25911
25912 * script/yylex.l (VARIABLE): Regular expression update.
25913 * script/function.c (grub_script_function_call): Moved ...
25914 * script/execute.c (grub_script_function_call): ... to here.
25915 (grub_script_execute_arglist_to_argv): Removed.
25916 (grub_script_arglist_to_argv): New function.
25917 * script/argv.c: New file.
25918 (grub_script_argv_free): New function.
25919 (grub_script_argv_next): Likewise.
25920 (grub_script_argv_append): Likewise.
25921 (grub_script_argv_split_append): Likewise.
25922 * include/grub/script_sh.h (grub_script_argv): New struct.
25923 (grub_script_argv_free): New function.
25924 (grub_script_argv_next): Likewise.
25925 (grub_script_argv_append): Likewise.
25926 (grub_script_argv_split_append): Likewise.
25927
25928 * conf/common.rmk (normal.mod): New source script/argv.c.
25929
25930 * tests/grub_script_echo1.in: More tests.
25931 * tests/grub_script_vars1.in: Likewise.
25932 * tests/grub_script_functions.in: New test case.
25933 * conf/tests.rmk: Rules for new testcase.
25934
25935 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25936
25937 Remove grub_script_cmdblock struct.
25938
25939 * include/grub/script_sh.h: Remove grub_script_cmdblock.
25940 * script/parser.y: Likewise.
25941 * script/execute.c: Rename cmdblock suffix to cmdlist.
25942 * script/script.c: Likewise.
25943 * util/grub-script-check.c: Likewise.
25944
25945 2010-08-11 Yves Blusseau <blusseau@zetam.org>
25946
25947 * .bzrignore: add grub-macho2img
25948
25949 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25950
25951 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
25952
25953 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
25954
25955 Remove the dump of sm712 initialisation sequence.
25956
25957 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
25958 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
25959 (GRUB_VGA_IO_MISC_WRITE): Likewise.
25960 (GRUB_VGA_CR_*): Added many registers.
25961 (GRUB_VGA_SR_*): Likewise.
25962 (GRUB_VGA_GR_*): Likewise.
25963 (grub_vga_write_arx): New function.
25964 (grub_video_hw_config): New struct.
25965 (grub_vga_set_geometry): New function.
25966 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
25967 GRUB_PCI_CLASS_SUBCLASS_VGA.
25968 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
25969 * video/sm712.c (grub_sm712_write_reg): New function
25970 (grub_sm712_read_reg): Likewise.
25971 (grub_sm712_sr_write): Likewise.
25972 (grub_sm712_gr_write): Likewise.
25973 (grub_sm712_cr_write): Likewise.
25974 (grub_sm712_write_arx): Likewise.
25975 (grub_sm712_cr_shadow_write): Likewise.
25976 (grub_sm712_write_dda_lookup): Likewise.
25977 (grub_video_sm712_setup): Initialise the video rather then
25978 blindly replay the dump.
25979 (main) [TEST]: Add a routine to be able to compile as standalone for
25980 tests.
25981 * video/sm712_init.c (sm712_init): Removed.
25982 (sm712_sr_seq1): New array.
25983 (sm712_sr_seq2): Likewise.
25984
25985 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25986
25987 * include/grub/vga.h: Add missing grub/pci.h include.
25988
25989 2010-08-10 Yves Blusseau <blusseau@zetam.org>
25990
25991 * util/grub-macho2img.c (main): fix typo
25992
25993 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
25994
25995 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
25996 (grub_vga_gr_read): Likewise.
25997 (grub_vga_cr_write): Likewise.
25998 (grub_vga_cr_read): Likewise.
25999 (grub_vga_sr_write): Likewise.
26000 (grub_vga_sr_read): Likewise.
26001 (grub_vga_palette_read): Likewise.
26002 (grub_vga_palette_write): Likewise.
26003 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26004 (grub_sm712_sr_read): New function.
26005 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26006 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26007
26008 2010-08-09 Robert Millan <rmh@gnu.org>
26009
26010 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26011 out unused variables on non-ZFS build.
26012
26013 2010-08-08 Robert Millan <rmh@gnu.org>
26014
26015 Fix path generation for sub-filesystems in ZFS.
26016
26017 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26018 missing slash.
26019
26020 2010-08-08 Robert Millan <rmh@gnu.org>
26021
26022 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26023
26024 2010-08-08 Robert Millan <rmh@gnu.org>
26025
26026 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26027 exist, issue a proper error message (rely on `ls' for translated
26028 strings).
26029
26030 2010-08-08 Robert Millan <rmh@gnu.org>
26031
26032 Fix grub-probe invocation.
26033
26034 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26035
26036 2010-08-04 Robert Millan <rmh@gnu.org>
26037
26038 * configure.ac: Remove checks for getfsstat() and getmntany().
26039 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26040 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26041 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26042 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26043 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26044 function.
26045 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26046 via find_mount_point_from_dir() and getfsstat() / getmntany().
26047
26048 2010-08-04 Robert Millan <rmh@gnu.org>
26049
26050 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26051 (grub_find_zpool_from_mount_point): Merge into ...
26052 (grub_find_zpool_from_dir): ... this.
26053 * kern/emu/misc.c: Likewise.
26054
26055 * kern/emu/misc.c
26056 (grub_make_system_path_relative_to_its_root): Replace
26057 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26058 with grub_find_zpool_from_dir().
26059 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26060
26061 2010-08-04 Robert Millan <rmh@gnu.org>
26062
26063 Support OpenSolaris in ZFS device resolution.
26064
26065 * configure.ac: Check for getmntany().
26066 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26067 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26068 support.
26069
26070 2010-08-03 Robert Millan <rmh@gnu.org>
26071
26072 Fix grub-emu build.
26073
26074 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26075 * include/grub/emu/misc.h: ... here.
26076
26077 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26078 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26079
26080 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26081 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26082 (grub_get_libzfs_handle): Move to ...
26083 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26084 (grub_get_libzfs_handle): ... here.
26085
26086 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26087
26088 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26089 as command name case.
26090
26091 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26092
26093 * disk/raid.c (insert_array): Select unique numbers for named arrays
26094 as well, for use as keys in the disk cache.
26095
26096 2010-08-01 Robert Millan <rmh@gnu.org>
26097
26098 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26099 kFreeBSD device name, except on ZFS where the filesystem label is
26100 used.
26101 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26102 `/boot/zfs/zpool.cache'.
26103 Set mountfrom kernel variable using ${kfreebsd_device}.
26104
26105 2010-08-01 Robert Millan <rmh@gnu.org>
26106
26107 Make it even harder to use uninitialized `libzfs_handle' (and
26108 make the interface a bit simpler).
26109
26110 * include/grub/util/misc.h (grub_util_init_libzfs)
26111 (libzfs_handle): Remove.
26112 (grub_get_libzfs_handle): New prototype.
26113
26114 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26115 attribute.
26116 (grub_util_init_libzfs): Remove.
26117 (grub_get_libzfs_handle): New function.
26118
26119 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26120 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26121 accessing `libzfs_handle' directly.
26122
26123 2010-08-01 Robert Millan <rmh@gnu.org>
26124
26125 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26126 (grub_find_zpool_from_mount_point): New function prototypes.
26127
26128 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26129 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26130
26131 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26132 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26133 `static' attribute.
26134
26135 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26136 finding zpool from mount point into ...
26137 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26138
26139 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26140 requested path is part of a ZFS pool, use
26141 grub_find_zpool_from_mount_point() to detect its filesystem name,
26142 and generate a path with `/fsname@path' syntax.
26143
26144 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26145
26146 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26147 (void) rather than () so that this is a proper prototype.
26148
26149 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26150
26151 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26152
26153 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26154
26155 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26156 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26157
26158 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26159
26160 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26161
26162 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26163
26164 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26165
26166 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26167
26168 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26169 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26170 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26171 disable gfxpayload.
26172 (Shell-like scripting): Add real content.
26173 (Serial terminal): Suggest `terminal_input serial; terminal_output
26174 serial' rather than putting the two commands on separate lines,
26175 since console input will be inoperative after the first command.
26176 (menuentry): Document --class, --users, and --hotkey options.
26177 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26178 Vladimir Serbinenko).
26179
26180 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26181 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26182
26183 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26184
26185 2010-08-01 Robert Millan <rmh@gnu.org>
26186
26187 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26188 (grub_find_zpool_from_mount_point): New function prototypes.
26189
26190 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26191 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26192
26193 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26194 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26195 `static' attribute.
26196
26197 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26198 finding zpool from mount point into ...
26199 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26200
26201 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26202 requested path is part of a ZFS pool, use
26203 grub_find_zpool_from_mount_point() to detect its filesystem name,
26204 and generate a path with `/fsname@path' syntax.
26205
26206 2010-08-01 Robert Millan <rmh@gnu.org>
26207
26208 Prevent accidental use of uninitialized libzfs_handle.
26209
26210 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26211 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26212 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26213
26214 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26215
26216 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26217 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26218
26219 2010-08-01 Robert Millan <rmh@gnu.org>
26220
26221 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26222
26223 2010-07-31 Robert Millan <rmh@gnu.org>
26224
26225 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26226
26227 2010-07-31 Robert Millan <rmh@gnu.org>
26228
26229 * kern/emu/misc.c: Add missing license header.
26230
26231 2010-07-31 Robert Millan <rmh@gnu.org>
26232
26233 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26234
26235 * include/grub/util/libnvpair.h: Include `<config.h>'.
26236 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26237 declaring libnvpair prototypes ourselves.
26238 * include/grub/util/libzfs.h: Include `<config.h>'.
26239 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26240 declaring libzfs prototypes ourselves.
26241
26242 (libzfs_handle): Moved to ...
26243 * include/grub/util/misc.h (libzfs_handle): ... here.
26244 Include `<grub/util/libzfs.h>'.
26245
26246 2010-07-30 Robert Millan <rmh@gnu.org>
26247
26248 * include/grub/emu/misc.h: Add missing license header.
26249
26250 2010-07-30 Robert Millan <rmh@gnu.org>
26251
26252 Enable `grub-probe -t device' resolution on ZFS.
26253
26254 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26255 * include/grub/util/libnvpair.h: New file.
26256 * include/grub/util/libzfs.h: New file.
26257
26258 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26259 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26260 `<grub/util/libnvpair.h>'.
26261 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26262
26263 (find_mount_point_from_dir): New static function.
26264 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26265 function.
26266 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26267 find_root_device_from_libzfs() before ressorting to find_root_device().
26268
26269 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26270 prototype.
26271 * util/misc.c: Include `<grub/util/libzfs.h>'.
26272 (grub_util_init_libzfs): New function.
26273 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26274 [HAVE_LIBZFS] (fini_libzfs): New static function.
26275 (grub_util_init_libzfs): New function.
26276 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26277
26278 2010-07-30 Robert Millan <rmh@gnu.org>
26279
26280 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26281 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26282 `warn_unused_result' attribute.
26283 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26284 (grub_xasprintf, grub_xvasprintf): Likewise.
26285 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26286
26287 2010-07-29 Robert Millan <rmh@gnu.org>
26288
26289 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26290 (probe): Handle `PRINT_FS_LABEL'.
26291 (main): Handle `-t fs_label'.
26292
26293 2010-07-29 Robert Millan <rmh@gnu.org>
26294
26295 * configure.ac: Remove grub-mkisofs checks.
26296
26297 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26298
26299 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26300 Reported by: Lennart Sorensen.
26301
26302 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26303
26304 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26305 prior to terminal_input/terminal_output separation. It's been over 1.5
26306 years and those versions weren't widely deployed.
26307
26308 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26309
26310 * disk/raid.c (insert_array): Don't count named arrays when looking
26311 for unused array numbers.
26312 Reported and tested by: Michael Guntsche.
26313
26314 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26315
26316 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26317 implementation of this so that grub-emu links again, with a note
26318 that this should support hotplugging in the future.
26319
26320 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26321
26322 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26323
26324 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26325
26326 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26327 handle on failure.
26328 (grub_loopback_close): Remove empty function.
26329 (grub_loopback_dev): Remove close method.
26330
26331 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26332
26333 Disable EFI cursor when the EFI console becomes inactive.
26334
26335 * term/efi/console.c (grub_efi_console_init): New function.
26336 (grub_efi_console_fini): New function.
26337 (grub_console_term_output): Register init and fini methods.
26338
26339 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26340
26341 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26342 sh script.
26343
26344 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26345
26346 * disk/loopback.c (grub_loopback): Replace filename with file.
26347 (delete_loopback): Handle new semantics.
26348 (grub_cmd_loopback): Likewise.
26349 (grub_loopback_iterate): Likewise.
26350 (grub_loopback_close): Likewise.
26351
26352 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26353
26354 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26355 with -p "".
26356 Reported by: Tito Keitel.
26357
26358 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26359
26360 * docs/grub.texi (Naming convention): Document new naming convention.
26361
26362 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26363 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26364
26365 Generate device.map in something closer to the old ordering.
26366
26367 * util/deviceiter.c (struct device): New declaration.
26368 (compare_file_names): Rename to ...
26369 (compare_devices): ... this. Sort by kernel name in preference to
26370 the stable by-id name, but keep the latter as a fallback comparison.
26371 Update header comment.
26372 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26373 of `struct device' rather than of plain file names.
26374
26375 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26376
26377 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26378 on i386.
26379
26380 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26381
26382 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26383 hardcoding size.
26384 (setv1table): Likewise.
26385
26386 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26387
26388 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26389 removing the homehost if present.
26390 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26391 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26392 removing the homehost if present.
26393 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26394 if possible.
26395 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26396
26397 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26398 parameter. Set its pointer target to 0.
26399 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26400 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26401 `data_offset' value from the superblock for 1.x metadata.
26402 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26403 data on the device.
26404 (insert_array): Record the start sector of data on the device.
26405 (grub_raid_register): Pass start_sector parameters to
26406 grub_raid_list->detect and insert_array.
26407 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26408 member.
26409 (struct grub_raid): Add start_sector parameter to `detect'.
26410
26411 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26412 __attribute__ ((packed)), leaving a comment.
26413 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26414 (grub_mdraid_detect_09): ... here and ...
26415 (grub_mdraid_detect_1x): ... here.
26416
26417 2010-07-20 Peter Henn <peter.henn@web.de>
26418
26419 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26420 chunk size and disk size, which are already given as sector counts
26421 as distinct from the 0.90 units. Fetch the correct device number
26422 from the role table instead of using the table index.
26423
26424 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26425
26426 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26427 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26428 (WriteMostly1): New macro.
26429 Set array->name to NULL for metadata format 0.90. Add support for
26430 metadata 1.x. Fix some comments.
26431 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26432 few comments.
26433 * util/getroot.c (grub_util_get_grub_dev): Add support for
26434 /dev/md/name style devices.
26435
26436 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26437
26438 * .bzrignore: Ignore 20_linux_xen.
26439
26440 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26441
26442 * util/import_unicode.py: Remove unnecessary imports.
26443
26444 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26445
26446 Hotplugging and USB hub support.
26447
26448 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26449 (grub_ohci): Likewise.
26450 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26451 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26452 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26453 (GRUB_OHCI_CTRL_EDS): Likewise.
26454 (GRUB_OHCI_BULK_EDS): Likewise.
26455 (GRUB_OHCI_TDS): Likewise.
26456 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26457 (grub_ohci_ed_phys2virt): New function.
26458 (grub_ohci_virt_to_phys): Likewise.
26459 (grub_ohci_td_phys2virt): Likewise.
26460 (grub_ohci_td_virt2phys): Likewise.
26461 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26462 attachment.
26463 (grub_ohci_find_ed): New function.
26464 (grub_ohci_alloc_td): Likewise.
26465 (grub_ohci_free_td): Likewise.
26466 (grub_ohci_free_tds): Likewise.
26467 (grub_ohci_transfer): Use previously allocated memory.
26468 (grub_ohci_portstatus): Reset status changed bit.
26469 (grub_ohci_detect_dev): Supply status changed.
26470 (grub_ohci_fini_hw): Free memory.
26471 (grub_ohci_restore_hw): Reallocate memory.
26472 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26473 Reset status change.
26474 (grub_uhci_detect_dev): Supply status_change.
26475 * bus/usb/usb.c (attach_hooks): New var.
26476 (grub_usb_device_attach): New function.
26477 (grub_usb_register_attach_hook_class): Likewise.
26478 (grub_usb_unregister_attach_hook_class): Likewise.
26479 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26480 (grub_usb_add_hub): Reset connection changed bit.
26481 (attach_root_port): New function.
26482 (grub_usb_root_hub): Likewise.
26483 (poll_nonroot_hub): Likewise.
26484 (grub_usb_poll_devices): Likewise.
26485 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26486 * disk/usbms.c (grub_usbms_open): Use device hooks.
26487 (grub_usbms_iterate) :Poll devices.
26488 (grub_usbms_finddevs): Split into ...
26489 (grub_usbms_attach): ... this ...
26490 (grub_usbms_attach): ... and this.
26491 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26492 in detect_dev.
26493 (grub_usb_interface): New fields attached and detach_hook.
26494 (grub_usb_attach_hook_class): New type.
26495 (grub_usb_attach_desc): New struct.
26496 (grub_usb_register_attach_hook_class): New function.
26497 (grub_usb_unregister_attach_hook_class): Likewise.
26498 (grub_usb_poll_devices): Likewise.
26499 (grub_usb_device_attach): Likewise.
26500 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26501 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26502
26503 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26504
26505 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26506 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26507 delta determination style. Works with most NetBSD partitions too.
26508
26509 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26510
26511 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26512 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26513
26514 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26515
26516 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26517
26518 2010-07-14 Anton Blanchard <anton@samba.org>
26519
26520 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26521 ET_DYN files.
26522
26523 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26524
26525 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26526
26527 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26528
26529 * kern/partition.c (grub_partition_check_containment): New function to
26530 check that a partition is physically contained in a parent. Since
26531 offsets are relative (and non-negative), this reduces to checking that
26532 the partition ends before its parent.
26533 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26534 (grub_partition_iterate): Likewise.
26535 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26536 comments.
26537 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26538 partitions that start before their parent, and add debug printfs.
26539
26540 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26541
26542 * Makefile.in (.SUFFIX): Spell correctly, as ...
26543 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26544 bare module name without `.mod', e.g. `test') tried to invoke a
26545 Modula-2 compiler.
26546
26547 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26548
26549 * README: Point to the Info manual.
26550
26551 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26552
26553 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26554 2nd superblock position from partition size.
26555
26556 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26557
26558 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26559 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26560 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26561 outputs.
26562
26563 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26564
26565 Restructure SCSI .id handling.
26566 Reported and tested by: Aleš Nesrsta.
26567
26568 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26569 (grub_atapi_dev): Changed .name to "ata". New field .id.
26570 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26571 (grub_usbms_dev): New field .id.
26572 * disk/scsi.c (grub_scsi_iterate): Generate name.
26573 (grub_scsi_open): Parse name.
26574 * include/grub/scsi.h (grub_make_scsi_id): New function.
26575 (grub_scsi_dev): Change iterate and open to number instead of naming
26576 busses. All users updated.
26577 (grub_scsi): Remove name. Add .bus.
26578
26579 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26580
26581 * commands/help.c (grub_cmd_help): Fix a typo.
26582
26583 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26584
26585 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26586 Reported and tested by: Colin Watson.
26587
26588 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26589
26590 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26591 in this context.
26592
26593 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26594
26595 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26596
26597 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26598
26599 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26600 indentation.
26601
26602 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26603
26604 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26605 and disk/raid6_recover.c.
26606 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26607 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26608
26609 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26610
26611 * term/gfxterm.c (repaint_schedulded): Rename to ...
26612 (repaint_scheduled): ... this. Update all callers.
26613 (repaint_was_schedulded): Rename to ...
26614 (repaint_was_scheduled): ... this. Update all callers.
26615
26616 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26617
26618 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26619 which we expect to be handled by upper layers.
26620
26621 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26622
26623 * bus/usb/usbhub.c: #include time.h header.
26624
26625 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26626
26627 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26628 entry_name also for entries without stat blocks (e.g. ".."); fixes
26629 corruption of the first entry in a directory.
26630
26631 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26632
26633 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26634 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26635 doesn't work otherwise.
26636
26637 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26638
26639 * docs/grub.texi (Features): Update list of supported file systems.
26640 (GNU/Linux): Update for GRUB 2.
26641 (Serial terminal): Remove mention of --disable-serial, which was a
26642 GRUB Legacy configure option. Update instructions to use
26643 `terminal_input' and `terminal_output' rather than `terminal'.
26644 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26645 configuration' and `Installing GRUB using grub-install'.
26646 (Menu entry editor): Update for GRUB 2.
26647 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26648 Document new -a, -u, and -v options.
26649 (initrd): New section.
26650 (initrd16): New section.
26651 (linux): New section.
26652 (linux16): New section.
26653 (search): The `var' argument to `--set' is optional.
26654 (GRUB only offers a rescue shell): Go into a little more detail on
26655 drive ordering.
26656
26657 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26658
26659 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26660
26661 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26662
26663 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26664 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26665
26666 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26667
26668 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26669 install_prefix, in line with install_dos_part and install_bsd_part.
26670 Add new prefix variable, which is copied to install_prefix after
26671 comparing core.img in memory with the one read from disk in the
26672 no-embedding case, and use that rather than overwriting
26673 install_prefix immediately when installing to a partition.
26674 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26675 Bicakci.
26676
26677 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26678
26679 * configure.ac: Avoid == in test command, it's not portable.
26680 * util/grub.d/30_os-prober.in: Likewise.
26681
26682 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26683
26684 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26685
26686 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26687
26688 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26689 multiple (top-level) partmaps.
26690
26691 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26692
26693 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26694 Reported by: Tino Keitel.
26695
26696 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26697
26698 Bidi and diacritics support.
26699
26700 * Makefile.in (widthspec.bin): New target.
26701 (widthspec.h): Likewise.
26702 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26703 * autogen.sh: Generate unidata.c.
26704 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26705 * commands/ls.c (grub_ls_list_devices): Likewise.
26706 (grub_ls_list_files): Likewise.
26707 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26708 (grub_mini_cmd_lsmod): Likewise.
26709 * commands/read.c: Likewise.
26710 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26711 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26712 * lib/arg.c (grub_arg_show_help): Likewise.
26713 * lib/crypto.c (grub_password_get): Likewise.
26714 * normal/auth.c (grub_username_get): Likewise.
26715 * normal/misc.c (grub_normal_print_device_info): Likewise.
26716 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26717 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26718 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26719 (normal/charset.c_DEPENDENCIES): New variable.
26720 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26721 (pkglib_MODULES): Remove charset.mod.
26722 (charset_mod_SOURCES): Removed.
26723 (charset_mod_CFLAGS): Likewise.
26724 (charset_mod_LDFLAGS): Likewise.
26725 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26726 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26727 and term/tparm.c.
26728 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26729 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26730 (kernel_img_HEADERS): Add terminfo.h.
26731 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26732 Fill ->font. Reverse ascii bitmaps.
26733 (grub_font_get_xheight): New function.
26734 * font/font.c (grub_font_get_string_width): Moved from here ...
26735 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26736 * font/font.c (grub_font_draw_string): Moved from here ...
26737 * gfxmenu/font.c (grub_font_draw_string): ... here.
26738 * font/font.c (grub_font_dup_glyph): New function.
26739 (grub_font_blit_glyph): Likewise.
26740 (grub_font_blit_glyph_mirror): Likewise.
26741 (blit_comb): Likewise.
26742 (grub_font_construct_dry_run): Likewise.
26743 (grub_font_get_constructed_device_width): Likewise.
26744 (grub_font_construct_glyph): Likewise.
26745 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26746 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26747 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26748 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26749 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26750 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26751 (grub_font_get_xheight): New proto.
26752 (grub_font_get_constructed_device_width): Likewise.
26753 (grub_font_construct_glyph): Likewise.
26754 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26755 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26756 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26757 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26758 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26759 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26760 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26761 (grub_console_getcharwidth): Likewise.
26762 * include/grub/misc.h (grub_xputs): New proto.
26763 (grub_puts): Inlined.
26764 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26765 (grub_normal_get_line_counter): Removed.
26766 (grub_install_newline_hook): Likewise.
26767 (grub_normal_get_char_counter): New proto.
26768 (grub_normal_reset_more): Likewise.
26769 (grub_xputs_normal): Likewise.
26770 * include/grub/powerpc/ieee1275/console.h: Removed.
26771 * include/grub/sparc64/ieee1275/console.h: Likewise.
26772 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26773 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26774 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26775 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26776 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26777 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26778 (grub_term_input): Pass reference to self. All users updated.
26779 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26780 Pass reference to self. New fields normal_color, highlight_color and
26781 data. All users updated.
26782 (grub_putchar): Removed.
26783 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26784 (grub_unicode_estimate_width): New function.
26785 (grub_term_getcharwidth): Add defaults.
26786 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26787 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26788 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26789 (grub_cls): Remove EXPORT_FUNC.
26790 (grub_setcolorstate): Inline.
26791 (grub_newline_hook): Removed.
26792 * include/grub/terminfo.h: Rewritten. All users updated.
26793 * include/grub/unicode.h: New file.
26794 * include/grub/video.h (grub_video_signed_rect): New type.
26795 * kern/emu/console.c (grub_console_highlight_color): Removed.
26796 (grub_console_normal_color): Likewise.
26797 (grub_console_standard_color): Made static.
26798 (grub_ncurses_putchar): Remove mapping.
26799 (grub_ncurses_getcharwidth): Removed.
26800 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26801 (grub_ncurses_setcolor): Removed.
26802 (grub_ncurses_getcolor): Likewise.
26803 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26804 (grub_console_putchar): ... this.
26805 (grub_console_putchar): Handle argument difference.
26806 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26807 console_init_early and console_init_lately.
26808 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26809 * kern/misc.c (grub_puts): Removed.
26810 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26811 (grub_vsnprintf_real): Remove str = NULL support.
26812 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26813 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26814 * kern/term.c (grub_putcode): Renamed to ...
26815 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26816 (grub_putchar): Removed.
26817 (grub_xputs_dumb): New function.
26818 (grub_xputs): New variable.
26819 * lib/charset.c: Move from here ...
26820 * normal/charset.c: ... to here.
26821 (grub_ucs4_to_utf8): New function.
26822 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26823 (join_types): New variable.
26824 (unpack_join): New function.
26825 (bidi_types): New variable.
26826 (unpack_bidi): New function.
26827 (get_bidi_type): Likewise.
26828 (get_join_type): Likewise.
26829 (is_mirrored): Likewise.
26830 (grub_unicode_get_comb_type): Likewise.
26831 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26832 (is_type_after): Likewise.
26833 (grub_unicode_aglomerate_comb): Likewise.
26834 (bidi_line_wrap): Likewise.
26835 (grub_bidi_line_logical_to_visual): Likewise.
26836 (grub_bidi_logical_to_visual): Likewise.
26837 (grub_unicode_mirror_code): Likewise.
26838 (grub_unicode_shape_code): Likewise.
26839 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26840 Don't use grub_putchar.
26841 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26842 (grub_normal_reader_init): Likewise.
26843 (grub_xputs_saved): New variable.
26844 (GRUB_MOD_INIT): Set grub_xputs.
26845 (GRUB_MOD_FINI): Restore grub_xputs.
26846 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26847 (menu_init): Avoid printing gfxmenu error.
26848 (show_menu): Use grub_normal_get_char_counter.
26849 * normal/menu_entry.c (update_screen): Fix out-of-array.
26850 (complete): Avoid NULL dereferencing.
26851 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26852 * normal/menu_text.c (print_spaces): Removed.
26853 (grub_print_ucs4): Likewise.
26854 (grub_print_message_indented): Use grub_print_ucs4.
26855 (print_message): Use grub_putcode.
26856 (print_entry): Hanlde diacritics.
26857 * normal/term.c (term_state): New type.
26858 (grub_more_lines): Removed.
26859 (term_states): New variable.
26860 (grub_normal_line_counter): Renamed to ..
26861 (grub_normal_char_counter): ...this. All users updated.
26862 (grub_normal_get_line_counter): Renamed to ...
26863 (grub_normal_get_char_counter): ... this.
26864 (grub_normal_reset_more): New function.
26865 (process_newline): Removed.
26866 (print_more): New function.
26867 (grub_install_newline_hook): Removed.
26868 (map_code): New function.
26869 (grub_puts_terminal): Use grub_print_ucs4.
26870 (putglyph): New function.
26871 (putcode_real): Likewise.
26872 (grub_putcode): Use putcode_real.
26873 (get_maxwidth): New function.
26874 (get_startwidth): Likewise.
26875 (print_ucs4_terminal): Likewise.
26876 (find_term_state): Likewise.
26877 (put_glyphs_terminal): Likewise.
26878 (print_backlog): Likewise.
26879 (print_ucs4_real): Likewise.
26880 (grub_print_ucs4): Likewise.
26881 (grub_xputs_normal): Likewise.
26882 * term/efi/console.c (grub_console_putchar): Output diacritics.
26883 (grub_console_getcharwidth): Removed.
26884 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26885 * term/gfxterm.c (clear_char): Free chars.
26886 (scroll_up): Avoid leaking memory.
26887 (grub_gfxterm_putchar): Support diacritics.
26888 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26889 * term/i386/pc/console.c (grub_console_term_output): Declare as
26890 GRUB_TERM_CODE_TYPE_VGA.
26891 * term/i386/pc/vga.c (grub_vga_term): Declare as
26892 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26893 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26894 GRUB_TERM_CODE_TYPE_VGA.
26895 * term/i386/vga_common.c (map_char): Removed.
26896 (grub_console_putchar): Likewise.
26897 (grub_console_getcharwidth): Likewise.
26898 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26899 (colors): Reordered to match terminfo.
26900 (grub_ofconsole_normal_color): Removed.
26901 (grub_ofconsole_writeesc): Likewise.
26902 (grub_ofconsole_highlight_color): Likewise.
26903 (grub_ofconsole_getcharwidth): Likewise.
26904 (grub_ofconsole_setcolorstate): Likewise.
26905 (grub_ofconsole_setcolor): Likewise.
26906 (grub_ofconsole_getcolor): Likewise.
26907 (grub_ofconsole_readkey): Renamed to ...
26908 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26909 key.
26910 (grub_ofconsole_checkkey): Removed.
26911 (grub_ofconsole_getkey): Likewise.
26912 (grub_ofconsole_getxy): Likewise.
26913 (grub_ofconsole_gotoxy): Likewise.
26914 (grub_ofconsole_cls): Likewise.
26915 (grub_ofconsole_refresh): Likewise.
26916 (grub_ofconsole_terminfo_input): New struct.
26917 (grub_ofconsole_terminfo_output): Likewise.
26918 (grub_ofconsole_term_input): Use terminfo.
26919 (grub_ofconsole_term_output): Likewise.
26920 (grub_console_init): Split into ...
26921 (grub_console_init_early): ...this and ...
26922 (grub_console_init_lately): ...this. Use terminfo.
26923 (grub_ofconsole_putchar): Renamed to ...
26924 (put): ... this. Remove mapping.
26925 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26926 * term/serial.c: Simplify using terminfo.
26927 (xpos): Removed.
26928 (ypos): Likewise.
26929 (keep_track): Likewise.
26930 (registered): Likewise.
26931 (input_buf): Likewise.
26932 (npending): Likewise.
26933 (serial_translate_key_sequence): Likewise.
26934 (fill_input_buf): Likewise.
26935 (grub_serial_checkkey): Likewise.
26936 (grub_serial_getkey): Likewise.
26937 (grub_serial_getxy): Likewise.
26938 (grub_serial_gotoxy): Likewise.
26939 (grub_serial_putchar): Likewise.
26940 (grub_serial_cls): Likewise.
26941 (grub_serial_setcolorstate): Likewise.
26942 (grub_serial_setcursor): Likewise.
26943 (serial_hw_init): Use serial_hw_fetch.
26944 (grub_serial_terminfo_input): New variable.
26945 (grub_serial_terminfo_output): Likewise.
26946 (grub_serial_term_input): Use terminfo.
26947 (grub_serial_term_output): Likewise.
26948 * term/terminfo.c (putstr): Use put.
26949 (grub_terminfo_all_free): New function
26950 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
26951 (grub_terminfo_output_register): New function.
26952 (grub_terminfo_output_unregister): Likewise.
26953 (grub_terminfo_getxy): Likewise.
26954 (grub_terminfo_readkey): Likewise.
26955 (grub_terminfo_checkkey): Likewise.
26956 (grub_terminfo_getkey): Likewise.
26957 (grub_terminfo_input_init): Likewise.
26958 (print_terminfo): Likewise.
26959 (grub_cmd_terminfo): Handle encoding.
26960 (grub_terminfo_gotoxy): Track position.
26961 (grub_terminfo_cls): Likewise.
26962 (grub_terminfo_putchar): Likewise.
26963 (grub_terminfo_setcolorstate): Handle colors
26964 (grub_terminfo_cursor_on): This ...
26965 (grub_terminfo_cursor_off): ... and this merged into ...
26966 (grub_terminfo_setcursor): ... this.
26967 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
26968 * unicode/ArabicShaping.txt: New file (imported from Unicode).
26969 * unicode/BidiMirroring.txt: Likewise.
26970 * unicode/UnicodeData.txt: Likewise.
26971 * unicode/COPYING: Likewise.
26972 * util/grub-editenv.c (grub_putchar): Removed.
26973 (grub_xputs_real): New function.
26974 (grub_xputs): New variable.
26975 * util/grub-fstest.c (grub_putchar): Removed.
26976 (grub_xputs_real): New function.
26977 (grub_xputs): New variable.
26978 * util/grub-mkdevicemap.c (grub_putchar): Removed.
26979 (grub_xputs_real): New function.
26980 (grub_xputs): New variable.
26981 * util/grub-probe.c (grub_putchar): Removed.
26982 (grub_xputs_real): New function.
26983 (grub_xputs): New variable.
26984 * util/grub-script-check.c (grub_putchar): Removed.
26985 (grub_xputs_real): New function.
26986 (grub_xputs): New variable.
26987 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
26988 (grub_xputs_real): New function.
26989 (grub_xputs): New variable.
26990 * util/import_unicode.py: New file.
26991 * util/grub-mkfont.c (ft_errmsgs): New array.
26992 (grub_glyph_info): Make bitmap a pointer.
26993 (file_formats): New type WIDTH_SPEC.
26994 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
26995 (options): Add width-spec.
26996 (help): Likewise.
26997 (add_char): Renamed to ...
26998 (add_glyph): ... this.
26999 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27000 (glyph_replace): New type.
27001 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27002 (add_char): New function.
27003 (add_subst): Likewise.
27004 (process_cursive): Likewise.
27005 (add_font): Handle GSUB.
27006 (write_font_width_spec): New function.
27007 (main): Sort glyphs.
27008 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27009 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27010 * kern/term.c (grub_cls): Moved from here...
27011 * normal/term.c (grub_cls): ... here.
27012
27013 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27014
27015 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27016 suitable for using within the format argument of printf when
27017 converting grub_size_t.
27018 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27019 "x" to convert grub_size_t arguments.
27020
27021 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27022
27023 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27024 too long captions.
27025 (list_get_minimal_size): Take selection box into account.
27026
27027 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27028
27029 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27030 NULL font.
27031
27032 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27033
27034 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27035 devices when iterating over /dev/disk/by-id; they will be handled
27036 later if appropriate, which they aren't always (e.g. LVM).
27037
27038 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27039
27040 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27041 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27042 fails.
27043 (grub_halt): Likewise.
27044 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27045 reset-all fails.
27046 (grub_halt): Don't return, even if all of shut-down, power-off, and
27047 poweroff fail.
27048
27049 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27050
27051 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27052 arguments, not three.
27053
27054 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27055
27056 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27057 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27058 LVM-on-RAID is handled correctly.
27059
27060 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27061
27062 * docs/grub.texi (Changes from GRUB Legacy): New section.
27063 (Future): Fix typo.
27064
27065 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27066
27067 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27068 grub.d/README accidentally ends up executable for one reason or
27069 another. Ignore it.
27070
27071 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27072
27073 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27074 (gpt_partition_map_iterate): Support non-512B sectors.
27075
27076 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27077
27078 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27079 Tested by: Seth Goldberg.
27080
27081 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27084 Properly align mbi.
27085 Reported by: Seth Goldberg.
27086
27087 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27088
27089 * util/grub-mkrescue.in: Avoid module duplication.
27090
27091 2010-07-01 Sean Finney <seanius@seanius.net>
27092
27093 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27094
27095 2010-07-01 Sean Finney <seanius@seanius.net>
27096
27097 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27098
27099 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27100
27101 * disk/lvm.c (grub_lvm_checkvalue): New function.
27102 (grub_lvm_check_flag): Likewise.
27103
27104 2010-07-01 Robert Millan <rmh@gnu.org>
27105
27106 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27107 Support 'p' as partition separator on kernel of FreeBSD (used
27108 with GPT labels).
27109 (grub_util_biosdisk_get_grub_dev): Likewise.
27110
27111 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27112
27113 Yeeloong firmware port.
27114
27115 * boot/mips/yeeloong/fwstart.S: New file.
27116 * bus/cs5536.c (gpiodump): New const.
27117 (set_io_space): New function.
27118 (set_iod): Likewise.
27119 (set_p2d): Likewise.
27120 (grub_cs5536_init_geode): Likewise.
27121 * commands/mips/yeeloong/lsspd.c: New file.
27122 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27123 (serial_mod_SOURCES): New variable.
27124 (serial_mod_CFLAGS): Likewise.
27125 (serial_mod_LDFLAGS): Likewise.
27126 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27127 term/terminfo.c and term/tparm.c.
27128 (pkglib_IMAGES): Add fwstart.img.
27129 (fwstart_img_SOURCES): New variable.
27130 (fwstart_img_CFLAGS): Likewise.
27131 (fwstart_img_ASFLAGS): Likewise.
27132 (fwstart_img_LDFLAGS): Likewise.
27133 (fwstart_img_FORMAT): Likewise.
27134 (pkglib_MODULES): Add lsspd.mod.
27135 (lsspd_mod_SOURCES): New variable.
27136 (lsspd_mod_CFLAGS): Likewise.
27137 (lsspd_mod_LDFLAGS): Likewise.
27138 (pkglib_MODULES): Add halt.mod.
27139 (halt_mod_SOURCES): New variable.
27140 (halt_mod_CFLAGS): Likewise.
27141 (halt_mod_LDFLAGS): Likewise.
27142 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27143 (serial_mod_SOURCES): Removed.
27144 (serial_mod_CFLAGS): Likewise.
27145 (serial_mod_LDFLAGS): Likewise.
27146 * disk/ata.c (check_device): New function.
27147 (grub_ata_device_initialize): Use check_device.
27148 (grub_ata_iterate): Recheck devices.
27149 (grub_ata_open): Likewise.
27150 (grub_atapi_iterate): Likewise.
27151 (grub_atapi_open): Likewise.
27152 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27153 (GRUB_ATA_CH1_PORT1): Likewise.
27154 (GRUB_ATA_CH0_PORT2): Likewise.
27155 (GRUB_ATA_CH1_PORT2): Likewise.
27156 * include/grub/mips/loongson.h: New file.
27157 * include/grub/mips/yeeloong/ec.h: Likewise.
27158 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27159 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27160 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27161 * include/grub/misc.h (grub_halt): Declare as noreturn.
27162 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27163 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27164 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27165 (UART_ENABLE_DTRRTS): Likewise.
27166 (UART_ENABLE_MODEM): Removed.
27167 (UART_ENABLE_OUT2): New const.
27168 * include/grub/term.h (grub_term_register_input_active): New function.
27169 (grub_term_register_output_active): Likewise.
27170 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27171 argument.
27172 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27173 (init_pci): New function.
27174 (grub_machine_init): Execute platform init when firmware. Init serial.
27175 (grub_halt): Implement.
27176 (grub_exit): Likewise.
27177 (grub_reboot): Likewise.
27178 * term/serial.c (serial_hw_init): Update macros.
27179 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27180 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27181 (image_targets): New target mipsel-yeeloong-flash.
27182 (generate_image): Support IMAGE_YEELOONG_FLASH.
27183 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27184 (grub_video_sm712_setup): Init card.
27185 (grub_video_sm712_set_palette): Removed.
27186 * video/sm712_init.c: New file.
27187
27188 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27189
27190 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27191 PATH when running help2man and then run it on the unadorned
27192 executable names, rather than passing $(builddir)/* paths to
27193 help2man. This avoids the build directory ending up in generated
27194 manual pages.
27195
27196 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27197
27198 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27199 to avoid accidents when debugging with 'sh -x'.
27200 * util/grub-mkrescue.in: Likewise.
27201 * util/grub.d/00_header.in: Likewise.
27202 * util/grub.d/10_hurd.in: Likewise.
27203 * util/grub.d/10_kfreebsd.in: Likewise.
27204 * util/grub.d/10_linux.in: Likewise.
27205 * util/grub.d/10_netbsd.in: Likewise.
27206 * util/grub.d/10_windows.in: Likewise.
27207 * util/grub.d/20_linux_xen.in: Likewise.
27208 * util/grub.d/30_os-prober.in: Likewise.
27209 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27210
27211 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27212
27213 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27214 last character in the buffer.
27215 Reported by: Vladimir Serbinenko.
27216
27217 2010-06-29 Robert Millan <rmh@gnu.org>
27218
27219 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27220 (Command-line and menu entry commands): Document `badram' command.
27221
27222 2010-06-28 Robert Millan <rmh@gnu.org>
27223
27224 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27225 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27226 command using ${GRUB_BADRAM} as parameter.
27227
27228 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27229
27230 * docs/grub.texi (Device map): New section.
27231 (Themes): New section (stub).
27232 * Makefile.in (docs/grub.info): The info documentation now builds
27233 without errors. Make sure it stays that way.
27234
27235 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27236
27237 Use normal parser for menu entries.
27238 Reported by: Thomas Frauendorfer
27239
27240 * include/grub/parser.h (grub_parser_execute): Don't export.
27241 * normal/menu.c (grub_menu_execute_entry_real): New function.
27242 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27243
27244 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27245
27246 * docs/grub.texi (Embedded configuration): New section (replacing
27247 old "Preset Menu" stub).
27248 (Images): New section.
27249 (configfile): Note that any menu entries defined in `file' are shown
27250 immediately.
27251
27252 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27253
27254 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27255
27256 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27257
27258 * util/grub-install.in: Add --debug-image= option.
27259
27260 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27261
27262 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27263 possible on Linux.
27264
27265 * util/deviceiter.c (check_device): Rename to ...
27266 (check_device_readable_unique): ... this. Update all callers.
27267 Maintain and check a list of which devices (by canonicalized name)
27268 have already been seen.
27269 (clear_seen_devices): New function.
27270 (compare_file_names) [__linux__]: New function.
27271 (grub_util_iterate_devices): Clear the list of seen devices on exit
27272 and (just in case) on entry.
27273 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27274 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27275 seen-devices list, superseded by general code in check_device.
27276
27277 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27278
27279 * commands/cat.c (options): New variable.
27280 (grub_cmd_cat): Parse options. If the --dos option is given, print
27281 DOS-style "\r\n" line endings as simple newlines (Debian bug
27282 #586358).
27283 (GRUB_MOD_INIT): Use extcmd.
27284 (GRUB_MOD_FINI): Likewise.
27285 * docs/grub.texi (cat): Document --dos.
27286
27287 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27288
27289 XEN with Linux grub-mkconfig support.
27290
27291 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27292 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27293 GRUB_CMDLINE_XEN_DEFAULT.
27294 * util/grub.d/20_linux_xen.in: New file.
27295
27296 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27297
27298 Initialise VGA video on qemu ourselves.
27299
27300 * boot/i386/qemu/boot.S: Don't call 0xc000.
27301 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27302 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27303 (kernel_img_HEADERS): Add pci.h.
27304 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27305 * configure.ac: Force unifont on qemu and yeeloong.
27306 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27307 (grub_vga_palette_write): Use correct register.
27308 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27309 Call grub_qemu_init_cirrus.
27310 * kern/i386/qemu/init.c: New file.
27311 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27312
27313 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27314
27315 2010-06-26 Pavel Roskin <proski@gnu.org>
27316
27317 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27318 13.
27319
27320 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27321
27322 * docs/grub.texi (Simple configuration): Explain that
27323 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27324 set to `true' to disable their respective recovery entries, not
27325 merely set.
27326
27327 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27328
27329 Make the `source' command slightly faster.
27330
27331 * normal/main.c (grub_normal_execute): Don't re-read list files when
27332 nested.
27333
27334 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27335
27336 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27337 field position and mask size to red fields from mode_info, not
27338 green.
27339 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27340 Remove redundant tag->common.framebuffer_type assignment.
27341 Reported by: Seth Goldberg.
27342
27343 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27344
27345 Sync up other versions of the Linux loader with Robert Millan's
27346 change of 2010-01-09, "Make loader output a bit more user-friendly".
27347
27348 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27349 grub_dprintf().
27350 (grub_cmd_linux): Likewise.
27351 (grub_cmd_initrd): Likewise.
27352 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27353 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27354
27355 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27356
27357 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27358 larger than MEMORY_MAP_SIZE.
27359
27360 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27361
27362 Fix parallel build.
27363
27364 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27365 dependency.
27366 * script/parser.y: #include grub_script.tab.h header.
27367
27368 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27369
27370 Support >3GiB and <16MiB RAM in i386-qemu.
27371
27372 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27373 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27374 (grub_lower_mem): Removed.
27375 (grub_upper_mem): Likewise.
27376 (mem_size): Made static.
27377 (above_4g): New variable.
27378 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27379 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27380 support.
27381
27382 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27383
27384 Cirrus 5446 and Bochs video cards support.
27385
27386 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27387 video_bochs.mod
27388 (video_cirrus_mod_SOURCES): New variable.
27389 (video_cirrus_mod_CFLAGS): Likewise.
27390 (video_cirrus_mod_LDFLAGS): Likewise.
27391 (video_bochs_mod_SOURCES): Likewise.
27392 (video_bochs_mod_CFLAGS): Likewise.
27393 (video_bochs_mod_LDFLAGS): Likewise.
27394 * include/grub/vga.h: New file.
27395 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27396 (grub_video_fb_set_page_t): New type.
27397 (grub_video_fb_setup): New prototype.
27398 (grub_video_fb_swap_buffers): Likewise.
27399 (grub_video_fb_get_info_and_fini): Likewise.
27400 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27401 (CRTC_DATA_PORT): Likewise.
27402 (CRTC_CURSOR): Likewise.
27403 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27404 (CRTC_CURSOR_ADDR_LOW): Likewise.
27405 (CRTC_CURSOR_DISABLE): Likewise.
27406 (update_cursor): Use grub_vga_cr_write.
27407 (grub_vga_text_setcursor): Likewise.
27408 * video/bochs.c: New file.
27409 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27410 (palette): Likewise.
27411 (palette_size): Likewise.
27412 (framebuffer): New variable.
27413 (grub_video_fb_init): Use 'framebuffer'.
27414 (grub_video_fb_fini): Likewise.
27415 (grub_video_fb_get_info): Likewise.
27416 (grub_video_fb_get_palette): Likewise.
27417 (grub_video_fb_set_palette): Likewise.
27418 (grub_video_fb_set_viewport): Likewise.
27419 (grub_video_fb_get_viewport): Likewise.
27420 (grub_video_fb_map_color): Likewise.
27421 (grub_video_fb_map_rgb): Likewise.
27422 (grub_video_fb_map_rgba): Likewise.
27423 (grub_video_fb_unmap_color): Likewise.
27424 (grub_video_fb_unmap_color_int): Likewise.
27425 (grub_video_fb_fill_rect): Likewise.
27426 (grub_video_fb_blit_bitmap): Likewise.
27427 (grub_video_fb_blit_render_target): Likewise.
27428 (grub_video_fb_scroll): Likewise.
27429 (grub_video_fb_create_render_target): Likewise.
27430 (grub_video_fb_doublebuf_blit_init): Likewise.
27431 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27432 (doublebuf_pageflipping_update_screen): New function.
27433 (doublebuf_pageflipping_init): Likewise.
27434 (grub_video_fb_setup): Likewise.
27435 (grub_video_fb_swap_buffers): Likewise.
27436 (grub_video_fb_get_info_and_fini): Likewise.
27437 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27438 All users updated.
27439 (doublebuf_pageflipping_commit): Restructured into ...
27440 (doublebuf_pageflipping_set_page): ... this.
27441 (doublebuf_pageflipping_update_screen): Removed.
27442 (doublebuf_pageflipping_init): Likewise.
27443 (double_buffering_init): Likewise.
27444 (grub_video_vbe_setup): Use grub_video_fb_setup.
27445 (grub_video_vbe_swap_buffers): Removed.
27446 (grub_video_vbe_set_active_render_target): Likewise.
27447 (grub_video_vbe_get_active_render_target): Likewise.
27448 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27449 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27450 grub_video_fb_set_active_render_target and
27451 grub_video_fb_get_active_render_target.
27452 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27453 (SEQUENCER_DATA_PORT): Likewise.
27454 (MAP_MASK_REGISTER): Likewise.
27455 (CRTC_ADDR_PORT): Likewise.
27456 (CRTC_DATA_PORT): Likewise.
27457 (START_ADDR_HIGH_REGISTER): Likewise.
27458 (START_ADDR_LOW_REGISTER): Likewise.
27459 (GRAPHICS_ADDR_PORT): Likewise.
27460 (GRAPHICS_DATA_PORT): Likewise.
27461 (READ_MAP_REGISTER): Likewise.
27462 (INPUT_STATUS1_REGISTER): Likewise.
27463 (INPUT_STATUS1_VERTR_BIT): Likewise.
27464 (get_map_mask): Use grub_vga_sr_read.
27465 (set_map_mask): Use grub_vga_sr_write.
27466 (set_read_map): Use grub_vga_gr_write.
27467 (set_start_address): Use grub_vga_cr_write.
27468 * video/sm712.c (framebuffer): Remove leftover fields.
27469
27470 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27471
27472 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27473 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27474 instead. Replace the gfxterm backend check with a check that
27475 ${GRUB_PREFIX}/video.lst is non-empty.
27476 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27477 again.
27478 (load_video): New generated function. Call it before loading
27479 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27480 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27481 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27482 * docs/grub.texi (Simple configuration): Document
27483 GRUB_VIDEO_BACKEND.
27484
27485 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27486
27487 Use video functions in linux and xnu loaders.
27488
27489 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27490 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27491 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27492 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27493 loader/i386/pc/linux.c.
27494 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27495 (find_line_len): Removed.
27496 (find_framebuf): Likewise.
27497 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27498 * loader/i386/efi/xnu.c: Removed.
27499 * loader/i386/pc/xnu.c: Moved from here...
27500 * loader/i386/xnu.c: ...here.
27501
27502 Enable priorities in video drivers.
27503
27504 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27505 (grub_video_adapter): New field prio.
27506 (grub_video_register): Respect prio when inserting.
27507 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27508 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27509 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27510 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27511 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27512 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27513 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27514
27515 Fix SDL driver ID.
27516
27517 * include/grub/video.h (grub_video_driver_id_t): New value
27518 GRUB_VIDEO_DRIVER_SDL.
27519 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27520
27521 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27522
27523 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27524 argument to printf.
27525 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27526
27527 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27528
27529 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27530 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27531
27532 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27533
27534 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27535 directly, and recommend grub-install instead.
27536 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27537
27538 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27539
27540 Fix i386-pc prefix handling with nested partitions (Debian bug
27541 #585068). Note that the case where the core image is booted using
27542 multiboot and relocated from its original location still requires
27543 more work.
27544
27545 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27546 with "(,", fill the boot drive in between those two characters, but
27547 expect that a full partition specification including partition map
27548 names will follow.
27549 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27550 specified, write a prefix without the drive name but including a
27551 full partition specification.
27552
27553 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27554
27555 * util/grub-mkconfig.in: Ignore non-option arguments, for
27556 compatibility with older versions (before 2010-06-12) which did the
27557 same. In particular, this makes it easier to ship an update-grub
27558 wrapper which is compatible with that used with GRUB Legacy (Debian
27559 bug #586056).
27560
27561 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27562
27563 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27564 for manual page generation.
27565
27566 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27567
27568 * po/POTFILES: Remove leftover commands/handler.c.
27569
27570 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27571
27572 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27573 left this script non-functional.
27574
27575 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27576
27577 * docs/man/grub-emu.h2m: New file.
27578
27579 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27580
27581 * docs/grub.texi (Commands): Document reduced command set in rescue
27582 mode.
27583 (cpuid): New section.
27584
27585 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27586
27587 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27588 new partition naming style.
27589 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27590
27591 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27592
27593 Add "-o grub.iso" like cmdline options support.
27594
27595 * util/grub-install.in: Improve cmdline option parsing.
27596 * util/grub-mkconfig.in: Likewise.
27597 * util/grub-mkrescue.in: Likewise.
27598 * util/grub-reboot.in: Likewise.
27599 * util/grub-set-default.in: Likewise.
27600 * util/i386/efi/grub-install.in: Likewise.
27601 * util/ieee1275/grub-install.in: Likewise.
27602 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27603
27604 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27605
27606 * .bzrignore: Ignore 41_custom.
27607
27608 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27609
27610 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27611
27612 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27613
27614 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27615 prototype declarations.
27616
27617 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27618 generating fs, partmap, and video lists.
27619 * include/grub/fs.h (grub_fs_register): Omit prototype if
27620 GRUB_LST_GENERATOR is defined.
27621 * include/grub/partition.h (grub_partition_map_register): Likewise.
27622 * include/grub/video.h (grub_video_register): Likewise.
27623
27624 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27625
27626 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27627
27628 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27629
27630 * util/grub-mkrescue.in: Support --xorriso argument.
27631
27632 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27633
27634 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27635 Suggested by: Thomas Schmitt.
27636
27637 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27638
27639 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27640 Suggested by: Thomas Schmitt.
27641
27642 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27643
27644 custom.cfg support.
27645
27646 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27647 * util/grub.d/41_custom.in: New file.
27648
27649 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27650
27651 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27652 been merged back into normal.
27653
27654 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27655
27656 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27657 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27658
27659 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27660
27661 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27662 when generating manual pages.
27663 * docs/man/grub-bin2h.h2m: New file.
27664 * docs/man/grub-editenv.h2m: New file.
27665 * docs/man/grub-fstest.h2m: New file.
27666 * docs/man/grub-install.h2m: New file.
27667 * docs/man/grub-macho2img.h2m: New file.
27668 * docs/man/grub-mkconfig.h2m: New file.
27669 * docs/man/grub-mkdevicemap.h2m: New file.
27670 * docs/man/grub-mkfont.h2m: New file.
27671 * docs/man/grub-mkimage.h2m: New file.
27672 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27673 * docs/man/grub-mkrelpath.h2m: New file.
27674 * docs/man/grub-mkrescue.h2m: New file.
27675 * docs/man/grub-ofpathname.h2m: New file.
27676 * docs/man/grub-pe2elf.h2m: New file.
27677 * docs/man/grub-probe.h2m: New file.
27678 * docs/man/grub-reboot.h2m: New file.
27679 * docs/man/grub-script-check.h2m: New file.
27680 * docs/man/grub-set-default.h2m: New file.
27681 * docs/man/grub-setup.h2m: New file.
27682
27683 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27684
27685 Use FOR_* macros instead of *_iterate whenever possible.
27686
27687 * commands/handler.c: Removed.
27688 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27689 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27690 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27691 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27692 (grub_probe_SOURCES): Remove kern/parser.c.
27693 (util/grub-script-check.c_DEPENDENCIES): Removed.
27694 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27695 and grub_script_check_init.c.
27696 (grub_script_check_init.lst): Removed.
27697 (grub_script_check_init.h): Likewise.
27698 (grub_script_check_init.c): Likewise.
27699 (pkglib_MODULES): Remove handler.mod and sh.mod.
27700 (handler_mod_SOURCES): Removed.
27701 (handler_mod_CFLAGS): Likewise.
27702 (handler_mod_LDFLAGS): Likewise.
27703 (normal_mod_SOURCES): Remove normal/handler.c.
27704 Add script/main.c, script/script.c, script/execute.c,
27705 script/function.c, script/lexer.c, grub_script.tab.c
27706 and grub_script.yy.c.
27707 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27708 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27709 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27710 (grub_setup_SOURCES): Remove kern/parser.c.
27711 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27712 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27713 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27714 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27715 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27716 (grub_setup_SOURCES): Remove kern/parser.c.
27717 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27718 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27719 * include/grub/command.h (grub_command_iterate): Removed.
27720 (FOR_COMMANDS): New macro.
27721 * include/grub/dl.h (grub_dl): New member next.
27722 (grub_dl_iterate): Removed.
27723 (grub_dl_head): New variable declaration.
27724 (FOR_DL_MODULES): New macro.
27725 * include/grub/fs.h: Include list.h.
27726 (grub_fs): Make next first element.
27727 (grub_fs_list): New variable declaration.
27728 (grub_fs_register): Make inline.
27729 (grub_fs_unregister): Likewise.
27730 (grub_fs_iterate): Removed.
27731 (FOR_FILESYSTEMS): New macro.
27732 * include/grub/handler.h: Removed.
27733 * include/grub/list.h (grub_list_hook_t): Removed.
27734 (grub_list_test_t): Likewise.
27735 (grub_list_pop): Likewise.
27736 (grub_list_iterate): Likewise.
27737 (grub_list_insert): Likewise.
27738 (FOR_LIST_ELEMENTS): New macro.
27739 * include/grub/parser.h (grub_parser_class): Removed.
27740 (grub_parser_register): Likewise.
27741 (grub_parser_unregister): Likewise.
27742 (grub_parser_get_current): Likewise.
27743 (grub_parser_set_current): Likewise.
27744 (grub_register_rescue_parser): Likewise.
27745 (grub_rescue_parse_line): New function.
27746 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27747 * include/grub/script_sh.h (grub_script_function_list): New variable
27748 declaration.
27749 (FOR_SCRIPT_FUNCTIONS): New macro.
27750 (grub_script_function_iterate): Removed.
27751 (grub_normal_parse_line): New prototype.
27752 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27753 (FOR_DISABLED_TERM_INPUTS): Likewise.
27754 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27755 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27756 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27757 element.
27758 (grub_video_register): Inline.
27759 (grub_video_unregister): Likewise.
27760 (grub_video_adapter_list): New variable declaration.
27761 (grub_video_iterate): Removed.
27762 (FOR_VIDEO_ADAPTERS): New macro.
27763 * kern/dl.c (grub_dl_list): Removed. All users updated.
27764 (grub_dl_iterate): Removed.
27765 * kern/fs.c (grub_fs_list): Make global.
27766 (grub_fs_register): Removed.
27767 (grub_fs_unregister): Likewise.
27768 (grub_fs_iterate): Likewise.
27769 * kern/handler.c: Removed.
27770 * kern/list.c (grub_list_pop): Removed.
27771 (grub_list_iterate): Likewise.
27772 (grub_list_insert): Likewise.
27773 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27774 (grub_prio_list_insert): Don't use grub_list_insert.
27775 * kern/main.c (grub_register_rescue_parser): Don't call
27776 grub_register_rescue_parser.
27777 * kern/parser.c (grub_parser_class): Removed.
27778 (grub_parser_execute): Use grub_rescue_parse_line.
27779 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27780 (grub_rescue_parser): Removed.
27781 (grub_register_rescue_parser): Likewise.
27782 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27783 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27784 (grub_auth_check_authentication): Likewise.
27785 * normal/completion.c (iterate_command): Removed.
27786 (grub_normal_do_completion): Use FOR_COMMANDS.
27787 * normal/handler.c: Removed.
27788 * normal/main.c (read_config_file): Remove parser changing.
27789 (grub_normal_execute): Don't call read_handler_list.
27790 (grub_normal_read_line_real): Statically allocate prompt.
27791 (grub_cmdline_run): Use grub_normal_parse_line.
27792 (GRUB_MOD_FINI): Don't call free_handler_list.
27793 * normal/menu_entry.c (run): Likewise.
27794 * script/function.c (grub_script_function_list): Make global.
27795 (grub_script_function_iterate): Removed.
27796 * script/main.c (grub_normal_parse_line): Make global.
27797 (grub_sh_parser): Removed.
27798 (GRUB_MOD_INIT): Likewise.
27799 (GRUB_MOD_FINI): Likewise.
27800 * tests/lib/functional_test.c (grub_functional_test): Use
27801 FOR_LIST_ELEMENTS.
27802 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27803 (grub_test_run): Use FOR_LIST_ELEMENTS.
27804 * tests/lib/unit_test.c (main): Likewise.
27805 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27806 grub_list_pop.
27807 * util/grub-fstest.c (grub_term_input_class): Removed.
27808 (grub_term_output_class): Likewise.
27809 * util/grub-probe.c: Likewise.
27810 * util/i386/pc/grub-setup.c: Likewise.
27811 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27812 * util/grub-script-check.c (main): Don't call grub_init_all and
27813 grub_fini_all.
27814 * video/video.c (grub_video_adapter_list): Make global.
27815 (grub_video_register): Removed.
27816 (grub_video_unregister): Likewise.
27817 (grub_video_iterate): Likewise.
27818
27819 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27820
27821 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27822 reported by Henrique Ferreiro.
27823
27824 2010-06-09 Robert Millan <rmh@gnu.org>
27825
27826 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27827 ones, when both are available.
27828
27829 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27830
27831 Make --version uniform and avoid hard-coded program name.
27832
27833 * util/grub-mkimage.c (main): Use `program_name' instead of
27834 hard-coded string.
27835 * util/i386/pc/grub-setup.c (main): Likewise.
27836 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27837 * util/grub-install.in: Save the basename of $0 in $self, and use the
27838 latter in informational messages. Use the same format for --version
27839 as the binary programs.
27840 * util/grub-mkconfig.in: Likewise.
27841 * util/grub-mkrescue.in: Likewise.
27842 * util/grub-reboot.in: Likewise.
27843 * util/grub-set-default.in: Likewise.
27844 * util/i386/efi/grub-install.in: Likewise.
27845 * util/ieee1275/grub-install.in: Likewise.
27846 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27847
27848 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27849
27850 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27851 embedding area. Use <= instead of == when checking for non-emptiness.
27852
27853 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27854
27855 * configure.ac: Add `.' to the directories searched for unifont.
27856
27857 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27858
27859 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27860 grub_script.yy.h.
27861
27862 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27863
27864 * docs/grub.texi (History): Expand to cover GRUB 2.
27865 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27866 commands, not `terminal'.
27867 (serial): Likewise.
27868 (terminal_input): New section.
27869 (terminal_output): New section.
27870 (uppermem): New section (stub).
27871 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27872
27873 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27874
27875 * docs/grub.texi (Security): Menu entries are unrestricted by
27876 default, not restricted to superusers as I had previously thought.
27877 Reword to account for this.
27878
27879 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27880
27881 * kern/emu/misc.c (device_mapper_null_log): New function.
27882 (grub_device_mapper_supported): New function.
27883 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27884 prototype.
27885 * kern/emu/hostdisk.c (find_partition_start): Check whether
27886 device-mapper is supported before trying to use it.
27887 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27888
27889 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27890
27891 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27892 (File name syntax): Likewise.
27893 (help): --all is no longer supported in GRUB 2. Be more precise
27894 about pattern matching.
27895
27896 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27897
27898 * normal/completion.c (grub_normal_do_completion): When completing
27899 arguments to "set" and the current word contains an equals sign,
27900 skip to after the equals sign before starting completion.
27901
27902 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27903
27904 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27905
27906 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27907
27908 * docs/grub.texi (Network): New section.
27909 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27910 `(nd)' as in GRUB Legacy.
27911 (pxe_unload): New section.
27912
27913 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27914
27915 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27916 in the rescue shell, so recommend using `set' instead. Thanks,
27917 Jordan Uggla.
27918
27919 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27920
27921 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27922 (password): New section.
27923 (password_pbkdf2): New section.
27924 (search): New section.
27925 (Security): New section.
27926 (Troubleshooting): New section, currently very incomplete.
27927 (Invoking grub-mkpasswd-pbkdf2): New section.
27928 (Internals): New section, currently very incomplete.
27929
27930 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27931
27932 * util/grub.d/00_header.in: Add some more quoting (of
27933 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
27934 work again.
27935 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
27936
27937 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27938
27939 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
27940 to `count', fixing variable shadowing that broke the -c option.
27941
27942 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
27943
27944 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
27945 in case they contain spaces.
27946
27947 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27948
27949 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
27950 "part_" to partmap module names, in line with grub-install.
27951 Reported by: Jindřich Makovička (Debian bug #584426).
27952
27953 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
27954
27955 * util/grub-mkimage.c: Make target-related error messages slightly
27956 more helpful; -O talks about "format". Explicitly point to the use
27957 of -O if no target is specified.
27958 Reported by: Didier Raboud (Debian bug #584415).
27959
27960 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
27961
27962 * INSTALL: Document several build requirements for optional features
27963 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
27964
27965 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
27966
27967 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
27968 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
27969 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
27970
27971 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
27972
27973 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
27974 Thanks to Jordan Uggla for spotting this.
27975
27976 2010-06-02 Aleš Nesrsta <starous@volny.cz>
27977
27978 Finally make USB usable.
27979
27980 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
27981 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
27982 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
27983 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
27984 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
27985 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
27986 (GRUB_OHCI_FSMPS): Likewise.
27987 (GRUB_OHCI_PERIODIC_START): Likewise.
27988 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
27989 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
27990 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
27991 (GRUB_OHCI_SET_PORT_RESET): Likewise.
27992 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
27993 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
27994 (grub_ohci_transaction): Likewise.
27995 (grub_ohci_transfer): Improve condition detection algorithms.
27996 Handle toggle property. Program the transactions correctly.
27997 Improve error handling. Various important fixups.
27998 (grub_ohci_portstatus): Put register writes in right order.
27999 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28000 (grub_uhci_transfer): Don't show "failed" message on success.
28001 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28002 array.
28003 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28004 determine its size.
28005 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28006 before initialization is completed. Use IN direction for empty
28007 transfers. Use last_trans and compute toggle.
28008 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28009 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28010 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28011 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28012 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28013 (grub_usb_device): Increase toggle to 256.
28014 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28015 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28016 GRUB_USBMS_SUBCLASS_SFF8070.
28017 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28018 (grub_scsi_inquiry): New member page and alloc_length.
28019 (grub_scsi_request_sense): New structure.
28020 (grub_scsi_request_sense_data): Likewise.
28021 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28022 control.
28023 * disk/scsi.c (grub_scsi_request_sense): New function.
28024 (grub_scsi_test_unit_ready): Likewise.
28025 (grub_scsi_inquiry): Fill new fields.
28026 (grub_scsi_read_capacity): Likewise.
28027 (grub_scsi_read10): Add request sense at the end.
28028 (grub_scsi_read12): Likewise.
28029 (grub_scsi_write10): Likewise.
28030 (grub_scsi_write12): Likewise.
28031 (grub_scsi_open): Add Test Unit Ready.
28032 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28033 Support additional subclasses. Con't clear halt yet. Activate the
28034 proper config. Calculate LUNs correctly.
28035 (grub_usbms_transfer): Various important fixups.
28036
28037 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28038
28039 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28040 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28041 (grub_ohci_fini_hw): New function.
28042 (grub_ohci_restore_hw): Likewise.
28043 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28044 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28045 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28046
28047 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28048
28049 Dedicated DMA allocations.
28050
28051 * bus/pci.c (grub_memalign_dma32): New function
28052 (grub_dma_free): Likewise.
28053 (grub_dma_get_virt): Likewise.
28054 (grub_dma_get_phys): Likewise.
28055 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28056 (grub_ohci_pci_iter): Use dma32_alloc.
28057 (grub_ohci_transfer): Likewise.
28058 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28059 (grub_usb_bulk_readwrite): Likewise.
28060 * include/grub/pci.h: Add declarations.
28061
28062 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28063
28064 CS5536 support.
28065
28066 * bus/cs5536.c: New file.
28067 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28068 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28069 (cs5536_mod_SOURCES): New variable.
28070 (cs5536_mod_CFLAGS): Likewise.
28071 (cs5536_mod_LDFLAGS): Likewise.
28072 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28073 machine/pci.h.
28074 (kernel_img_SOURCES): Add bus/cs5536.c.
28075 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28076 usb_keyboard.mod.
28077 (usb_mod_SOURCES): New variable.
28078 (usb_mod_CFLAGS): New variable.
28079 (usb_mod_LDFLAGS): New variable.
28080 (usbtest_mod_SOURCES): New variable.
28081 (usbtest_mod_CFLAGS): New variable.
28082 (usbtest_mod_LDFLAGS): New variable.
28083 (ohci_mod_SOURCES): New variable.
28084 (ohci_mod_CFLAGS): New variable.
28085 (ohci_mod_LDFLAGS): New variable.
28086 (usbms_mod_SOURCES): New variable.
28087 (usbms_mod_CFLAGS): New variable.
28088 (usbms_mod_LDFLAGS): New variable.
28089 (usb_keyboard_mod_SOURCES): New variable.
28090 (usb_keyboard_mod_CFLAGS): New variable.
28091 (usb_keyboard_mod_LDFLAGS): New variable.
28092 * include/grub/smbus.h: New file.
28093 * include/grub/cs5536.h: New file.
28094
28095 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28096
28097 * util/grub.d/00_header.in: Add safety check to make sure that
28098 ${locale_dir} exists before trying to probe it.
28099
28100 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28101
28102 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28103 per the GNU Coding Standards; this is now too obscure to be worth
28104 documenting.
28105 (QNX): Likewise.
28106 (chainloader): Remove cross-reference to `SCO UnixWare'.
28107
28108 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28109
28110 * docs/grub.texi (Chain-loading): New section.
28111 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28112 adjusted for GRUB 2.
28113 (SCO UnixWare): Likewise.
28114 (QNX): Likewise.
28115 (chainloader): Add reference to `Block list syntax'.
28116 (drivemap): New section.
28117 (parttool): New section.
28118
28119 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28120
28121 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28122 the grub shell'.
28123 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28124 (Installing GRUB using grub-install): Remove reference to the grub
28125 shell; mention `grub-mkimage' and `grub-setup' instead.
28126 (Invoking grub-install): Likewise.
28127 (Interface): Add reference to `Menu entry editor'.
28128 (serial): Remove `--device' option.
28129
28130 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28131
28132 * docs/grub.texi (Configuration): New section, documenting
28133 configuration file generation using grub-mkconfig. I've left a slot
28134 for documenting the full shell scripting format but have not yet
28135 started on writing that up.
28136 (Invoking grub-mkconfig): New section.
28137
28138 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28139
28140 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28141 (GNU GRUB manual): Likewise.
28142 (General commands): Update description of `terminfo' for GRUB 2.
28143
28144 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28145
28146 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28147 (GRUB_MOD_INIT): Fix capitalisation.
28148 * docs/grub.texi (Command-line and menu entry commands): Document
28149 gettext and gptsync commands.
28150
28151 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28152
28153 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28154 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28155
28156 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28157
28158 Add btrfs probing support, currently only in the single-device case.
28159
28160 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28161 function.
28162 (grub_guess_root_device): Call find_root_device_from_mountinfo
28163 before looking in /dev.
28164
28165 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28166
28167 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28168 GRUB_DISK_SIZE_UNKNOWN.
28169 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28170
28171 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28172
28173 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28174 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28175 corrupted or not synced properly.
28176
28177 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28178
28179 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28180 Reported by: Seth Goldberg.
28181
28182 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28183
28184 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28185 addition of dest.
28186 Reported by: Seth Goldberg.
28187
28188 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28189
28190 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28191 Reported by: Seth Goldberg.
28192
28193 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28194
28195 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28196 64-bit address as signed on MIPS.
28197
28198 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28199
28200 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28201 to the empty string.
28202
28203 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28204
28205 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28206
28207 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28208 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28209 * kern/misc.c (__enable_execute_stack): Disable on
28210 GRUB_MACHINE_EMU.
28211
28212 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28213
28214 Make grub-probe work with symbolic links under /dev/mapper as well
28215 as with real block devices. The Linux world seems to be (at best)
28216 in transition here, and GRUB shouldn't get caught in the middle.
28217
28218 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28219 /dev/mapper.
28220
28221 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28222
28223 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28224 input files (in which case exit zero).
28225
28226 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28227
28228 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28229 return NULL for various reasons even if it has a maximum-length
28230 buffer: for example, there might be a symlink loop, or the path
28231 might exceed PATH_MAX. If this happens, return NULL.
28232
28233 2010-05-27 Robert Millan <rmh@gnu.org>
28234
28235 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28236 partmap module to handle cross-partmap setups.
28237 Reported by Orestes Mas. Gràcies!
28238
28239 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28240
28241 * util/grub-mkrescue.in: Initialise override_dir rather than
28242 assuming that it's unset or empty in the environment.
28243
28244 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28245
28246 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28247 variable index into p_index to suppress a warning with -Wshadow.
28248
28249 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28250
28251 * INSTALL: Added flex >= 2.5.35 requirement.
28252
28253 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28254
28255 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28256
28257 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28258
28259 cmostest support.
28260
28261 * commands/i386/cmostest.c: New file.
28262 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28263 (cmostest_mod_SOURCES): New variable.
28264 (cmostest_mod_CFLAGS): Likewise.
28265 (cmostest_mod_LDFLAGS): Likewise.
28266 * conf/i386-pc.rmk: Likewise.
28267 * docs/grub.texi (Vendor power-on keys): New section.
28268 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28269 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28270 and GRUB_BUTTON_CMOS_ADDRESS.
28271 * util/grub.d/00_header.in: Handle powering-on by separate button.
28272
28273 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28274
28275 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28276 Removed drawing_scrollbar argument. All users updated
28277 Fixes #29792.
28278 Reported by Jo Shields
28279
28280 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28281
28282 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28283 buffer since gfxterm handles double repaint.
28284
28285 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28286
28287 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28288 * term/gfxterm.c (real_scroll): Likewise.
28289
28290 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28291
28292 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28293 before calling BIOS.
28294
28295 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28296
28297 * include/grub/i18n.h: Always enable grub_gettext.
28298
28299 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28300
28301 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28302 partition naming style.
28303
28304 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28305
28306 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28307 not the first option.
28308
28309 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28310
28311 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28312
28313 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28314
28315 * util/misc.c: Move inclusion of <limits.h> to ...
28316 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28317
28318 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28319
28320 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28321 Fix merge error in NetBSD code.
28322 (find_partition_start) [__NetBSD__]: Likewise.
28323
28324 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28325
28326 Fix grub-mkrescue usage unit testing.
28327
28328 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28329
28330 2010-05-18 Christian Franke <franke@computer.org>
28331
28332 * util/grub.d/10_windows.in: Use path names instead of
28333 drive letters to prevent warning from Cygwin 1.7.
28334 Add drivemap command to menuentry if needed.
28335
28336 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28337
28338 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28339 gnumach and gnumach.gz.
28340
28341 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28342
28343 * include/grub/i18n.h (gettext): Inline instead of using #define.
28344 (grub_gettext): Likewise.
28345 (_): Likewise.
28346
28347 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28348
28349 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28350 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28351 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28352 (main): Add a slash after pkglibdirroot.
28353
28354 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28355
28356 * util/grub-install.in: Add missing "in" keyword.
28357
28358 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28359
28360 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28361 Reported by: Seth Goldberg.
28362
28363 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28364
28365 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28366
28367 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28368
28369 * configure.ac: Check for Linux device-mapper support.
28370
28371 * util/hostdisk.c (device_is_mapped): New function.
28372 (find_partition_start): New function, partly broken out from
28373 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28374 device-mapper support added.
28375 (linux_find_partition): Use find_partition_start.
28376 (convert_system_partition_to_system_disk): Add `st' argument.
28377 Support Linux /dev/mapper/* devices if device-mapper support is
28378 available; only DM-RAID devices are understood at present.
28379 (find_system_device): Add `st' argument. Pass it to
28380 convert_system_partition_to_system_disk.
28381 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28382 find_system_device and convert_system_partition_to_system_disk. Use
28383 find_partition_start.
28384
28385 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28386 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28387 * util/deviceiter.c [__linux__]: Define MINOR.
28388 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28389 * util/mkdevicemap.c (grub_putchar): New function.
28390 (grub_getkey): New function.
28391 (grub_refresh): New function.
28392 (main): Set debug=all if -v -v is used.
28393
28394 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28395
28396 Fix build with non-GNU libcs.
28397
28398 * util/misc.c (canonicalize_file_name): Move to ...
28399 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28400 grub_make_system_path_relative_to_its_root.
28401
28402 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28403
28404 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28405 we handle finding grub-mkimage. Default to finding grub-mkimage in
28406 ${bindir} with program_transform_name applied, and provide a
28407 --grub-mkimage option to override this.
28408
28409 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28410
28411 Remove grub-mkisofs.
28412
28413 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28414 (grub_mkisofs_SOURCES): Removed.
28415 (grub_mkisofs_CFLAGS): Removed.
28416 * util/mkisofs/defaults.h: Removed.
28417 * util/mkisofs/eltorito.c: Likewise.
28418 * util/mkisofs/exclude.h: Likewise.
28419 * util/mkisofs/hash.c: Likewise.
28420 * util/mkisofs/include/: Likewise.
28421 * util/mkisofs/include/fctldefs.h: Likewise.
28422 * util/mkisofs/include/mconfig.h: Likewise.
28423 * util/mkisofs/include/prototyp.h: Likewise.
28424 * util/mkisofs/include/statdefs.h: Likewise.
28425 * util/mkisofs/iso9660.h: Likewise.
28426 * util/mkisofs/joliet.c: Likewise.
28427 * util/mkisofs/match.c: Likewise.
28428 * util/mkisofs/match.h: Likewise.
28429 * util/mkisofs/mkisofs.c: Likewise.
28430 * util/mkisofs/mkisofs.h: Likewise.
28431 * util/mkisofs/msdos_partition.h: Likewise.
28432 * util/mkisofs/multi.c: Likewise.
28433 * util/mkisofs/name.c: Likewise.
28434 * util/mkisofs/rock.c: Likewise.
28435 * util/mkisofs/tree.c: Likewise.
28436 * util/mkisofs/write.c: Likewise.
28437
28438 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28439
28440 Unify grub-mkimage accross platforms.
28441
28442 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28443 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28444 (grub_mkelfimage_SOURCES): Removed.
28445 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28446 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28447 (bin_UTILITIES): Add grub-mkimage.
28448 (grub_mkimage_SOURCES): New variable.
28449 (kernel_img_HEADERS): Remove machine/kernel.h.
28450 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28451 (pkglib_PROGRAMS): Add kernel.img.
28452 (kernel_img_HEADERS): Add machine/kernel.h.
28453 (kernel_img_FORMAT): Removed.
28454 (bin_UTILITIES): Remove grub-mkimage.
28455 (grub_mkimage_SOURCES): Removed.
28456 (grub_mkimage_CFLAGS): Likewise.
28457 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28458 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28459 (pkglib_PROGRAMS): Add kernel.img.
28460 (bin_UTILITIES): Remove grub-mkimage.
28461 (grub_mkimage_SOURCES): Removed.
28462 (grub_mkimage_CFLAGS): Likewise.
28463 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28464 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28465 (pkglib_PROGRAMS): Add kernel.img.
28466 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28467 (pkglib_PROGRAMS): Add kernel.img.
28468 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28469 (grub_mkimage_SOURCES): Removed.
28470 (grub_mkimage_CFLAGS): Likewise.
28471 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28472 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28473 (pkglib_PROGRAMS): Add kernel.img.
28474 (bin_UTILITIES): Remove grub-mkimage.
28475 (grub_mkimage_SOURCES): Removed.
28476 (grub_mkimage_CFLAGS): Likewise.
28477 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28478 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28479 (grub_mkimage_SOURCES): Removed.
28480 (grub_mkimage_CFLAGS): Likewise.
28481 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28482 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28483 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28484 (grub_pe32_optional_header): ... this.
28485 (grub_pe64_optional_header): ... and this. All users updated.
28486 (GRUB_PE32_PE32_MAGIC): Split into ..
28487 (GRUB_PE32_PE32_MAGIC): .. this.
28488 (GRUB_PE32_PE64_MAGIC): .. and this.
28489 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28490 * include/grub/elf.h (PT_GNU_STACK): New definition.
28491 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28492 * include/grub/i386/efi/kernel.h: Likewise.
28493 * include/grub/i386/kernel.h: Likewise.
28494 * include/grub/i386/pc/kernel.h: Likewise.
28495 * include/grub/i386/qemu/boot.h: Likewise.
28496 * include/grub/mips/kernel.h: Likewise.
28497 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28498 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28499 * include/grub/powerpc/kernel.h: Likewise.
28500 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28501 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28502 * include/grub/sparc64/kernel.h: Likewise.
28503 * include/grub/x86_64/efi/kernel.h: Likewise.
28504 * include/grub/x86_64/kernel.h: Likewise.
28505 * include/grub/offsets.h: New file.
28506 * include/grub/kernel.h (grub_module_info): Split into ...
28507 (grub_module_info32): ... this.
28508 (grub_module_info64): ... and this.
28509 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28510 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28511 (grub_boot_blocklist): Moved from here ...
28512 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28513 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28514 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28515 * include/grub/types.h (grub_target_to_host16): Removed.
28516 (grub_target_to_host32): Likewise.
28517 (grub_target_to_host64): Likewise.
28518 (grub_host_to_target16): Likewise.
28519 (grub_host_to_target32): Likewise.
28520 (grub_host_to_target64): Likewise.
28521 (grub_host_to_target_addr): Likewise.
28522
28523 Support grub-mkrescue for efi, coreboot and qemu.
28524
28525 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28526 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28527 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28528 * util/grub-mkrawimage.c: Moved from here ...
28529 * util/grub-mkimage.c: ... here. All users updated.
28530 (ALIGN_ADDR): Use image_target.
28531 (TARGET_NO_FIELD): New const.
28532 (image_target_desc): New type.
28533 (image_targets): New array.
28534 (grub_target_to_host64): Use image_target.
28535 (grub_target_to_host32): Likewise.
28536 (grub_target_to_host16): Likewise.
28537 (grub_host_to_target64): Likewise.
28538 (grub_host_to_target32): Likewise.
28539 (grub_host_to_target16): Likewise.
28540 (grub_host_to_target_addr): Likewise.
28541 (generate_image): Handle multiimage.
28542 (main): Require -O parameter. All users updated.
28543 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28544 util/efi/grub-mkimage.c
28545 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28546 New option --rom-directory.
28547 Use xorriso.
28548 * util/i386/efi/grub-mkimage.c: Removed.
28549 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28550 (grub_target_to_host32): Likewise.
28551 (grub_target_to_host64): Likewise.
28552 (grub_host_to_target16): Likewise.
28553 (grub_host_to_target32): Likewise.
28554 (grub_host_to_target64): Likewise.
28555 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28556 (grub_target_to_host32): Likewise.
28557 (grub_target_to_host64): Likewise.
28558 (grub_host_to_target16): Likewise.
28559 (grub_host_to_target32): Likewise.
28560 (grub_host_to_target64): Likewise.
28561
28562 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28563
28564 Source tree is reorganized for emu build.
28565
28566 * include/grub/util/console.h: Move from here...
28567 * include/grub/emu/console.h: ...to here.
28568 * include/grub/util/getroot.h: Move from here...
28569 * include/grub/emu/getroot.h: ...to here.
28570 * include/grub/util/hostdisk.h: Move from here...
28571 * include/grub/emu/hostdisk.h: ...to here.
28572 * util/console.c: Move from here...
28573 * kern/emu/console.c: ...to here.
28574 * util/getroot.c: Move from here...
28575 * kern/emu/getroot.c: ...to here.
28576 * util/grub-emu.c: Move from here...
28577 * kern/emu/main.c: ...to here.
28578 * util/hostdisk.c: Move from here...
28579 * kern/emu/hostdisk.c: ...to here.
28580 * util/hostfs.c: Move from here...
28581 * kern/emu/hostfs.c: ...to here.
28582 * util/mm.c: Move from here...
28583 * kern/emu/mm.c: ...to here.
28584 * util/pci.c: Move from here...
28585 * bus/emu/pci.c: ...to here.
28586 * util/sdl.c: Move from here...
28587 * video/emu/sdl.c: ...to here.
28588 * util/time.c: Move from here...
28589 * kern/emu/time.c: ...to here.
28590 * util/usb.c: Move from here...
28591 * bus/usb/emu/usb.c: ...to here.
28592
28593 * include/grub/emu/misc.h: New header for grub-emu functions.
28594 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28595
28596 * conf/any-emu.rmk: Rule updates for above renames.
28597 * conf/common.rmk: Likewise.
28598 * conf/i386-pc.rmk: Likewise.
28599 * conf/i386-qemu.rmk: Likewise.
28600 * conf/mips.rmk: Likewise.
28601 * conf/sparc64-ieee1275.rmk: Likewise.
28602 * conf/x86-efi.rmk: Likewise.
28603
28604 * disk/lvm.h: #include updates for above renames.
28605 * util/grub-mkrelpath.c: Likewise.
28606 * util/grub-probe.c: Likewise.
28607 * util/i386/pc/grub-setup.c: Likewise.
28608 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28609 * kern/emu/console.c: Likewise.
28610 * kern/emu/getroot.c: Likewise.
28611 * kern/emu/hostdisk.c: Likewise.
28612 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28613
28614 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28615 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28616 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28617 * util/misc.c: Remove grub-emu functions.
28618
28619 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28620
28621 Fix gfxmenu crash.
28622 Reported by: Thorsten Grützmacher.
28623
28624 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28625 timeout hook.
28626 (circprog_set_property): Register and unregister timeout hook.
28627 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28628 (label_destroy): Free template. and unregister hook.
28629 (label_set_state): New function.
28630 (label_set_property): Handle templates and hooks.
28631 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28632 timeout hook.
28633 (progress_bar_set_property): Register and unregister timeout hook.
28634 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28635 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28636 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28637 (update_timeout_visit): Removed.
28638 (update_timeouts): New function.
28639 (redraw_timeouts): Likewise.
28640 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28641 (grub_gfxmenu_clear_timeout): Likewise.
28642 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28643 (grub_gfxmenu_timeout_notify): Likewise.
28644 (grub_gfxmenu_timeout_notifications): New external variable.
28645 (grub_gfxmenu_timeout_register): New function.
28646 (grub_gfxmenu_timeout_unregister): Likewise.
28647
28648 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28649
28650 Transform (broken) vga terminal into (working) vga video driver.
28651
28652 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28653 video/i386/pc/vga.c.
28654 * include/grub/video.h (grub_video_driver_id):
28655 Add GRUB_VIDEO_DRIVER_VGA.
28656 * term/i386/pc/vga.c: Renamed to ...
28657 * video/i386/pc/vga.c: ...this
28658 (DEBUG_VGA): Removed.
28659 (CHAR_WIDTH): Likewise.
28660 (CHAR_HEIGHT): Likewise.
28661 (TEXT_WIDTH): Likewise.
28662 (TEXT_HEIGHT): Likewise.
28663 (DEFAULT_FG_COLOR): Likewise.
28664 (DEFAULT_BG_COLOR): Likewise.
28665 (colored_char): Likewise.
28666 (xpos): Likewise.
28667 (ypos): Likewise.
28668 (cursor_state): Likewise.
28669 (fg_color): Likewise.
28670 (bg_color): Likewise.
28671 (text_buf): Likewise.
28672 (page): Likewise.
28673 (font): Likewise.
28674 (framebuffer): New variable.
28675 (set_read_map): Disabled.
28676 (setup): New variable.
28677 (is_target): Likewise.
28678 (grub_vga_mod_init): Likewise.
28679 (grub_vga_mod_fini): Likewise.
28680 (check_vga_mem): Likewise.
28681 (write_char): Likewise.
28682 (write_cursor): Likewise.
28683 (scroll_up): Likewise.
28684 (grub_vga_putchar): Likewise.
28685 (grub_vga_getcharwidth): Likewise.
28686 (grub_vga_getwh): Likewise.
28687 (grub_vga_getxy): Likewise.
28688 (grub_vga_gotoxy): Likewise.
28689 (grub_vga_cls): Likewise.
28690 (grub_vga_setcolorstate): Likewise.
28691 (grub_vga_setcursor): Likewise.
28692 (grub_video_vga_init): New function.
28693 (grub_video_vga_setup): Likewise.
28694 (grub_video_vga_fini): Likewise.
28695 (update_target): Likewise.
28696 (grub_video_vga_blit_bitmap): Likewise.
28697 (grub_video_vga_blit_render_target): Likewise.
28698 (grub_video_vga_set_active_render_target): Likewise.
28699 (grub_video_vga_get_active_render_target): Likewise.
28700 (grub_video_vga_swap_buffers): Likewise.
28701 (grub_video_vga_set_palette): Likewise.
28702 (grub_video_vga_get_info_and_fini): Likewise.
28703 (grub_vga_term): Removed.
28704 (grub_video_vga_adapter): New variable.
28705 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28706 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28707
28708 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28709
28710 * video/readers/jpeg.c: Indented.
28711
28712 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28713
28714 Various jpeg cleanups.
28715
28716 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28717 (grub_jpeg_decode_quan_table): Use sizeof.
28718 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28719
28720 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28721
28722 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28723 tables. Ignore non-last ac bit.
28724 (grub_jpeg_decode_quan_table): Likewise.
28725
28726 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28727
28728 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28729 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28730 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28731 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28732 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28733 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28734
28735 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28736
28737 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28738 error.
28739
28740 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28741
28742 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28743
28744 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28745
28746 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28747 condition.
28748
28749 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28750
28751 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28752 part.
28753
28754 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28755
28756 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28757 pointers.
28758
28759 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28760
28761 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28762
28763 2010-05-01 Christian Franke <franke@computer.org>
28764
28765 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28766 Remove broken Cygwin path conversion.
28767 * util/misc.c: [__CYGWIN__] Add include and define.
28768 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28769 for Cygwin 1.7.
28770 (make_system_path_relative_to_its_root): Simplify loop, replace early
28771 return by break.
28772 [__CYGWIN__] Add conversion to win32 path.
28773 Include "/" case in trailing slash removal.
28774
28775 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28776
28777 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28778 Reported by: Seth Goldberg
28779
28780 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28781
28782 * commands/help.c (grub_cmd_help): Fix a typo.
28783 Reported by: Seth Goldberg
28784
28785 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28786
28787 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28788 name and add N_.
28789 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28790 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28791 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28792 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28793 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28794 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28795 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28796 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28797 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28798 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28799 * normal/context.c (GRUB_MOD_INIT): Likewise.
28800 * normal/main.c (GRUB_MOD_INIT): Likewise.
28801 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28802 * term/serial.c (GRUB_MOD_INIT): Likewise.
28803 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28804
28805 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28806
28807 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28808 extra == 0.
28809
28810 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28811
28812 * commands/iorw.c: New file.
28813 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28814 (iorw_mod_SOURCES): New variable.
28815 (iorw_mod_CFLAGS): Likewise.
28816 (iorw_mod_LDFLAGS): Likewise.
28817
28818 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28819
28820 Hotkey support
28821
28822 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28823 * normal/main.c (hotkey_aliases): New variable.
28824 (grub_normal_add_menu_entry): Parse "--hotkey".
28825 * normal/menu_text.c (run_menu): Handle hotkeys.
28826
28827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28828
28829 * kern/i386/coreboot/init.c (grub_machine_init): Call
28830 grub_machine_mmap_init on qemu.
28831
28832 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28833
28834 * boot/i386/qemu/boot.S: Add a missing .code16.
28835
28836 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28837
28838 Use LBIO on coreboot.
28839
28840 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28841 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28842 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28843 New declaration.
28844 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28845 grub_machine_mmap_init on coreboot.
28846 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28847 GRUB_LINUXBIOS_MEMBER_LINK.
28848 (grub_machine_mmap_iterate): Fix declaration.
28849 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28850
28851 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28852
28853 Split coreboot and multiboot ports.
28854
28855 * conf/i386-multiboot.rmk: New file.
28856 * configure.ac: Add multiboot port.
28857 * include/grub/i386/multiboot/boot.h: New file.
28858 * include/grub/i386/multiboot/console.h: Likewise.
28859 * include/grub/i386/multiboot/init.h: Likewise.
28860 * include/grub/i386/multiboot/kernel.h: Likewise.
28861 * include/grub/i386/multiboot/loader.h: Likewise.
28862 * include/grub/i386/multiboot/memory.h: Likewise.
28863 * include/grub/i386/multiboot/serial.h: Likewise.
28864 * include/grub/i386/multiboot/time.h: Likewise.
28865 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28866 * loader/multiboot.c: Likewise.
28867 * loader/multiboot_mbi2.c: Likewise.
28868 * util/grub-mkrescue.in: Generate multiboot rescue.
28869
28870 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28871
28872 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28873
28874 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28875
28876 Merge handling of input and output terminals. Fix a hang.
28877
28878 * commands/terminal.c (abstract_terminal): New struct.
28879 (handle_command): New function. Based on grub_cmd_terminal_input.
28880 (grub_cmd_terminal_input): Use handle_command.
28881 (grub_cmd_terminal_output): Use handle_command.
28882
28883 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28884
28885 Fix comment handling.
28886
28887 * tests/grub_script_comments.in: New testcase.
28888 * conf/tests.rmk: Rules for new testcase.
28889 * script/yylex.l: Updated flex rules.
28890
28891 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28892
28893 * docs/grub.texi (play): Document that zero pitches produce rests.
28894 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28895 if argc is 1.
28896
28897 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28898
28899 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28900 autogen issues.
28901
28902 2010-04-26 Christian Franke <franke@computer.org>
28903
28904 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28905 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28906 (grub_get_prefix): Remove function.
28907 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28908 make_system_path_relative_to_its_root ().
28909 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28910
28911 2010-04-24 Christian Franke <franke@computer.org>
28912
28913 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28914 (kernel_img_LDFLAGS): Remove -static-libgcc.
28915
28916 2010-04-24 Christian Franke <franke@computer.org>
28917
28918 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28919 and CHECK_END_SYMBOL if grub-emu is built.
28920 Unset TARGET_OBJ2ELF if grub-emu is built
28921 without module support.
28922
28923 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28924
28925 Nilfs2 support.
28926
28927 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28928 (grub_fstest_SOURCES): Likewise.
28929 (pkglib_MODULES): Add nilfs2.mod.
28930 (nilfs2_mod_SOURCES): New variable.
28931 (nilfs2_mod_CFLAGS): Likewise.
28932 (nilfs2_mod_LDFLAGS): Likewise.
28933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28934 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
28935 * fs/nilfs2.c: New file.
28936
28937 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
28938
28939 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
28940 is not supported.
28941
28942 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
28943
28944 Add grub-mkconfig support for NetBSD.
28945
28946 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
28947 * util/grub-mkconfig.in: export new NetBSD specific variables.
28948 * po/POTFILES-shell: added 10_netbsd.in.
28949 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
28950
28951 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
28952
28953 Fix emu build with grub-emu-pci and grub-emu-modules.
28954
28955 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
28956 functions.
28957 * include/grub/libpciaccess.h: New file.
28958 * conf/any-emu.rmk: Update kernel headers for emu build.
28959
28960 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28961
28962 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
28963
28964 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
28965
28966 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
28967
28968 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
28971 Retrieve chosen/bootpath if bootpath isn't hardcoded.
28972 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
28973 util/ieee1275/ofpath.c.
28974 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
28975 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
28976 * include/grub/sparc64/ieee1275/boot.h
28977 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
28978 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
28979 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
28980 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
28981 const char *.
28982 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
28983 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
28984 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
28985 install.
28986
28987 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
28988
28989 * util/grub-mkconfig.in: Corrected two == equality tests.
28990 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
28991 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
28992 expect a number appended to it.
28993 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
28994 expects a number appended to it.
28995
28996 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
28997
28998 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
28999
29000 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 * util/hostdisk.c (make_device_name): Change to new partition naming.
29003
29004 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29005
29006 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29007
29008 2010-04-17 Christian Franke <franke@computer.org>
29009
29010 * Makefile.in: Add missing localedir setting.
29011
29012 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29013
29014 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29015 mistake in r2156. Noticed by Anthony Fok.
29016
29017 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29018 @localedir@.
29019 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29020
29021 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29022
29023 Fix a spurious, uninitialized variable warning.
29024
29025 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29026 Initialize variable, shdr.
29027 (grub_freebsd_load_elfmodule): Likewise.
29028 (grub_freebsd_load_elf_meta): Likewise.
29029
29030 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29031
29032 Fix for escaped dollar in double quoted strings.
29033
29034 * script/yylex.l: Updated flex rules.
29035 * conf/tests.rmk: Rule for new testcase.
29036 * tests/grub_script_dollar.in: New testcase.
29037
29038 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29039 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29040
29041 Enclose all translated strings in grub.cfg in single quotes, and
29042 escape them appropriately (Ubuntu bug #552921).
29043
29044 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29045 * util/grub.d/10_hurd.in: Use it.
29046 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29047 * util/grub.d/10_linux.in (linux_entry): Likewise.
29048
29049 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29050
29051 Fix cygwin compilation.
29052
29053 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29054 * include/grub/misc.h (__register_frame_info)
29055 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29056 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29057 * kern/misc.c (__register_frame_info)
29058 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29059 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29060
29061 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29062
29063 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29064
29065 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29066
29067 Unify libgcc processing.
29068
29069 * Makefile.in (kernel_img_LDFLAGS): New variable.
29070 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29071 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29072 overwriting.
29073 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29074 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29075 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29076 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29077 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29078 overwriting. Remove -lgcc and -static-libgcc
29079 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29080 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29081 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29082 (kernel_img_LDFLAGS): Append instead of overwriting.
29083 Remove -lgcc and -static-libgcc
29084 * conf/sparc64-ieee1275.rmk: Likewise.
29085 * include/grub/powerpc/libgcc.h: Move to ...
29086 * include/grub/libgcc.h: .. this.
29087 * include/grub/libgcc.h: Don't export most of the function on x86.
29088 (__bswapsi2): New export.
29089 (__bswapdi2): Likewise.
29090 * include/grub/mips/libgcc.h: Removed.
29091 * include/grub/sparc64/libgcc.h: Likewise.
29092
29093 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29094
29095 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29096 disk_info_msg (conflicts with gettexting into languages with cases).
29097
29098 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29099
29100 Add grub-probe support for NetBSD.
29101
29102 * util/getroot.c (find_root_device): Convert block device to
29103 character device on NetBSD.
29104 * util/probe.c (probe): Require character device on NetBSD.
29105 * util/hostdisk.c: NetBSD specific headers.
29106 (configure_device_driver): new function to tune device driver
29107 parameters (currently only for NetBSD floppy driver).
29108 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29109 via disklabel ioctl).
29110 (open_device): call configure_device_driver on NetBSD.
29111 (convert_system_partition_to_system_disk): NetBSD specific code.
29112 (device_is_wholedisk): Likewise.
29113 (grub_util_biosdisk_get_grub_dev): Likewise.
29114 (make_device_name): Fixed a typo in bsd_part_str.
29115 * configure.ac: check for opendisk() and getrawpartition() on
29116 NetBSD and set LIBUTIL.
29117 * Makefile.in: add LIBUTIL to LIBS.
29118
29119 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29120
29121 Documentation fix.
29122
29123 * util/grub-script-check.c: Better help message.
29124
29125 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29126
29127 Fix FreeBSD build.
29128
29129 * configure.ac: Flex version check.
29130 * conf/common.rmk: Add -Wno-error to sh.mod.
29131 * script/yylex.l: Remove all #pragma.
29132
29133 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29134
29135 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29136 prototype.
29137 Reported by: Seth Goldberg.
29138
29139 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29140
29141 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29142 Rename "module" to "module2".
29143 Reported by: Seth Goldberg.
29144
29145 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29146
29147 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29148 EXPORT_FUNC.
29149 Reported by: Seth Goldberg.
29150
29151 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29152
29153 * lib/posix_wrap/locale.h: Add missing file.
29154 Reported by: Seth Goldberg.
29155
29156 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29157
29158 grub-emu module load support.
29159
29160 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29161 NO_DYNAMIC_MODULES switched to this.
29162 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29163 (CFLAGS): Likewise.
29164 * conf/any-emu.rmk: Generate symlist.
29165 (kernel_img_HEADERS): Add util/datetime.h.
29166 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29167 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29168 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29169 kern/$(target_cpu)/cache.S.
29170 * configure.ac (grub-emu-modules): New option.
29171 * genmk.rb: Handle multiple source lists.
29172 * include/grub/sdl.h: New file.
29173 * include/grub/libusb.h: Likewise.
29174 * util/grub-emu.c (main): Hanle (host) root.
29175 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29176 GRUB_ERR_UNKNOWN_DEVICE.
29177 * util/misc.c: Move mm functions to ...
29178 * util/mm.c: ... here. All users updated.
29179
29180 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29181
29182 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29183 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29184 missing files.
29185 (maintainer-clean): Remove libgcrypt-grub.
29186
29187 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29188
29189 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29190
29191 2010-04-09 EFI Coder <eficoder@hotmail.com>
29192
29193 * normal/menu_text.c (print_message): Clean up the message and show
29194 the Fn information when on EFI
29195 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29196
29197 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29198
29199 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29200 All users updated.
29201 * normal/crypto.c (read_crypto_list): Likewise.
29202 * normal/dyncmd.c (read_command_list): Likewise.
29203 * normal/term.c (read_terminal_list): Likewise.
29204 * normal/main.c (read_lists): Use explicit prefix.
29205 (read_lists_hook): Use read_lists.
29206 (grub_normal_execute): Likewise.
29207
29208 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29209
29210 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29211 Reported by: Thomas Schmitt.
29212 Add -no-emul-boot to grub-mkisofs parameters.
29213
29214 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29215
29216 * font/font.c: Indented.
29217
29218 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29219
29220 Elif support to GRUB script (by Deepak Vankadaru).
29221
29222 * tests/grub_script_if.in: New testcase.
29223 * conf/tests.rmk: Rule for new testcase.
29224 * script/parser.y: Grammar rules for elif.
29225
29226 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29227
29228 While and until loops support to GRUB script.
29229
29230 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29231 (grub_script_create_cmdwhile): New function prototype.
29232 (grub_script_execute_cmdwhile): New function prototype.
29233 * script/execute.c (grub_script_execute_cmdwhile): New function.
29234 * script/parser.y (command): New commands.
29235 (whilecmd): New grammar rule.
29236 (untilcmd): New grammar rule.
29237 * script/script.c (grub_script_create_cmdwhile): New function.
29238 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29239 function.
29240
29241 * tests/grub_script_while1.in: New testcase.
29242 * conf/tests.rmk: Rule for new testcase.
29243
29244 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29245
29246 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29247 as *.jpg.
29248
29249 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29250
29251 GRUB_BACKGROUND support.
29252
29253 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29254 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29255
29256 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29257
29258 Load fonts and modules for gfxmenu in grub-mkconfig.
29259 Idea by: Mario Vazquez
29260
29261 * util/grub.d/00_header.in: Load pf2 and image modules.
29262
29263 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29264
29265 grub-mkconfig multiple terminal support.
29266
29267 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29268 * util/grub.d/00_header.in: Likewise.
29269
29270 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29271
29272 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29273 we use cd $(srcdir).
29274
29275 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29276
29277 * util/grub.d/10_linux.in: Only use the first word of
29278 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29279 spaces in GRUB_DISTRIBUTOR.
29280 * util/grub.d/10_kfreebsd.in: Likewise.
29281 * util/grub.d/10_hurd.in: Likewise.
29282
29283 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29284
29285 Fix unit testing framework for Qemu 0.12.
29286
29287 * tests/util/grub-shell.in: Remove -serial stdio option.
29288
29289 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29290
29291 POSIX header file wrappers.
29292
29293 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29294 equivalents.
29295 * lib/posix_wrap/ctype.h: Likewise.
29296 * lib/posix_wrap/errno.h: Likewise.
29297 * lib/posix_wrap/langinfo.h: Likewise.
29298 * lib/posix_wrap/limits.h: Likewise.
29299 * lib/posix_wrap/localcharset.h: Likewise.
29300 * lib/posix_wrap/stdint.h: Likewise.
29301 * lib/posix_wrap/stdio.h: Likewise.
29302 * lib/posix_wrap/stdlib.h: Likewise.
29303 * lib/posix_wrap/string.h: Likewise.
29304 * lib/posix_wrap/sys/types.h: Likewise.
29305 * lib/posix_wrap/unistd.h: Likewise.
29306 * lib/posix_wrap/wchar.h: Likewise.
29307 * lib/posix_wrap/wctype.h: Likewise.
29308 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29309 (grub_script.yy.h): Likewise.
29310 * script/yylex.l: Remove POSIX emulation #defines.
29311 * Makefile.in (POSIX_CFLAGS): New variable.
29312 (GNULIB_UTIL_CFLAGS): Likewise.
29313
29314 Regexp support.
29315
29316 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29317 (regexp_mod_SOURCES): New variable.
29318 (regexp_mod_CFLAGS): Likewise.
29319 (regexp_mod_LDFLAGS): Likewise.
29320 * commands/regexp.c: New file.
29321 * gnulib/regcomp.c: New file. Imported from gnulib.
29322 * gnulib/regex.c: Likewise.
29323 * gnulib/regex_internal.c: Likewise.
29324 * gnulib/regex_internal.h: Likewise.
29325 * gnulib/regexec.c: Likewise.
29326 * gnulib/regex.h: Likewise.
29327
29328 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29329
29330 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29331 unsupported video mode types.
29332
29333 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29334
29335 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29336
29337 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29338
29339 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29340 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29341
29342 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29343
29344 Remove unused grub_vga_get_font.
29345
29346 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29347 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29348
29349 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29350
29351 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29352 * include/grub/misc.h: Likewise.
29353
29354 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29355
29356 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29357 for which failure is fatal.
29358
29359 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29360
29361 * util/grub-install.in: Use mkdir -p to create grub directory.
29362 * util/i386/efi/grub-install.in: Likewise.
29363 * util/ieee1275/grub-install.in: Likewise.
29364
29365 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29366
29367 * Makefile.in (LEX): new variable.
29368
29369 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29370
29371 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29372 `=' and added double quotes on operands of this equality test.
29373
29374 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29375
29376 * Makefile.in (uninstall): Remove a leftover debug echo.
29377 Reported by: Grégoire Sutre
29378
29379 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29380
29381 MIPS multiboot2 support.
29382
29383 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29384 (multiboot2_mod_SOURCES): New variable.
29385 (multiboot2_mod_CFLAGS): Likewise.
29386 (multiboot2_mod_LDFLAGS): Likewise.
29387 (multiboot2_mod_ASFLAGS): Likewise.
29388 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29389 definition.
29390 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29391 (MULTIBOOT_MBI_REGISTER): Likewise.
29392 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29393 (MULTIBOOT_ELF32_MACHINE): Likewise.
29394 (MULTIBOOT_ELF64_MACHINE): Likewise.
29395 * include/grub/mips/multiboot.h: New file.
29396 * include/grub/video.h (grub_video_driver_id): New type
29397 GRUB_VIDEO_DRIVER_SM712.
29398 (grub_video_get_info_and_fini): Export.
29399 (grub_video_get_palette): Likewise.
29400 (grub_video_get_driver_id): Likewise.
29401 * include/multiboot2.h: Resynced with spec.
29402 * loader/i386/multiboot.c: Moved from here ...
29403 * loader/multiboot.c: ... here. All users updated.
29404 (grub_multiboot_boot): Use platform-specific macros.
29405 * loader/i386/multiboot_elfxx.c: Moved from here ...
29406 * loader/multiboot_elfxx.c: ... here. All users updated.
29407 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29408 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29409 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29410
29411 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29412
29413 Import gnulib argp module.
29414
29415 * gnulib/argp-ba.c: New file.
29416 * gnulib/argp-eexst.c: Likewise.
29417 * gnulib/argp-fmtstream.c: Likewise.
29418 * gnulib/argp-fmtstream.h: Likewise.
29419 * gnulib/argp-fs-xinl.c: Likewise.
29420 * gnulib/argp-help.c: Likewise.
29421 * gnulib/argp-namefrob.h: Likewise.
29422 * gnulib/argp-parse.c: Likewise.
29423 * gnulib/argp-pin.c: Likewise.
29424 * gnulib/argp-pv.c: Likewise.
29425 * gnulib/argp-pvh.c: Likewise.
29426 * gnulib/argp-version-etc.c: Likewise.
29427 * gnulib/argp-version-etc.h: Likewise.
29428 * gnulib/argp-xinl.c: Likewise.
29429 * gnulib/argp.h: Likewise.
29430
29431 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29432
29433 * kern/device.c (grub_device_iterate): Clear errors after failed
29434 opening device.
29435
29436 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29437
29438 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29439 returned by firmware.
29440
29441 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29442
29443 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29444 compilation on coreboot and qemu
29445
29446 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29447
29448 * include/multiboot2.h: Resync with spec.
29449
29450 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29451
29452 Multiboot2 tag support
29453
29454 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29455 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29456 Remove loader/multiboot_loader.c.
29457 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29458 (grub_multiboot2_real_boot): Likewise.
29459 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29460 (grub_get_multiboot_mmap_count): New proto.
29461 (grub_fill_multiboot_mmap): Likewise.
29462 (grub_multiboot_set_video_mode): Likewise.
29463 (grub_multiboot_set_console): Likewise.
29464 (grub_multiboot_load): Likewise.
29465 (grub_multiboot_load_elf): Likewise.
29466 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29467 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29468 * include/multiboot.h: Resynced with specification.
29469 * include/multiboot2.h: Resynced with specification.
29470 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29471 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29472 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29473 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29474 users updated.
29475 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29476 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29477 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29478 Removed.
29479 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29480 Moved from here...
29481 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29482 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29483 Moved from here...
29484 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29485 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29486 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29487 All users updated.
29488 * loader/i386/multiboot_mbi2.c: New file.
29489
29490 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29491
29492 Resync with gnulib.
29493
29494 * Makefile.in (GNULIB_CFLAGS): New variable.
29495 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29496 (grub_script_check_CFLAGS): New variable.
29497 * gnulib/alloca.h: Resync with gnulib.
29498 * gnulib/error.c: Likewise.
29499 * gnulib/error.h: Likewise.
29500 * gnulib/fnmatch.c: Likewise.
29501 * gnulib/fnmatch_loop.c: Likewise.
29502 * gnulib/getdelim.c: Likewise.
29503 * gnulib/getline.c: Likewise.
29504 * gnulib/getopt.c: Likewise.
29505 * gnulib/getopt1.c: Likewise.
29506 * gnulib/getopt_int.h: Likewise.
29507 * gnulib/gettext.h: Likewise.
29508 * gnulib/progname.c: Likewise.
29509 * gnulib/progname.h: Likewise.
29510
29511 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29512
29513 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29514 which is the case with --disabled-nls.
29515
29516 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29517 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29518 * util/misc.c: Likewise.
29519 * util/mkisofs/mkisofs.c: Likewise.
29520 * util/mkisofs/mkisofs.h: Likewise.
29521
29522 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29523
29524 Simplify Apple CC support.
29525
29526 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29527 Add 0 byte at the end not to have a symbol with empty target.
29528 * mmap/i386/pc/mmap_helper.S: Likewise.
29529 * genmk.rb: Ignore errors 2030 and 2050.
29530 * kern/i386/pc/startup.S: Use LOCAL when possible.
29531
29532 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29533
29534 Testcase and the fix for final semicolon on cmdline.
29535
29536 * tests/grub_script_final_semicolon.in: New testcase.
29537 * conf/tests.rmk: Rules for the new testcase.
29538 * script/parser.y: Grammar fix.
29539
29540 2010-03-26 BVK Chaitanya <bvk@localhost>
29541
29542 Blank lines testcase for GRUB script.
29543
29544 * tests/grub_script_blanklines.in: New testcase.
29545 * conf/tests.rmk: Rules for the new testcase.
29546
29547 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29548
29549 Don't use __FILE__.
29550
29551 * genmk.rb: Add -DGRUB_FILE to all C targets.
29552 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29553 * include/grub/list.h: Likewise.
29554 * include/grub/misc.h: Likewise.
29555 * include/grub/mm.h: Likewise.
29556 * include/grub/test.h: Likewise.
29557 * kern/mm.c: Likewise.
29558 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29559
29560 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29561
29562 Sunpc partitions support.
29563
29564 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29565 (grub_fstest_SOURCES): Likewise.
29566 (pkglib_MODULES): Add part_sunpc.mod.
29567 (part_sunpc_mod_SOURCES): New variable.
29568 (part_sunpc_mod_CFLAGS): Likewise.
29569 (part_sunpc_mod_LDFLAGS): Likewise.
29570 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29571 * partmap/sunpc.c: New file.
29572
29573 2010-03-26 BVK Chaitanya <bvk@localhost>
29574
29575 For loop support to GRUB script.
29576
29577 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29578 (grub_script_create_cmdfor): New function prototype.
29579 (grub_script_execute_cmdfor): New function prototype.
29580 * script/execute.c (grub_script_execute_cmdfor): New function.
29581 * script/parser.y (command): New for command.
29582 (forcmd): New grammar rule.
29583 * script/script.c (grub_script_create_cmdfor): New function.
29584 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29585 function.
29586 * tests/grub_script_for1.in: New testcase.
29587 * conf/tests.rmk: Rules for new testcase.
29588
29589 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29590
29591 Nested partitions
29592
29593 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29594 'partition' is NULL, grub_partition_get_start already does that.
29595 * commands/loadenv.c (check_blocklists): Likewise.
29596 (write_blocklists): Likewise.
29597 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29598 (grub_fstest_SOURCES): Likewise.
29599 (pkglib_MODULES): Add part_bsd.mod.
29600 (part_bsd_mod_SOURCES): New variable.
29601 (part_bsd_mod_CFLAGS): Likewise.
29602 (part_bsd_mod_LDFLAGS): Likewise.
29603 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29604 (grub_emu_SOURCES): Likewise.
29605 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29606 * include/grub/bsdlabel.h: New file.
29607 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29608 'get_name'.
29609 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29610 (grub_partition_map_list): New variable.
29611 (grub_partition_map_register): Inline.
29612 (grub_partition_map_unregister): Likewise.
29613 (FOR_PARTITION_MAPS): New macro.
29614 (grub_partition_map_iterate): Removed.
29615 (grub_partition_get_start): Handle nested partitions.
29616 * include/grub/msdos_partition.h: Remove bsd-related entries.
29617 (grub_pc_partition): Remove.
29618 * kern/disk.c (grub_disk_close): Free partition data.
29619 (grub_disk_adjust_range): Handle nested partitions.
29620 * kern/partition.c (grub_partition_map_probe): New function.
29621 (grub_partition_probe): Parse name to number, handle subpartitions.
29622 (get_partmap): New function.
29623 (grub_partition_iterate): Handle subpartitions.
29624 (grub_partition_get_name): Likewise.
29625 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29626 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29627 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29628 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29629 Set 'number'.
29630 (acorn_partition_map_probe): Remove.
29631 (acorn_partition_map_get_name): Likewise.
29632 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29633 Set 'number'.
29634 Set 'index' to 0 since there can be only one partition entry per sector.
29635 (amiga_partition_map_probe): Remove.
29636 (amiga_partition_map_get_name): Likewise.
29637 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29638 Set 'number'.
29639 Set 'offset' and 'index' to real positions of partitions.
29640 (apple_partition_map_probe): Remove.
29641 (apple_partition_map_get_name): Likewise.
29642 * partmap/bsdlabel.c: New file.
29643 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29644 Set 'number'.
29645 Allocate 'data' so it can be correctly freed.
29646 Set 'index' to offset inside sector.
29647 (gpt_partition_map_probe): Remove.
29648 (gpt_partition_map_get_name): Likewise.
29649 * partmap/msdos.c (grub_partition_parse): Remove.
29650 (pc_partition_map_iterate): Don't force raw access.
29651 Set 'number'.
29652 Make 'ext_offset' a local variable.
29653 (pc_partition_map_probe): Remove.
29654 (pc_partition_map_get_name): Remove.
29655 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29656 Set 'number'.
29657 (sun_partition_map_probe): Remove.
29658 (sun_partition_map_get_name): Likewise.
29659 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29660 (grub_pcpart_type): Likewise.
29661 * util/hostdisk.c (open_device): Handle new numbering scheme.
29662 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29663 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29664 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29665 * util/grub-install.in: Insert all subpartition modules.
29666 * util/ieee1275/grub-install.in: Likewise.
29667
29668 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29669
29670 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29671 grammar.
29672
29673 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29674
29675 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29676
29677 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29678
29679 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29680 match where 'make install' puts them.
29681 * util/i386/efi/grub-install.in: Likewise.
29682
29683 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29684
29685 * .bzrignore: Add gentrigtables, grub-script-check,
29686 grub_script_check_init.c, grub_script_check_init.h, and
29687 trigtables.c.
29688
29689 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29690
29691 * kern/parser.c: Indented.
29692
29693 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29694
29695 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29696
29697 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29698
29699 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29700 alpha_mask_size == 0 case.
29701
29702 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29703
29704 GRUB shell lexer and parser improvements.
29705
29706 * conf/any-emu.rmk: Build rule updates.
29707 * conf/common.rmk: Likewise.
29708 * conf/i386-coreboot.rmk: Likewise.
29709 * conf/i386-efi.rmk: Likewise.
29710 * conf/i386-ieee1275.rmk: Likewise.
29711 * conf/i386-pc.rmk: Likewise.
29712 * conf/powerpc-ieee1275.rmk: Likewise.
29713 * conf/x86_64-efi.rmk: Likewise.
29714
29715 * configure.ac: Configure check for flex.
29716
29717 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29718 types.
29719 (grub_lexer_param): Struct member updates.
29720 (grub_parser_param): Likewise.
29721 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29722 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29723 (grub_script_lexer_init): Prototype update.
29724 (grub_script_lexer_record_start): Likewise.
29725 (grub_script_lexer_record_stop): Likewise.
29726 (grub_script_lexer_yywrap): New function prototype.
29727 (grub_script_lexer_fini): Likewise.
29728 (grub_script_execute_argument_to_string): Removed by...
29729 (grub_script_execute_argument_to_argv): ...better version.
29730
29731 * script/execute.c (ROUND_UPTO): New macro.
29732 (grub_script_execute_cmdline): Out of memory fixes.
29733 (grub_script_execute_menuentry): Likewise.
29734 (grub_script_execute_argument_to_string): Removed. Update all
29735 users by...
29736 (grub_script_execute_argument_to_argv): ...better version.
29737 * script/function.c (grub_script_function_create): Use
29738 grub_script_execute_argument_to_argv instead of
29739 grub_script_execute_argument_to_string.
29740
29741 * script/lexer.c (check_varstate): Removed.
29742 (check_textstate): Removed.
29743 (grub_script_lexer_record_start): Likewise.
29744 (grub_script_lexer_record_stop): Likewise.
29745 (recordchar): Replaced with...
29746 (grub_script_lexer_record): ...new function.
29747 (nextchar): Removed.
29748 (grub_script_lexer_init): Rewritten.
29749 (grub_script_yylex): Rewritten.
29750 (append_newline): New function.
29751 (grub_script_lexer_yywrap): New function.
29752 (grub_script_lexer_fini): New function.
29753 (grub_script_yyerror): Sets error flag.
29754
29755 * script/yylex.l: New file.
29756 (grub_lexer_yyfree): Wrapper for flex yyffre.
29757 (grub_lexer_yyalloc): Likewise.
29758 (grub_lexer_yyrealloc): Likewise.
29759 * script/parser.y: Refactored.
29760
29761 * script/script.c (grub_script_arg_add): Out of memory fixes.
29762 (grub_script_add_arglist): Likewise.
29763 (grub_script_create_cmdline): Likewise.
29764 (grub_script_create_cmdmenu): Likewise.
29765 (grub_script_add_cmd): Likewise.
29766 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29767 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29768 unnecessary code.
29769
29770 * tests/grub_script_echo1.in: New testcase.
29771 * tests/grub_script_vars1.in: New testcase.
29772 * tests/grub_script_echo_keywords.in: New testcase.
29773
29774 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29775
29776 Remove some redundancy in build system.
29777
29778 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29779 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29780 (TARGET_LDFLAGS): Add -nostdlib.
29781 (TARGET_IMG_LDFLAGS): Likewise.
29782 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29783 anything since mmap isn't available.
29784 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29785 Add util/time.c.
29786 (pkglib_MODULES): Remove reboot.mod.
29787 (reboot_mod_SOURCES): Removed.
29788 (reboot_mod_CFLAGS): Likewise.
29789 (reboot_mod_LDFLAGS): Likewise.
29790 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29791 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29792 (DEFSYMFILES): Add kernel_syms.lst.
29793 (kernel_img_HEADERS): Add common headers.
29794 (symlist.c): New target.
29795 (kernel_syms.lst): Likewise.
29796 (pkglib_MODULES): Add memdisk.mod.
29797 (memdisk_mod_SOURCES): New variable.
29798 (memdisk_mod_CFLAGS): Likewise.
29799 (memdisk_mod_LDFLAGS): Likewise.
29800 (pkglib_MODULES): Add reboot.mod.
29801 (reboot_mod_SOURCES): New variable.
29802 (reboot_mod_CFLAGS): Likewise.
29803 (reboot_mod_LDFLAGS): Likewise.
29804 (pkglib_MODULES): Add date.mod.
29805 (date_mod_SOURCES): New variable.
29806 (date_mod_CFLAGS): Likewise.
29807 (date_mod_LDFLAGS): Likewise.
29808 (pkglib_MODULES): Add datehook.mod.
29809 (datehook_mod_SOURCES): New variable.
29810 (datehook_mod_CFLAGS): Likewise.
29811 (datehook_mod_LDFLAGS): Likewise.
29812 (pkglib_MODULES): Add lsmmap.mod.
29813 (lsmmap_mod_SOURCES): New variable.
29814 (lsmmap_mod_CFLAGS): Likewise.
29815 (lsmmap_mod_LDFLAGS): Likewise.
29816 (pkglib_MODULES): Add boot.mod.
29817 (boot_mod_SOURCES): New variable.
29818 (boot_mod_CFLAGS): Likewise.
29819 (boot_mod_LDFLAGS): Likewise.
29820 * conf/i386-coreboot.rmk: Removed redundant parts.
29821 * conf/i386-ieee1275.rmk: Likewise.
29822 * conf/i386-pc.rmk: Likewise.
29823 * conf/mips-yeeloong.rmk: Likewise.
29824 * conf/mips.rmk: Likewise.
29825 * conf/powerpc-ieee1275.rmk: Likewise.
29826 * conf/sparc64-ieee1275.rmk: Likewise.
29827 * conf/x86_64-efi.rmk: Likewise.
29828 * conf/i386-coreboot.rmk: Moved qemu parts ..
29829 * conf/i386-qemu.rmk: ... here
29830 * conf/i386-efi.rmk: Moved common parts to...
29831 * conf/x86-efi.rmk: ... here.
29832 * conf/i386.rmk: Added modules common to all x86 variants.
29833 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29834 * disk/memdisk.c: Remove grub/machine/kernel.h.
29835 * gensymlist.sh.in: Include symbol.h.
29836 * hook/datehook.c: Correct module name.
29837 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29838 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29839 * include/grub/i386/efi/serial.h: New file.
29840 * include/grub/x86_64/efi/serial.h: Likewise.
29841 * util/time.c: Likewise.
29842 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29843
29844 2010-03-14 Colin King <colin.king@ubuntu.com>
29845 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29846
29847 Shrink the pre-partition-table part of boot.img by eight bytes.
29848
29849 * boot/i386/pc/boot.S (ERR): New macro.
29850 (chs_mode): Use ERR.
29851 (geometry_error): Likewise.
29852 (hd_probe_error): Remove. This is only used once, so we wrwite
29853 it inline instead.
29854 (read_error): Instead of printing read_error_string, just set up
29855 %si and fall through to ...
29856 (error_message): ... this new function, also used by ERR.
29857
29858 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29859
29860 Speed up consecutive hostdisk operations on the same device.
29861
29862 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29863 (grub_util_biosdisk_open): Initialise disk->data.
29864 (struct linux_partition_cache): New structure.
29865 (linux_find_partition): Cache partition start positions; these are
29866 expensive to compute on every read and write.
29867 (open_device): Cache open file descriptor in disk->data, so that we
29868 don't have to reopen it and flush the buffer cache for consecutive
29869 operations on the same device.
29870 (grub_util_biosdisk_close): New function.
29871 (grub_util_biosdisk_dev): Set `close' member.
29872
29873 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29874 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29875 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29876 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29877 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29878
29879 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29880
29881 Compile parts of grub-emu as modules.
29882
29883 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29884 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29885 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29886 (all-local): Add $(GRUB_EMU).
29887 (install-local): Install $(GRUB_EMU).
29888 (uninstall): Uninstall $(GRUB_EMU).
29889 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29890 * kern/dl.c: Likewise.
29891 * commands/sleep.c: Not include machine/time.h.
29892 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29893 (COMMON_CFLAGS): Likewise.
29894 (sbin_UTILITIES): Remove grub-emu.
29895 (grub_emu_SOURCES): Removed.
29896 (kernel_img_RELOCATABLE): New variable.
29897 (pkglib_PROGRAMS): Add kernel.img.
29898 (kernel_img_SOURCES): New variable
29899 (kernel_img_CFLAGS): Likewise.
29900 (kernel_img_LDFLAGS): Likewise.
29901 (TARGET_NO_STRIP): Likewise.
29902 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29903 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29904 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29905 (grub-emu): New target.
29906 (GRUB_EMU): New variable.
29907 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29908 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29909 * loader/xnu.c: Likewise.
29910 * include/grub/pci.h: Likewise.
29911 * genemuinit.sh: New file.
29912 * genemuinitheader.sh: Likewise.
29913 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29914 Support TARGET_NO_DYNAMIC_MODULES.
29915 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29916 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29917 * disk/loopback.c: Likewise.
29918 * font/font_cmd.c: Likewise.
29919 * partmap/acorn.c: Likewise.
29920 * partmap/amiga.c: Likewise.
29921 * partmap/apple.c: Likewise.
29922 * partmap/gpt.c: Likewise.
29923 * partmap/msdos.c: Likewise.
29924 * partmap/sun.c: Likewise.
29925 * parttool/msdospart.c: Likewise.
29926 * term/gfxterm.c: Likewise.
29927 * video/bitmap.c: Likewise.
29928 * video/readers/jpeg.c: Likewise.
29929 * video/readers/png.c: Likewise.
29930 * video/readers/tga.c: Likewise.
29931 * video/video.c: Likewise.
29932 * util/grub-emu.c (read_command_list): Removed.
29933 (main): Don't call util_init_nls.
29934 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
29935 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
29936
29937 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29938
29939 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
29940 date.mod, datehook.mod.
29941 (datetime_mod_SOURCES): New variable.
29942 (datetime_mod_CFLAGS): Likewise.
29943 (datetime_mod_LDFLAGS): Likewise.
29944 (date_mod_SOURCES): Likewise.
29945 (date_mod_CFLAGS): Likewise.
29946 (date_mod_LDFLAGS): Likewise.
29947 (datehook_mod_SOURCES): Likewise.
29948 (datehook_mod_CFLAGS): Likewise.
29949 (datehook_mod_LDFLAGS): Likewise.
29950 * conf/sparc64-ieee1275.rmk: Likewise.
29951 * lib/ieee1275/datetime.c: New file.
29952
29953 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29954
29955 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
29956 (ieee1275_fb_mod_SOURCES): New variable.
29957 (ieee1275_fb_mod_CFLAGS): Likewise.
29958 (ieee1275_fb_mod_LDFLAGS): Likewise.
29959 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
29960 New proto.
29961 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
29962 (HEAP_MAX_ADDR): Likewise.
29963 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
29964 type.
29965 Correct stop condition.
29966 (grub_ieee1275_devices_iterate): New function.
29967 * video/ieee1275.c: New file.
29968
29969 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29970
29971 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
29972
29973 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
29974 as scratch.
29975 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
29976 SCRATCH_PAD_DISKBOOT as scratch.
29977 (bootit): Pass Openfirmware pointer in %o4.
29978 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
29979 of 0x200000.
29980 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
29981 with util/grub-mkrawimage.c.
29982 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
29983 * include/grub/aout.h (AOUT_MID_SUN): New definition.
29984 (grub_aout_get_type) [GRUB_UTIL]: Removed.
29985 (grub_aout_load) [GRUB_UTIL]: Likewise.
29986 * include/grub/kernel.h (grub_modules_get_end): New proto.
29987 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
29988 (SCRATCH_PAD_BOOT): New definition.
29989 (SCRATCH_PAD_DISKBOOT): Likewise.
29990 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
29991 * include/grub/sparc64/ieee1275/ieee1275.h
29992 (grub_ieee1275_original_stack): New variable
29993 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
29994 New definition
29995 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
29996 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
29997 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
29998 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
29999 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30000 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30001 (grub_platform_image_format_t): New type.
30002 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30003 * kern/main.c (grub_modules_get_end)
30004 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30005 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30006 (codestart): Switch stacks.
30007 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30008 variable.
30009 (grub_heap_init): Use grub_modules_get_end.
30010 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30011 stack.
30012 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30013 (main): Likewise.
30014 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30015
30016 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30017
30018 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30019
30020 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30021
30022 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30023 bug #559005).
30024
30025 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30026
30027 * genmoddep.awk: Output all missing symbols and not only first.
30028
30029 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30030
30031 * NEWS: Put the date of 1.98 release.
30032
30033 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30036 ft2build.h.
30037
30038 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30039
30040 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30041 completition in the middle of string.
30042
30043 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30044
30045 * util/grub-mkrescue.in: Use mktemp with explicit template.
30046
30047 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30048
30049 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30050
30051 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30052
30053 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30054 right pointer.
30055
30056 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30057
30058 Fix FreeBSD compilation.
30059
30060 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30061 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30062
30063 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30064
30065 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30066
30067 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30068
30069 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30070
30071 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30072
30073 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30074
30075 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30076
30077 Support relative image path in theme file.
30078
30079 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30080 (image_set_property): Handle theme_dir and relative path.
30081
30082 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30083
30084 * configure.ac: Alias amd64 to x86_64.
30085
30086 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30087
30088 * NEWS: mention multiboot on EFI.
30089
30090 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30091
30092 * kern/main.c (grub_load_modules): Handle errors from init functions of
30093 embeded modules.
30094
30095 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30096
30097 * normal/autofs.c (autoload_fs_module): Handle errors.
30098
30099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30100
30101 Disable linux.mod on qemu-mips since it's not functional and leads
30102 to compilation failure.
30103
30104 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30105 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30106 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30107 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30108 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30109 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30110 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30111 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30112 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30113 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30114 Reported by: BVK Chaitanya
30115
30116 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30117
30118 * INSTALL: Add gettext as a dependency and add qemu to a new section
30119 "Prerequisites for make-check".
30120
30121 2010-03-04 Christian Franke <franke@computer.org>
30122
30123 * util/grub-pe2elf.c: Add missing include "progname.h".
30124
30125 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 * normal/crypto.c (read_crypto_list): Fix a typo.
30128 Reported by: Seth Goldberg.
30129
30130 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30131
30132 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30133 Reported by: Seth Goldberg.
30134
30135 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30136
30137 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30138 ascii.bitmaps.
30139
30140 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30141
30142 * genmk.rb: Remove terminal*.lst in make clean.
30143 Reported by: Seth Goldberg.
30144
30145 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30146
30147 * util/i386/efi/grub-install.in: Copy gettext files.
30148
30149 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30150
30151 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30152
30153 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30154
30155 Wait for user entry basing on presence of output rather than on errors.
30156
30157 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30158 (grub_install_newline_hook): Likewise.
30159 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30160 * normal/menu.c (show_menu): Check line_counter to determine presence
30161 of output.
30162 * normal/term.c (grub_normal_line_counter): New variable.
30163 (grub_normal_get_line_counter): New function.
30164 (grub_install_newline_hook): Likewise.
30165
30166 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30167
30168 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30169
30170 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30171
30172 * configure.ac: Update version to 1.98.
30173
30174 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30175
30176 * util/grub.d/10_linux.in (linux_entry): Don't default to
30177 gfxpayload=keep if Linux doesn't support video handover.
30178
30179 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30180
30181 Don't compile video modules on yeeloong since video subsystem is part
30182 of kernel.
30183
30184 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30185 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30186 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30187 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30188 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30189 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30190 * include/grub/bitmap_scale.h: Likewise.
30191 * include/grub/bufio.h: Likewise.
30192 * include/grub/font.h: Likewise.
30193 * include/grub/gfxterm.h: Likewise.
30194 * include/grub/video.h: Likewise.
30195 * include/grub/vbe.h: Don't include video_fb.h.
30196 * video/i386/pc/vbe.c: Include video_fb.h.
30197 * commands/i386/pc/vbetest.c: Include video.h.
30198
30199 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30200
30201 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30202 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30203 default entry if GRUB_SAVEDEFAULT=true. This allows using
30204 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30205 saving a new default on every boot.
30206
30207 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30208
30209 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30210 * normal/term.c (read_terminal_list): Likewise.
30211 * normal/main.c (grub_normal_init_page): Likewise.
30212 (grub_normal_read_line_real): Likewise.
30213
30214 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30215
30216 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30217 memory leak.
30218 Reported by: Seth Goldberg.
30219
30220 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30221
30222 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30223 duplicate declaration of `start'.
30224
30225 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30226
30227 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30228 filename.
30229 Reported by: Georgy Buranov
30230
30231 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30232
30233 * util/grub-mkrawimage.c (usage): Change string formatting to
30234 improve gettext.
30235
30236 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30237
30238 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30239 backspace keys.
30240
30241 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30242
30243 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30244 Reported by: Michael Suchanek.
30245
30246 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30247
30248 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30249 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30250
30251 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30252
30253 Remove any reference to non-free fonts.
30254
30255 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30256 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30257 uses non-free components.
30258 * font/font.c (grub_font_get_name): Remove example name.
30259 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30260 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30261 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30262 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30263
30264 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30265
30266 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30267
30268 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30269
30270 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30271 Double divisor.
30272 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30273 features.
30274 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30275
30276 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30277
30278 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30279
30280 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30281
30282 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30283 * docs/grub.texi (Command-line and menu entry commands): Document play
30284 command.
30285
30286 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30287
30288 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30289 parse arguments as inline tempo and notes. Move code for playing notes
30290 to...
30291 (play): ... new function.
30292
30293 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30294
30295 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30296 grub_uint16_t instead of short.
30297 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30298 disk from little endian to cpu endianness.
30299
30300 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30301
30302 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30303 GRUB_TICKS_PER_SECOND instead of 120.
30304
30305 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30306
30307 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30308 escape sequence after \e.
30309
30310 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30311
30312 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30313 non-ASCII characters.
30314
30315 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30316
30317 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30318 set root in single quotes to prevent \, from being unescaped.
30319
30320 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30321
30322 Prevent unknown commands from stopping menuentry execution.
30323
30324 * script/execute.c (grub_script_execute_cmdline): Print error after
30325 unknown command.
30326
30327 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30328
30329 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30330 Reported by: Pavel Pisa.
30331
30332 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30333
30334 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30335
30336 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30337
30338 Merge grub_ieee1275_map_physical into grub_map and rename to
30339 grub_ieee1275_map
30340
30341 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30342 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30343 Remove.
30344 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30345 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30346 necessary.
30347 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30348
30349 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30350
30351 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30352 opening and not after.
30353
30354 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30355
30356 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30357 constants.
30358
30359 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30360
30361 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30362 (alloc_phys): Use ALIGN_UP instead of align_addr.
30363
30364 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30365
30366 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30367
30368 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30371
30372 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30375 verbose dprintf.
30376
30377 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30378
30379 Fix over-4GiB seek on sparc64.
30380
30381 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30382 Replace pos_i and pos_lo with pos. All users updated.
30383 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30384 New constant.
30385 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30386 Likewise.
30387 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30388 and pos_lo.
30389
30390 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 * util/grub-mkrawimage.c (main): Call set_program_name.
30393
30394 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30395
30396 Properly align 64-bit targets.
30397
30398 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30399 (generate_image): Use ALIGN_ADDR.
30400
30401 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30402
30403 Properly create cross-endian images.
30404
30405 * include/grub/types.h (grub_host_to_target_addr): New macro
30406 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30407
30408 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30409
30410 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30411
30412 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30413
30414 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30415
30416 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30417 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30418 (grub_linux_boot): Divide by 64K when on VESA.
30419
30420 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30421
30422 Support GRUB_GFXPAYLOAD_LINUX.
30423
30424 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30425 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30426
30427 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30428
30429 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30430 to show messages instead of discarding them.
30431 Process errors after executing command and not before. Keep old method
30432 too as precaution.
30433
30434 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30435
30436 * configure.ac: Check for ft2build.h.
30437
30438 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30439
30440 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30441
30442 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30443
30444 * genkernsyms.sh.in: Use TARGET_CC.
30445
30446 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30447
30448 * NEWS: Update.
30449
30450 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30451
30452 * include/grub/multiboot2.h: Remove leftover file.
30453 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30454 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30455
30456 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30457
30458 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30459
30460 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30461
30462 Fix warnings in grub-emu when compiling with maximum warning options.
30463
30464 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30465 (grub_arch_modules_addr): Return 0 and not NULL.
30466 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30467 (xstrdup): Use newstr instead of dup.
30468 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30469 of disk to dsk to avoid shadowing.
30470 (find_free_slot): Fix prototype.
30471 * util/getroot.c (grub_util_is_dmraid): Make static.
30472 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30473 Add missing prototype.
30474 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30475
30476 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30477
30478 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30479 appropriately.
30480
30481 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30482
30483 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30484 code out.
30485
30486 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30489 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30490 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30491 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30492 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30493 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30494
30495 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30496
30497 * include/grub/err.h (grub_err_printf): Don't export.
30498
30499 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30500
30501 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30502
30503 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30504
30505 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30506 * kern/misc.c (grub_gettext_dummy): Make static.
30507
30508 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30509
30510 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30511 by non-valid ones.
30512 * kern/term.c (grub_putchar): Likewise.
30513
30514 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30515
30516 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30517 buggy hook call and memory leak.
30518
30519 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30520
30521 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30522
30523 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30524
30525 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30526
30527 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30528
30529 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30530 modevar.
30531 Return grub_errno on allocation error.
30532
30533 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30534
30535 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30536
30537 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30538
30539 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30540 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30541
30542 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30543
30544 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30545 non-pxe disk.
30546 (grub_pxefs_open): Likewise.
30547
30548 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30549
30550 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30551 * util/grub.d/10_kfreebsd.in: Likewise.
30552 * util/grub.d/10_linux.in: Likewise.
30553
30554 2010-02-06 Colin D Bennett <colin@gibibit.com>
30555
30556 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30557 (gfxmenu_mod_SOURCES): New variable.
30558 (gfxmenu_mod_CFLAGS): Likewise.
30559 (gfxmenu_mod_LDFLAGS): Likewise.
30560 * include/grub/term.h (grub_term_set_current_output): Declare
30561 argument as const.
30562 * docs/gfxmenu-theme-example.txt: New file.
30563 * gfxmenu/gfxmenu.c: Likewise.
30564 * gfxmenu/gui_box.c: Likewise.
30565 * gfxmenu/gui_canvas.c: Likewise.
30566 * gfxmenu/gui_circular_progress.c: Likewise.
30567 * gfxmenu/gui_image.c: Likewise.
30568 * gfxmenu/gui_label.c: Likewise.
30569 * gfxmenu/gui_list.c: Likewise.
30570 * gfxmenu/gui_progress_bar.c: Likewise.
30571 * gfxmenu/gui_string_util.c: Likewise.
30572 * gfxmenu/gui_util.c: Likewise.
30573 * gfxmenu/icon_manager.c: Likewise.
30574 * gfxmenu/model.c: Likewise.
30575 * gfxmenu/named_colors.c: Likewise.
30576 * gfxmenu/theme_loader.c: Likewise.
30577 * gfxmenu/view.c: Likewise.
30578 * gfxmenu/widget-box.c: Likewise.
30579 * include/grub/gfxmenu_model.h: Likewise.
30580 * include/grub/gfxmenu_view.h: Likewise.
30581 * include/grub/gfxwidgets.h: Likewise.
30582 * include/grub/gui.h: Likewise.
30583 * include/grub/gui_string_util.h: Likewise.
30584 * include/grub/icon_manager.h: Likewise.
30585
30586 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30587
30588 Agglomerate scrolling in gfxterm.
30589
30590 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30591 (grub_virtual_screen_setup): Initialise 'total_screen'.
30592 (write_char): Split to ...
30593 (paint_char): ... this ...
30594 (write_char): ... and this.
30595 (paint_char): Handle delayed scrolling.
30596 (draw_cursor): Likewise.
30597 (scroll_up): Split to ...
30598 (real_scroll): ... this ...
30599 (scroll_up): ... and this.
30600 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30601 characters.
30602 (grub_gfxterm_refresh): Call real_scroll.
30603
30604 2010-02-06 Colin D Bennett <colin@gibibit.com>
30605
30606 * include/grub/misc.h (grub_iscntrl): New inline function.
30607 (grub_isalnum): Likewise.
30608 (grub_strtol): Likewise.
30609
30610 2010-02-06 Colin D Bennett <colin@gibibit.com>
30611
30612 * normal/menu_text.c (get_entry_number): Move from here ...
30613 * normal/menu.c (get_entry_number): ... moved here.
30614 * include/grub/menu.h (grub_menu_get_default_entry_index):
30615 New prototype.
30616 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30617 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30618 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30619 (grub_menu_viewer_should_return): Likewise.
30620 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30621 * normal/menu_text.c (run_menu): Enable menu switching.
30622 * normal/menu_viewer.c (should_return): New variable.
30623 (menu_viewer_changed): Likewise.
30624 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30625 (grub_menu_viewer_should_return): New function.
30626 (menuviewer_write_hook): Likewise.
30627 (grub_menu_viewer_init): Likewise.
30628
30629 2010-02-06 Colin D Bennet <colin@gibibit.com>
30630 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30631
30632 Support for gfxterm in a window.
30633
30634 * include/grub/gfxterm.h: New file.
30635 * include/grub/video.h (struct grub_video_rect): New declaration.
30636 (grub_video_rect_t): Likewise.
30637 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30638 (refcount): New variable.
30639 (render_target): Likewise.
30640 (window): Likewise.
30641 (repaint_callback): Likewise.
30642 (grub_virtual_screen_setup): Use 'render_target'.
30643 (init_window): New function.
30644 (grub_gfxterm_init_window): Likewise.
30645 (grub_gfxterm_init): Check reference counter.
30646 Use init_window.
30647 (destroy_window): New function.
30648 (grub_gfxterm_destroy_window): Likewise.
30649 (grub_gfxterm_fini): Check reference counter.
30650 Use destroy_window.
30651 (redraw_screen_rect): Restore viewport.
30652 Use 'render_target' and 'window'.
30653 Call 'repaint_callback'.
30654 (write_char): Use 'render_target'.
30655 (draw_cursor): Likewise.
30656 (scroll_up): Restore viewport.
30657 Use 'render_target' and 'window'.
30658 Call 'repaint_callback'.
30659 (grub_gfxterm_cls): Likewise.
30660 (grub_gfxterm_refresh): Use 'window'.
30661 (grub_gfxterm_set_repaint_callback): New function.
30662 (grub_gfxterm_background_image_cmd): Use 'window'.
30663 (grub_gfxterm_get_term): New function.
30664 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30665
30666 2010-02-06 Colin D Bennett <colin@gibibit.com>
30667
30668 Bitmap scaling support.
30669
30670 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30671 (bitmap_scale_mod_SOURCES): New variable.
30672 (bitmap_scale_mod_CFLAGS): Likewise.
30673 (bitmap_scale_mod_LDFLAGS): Likewise.
30674 * include/grub/bitmap_scale.h: New file.
30675 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30676 (background_image_cmd_options): New variable.
30677 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30678 (cmd): Rename and change type to ...
30679 (background_image_cmd_handle): ... this. All users updated.
30680 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30681 * video/bitmap_scale.c: New file.
30682
30683 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30684
30685 SDL support.
30686
30687 * Makefile.in (LIBSDL): New variable.
30688 (enable_grub_emu_sdl): Likewise.
30689 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30690 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30691 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30692 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30693 * util/sdl.c: New file.
30694
30695 2010-02-06 Colin D Bennett <colin@gibibit.com>
30696 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30697
30698 Double buffering support.
30699
30700 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30701 * include/grub/video.h: Update comment.
30702 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30703 New type.
30704 (grub_video_fb_doublebuf_blit_init): New prototype.
30705 * term/gfxterm.c (scroll_up): Support double buffering.
30706 (grub_gfxterm_refresh): Likewise.
30707 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30708 (grub_video_fb_doublebuf_blit_init): Likewise.
30709 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30710 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30711 'displayed_page', 'render_page' and 'update_screen'.
30712 (grub_video_vbe_fini): Free offscreen buffer.
30713 (doublebuf_pageflipping_commit): New function.
30714 (doublebuf_pageflipping_update_screen): Likewise.
30715 (doublebuf_pageflipping_init): Likewise.
30716 (double_buffering_init): Likewise.
30717 (grub_video_vbe_setup): Enable doublebuffering.
30718 (grub_video_vbe_swap_buffers): Implement.
30719 (grub_video_vbe_set_active_render_target): Handle double buffering.
30720 (grub_video_vbe_get_active_render_target): Likewise.
30721 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30722 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30723 (grub_video_vbe_enable_double_buffering): Likewise.
30724 (grub_video_vbe_swap_buffers): Use update_screen.
30725 (grub_video_set_mode): Use double buffering.
30726
30727 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30728
30729 * maintainance/gentrigtables.py: Remove.
30730 * lib/trig.c: Likewise.
30731
30732 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30733
30734 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30735 `trigtables.c'.
30736 (trigtables.c): New rule.
30737 (gentrigtables): Likewise.
30738 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30739
30740 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30741
30742 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30743 integer constants.
30744
30745 2010-02-06 Colin D Bennet <colin@gibibit.com>
30746
30747 Trigonometry support.
30748
30749 * include/grub/trig.h: New file.
30750 * lib/trig.c: Likewise.
30751 * maintainance/gentrigtables.py: Likewise.
30752 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30753 (trig_mod_SOURCES): New variable.
30754 (trig_mod_CFLAGS): Likewise.
30755 (trig_mod_LDFLAGS): Likewise.
30756
30757 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30758
30759 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30760 disk devices.
30761
30762 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30763
30764 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30765 error.
30766
30767 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30768
30769 * util/hostdisk.c (open_device): Don't use partition device when reading
30770 before the partition.
30771 (grub_util_biosdisk_read): Don't read from partition and before the
30772 partition in single operation.
30773 (grub_util_biosdisk_write): Don't write to partition and before the
30774 partition in single operation.
30775
30776 2010-02-03 Torsten Landschoff <torsten@debian.org>
30777
30778 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30779 last sectors.
30780
30781 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30782
30783 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30784 CDROM reads.
30785 (grub_biosdisk_write): Refuse to write to CDROM.
30786
30787 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30788
30789 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30790
30791 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30792
30793 * font/font.c (find_glyph): Check that bmp_idx is available before
30794 using it.
30795 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30796 with (font == NULL).
30797
30798 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30799
30800 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30801
30802 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30803
30804 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30805 * util/grub-script-check.c (getline): Fix empty lines case.
30806
30807 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30808
30809 * Makefile.in (check): Exit with fail status when one of the tests
30810 fails.
30811 * tests/example_functional_test.c (example_test): Fix reversed assert.
30812 * tests/example_unit_test.c (example_test): Likewise.
30813
30814 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30815
30816 * util/grub.d/10_linux.in: This script does not use any of the
30817 contents of gettext.sh, only the external command `gettext', so stop
30818 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30819 the same prefix as GRUB.)
30820 * util/grub.d/10_kfreebsd.in: Likewise.
30821
30822 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30823
30824 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30825 of the line.
30826
30827 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30828
30829 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30830 last sectors.
30831
30832 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30833
30834 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30835 having a 4KiB and not 32KiB buffer size.
30836
30837 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30838
30839 * util/hostfs.c: Include `<errno.h>'.
30840 (grub_hostfs_read): Handle errors from fseeko() and fread().
30841
30842 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30843
30844 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30845 loop when using read hooks on files whose size isn't sector-aligned.
30846
30847 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30848
30849 Remove unused parameter.
30850
30851 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30852 (grub_iso9660_open): Remove initialization of `data->length'.
30853
30854 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30855
30856 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30857 memleak conditions.
30858
30859 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30860
30861 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30862 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30863
30864 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30865
30866 * util/bin2h.c (usage): Fix warning (space after backslash).
30867
30868 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30869
30870 * font/font.c: Include `grub/fontformat.h.
30871 Remove font file format constants.
30872 (grub_font_load): Use the new macros.
30873 * include/grub/fontformat.h: New file.
30874 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30875 (write_font_pf2): Use the new macros.
30876
30877 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30878
30879 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30880 does.
30881
30882 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30883
30884 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30885
30886 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30887 (_start): Macroify `0x7F'.
30888
30889 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30890 (make_install_device): Use "(pxe)" as fallback prefix when booting
30891 via PXE.
30892
30893 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30894
30895 * configure.ac: Reset LIBS after check for libgcc symbols.
30896
30897 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30898
30899 * util/hostdisk.c (open_device): Add trailing newline to debug
30900 message.
30901
30902 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30903
30904 * configure.ac: Check for `limits.h'.
30905 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30906
30907 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30908
30909 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30910 capitalize error strings.
30911
30912 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30913
30914 * util/grub.d/10_hurd.in: Add a recovery mode.
30915
30916 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30917
30918 * configure.ac: Check for libgcc symbols with -nostdlib.
30919
30920 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30921
30922 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30923
30924 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30925
30926 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30927 stack since heap may be unavailable at that point.
30928 (grub_ofconsole_gotoxy): Likewise.
30929
30930 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30931
30932 * configure.ac: Check for _restgpr_14_x.
30933 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
30934 and _savegpr_* prototypes.
30935
30936 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
30937
30938 Use generic grub_reboot() for i386-efi.
30939
30940 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
30941 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
30942 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
30943
30944 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30945
30946 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
30947 presence of "prefix" variable as it breaks when normal.mod is
30948 embedded.
30949
30950 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30951
30952 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
30953 stack since heap is unavailable at that point.
30954
30955 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30956
30957 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
30958 (grub_freebsd_bootinfo): Rewritten.
30959 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
30960
30961 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
30962
30963 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
30964
30965 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
30966
30967 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
30968 domain now.
30969
30970 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
30971
30972 * util/misc.c (make_system_path_relative_to_its_root): Change the work
30973 around for handling "/" to the correct fix. Fix a memory leak. Use
30974 xstrdup instead of strdup.
30975
30976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30977
30978 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
30979
30980 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30981
30982 Optimise glyph lookup by Basic Multilingual Plane lookup array.
30983
30984 * font/font.c (struct grub_font): New member 'bmp_idx'.
30985 (font_init): Initialise 'bmp_idx'.
30986 (load_font_index): Fill 'bmp_idx'.
30987 (find_glyph): Make inline. Use bmp_idx for BMP characters.
30988
30989 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
30992 unnecessary calls.
30993
30994 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30995
30996 Move context handling out of the kernel.
30997
30998 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
30999 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31000 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31001 * conf/i386-efi.rmk: Likewise.
31002 * conf/i386-ieee1275.rmk: Likewise.
31003 * conf/i386-pc.rmk: Likewise.
31004 * conf/powerpc-ieee1275.rmk: Likewise.
31005 * conf/sparc64-ieee1275.rmk: Likewise.
31006 * conf/x86_64-efi.rmk: Likewise.
31007 * include/grub/env.h: Include grub/menu.h.
31008 (grub_env_var_type): Removed.
31009 (grub_env_var): Replaced field 'type' with 'global'.
31010 (grub_env_find): New prototype.
31011 (grub_env_context_open): Remove EXPORT_FUNC.
31012 (grub_env_context_close): Likewise.
31013 (grub_env_export): Likewise.
31014 (grub_env_set_data_slot): Removed.
31015 (grub_env_get_data_slot): Likewise.
31016 (grub_env_unset_data_slot): Likewise.
31017 (grub_env_unset_menu): New prototype.
31018 (grub_env_set_menu): Likewise.
31019 (grub_env_get_menu): Likewise.
31020 * include/grub/env_private.h: New file.
31021 * include/grub/normal.h (grub_context_init): New prototype.
31022 (grub_context_fini): Likewise.
31023 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31024 * normal/context.c (grub_cmd_export): ... to here.
31025 * kern/env.c: Include env_private.h.
31026 (HASHSZ): Moved to include/grub/env_private.h.
31027 (grub_env_context): Likewise.
31028 (grub_env_sorted_var): Likewise.
31029 (current_context): Renamed from this ...
31030 (grub_current_context): ...to this. 'static' removed. All users updated.
31031 (grub_env_find): Removed 'static'.
31032 (grub_env_context_open): Moved to normal/context.c.
31033 (grub_env_context_close): Likewise.
31034 (grub_env_export): Likewise.
31035 (mangle_data_slot_name): Removed.
31036 (grub_env_set_data_slot): Likewise.
31037 (grub_env_get_data_slot): Likewise.
31038 (grub_env_unset_data_slot): Likewise.
31039 * kern/main.c (grub_set_root_dev): Don't export root.
31040 It will be done later.
31041 (grub_main): Don't export prefix.
31042 It will be done later.
31043 * normal/context.c: New file.
31044 * normal/main.c (free_menu): Use grub_env_unset_menu.
31045 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31046 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31047 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31048 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31049
31050 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31051
31052 setpci support.
31053
31054 * commands/setpci.c: New file.
31055 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31056 (setpci_mod_SOURCES): New variable.
31057 (setpci_mod_CFLAGS): Likewise.
31058 (setpci_mod_LDFLAGS): Likewise.
31059
31060 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31061
31062 Byte-addressable PCI configuration space.
31063
31064 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31065 dword address.
31066 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31067 GRUB_PCI_REG_CACHELINE.
31068 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31069 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31070 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31071 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31072 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31073 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31074 grub_pci_make_address.
31075 (lock_rom_area): Likewise.
31076 * commands/lspci.c (grub_lspci_iter): Use macroses
31077 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31078 of grub_pci_make_address.
31079 * disk/ata.c (grub_ata_pciinit): Likewise.
31080 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31081 (GRUB_PCI_REG_VENDOR): Likewise.
31082 (GRUB_PCI_REG_DEVICE): Likewise.
31083 (GRUB_PCI_REG_COMMAND): Likewise.
31084 (GRUB_PCI_REG_STATUS): Likewise.
31085 (GRUB_PCI_REG_REVISION): Likewise.
31086 (GRUB_PCI_REG_CLASS): Likewise.
31087 (GRUB_PCI_REG_CACHELINE): Likewise.
31088 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31089 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31090 (GRUB_PCI_REG_BIST): Likewise.
31091 (GRUB_PCI_REG_ADDRESSES): Likewise.
31092 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31093 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31094 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31095 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31096 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31097 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31098 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31099 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31100 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31101 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31102 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31103 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31104 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31105 (GRUB_PCI_REG_MIN_GNT): Likewise.
31106 (GRUB_PCI_REG_MAX_LAT): Likewise.
31107 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31108 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31109 * video/efi_uga.c (find_framebuf): Likewise.
31110 * video/sm712.c (grub_video_sm712_setup): Likewise.
31111 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31112 space.
31113
31114 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31115
31116 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31117 can be reliably determined to be supported.
31118
31119 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31120
31121 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31122 that VESA is supported.
31123 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31124 supported.
31125
31126 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31127
31128 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31129
31130 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31131
31132 * util/misc.c (make_system_path_relative_to_its_root): Work around
31133 special-casing of "/", as previous incarnation of this routine did.
31134
31135 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31136
31137 Fix any-emu compilation.
31138
31139 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31140 * grub_bin2h_SOURCES: New variable.
31141
31142 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31143
31144 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31145
31146 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31147
31148 * util/grub.d/00_header.in: Fix handling of locale_dir.
31149
31150 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31151
31152 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31153 as possible unifont location (Gentoo).
31154 Reported by: Alexander Brüning
31155
31156 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31157
31158 Don't try to generate lists for kernel.img.
31159
31160 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31161 (pkglib_MODULES): Remove kernel.img.
31162 (kernel_img_EXPORTS): Removed.
31163 (kernel_img_RELOCATABLE): New variable.
31164 * conf/x86_64-efi.rmk: Likewise.
31165 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31166
31167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31168
31169 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31170 grub_xasprintf or grub_snprintf.
31171 (grub_vsprintf): Likewise.
31172 (grub_snprintf): New proto.
31173 (grub_vsnprintf): Likewise.
31174 (grub_xasprintf): Likewise.
31175 (grub_xvasprintf): Likewise.
31176 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31177 (grub_sprintf): Removed.
31178 (grub_vsnprintf): New function.
31179 (grub_snprintf): Likewise.
31180 (grub_xvasprintf): Likewise.
31181 (grub_xasprintf): Likewise.
31182 (grub_vsprintf): Renamed to ...
31183 (grub_vsnprintf_real): ...this. New argument max_len.
31184
31185 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31186
31187 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31188 fix grub-script-check warning.
31189
31190 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31191
31192 * include/grub/font.h (grub_font_load): Fix prototype.
31193
31194 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31195
31196 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31197
31198 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31199
31200 * include/grub/x86_64/at_keyboard.h: New file.
31201
31202 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31203
31204 * loader/mips/linux.c: Include missing grub/i18n.h.
31205
31206 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31207
31208 * normal/menu.c (notify_execution_failure): Clarify error message.
31209
31210 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31211
31212 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31213 return value (and revert all return statements). Update users.
31214
31215 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31216
31217 * kern/device.c (grub_device_iterate): Allocate new part_ent
31218 structure based on sizeof (*p) rather than sizeof (p->next), to
31219 account for structure padding.
31220
31221 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31222 disk is NULL, which might happen for LVM physical volumes with no
31223 LVM signature.
31224
31225 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31226
31227 * loader/mips/linux.c (grub_cmd_initrd)
31228 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31229
31230 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31231
31232 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31233 (grub_video_video_init, grub_video_bitmap_init)
31234 (grub_font_manager_init, grub_term_gfxterm_init)
31235 (grub_at_keyboard_init): New extern declarations.
31236 (grub_machine_init): Initialize gfxterm and at_keyboard.
31237
31238 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31239
31240 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31241 `gfxterm.mod' into core image.
31242
31243 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31244 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31245 (kernel_img_FORMAT): Copy to ...
31246
31247 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31248 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31249 (kernel_img_FORMAT): ... here, and ...
31250
31251 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31252 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31253 (kernel_img_FORMAT): ... here.
31254
31255 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31256 and input (at_keyboard) terminals in kernel.
31257 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31258
31259 (pkglib_MODULES): Remove `pci.mod'.
31260 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31261 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31262 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31263 (at_keyboard_mod_LDFLAGS): Remove variables.
31264
31265 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31266
31267 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31268
31269 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31270
31271 * include/grub/mips/libgcc.h: Only export symbols for functions
31272 that libgcc provides.
31273
31274 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31275
31276 MIPS support.
31277
31278 * bus/bonito.c: New file.
31279 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31280 GRUB_PCI_NUM_DEVICES.
31281 * term/i386/pc/serial.c: Move to ...
31282 * term/serial.c: ... here. All users updated.
31283 * util/i386/pc/grub-mkimage.c: Move to ...
31284 * util/grub-mkrawimage.c: ... here. All users updated.
31285 * term/i386/pc/at_keyboard.c: Move to ...
31286 * term/at_keyboard.c: ... here. All users updated.
31287 * conf/mips-qemu-mips.rmk: New file.
31288 * conf/mips-yeeloong.rmk: Likewise.
31289 * conf/mips.rmk: Likewise.
31290 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31291 mipsel-qemu-mips.
31292 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31293 to port addresses.
31294 (grub_ata_pciinit): Support CS5536.
31295 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31296 * font/font_cmd.c (loadfont_command): Open file before passing it to
31297 grub_font_load.
31298 (pseudo_file_read): New function.
31299 (pseudo_file_close): Likewise.
31300 (pseudo_fs): New structure.
31301 (load_font_module): New function.
31302 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31303 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31304 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31305 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31306 * include/grub/i386/at_keyboard.h: Split into ...
31307 * include/grub/at_keyboard.h: ... this ...
31308 * include/grub/i386/at_keyboard.h: ... and this.
31309 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31310 New prototype.
31311 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31312 updated.
31313 (grub_elf64_size): Likewise.
31314 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31315 filename.
31316 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31317 * include/grub/i386/coreboot/serial.h: Rewritten.
31318 * include/grub/i386/ieee1275/serial.h: Include
31319 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31320 * include/grub/i386/pc/serial.h: Moved from here ...
31321 * include/grub/serial.h: ... to here. All users updated.
31322 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31323 (GRUB_PCI_NUM_BUS): Likewise.
31324 (GRUB_PCI_NUM_DEVICES): Likewise.
31325 (grub_pci_device_map_range): Add missing volatile keyword.
31326 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31327 * include/grub/mips/at_keyboard.h: New file.
31328 * include/grub/mips/cache.h: Likewise.
31329 * include/grub/mips/io.h: Likewise.
31330 * include/grub/mips/kernel.h: Likewise.
31331 * include/grub/mips/libgcc.h: Likewise.
31332 * include/grub/mips/pci.h: Likewise.
31333 * include/grub/mips/qemu-mips/boot.h: Likewise.
31334 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31335 * include/grub/mips/qemu-mips/loader.h: Likewise.
31336 * include/grub/mips/qemu-mips/memory.h: Likewise.
31337 * include/grub/mips/qemu-mips/serial.h: Likewise.
31338 * include/grub/mips/qemu-mips/time.h: Likewise.
31339 * include/grub/mips/relocator.h: Likewise.
31340 * include/grub/mips/time.h: Likewise.
31341 * include/grub/mips/types.h: Likewise.
31342 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31343 * include/grub/mips/yeeloong/boot.h: Likewise.
31344 * include/grub/mips/yeeloong/kernel.h: Likewise.
31345 * include/grub/mips/yeeloong/loader.h: Likewise.
31346 * include/grub/mips/yeeloong/memory.h: Likewise.
31347 * include/grub/mips/yeeloong/pci.h: Likewise.
31348 * include/grub/mips/yeeloong/serial.h: Likewise.
31349 * include/grub/mips/yeeloong/time.h: Likewise.
31350 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31351 * kern/elf.c (grub_elf32_size): New parameter. All users
31352 updated.
31353 (grub_elf64_size): Likewise.
31354 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31355 Load modules before saying "Welcome to GRUB!".
31356 Call grub_refresh after saying "Welcome to GRUB!".
31357 * kern/mips/cache.S: New file.
31358 * kern/mips/cache_flush.S: Likewise.
31359 * kern/mips/dl.c: Likewise.
31360 * kern/mips/init.c: Likewise.
31361 * kern/mips/qemu-mips/init.c: Likewise.
31362 * kern/mips/startup.S: Likewise.
31363 * kern/mips/yeeloong/init.c: Likewise.
31364 * kern/term.c (grub_putcode): Handle NULL terminal.
31365 (grub_getcharwidth): Likewise.
31366 (grub_getkey): Likewise.
31367 (grub_checkkey): Likewise.
31368 (grub_getkeystatus): Likewise.
31369 (grub_getxy): Likewise.
31370 (grub_getwh): Likewise.
31371 (grub_gotoxy): Likewise.
31372 (grub_cls): Likewise.
31373 (grub_setcolorstate): Likewise.
31374 (grub_setcolor): Likewise.
31375 (grub_getcolor): Likewise.
31376 (grub_refresh): Likewise.
31377 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31378 (write_jump): Add hatch nop.
31379 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31380 * lib/mips/setjmp.S: New file.
31381 * loader/mips/linux.c: Likewise.
31382 * term/i386/pc/at_keyboard.c: Move from here ...
31383 * term/at_keyboard.c: ... to here.
31384 * term/i386/pc/serial.c: Moved from here ...
31385 * term/serial.c: ... to here. All users updated.
31386 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31387 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31388 (serial_translate_key_sequence): Avoid deadlock.
31389 (grub_serial_getkey): Handle backspace.
31390 (grub_serial_putchar): Fix newline handling.
31391 * util/i386/pc/grub-mkimage.c: Move from here ...
31392 * util/grub-mkrawimage.c: ... to here. All users updated.
31393 (generate_image): New parameters 'font_path' and 'format'.
31394 Support embedding font.
31395 Use grub_host_to_target* instead of grub_cpu_to_le*.
31396 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31397 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31398 (options): New option "--font".
31399 (usage): Likewise.
31400 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31401 (main): Handle "--font".
31402 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31403 (grub_virtual_screen_setup): Set bg_color_display.
31404 (redraw_screen_rect): Use bg_color_display instead of incorrect
31405 bg_color.
31406 (grub_gfxterm_cls): Likewise.
31407 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31408 Support embedding config file.
31409 (add_segments): Likewise.
31410 (options): New option "--config".
31411 (main): Handle "--config".
31412 * video/sm712.c: New file.
31413
31414 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31415
31416 Fix parallel builds.
31417
31418 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31419 font.c depend on ascii.h).
31420
31421 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31422
31423 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31424
31425 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31426
31427 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31428 By default: disabled.
31429 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31430 parameter.
31431
31432 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31433
31434 * font/font.c: Update copyright years.
31435 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31436
31437 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31438
31439 * font/font.c: Include `ascii.h'.
31440 (ASCII_BITMAP_SIZE): New macro.
31441 (ascii_font_glyph): Define.
31442 (ascii_glyph_lookup): New function.
31443 (grub_font_get_string_width): Change comment. If glyph not found, use
31444 ascii_glyph_lookup.
31445 (grub_font_get_glyph_with_fallback): If glyph not available returns
31446 ascii_glyph_lookup.
31447 * util/grub-mkfont.c (file_formats): New enum.
31448 (options): Add `ascii-bitmaps' new option.
31449 (usage): Add `asii-bitmaps' new option.
31450 (write_font_ascii_bitmap): New function.
31451 (write_font): Rename to ...
31452 (write_font_p2): ... this. Remove print_glyphs call.
31453 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31454 used. Call print_glyphs.
31455 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31456
31457 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31458
31459 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31460 (grub_bin2h_SOURCES): New variable.
31461 * util/bin2h.c: New file.
31462
31463 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31464
31465 * include/multiboot.h: Resynced with spec.
31466 * include/multiboot2.h: Likewise.
31467 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31468 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31469
31470 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31471
31472 * include/grub/term.h (grub_term_register_input,
31473 grub_term_register_output): Check return of terminal init()
31474 routines, and abort if errors are raised.
31475
31476 * commands/terminal.c: Update copyright year.
31477
31478 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31479
31480 * commands/terminal.c (grub_cmd_terminal_input)
31481 (grub_cmd_terminal_output): Check return of terminal init()
31482 routines, and abort if errors are raised.
31483
31484 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31485
31486 * include/grub/i386/bsd.h: Fix include pathes.
31487
31488 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31489
31490 Add missing *BSD copyright headers.
31491
31492 * include/grub/aout.h: Add BSD licence.
31493 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31494 * include/grub/i386/freebsd_linker.h: ... here,
31495 * include/grub/i386/freebsd_reboot.h: ... here,
31496 * include/grub/i386/netbsd_bootinfo.h: ... here,
31497 * include/grub/i386/netbsd_reboot.h: ... here,
31498 * include/grub/i386/openbsd_bootarg.h: ... here,
31499 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31500 licence to each file.
31501
31502 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31503
31504 * acinclude.m4: Remove `nop' assembly instruction; it's not
31505 implemented by all architectures.
31506
31507 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31508
31509 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31510 ELILO. This is no longer necessary.
31511
31512 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31513
31514 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31515
31516 * util/grub-script-check.c: grub-script-check tool.
31517 * conf/common.rmk: Make rules for grub-script-check.
31518
31519 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31520
31521 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31522 spotting it back in 2008. Shame on me for forgetting he did.
31523
31524 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31525
31526 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31527
31528 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31529 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31530 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31531 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31532 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31533 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31534
31535 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31536
31537 * include/grub/test.h: Add license header.
31538 * tests/example_functional_test.c: Likewise.
31539 * tests/example_unit_test.c: Likewise.
31540 * tests/lib/functional_test.c: Likewise.
31541 * tests/lib/test.c: Likewise.
31542 * tests/lib/unit_test.c: Likewise.
31543
31544 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31545
31546 Use flag-based instead of hook-based video mode selection and "auto"
31547 keyword.
31548
31549 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31550 (grub_video_set_mode): Changed prototype. All users updated.
31551 (grub_video_check_mode_flag): New inline function.
31552 * video/video.c (parse_modespec): New function.
31553 (grub_video_set_mode): Parse flags and keywords.
31554
31555 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31556
31557 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31558 fprintf call.
31559
31560 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31561
31562 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31563
31564 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31565
31566 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31567 string.
31568 * util/grub-emu.c (usage): Likewise.
31569 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31570 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31571 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31572 * util/i386/pc/grub-setup.c (usage): Likewise.
31573
31574 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31575
31576 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31577 the message.
31578 (grub_util_info): Likewise.
31579 (grub_util_error): Likewise.
31580 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31581 and/or new lines in `grub_util_warna', `grub_util_info',
31582 `grub_util_error' calls.
31583 * util/getroot.c: Likewise.
31584 * util/grub-editenv.c: Likewise.
31585 * util/grub-emu.c: Likewise.
31586 * util/grub-fstest.c: Likewise.
31587 * util/grub-mkdevicemap.c: Likewise.
31588 * util/grub-mkfont.c: Likewise.
31589 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31590 * util/grub-mkrelpath.c: Likewise.
31591 * util/grub-pe2elf.c: Likewise.
31592 * util/grub-probe.c: Likewise.
31593 * util/hostdisk.c: Likewise.
31594 * util/i386/efi/grub-mkimage.c: Likewise.
31595 * util/i386/pc/grub-mkimage.c: Likewise.
31596 * util/i386/pc/grub-setup.c: Likewise.
31597 * util/ieee1275/ofpath.c: Likewise.
31598 * util/mkisofs/eltorito.c: Likewise.
31599 * util/mkisofs/rock.c: Likewise.
31600 * util/mkisofs/write.c: Likewise.
31601 * util/raid.c: Likewise.
31602 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31603 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31604
31605 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31606
31607 Enable multiboot on non-pc.
31608
31609 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31610 multiboot.mod and multiboot2.mod to ...
31611 * conf/i386.rmk (pkglib_MODULES): ... here.
31612 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31613 Moved to ...
31614 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31615 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31616 Moved to ...
31617 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31618 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31619 Moved to ...
31620 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31621 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31622 Moved to ...
31623 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31624 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31625 relocator.mod.
31626 (ata_mod_SOURCES): Removed.
31627 (ata_mod_CFLAGS): Likewise.
31628 (ata_mod_LDFLAGS): Likewise.
31629 (relocator_mod_SOURCES): Removed.
31630 (relocator_mod_CFLAGS): Likewise.
31631 (relocator_mod_ASFLAGS): Likewise.
31632 (relocator_mod_LDFLAGS): Likewise.
31633 Include i386.mk.
31634 * include/grub/x86_64/multiboot.h: New file.
31635 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31636 Terminate EFI.
31637
31638 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31639
31640 Video multiboot support.
31641
31642 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31643 New prototype.
31644 * include/multiboot.h: Resynced with multiboot specification.
31645 * include/multiboot2.h: Likewise.
31646 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31647 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31648 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31649 (HAS_VGA_TEXT): Likewise.
31650 (accepts_video): New variable.
31651 (grub_multiboot_set_accepts_video): New function.
31652 (grub_multiboot_get_mbi_size): Account for video structures.
31653 (set_video_mode): New function.
31654 (retrieve_video_parameters): Likewise.
31655 (grub_multiboot_make_mbi): Fill video fields.
31656
31657 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31658
31659 Video driver ids.
31660
31661 * include/grub/video.h (grub_video_driver_id): New type.
31662 (grub_video_adapter): New member 'id'. All users updated.
31663 (grub_video_get_driver_id): New proto.
31664 * video/video.c (grub_video_get_driver_id): New function.
31665
31666 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31667
31668 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31669 `var=val'.
31670
31671 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31672
31673 * normal/cmdline.c (print_completion): Gettextizze.
31674
31675 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31676
31677 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31678
31679 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31680
31681 * gettext/gettext.c (grub_gettext_translate): Push and pop
31682 grub_errno.
31683 (grub_gettext_delete_list): Change comment style.
31684 * kern/err.c (grub_error): Gettextizze.
31685 (grub_fatal): Gettextizze.
31686
31687 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31688
31689 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31690 (grub_linux16_real_boot): ... this.
31691 * kern/i386/loader.S: Likewise.
31692 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31693 (grub_linux16_boot): New function. Switches to text mode and calls
31694 grub_linux16_real_boot().
31695
31696 * loader/i386/bsd.c: Include `<grub/video.h>'.
31697 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31698 text mode before calling grub_unix_real_boot().
31699
31700 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31701 (grub_multiboot_boot): Switch to text mode before calling
31702 grub_relocator32_boot().
31703
31704 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31705 (grub_chainloader_boot): Switch to text mode before calling
31706 grub_chainloader_real_boot().
31707
31708 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31709 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31710
31711 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31712 non-empty value.
31713
31714 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31715 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31716
31717 * util/grub.d/00_header.in: Define a "savedefault" function for use
31718 in menu entries.
31719 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31720
31721 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31722 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31723
31724 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31725 saved_entry if boot_once is unset.
31726 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31727 previous saved entry (i.e. grub-reboot).
31728
31729 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31730
31731 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31732
31733 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31734
31735 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31736 `var=val'.
31737 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31738
31739 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31740
31741 * util/grub-reboot.in: Fix --version output.
31742 * util/grub-set-default.in: Likewise.
31743
31744 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31745
31746 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31747 blocks.
31748
31749 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31750
31751 * util/grub.d/00_header.in: Quote the value assigned to `default',
31752 in case it contains spaces.
31753
31754 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31755
31756 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31757 `save_default_entry' call from the macosx case to the linux case.
31758
31759 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31760 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31761
31762 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31763 in `chosen' environment variable.
31764 * normal/menu_text.c (get_entry_number): Check if the variable
31765 matches the title of a menu entry.
31766 (run_menu): Pass menu to get_entry_number.
31767
31768 * util/grub-reboot.in: New file.
31769 * util/grub-set-default.in: New file.
31770 * conf/common.rmk (grub-reboot): New utility.
31771 (grub-set-default): New utility.
31772
31773 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31774 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31775 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31776 move it to `saved_entry' for the next boot. Load environment on
31777 initialisation.
31778 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31779 * util/grub.d/10_hurd.in: Likewise.
31780 * util/grub.d/10_linux.in (linux_entry): Likewise.
31781 * util/grub.d/10_windows.in: Likewise.
31782 * util/grub.d/30_os-prober.in: Likewise.
31783
31784 * util/grub-install.in: Create environment block.
31785 * util/i386/efi/grub-install.in: Likewise.
31786 * util/ieee1275/grub-install.in: Likewise.
31787 * util/sparc64/ieee1275/grub-install.in: Likewise.
31788
31789 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31790
31791 Unit testing framework for GRUB.
31792
31793 * Makefile.in: Test framework build rules for 'make check'.
31794 * conf/tests.rmk: Build rules for individual tests and framework.
31795
31796 * include/grub/test.h: Header file for whitebox tests.
31797 * tests/lib/functional_test.c: Framework support for whitebox
31798 functional tests.
31799 * tests/lib/test.c: Common whitebox testing code for unit and
31800 functional tests.
31801 * tests/lib/unit_test.c: Framework support for whitebox unit
31802 tests.
31803
31804 * tests/util/grub-shell-tester.in: Support utility for grub-script
31805 tests.
31806 * tests/util/grub-shell.in: Utility to execute grub-script
31807 commands in a Qemu instance.
31808
31809 * tests/example_functional_test.c: Example whitebox functional
31810 test.
31811 * tests/example_grub_script_test.in: Example grub-script test.
31812 * tests/example_scripted_test.in: Example scripted test.
31813 * tests/example_unit_test.c: Example whitebox unit test.
31814
31815 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31816
31817 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31818 Add loader/i386/multiboot_mbi.c.
31819 (multiboot2_mod_SOURCES): Likewise.
31820 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31821 (multiboot2_mod_SOURCES): Likewise.
31822 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31823 (grub_multiboot_make_mbi): Likewise.
31824 (grub_multiboot_free_mbi): Likewise.
31825 (grub_multiboot_init_mbi): Likewise.
31826 (grub_multiboot_add_module): Likewise.
31827 (grub_multiboot_set_bootdev): Likewise.
31828 * loader/i386/multiboot.c (mbi): Removed.
31829 (mbi_dest): Likewise.
31830 (alloc_mbi): New variable.
31831 (grub_multiboot_payload_size): Removed. All users updated.
31832 (grub_multiboot_pure_size): New variable.
31833 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31834 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31835 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31836 (grub_fill_multiboot_mmap): Likewise.
31837 (grub_multiboot_get_bootdev): Likewise.
31838 (grub_multiboot): Use multiboot_mbi functions.
31839 * loader/i386/multiboot_mbi.c: New file.
31840
31841 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31842
31843 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31844 it would result in module crash.
31845
31846 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31847
31848 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31849 (grub_ofconsole_getwh): Split to ...
31850 (grub_ofconsole_getwh): ... this.
31851 (grub_ofconsole_dimensions): ...and this.
31852 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31853
31854 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31855
31856 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31857
31858 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31859
31860 * loader/i386/pc/multiboot2.c: Removed stalled file.
31861
31862 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31863
31864 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31865 Reported by: Grégoire Sutre
31866
31867 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31868
31869 * util/misc.c (canonicalize_file_name): New function.
31870 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31871 instead of realpath().
31872
31873 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31874
31875 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31876 and make it clearer that it's optional. Based on confusion
31877 witnessed on IRC.
31878
31879 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31880
31881 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31882 in premature implicit newline.
31883
31884 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31885
31886 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31887 which resulted in garbled command line at the end of screen.
31888
31889 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31890
31891 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31892 initialization with similar approach as with other Linux loaders.
31893
31894 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31895
31896 Fix i386-ieee1275 build.
31897
31898 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31899 and grub_term_height() for video_{width,height} initialization.
31900
31901 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31902
31903 Fix grub-emu build.
31904
31905 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31906
31907 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31908 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31909
31910 Support for multiple terminals.
31911
31912 * Makefile.in (pkglib_DATA): terminal.lst.
31913 (terminal.lst): New target.
31914 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31915 (GRUB_MOD_INIT(handler)): Likewise.
31916 (GRUB_MOD_FINI(handler)): Likewise.
31917 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31918 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31919 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31920 (grub_cmd_sleep): Use grub_term_save_pos.
31921 * commands/terminal.c: New file.
31922 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31923 commands/terminal.c and lib/charset.c.
31924 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31925 (pkglib_MODULES): Add terminal.mod.
31926 (terminal_mod_SOURCES): New variable.
31927 (terminal_mod_CFLAGS): Likewise.
31928 (terminal_mod_LDFLAGS): Likewise.
31929 * genhandlerlist.sh: Don't handle terminals.
31930 * genmk.rb: Generate terminal-*.lst.
31931 * genterminallist.sh: New file.
31932 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
31933 (grub_is_valid_utf8): Likewise.
31934 (grub_utf8_to_ucs4_alloc): Likewise.
31935 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
31936 (grub_menu_register_viewer): Changed argument.
31937 (grub_menu_try_text): New proto.
31938 (grub_gfxmenu_try_hook): New declaration.
31939 * include/grub/normal.h (grub_normal_exit_level): New declaration.
31940 (grub_menu_init_page): Additional argument term.
31941 (grub_normal_init_page): Likewise.
31942 (grub_cmdline_get): Arguments simplified.
31943 (grub_utf8_to_ucs4_alloc): Removed.
31944 (grub_print_ucs4): Additional argument term.
31945 (grub_getstringwidth): Likewise.
31946 (grub_print_message_indented): Likewise.
31947 (grub_menu_text_register_instances): New proto.
31948 (grub_show_menu): Likewise.
31949 (read_terminal_list): Likewise.
31950 (grub_set_more): Likewise.
31951 * include/grub/parser.h: Include handler.h.
31952 * include/grub/reader.h: Rewritten.
31953 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
31954 (GRUB_TERM_WIDTH): Changed to function.
31955 (GRUB_TERM_HEIGHT): Likewise.
31956 (GRUB_TERM_BORDER_WIDTH): Likewise.
31957 (GRUB_TERM_BORDER_HEIGHT): Likewise.
31958 (GRUB_TERM_NUM_ENTRIES): Likewise.
31959 (GRUB_TERM_ENTRY_WIDTH): Likewise.
31960 (GRUB_TERM_CURSOR_X): Likewise.
31961 (grub_term_input_class): Likewise.
31962 (grub_term_output_class): Likewise.
31963 (grub_term_outputs_disabled): New declaration.
31964 (grub_term_inputs_disabled): Likewise.
31965 (grub_term_outputs): Likewise.
31966 (grub_term_inputs): Likewise.
31967 (grub_term_register_input): Rewritten.
31968 (grub_term_register_output): Likewise.
31969 (grub_term_unregister_input): Likewise.
31970 (grub_term_unregister_output): Likewise.
31971 (FOR_ACTIVE_TERM_INPUTS): New macro.
31972 (FOR_DISABLED_TERM_INPUTS): Likewise.
31973 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
31974 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
31975 * include/grub/terminfo.h: Add oterm argument to all protypes.
31976 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
31977 Use grub_rescue_run.
31978 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
31979 All users updated.
31980 * kern/reader.c: Removed. All users updated.
31981 * kern/rescue_reader.c (grub_rescue_init): Removed.
31982 (grub_rescue_reader): Likewise.
31983 (grub_register_rescue_reader): Likewise.
31984 (grub_rescue_run): New function based on kern/reader.c.
31985 * kern/term.c: Adapted for multiterm.
31986 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
31987 (grub_is_valid_utf8): Likewise.
31988 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
31989 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
31990 right terminal.
31991 * loader/i386/linux.c (grub_linux_boot): Likewise.
31992 * normal/auth.c (grub_username_get): New function.
31993 (grub_auth_check_authentication): Use grub_username_get.
31994 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
31995 * normal/color.c: Adapt for multiterm.
31996 * normal/main.c (read_config_file): Don't use grub_reader_loop.
31997 (grub_normal_init_page): Additional argument term.
31998 (read_lists): Call read_terminal_lists.
31999 (grub_enter_normal_mode): Call grub_cmdline_run.
32000 Handle grub_normal_exit_level.
32001 (grub_cmd_normal): Make reentrant.
32002 (grub_cmd_normal_exit): New function.
32003 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32004 * normal/menu.c: Adapt for multiterm.
32005 * normal/menu_entry.c: Likewise.
32006 * normal/menu_text.c: Likewise.
32007 * normal/menu_viewer.c: Removed. All users updated.
32008 * normal/term.c: New file.
32009 * util/console.c: Change order of includes to workaround a bug in
32010 ncurses headers.
32011 * term/terminfo.c: New argument oterm on all exported functions.
32012 All users updated.
32013 * util/grub-editenv.c (grub_term_input_class): Removed.
32014 (grub_term_output_class): Likewise.
32015
32016 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32017
32018 Make loader output a bit more user-friendly.
32019
32020 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32021 is being loaded. Likewise for the Hurd.
32022
32023 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32024 that kernel of FreeBSD ${version} is being loaded.
32025
32026 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32027 grub_dprintf().
32028 (grub_cmd_initrd): Likewise.
32029 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32030 that Linux ${version} is being loaded. Likewise for initrd.
32031
32032 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32033
32034 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32035
32036 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32037
32038 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32039 (GRUB_MOD_INIT): Gettextizze.
32040 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32041 (GRUB_MOD_INIT): Gettextizze.
32042 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32043 (grub_cmd_linux): Capitalise Linux.
32044 (GRUB_MOD_INIT): Gettextizze.
32045 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32046 (grub_cmd_linux): Capitalise Linux.
32047 (GRUB_MOD_INIT): Gettextizze.
32048 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32049 (grub_cmd_linux): Capitalise Linux.
32050 (GRUB_MOD_INIT): Gettextizze.
32051 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32052 (GRUB_MOD_INIT): Gettextizze.
32053 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32054 (grub_cmd_linux): Capitalise Linux.
32055 (GRUB_MOD_INIT): Gettextizze.
32056 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32057 (grub_cpu_xnu_init): Gettextizze.
32058 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32059 (GRUB_MOD_INIT): Gettextizze.
32060 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32061 (GRUB_MOD_INIT): Gettextizze.
32062 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32063 (grub_linux_load64): Capitalise Linux.
32064 (GRUB_MOD_INIT): Gettextizze.
32065 * loader/xnu.c: Include `<grub/i18n.h>'.
32066 (GRUB_MOD_INIT): Gettextizze.
32067 * po/POTFILES: Add `loader/efi/appleloader.c',
32068 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32069 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32070 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32071 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32072 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32073 and `loader/xnu.c'.
32074
32075 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32076
32077 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32078
32079 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32080
32081 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32082 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32083 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32084
32085 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32086
32087 Reset Multiboot 2 support. New loader implements the draft in
32088 /branches/multiboot2 and shares as much code as possible with the
32089 production Multiboot 1 implementation.
32090
32091 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32092 * loader/multiboot2.c: Likewise.
32093 * loader/i386/multiboot_helper.S: Likewise.
32094 * include/multiboot2.h: Replace with latest version from the draft
32095 in /branches/multiboot2.
32096
32097 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32098 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32099 and `loader/multiboot2.c'.
32100 (pkglib_MODULES): Add `multiboot2.mod'.
32101 (multiboot2_mod_SOURCES): New variable.
32102 (multiboot2_mod_LDFLAGS): Likewise.
32103 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32104
32105 * conf/i386-pc.rmk: Likewise.
32106
32107 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32108 (multiboot_mod_SOURCES): Remove variable.
32109 (multiboot_mod_LDFLAGS): Likewise.
32110 (multiboot_mod_CFLAGS): Likewise.
32111
32112 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32113 `<multiboot2.h>' instead of `<multiboot.h>'.
32114 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32115 (MULTIBOOT_HEADER_MAGIC): New macros.
32116
32117 * loader/multiboot_loader.c (module_version_status): Remove variable.
32118 (find_multi_boot2_header): Remove function.
32119 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32120 logic. Always check for the Multiboot version we're compiling for.
32121 (grub_cmd_module_loader): Likewise.
32122 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32123 command instead of `multiboot'.
32124
32125 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32126
32127 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32128 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32129 all users.
32130
32131 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32132 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32133
32134 Fix breakage introduced with previous commit.
32135
32136 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32137 commands.
32138 * normal/handler.c (read_handler_list): Revert part of previous commit
32139 affecting this file.
32140 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32141 (grub_normal_execute): ... here.
32142
32143 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32144
32145 Merge prefix-redefinition-fix branch.
32146
32147 * normal/autofs.c (read_fs_list): Make function capable of being
32148 run multiple times, gracefuly replacing the previous data
32149 structures.
32150 * normal/dyncmd.c (read_command_list): Likewise.
32151 * normal/handler.c (read_handler_list): Likewise.
32152 * normal/main.c (read_lists): New function. Calls all the
32153 list reading functions.
32154 (grub_normal_execute): Use read_lists() instead of calling all
32155 list reading functions explicitly. Register read_lists() as a
32156 variable hook attached to ${prefix}.
32157
32158 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32159
32160 Merge crypto branch.
32161
32162 * Makefile.in (pkglib_DATA): Add crypto.lst.
32163 (crypto.lst): New target.
32164 * commands/hashsum.c: New file.
32165 * commands/password.c (check_password): Use grub_crypto_memcmp.
32166 * commands/password_pbkdf2.c: New file.
32167 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32168 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32169 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32170 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32171 -I$(srcdir)/lib/libgcrypt_wrap.
32172 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32173 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32174 password_pbkdf2.mod.
32175 (crypto_mod_SOURCES): New variable.
32176 (crypto_mod_CFLAGS): Likewise.
32177 (crypto_mod_LDFLAGS): Likewise.
32178 (hashsum_mod_SOURCES): New variable.
32179 (hashsum_mod_CFLAGS): Likewise.
32180 (hashsum_mod_LDFLAGS): Likewise.
32181 (pbkdf2_mod_SOURCES): New variable.
32182 (pbkdf2_mod_CFLAGS): Likewise.
32183 (pbkdf2_mod_LDFLAGS): Likewise.
32184 (password_pbkdf2_mod_SOURCES): New variable.
32185 (password_pbkdf2_mod_CFLAGS): Likewise.
32186 (password_pbkdf2_mod_LDFLAGS): Likewise.
32187 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32188 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32189 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32190 Include conf/gcry.rmk.
32191 * include/grub/auth.h: Rewritten.
32192 * include/grub/crypto.h: New file.
32193 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32194 * include/grub/normal.h (read_crypto_list): New prototype.
32195 * lib/crypto.c: New file.
32196 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32197 * lib/pbkdf2.c: Likewise.
32198 * normal/auth.c (grub_auth_strcmp): Removed.
32199 (grub_iswordseparator): Likewise.
32200 (grub_auth_strword): Likewise.
32201 (is_authenticated): Use grub_strword.
32202 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32203 and grub_strword. Pass entered password to authentication callback.
32204 * normal/crypto.c: New file.
32205 * normal/main.c: Call read_crypto_list.
32206 * util/grub-mkpasswd-pbkdf2.c: New file.
32207 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32208
32209 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32210
32211 Fix descent and ascent calculation.
32212
32213 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32214 (options): New option "asce".
32215 (usage): Likewise.
32216 (add_char): Ignore invalid glyphs for descent calculation.
32217 Calculate ascent from actual content.
32218 (print_glyphs): Use 'asce'.
32219 (write_font): Likewise. Allow ascent override.
32220 (main): Handle "asce" option.
32221
32222 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32223
32224 * kern/err.c: Include `<grub/i18n.h>'.
32225 (grub_print_error): Add full stop. Gettextizze.
32226 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32227 (grub_bsd_load_elf): Capitalise ELF.
32228 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32229 (grub_cmd_freebsd_module): Likewise.
32230 (grub_cmd_freebsd_module_elf): Likewise.
32231 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32232
32233 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32234
32235 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32236 * commands/search_file.c (HELP_MESSAGE): New macro.
32237 * commands/search_label.c (HELP_MESSAGE): Likewise.
32238 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32239 * po/POTFILES: Add `commands/search_file.c',
32240 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32241 `commands/search.c'.
32242
32243 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32244
32245 * config.rpath: Update from Gnulib.
32246
32247 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32248
32249 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32250
32251 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32252
32253 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32254
32255 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32256
32257 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32258 arguments to fread so that we get a return value in bytes, rather
32259 than something that will normally be rounded down to 0.
32260 Adjust error handling to avoid producing garbage when size_t is not
32261 the same size as long long.
32262
32263 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32264
32265 * util/mkisofs/write.c (padblock_write): Check return value of
32266 fread.
32267
32268 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32269
32270 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32271 floppy images now.
32272
32273 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32274
32275 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32276
32277 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32278 instead of manual alignment.
32279 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32280 verbose). Avoid attempts to read past end of the device
32281 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32282 but GRUB_DISK_CACHE_SIZE may exceed that).
32283
32284 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32285
32286 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32287 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32288 it to upper layer.
32289
32290 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32291
32292 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32293 New constant.
32294 (grub_efi_piwg_device_path): New structure
32295 (grub_efi_piwg_device_path_t): New type.
32296 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32297 (devpath_1): Transform to a structure. All users updated.
32298 (devpath_2): Likewise.
32299 (devpath_3): Likewise.
32300 (devpath_4): Likewise.
32301 (devpath_5): Likewise.
32302
32303 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32304
32305 * loader/efi/appleloader.c: Restored. Update all users.
32306
32307 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32308
32309 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32310
32311 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32312 (struct boot_blocklist): Move from here ...
32313 * include/grub/i386/pc/boot.h [ASM_FILE]
32314 (struct grub_boot_blocklist): ... to here. Update all users.
32315 (setup): Only initialize `start' member of `first_block'
32316 structure. Add assert() calls to verify the other members.
32317
32318 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32319 (generate_image): Fix broken blocklist length initialization.
32320 Add assert() call to verify blocklist `segment' field.
32321
32322 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32323
32324 * loader/efi/appleloader.c: Remove. Update all users.
32325
32326 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32327
32328 * boot/i386/pc/boot.S: Update copyright year.
32329 * boot/i386/pc/cdboot.S: Likewise.
32330 * boot/i386/pc/diskboot.S: Likewise.
32331 * boot/i386/pc/lnxboot.S: Likewise.
32332 * boot/i386/pc/pxeboot.S: Likewise.
32333 * bus/pci.c: Likewise.
32334 * commands/cmp.c: Likewise.
32335 * commands/help.c: Likewise.
32336 * commands/hexdump.c: Likewise.
32337 * commands/i386/pc/halt.c: Likewise.
32338 * commands/i386/pc/play.c: Likewise.
32339 * commands/i386/pc/vbeinfo.c: Likewise.
32340 * commands/ls.c: Likewise.
32341 * commands/test.c: Likewise.
32342 * disk/dmraid_nvidia.c: Likewise.
32343 * disk/i386/pc/biosdisk.c: Likewise.
32344 * disk/ieee1275/nand.c: Likewise.
32345 * disk/ieee1275/ofdisk.c: Likewise.
32346 * disk/lvm.c: Likewise.
32347 * disk/raid.c: Likewise.
32348 * disk/raid6_recover.c: Likewise.
32349 * disk/scsi.c: Likewise.
32350 * fs/affs.c: Likewise.
32351 * fs/cpio.c: Likewise.
32352 * fs/ext2.c: Likewise.
32353 * fs/hfs.c: Likewise.
32354 * fs/iso9660.c: Likewise.
32355 * fs/ntfs.c: Likewise.
32356 * fs/sfs.c: Likewise.
32357 * fs/udf.c: Likewise.
32358 * fs/ufs.c: Likewise.
32359 * fs/xfs.c: Likewise.
32360 * gencmdlist.sh: Likewise.
32361 * genmk.rb: Likewise.
32362 * include/grub/disk.h: Likewise.
32363 * include/grub/efi/api.h: Likewise.
32364 * include/grub/efi/efi.h: Likewise.
32365 * include/grub/efi/pe32.h: Likewise.
32366 * include/grub/elf.h: Likewise.
32367 * include/grub/fs.h: Likewise.
32368 * include/grub/i386/at_keyboard.h: Likewise.
32369 * include/grub/i386/pc/memory.h: Likewise.
32370 * include/grub/i386/pc/vbe.h: Likewise.
32371 * include/grub/i386/pci.h: Likewise.
32372 * include/grub/i386/tsc.h: Likewise.
32373 * include/grub/ieee1275/ieee1275.h: Likewise.
32374 * include/grub/ntfs.h: Likewise.
32375 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32376 * include/grub/sparc64/libgcc.h: Likewise.
32377 * include/grub/symbol.h: Likewise.
32378 * include/grub/types.h: Likewise.
32379 * include/multiboot2.h: Likewise.
32380 * io/gzio.c: Likewise.
32381 * kern/device.c: Likewise.
32382 * kern/disk.c: Likewise.
32383 * kern/efi/efi.c: Likewise.
32384 * kern/efi/mm.c: Likewise.
32385 * kern/elf.c: Likewise.
32386 * kern/file.c: Likewise.
32387 * kern/i386/dl.c: Likewise.
32388 * kern/i386/pc/init.c: Likewise.
32389 * kern/i386/pc/startup.S: Likewise.
32390 * kern/ieee1275/ieee1275.c: Likewise.
32391 * kern/ieee1275/init.c: Likewise.
32392 * kern/main.c: Likewise.
32393 * kern/mm.c: Likewise.
32394 * kern/powerpc/dl.c: Likewise.
32395 * kern/sparc64/dl.c: Likewise.
32396 * kern/x86_64/dl.c: Likewise.
32397 * lib/hexdump.c: Likewise.
32398 * loader/efi/appleloader.c: Likewise.
32399 * loader/i386/ieee1275/linux.c: Likewise.
32400 * loader/i386/pc/chainloader.c: Likewise.
32401 * loader/i386/pc/linux.c: Likewise.
32402 * loader/i386/pc/multiboot2.c: Likewise.
32403 * loader/ieee1275/multiboot2.c: Likewise.
32404 * loader/multiboot2.c: Likewise.
32405 * loader/multiboot_loader.c: Likewise.
32406 * loader/powerpc/ieee1275/linux.c: Likewise.
32407 * normal/completion.c: Likewise.
32408 * normal/menu_entry.c: Likewise.
32409 * partmap/apple.c: Likewise.
32410 * util/grub.d/10_hurd.in: Likewise.
32411 * util/hostfs.c: Likewise.
32412 * video/readers/png.c: Likewise.
32413
32414 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32415
32416 * include/grub/misc.h (GNUC_PREREQ): New macro.
32417 (ATTRIBUTE_ERROR): New macro.
32418 * include/grub/list.h (grub_bad_type_cast_real): Use
32419 ATTRIBUTE_ERROR.
32420
32421 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32422
32423 * normal/menu_text.c (print_message): Change messages.
32424
32425 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32426
32427 * normal/menu_entry.c (store_completion): Gettextizze.
32428
32429 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32430
32431 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32432
32433 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32434
32435 * po/POTFILES: Sort correctly.
32436
32437 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32438
32439 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32440 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32441 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32442 full stop.
32443 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32444 summary. Gettextizze the strings.
32445 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32446 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32447 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32448 full stop.
32449 (GRUB_MOD_INIT): Remove command name from summary.
32450 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32451 summary.
32452 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32453 * term/i386/pc/serial.c (options): Add full stops.
32454 (GRUB_MOD_INIT): Remove command name from the summary.
32455
32456 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32457
32458 * commands/acpi.c: Gettextizze help strings and/or options. Include
32459 `grub/i18n.h' if needed.
32460 * commands/blocklist.c: Likewise.
32461 * commands/boot.c: Likewise.
32462 * commands/cat.c: Likewise.
32463 * commands/cmp.c: Likewise.
32464 * commands/configfile.c: Likewise.
32465 * commands/crc.c: Likewise.
32466 * commands/date.c: Likewise.
32467 * commands/echo.c: Likewise.
32468 * commands/efi/fixvideo.c: Likewise.
32469 * commands/efi/loadbios.c: Likewise.
32470 * commands/gptsync.c: Likewise.
32471 * commands/halt.c: Likewise.
32472 * commands/handler.c: Likewise.
32473 * commands/hdparm.c: Likewise.
32474 * commands/hexdump.c: Likewise.
32475 * commands/i386/cpuid.c: Likewise.
32476 * commands/i386/pc/drivemap.c: Likewise.
32477 * commands/i386/pc/halt.c: Likewise.
32478 * commands/i386/pc/pxecmd.c: Likewise.
32479 * commands/i386/pc/vbeinfo.c: Likewise.
32480 * commands/i386/pc/vbetest.c: Likewise.
32481 * commands/ieee1275/suspend.c: Likewise.
32482 * commands/keystatus.c: Likewise.
32483 * commands/loadenv.c: Likewise.
32484 * commands/ls.c: Likewise.
32485 * commands/lsmmap.c: Likewise.
32486 * commands/lspci.c: Likewise.
32487 * commands/memrw.c: Likewise.
32488 * commands/minicmd.c: Likewise.
32489 * commands/parttool.c: Likewise.
32490 * commands/password.c: Likewise.
32491 * commands/probe.c: Likewise.
32492 * commands/read.c: Likewise.
32493 * commands/reboot.c: Likewise.
32494 * commands/search.c: Likewise.
32495 * commands/sleep.c: Likewise.
32496 * commands/test.c: Likewise.
32497 * commands/true.c: Likewise.
32498 * commands/usbtest.c: Likewise.
32499 * commands/videotest.c: Likewise.
32500 * commands/xnu_uuid.c: Likewise.
32501 * disk/loopback.c: Likewise.
32502 * hello/hello.c: Likewise.
32503 * loader/i386/bsd.c: Likewise.
32504 * term/i386/pc/serial.c: Likewise.
32505 * po/POTFILES: Add new files.
32506
32507 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32508
32509 * term/i386/pc/at_keyboard.c
32510 (keyboard_controller_wait_untill_ready): Rename to ...
32511 (keyboard_controller_wait_until_ready): ... this. Update all users.
32512
32513 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32514
32515 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32516 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32517 string using string width.
32518 * normal/menu_text.c (grub_print_message_indented): Use
32519 grub_print_spaces and not print_spaces.
32520 (print_timeout): Likewise.
32521 (print_spaces): Move to...
32522 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32523
32524 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32525
32526 Import from Gnulib.
32527
32528 * gnulib/getdelim.c: New file.
32529 * gnulib/getline.c: Likewise.
32530
32531 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32532
32533 * include/grub/list.h (grub_assert_fail): Removed.
32534 (grub_bad_type_cast_real): New function.
32535 (grub_bad_type_cast): New macro.
32536 (GRUB_AS_LIST): Use grub_bad_type_cast.
32537 (GRUB_AS_LIST_P): Likewise.
32538 (GRUB_AS_NAMED_LIST): Likewise.
32539 (GRUB_AS_NAMED_LIST_P): Likewise.
32540 (GRUB_AS_PRIO_LIST): Likewise.
32541 (GRUB_AS_PRIO_LIST_P): Likewise.
32542 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32543
32544 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32545
32546 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32547 Fix syntax error.
32548
32549 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32550
32551 * configure.ac: Check for TARGET_CFLAGS initialization before we
32552 initialize it ourselves (sigh).
32553 Move a few modifications to TARGET_CFLAGS to be unconditional
32554 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32555 eh_frame)
32556
32557 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32558 * term/i386/pc/at_keyboard.c
32559 (keyboard_controller_wait_untill_ready): Likewise.
32560 (keyboard_controller_led): Rename `led_status' paramter to avoid
32561 name conflict.
32562
32563 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32564
32565 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32566 quotes.
32567
32568 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32569
32570 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32571
32572 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32573
32574 * normal/menu_text.c (grub_print_message_indented): Prevent
32575 past-the-end-of-array dereference.
32576
32577 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32578
32579 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32580 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32581
32582 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32583
32584 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32585 * normal/main.c (grub_normal_read_line): Remove a space from the
32586 default prompt.
32587
32588 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32589
32590 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32591 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32592 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32593 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32594 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32595 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32596 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32597
32598 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32599
32600 * video/readers/jpeg.c (cmd): Declare.
32601 (grub_cmd_jpegtest): Use `grub_command_t' type.
32602 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32603 Assign to `cmd'.
32604 (GRUB_MOD_FINI): Use `cmd' to unregister.
32605 * video/readers/png.c (cmd): Declare.
32606 (grub_cmd_pngtest): Use `grub_command_t' type.
32607 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32608 Assign to `cmd'.
32609 (GRUB_MOD_FINI): Use `cmd' to unregister.
32610 * video/readers/tga.c (cmd): Declare.
32611 (grub_cmd_tgatest): Use `grub_command_t' type.
32612 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32613 Assign to `cmd'.
32614 (GRUB_MOD_FINI): Use `cmd' to unregister.
32615
32616 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32617
32618 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32619 stops.
32620 * kern/corecmd.c (grub_register_core_commands): Likewise.
32621 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32622 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32623 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32624 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32625 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32626 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32627 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32628 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32629 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32630 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32631 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32632 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32633 * normal/handler.c (insert_handler): Likewise.
32634 * normal/main.c (GRUB_MOD_INIT): Likewise.
32635 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32636
32637 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32638
32639 * commands/help.c (grub_cmd_help): Print the command name before the
32640 summary.
32641 (GRUB_MOD_INIT): Remove command name from the summary.
32642 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32643 string as summary.
32644 * lib/arg.c (find_long): Print the command name before the summary.
32645 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32646 summary.
32647 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32648 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32649 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32650 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32651 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32652 * commands/date.c (GRUB_MOD_INIT): Likewise.
32653 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32654 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32655 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32656 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32657 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32658 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32659 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32660 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32661 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32662 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32663 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32664 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32665 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32666 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32667 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32668 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32669 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32670 * commands/password.c (GRUB_MOD_INIT): Likewise.
32671 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32672 * commands/read.c (GRUB_MOD_INIT): Likewise.
32673 * commands/search.c (GRUB_MOD_INIT): Likewise.
32674 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32675 * commands/test.c (GRUB_MOD_INIT): Likewise.
32676 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32677 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32678 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32679 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32680 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32681 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32682 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32683 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32684 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32685 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32686 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32687 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32688 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32689 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32690
32691 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32692
32693 Use search command for preliminar UUID search.
32694
32695 * commands/search.c: Split into ...
32696 * commands/search_wrap.c: ...this
32697 * commands/search.c: ...and this.
32698 * commands/search_file.c: New file.
32699 * commands/search_label.c: New file.
32700 * commands/search_uuid.c: New file.
32701 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32702 Add commands/search_wrap.c, commands/search_file.c,
32703 commands/search_label.c and commands/search_uuid.c.
32704 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32705 (search_mod_SOURCES): Set to commands/search_wrap.c.
32706 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32707 search_label.mod.
32708 (search_fs_file_mod_SOURCES): New variable.
32709 (search_fs_file_mod_CFLAGS): Likewise.
32710 (search_fs_file_mod_LDFLAGS): Likewise.
32711 (search_label_mod_SOURCES): Likewise.
32712 (search_label_mod_CFLAGS): Likewise.
32713 (search_label_mod_LDFLAGS): Likewise.
32714 (search_fs_uuid_mod_SOURCES): New variable.
32715 (search_fs_uuid_mod_CFLAGS): Likewise.
32716 (search_fs_uuid_mod_LDFLAGS): Likewise.
32717 (fs_file_mod_SOURCES): Removed.
32718 (fs_file_mod_CFLAGS): Likewise.
32719 (fs_file_mod_LDFLAGS): Likewise.
32720 (fs_uuid_mod_SOURCES): Removed.
32721 (fs_uuid_mod_CFLAGS): Likewise.
32722 (fs_uuid_mod_LDFLAGS): Likewise.
32723 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32724 Set to util/grub-install.in.
32725 * disk/fs_file.c: Removed.
32726 * disk/fs_uuid.c: Likewise.
32727 * include/grub/search.h: New file.
32728 * util/grub-install.in: Handle sparc64.
32729 Create and use load.cfg.
32730 * util/sparc64/ieee1275/grub-install.in: Removed.
32731
32732 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32733
32734 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32735 Ignore return status if CF is cleared.
32736 (grub_biosdisk_get_diskinfo_standard): Likewise.
32737
32738 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32739
32740 * term/i386/pc/at_keyboard.c
32741 (keyboard_controller_wait_untill_ready): New function.
32742 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32743 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32744 for keyboard polling, rather than duplicate the same loop. This
32745 saves a few bytes in code size.
32746
32747 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32748
32749 Support for (pxe[:server[:gateway]]) syntax and
32750 use environment variable for PXE.
32751
32752 * commands/i386/pc/pxecmd.c (options): Removed.
32753 (print_ip): Removed.
32754 (grub_cmd_pxe): Removed
32755 (grub_cmd_pxe_unload): New function.
32756 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32757 (grub_pxe_your_ip): Made static.
32758 (grub_pxe_default_server_ip): Likewise.
32759 (grub_pxe_default_gateway_ip): Likewise.
32760 (grub_pxe_blksize): Likewise.
32761 (parse_ip): New function.
32762 (grub_pxe_open): Support server and gateway specification.
32763 (grub_pxe_close): Free disk->data.
32764 (grub_pxefs_open): Use disk->data.
32765 (grub_pxefs_read): Likewise.
32766 (grub_env_write_readonly): New function.
32767 (set_mac_env): Likewise.
32768 (set_env_limn_ro): Likewise.
32769 (parse_dhcp_vendor): Likewise.
32770 (grub_pxe_detect): Set the environment variables.
32771 (set_ip_env): New function.
32772 (write_ip_env): Likewise.
32773 (grub_env_write_pxe_default_server): Likewise.
32774 (grub_env_write_pxe_default_gateway): Likewise.
32775 (grub_env_write_pxe_blocksize): Likewise.
32776 (GRUB_MOD_INIT(pxe)): Set environment variables.
32777 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32778 (grub_pxe_mac_addr_t): ... this. All users updated.
32779 (grub_pxe_your_ip): Removed.
32780 (grub_pxe_server_ip): Likewise.
32781 (grub_pxe_gateway_ip): Likewise.
32782 (grub_pxe_blksize): Likewise.
32783
32784 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32785
32786 * commands/help.c: Include `<grub/i18n.h>'.
32787 (grub_cmd_help): Gettextizze.
32788 (GRUB_MOD_INIT): Likewise.
32789 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32790 (GRUB_MOD_INIT): Gettextizze.
32791 * commands/search.c: Include `<grub/i18n.h>'.
32792 (options): Gettextizze.
32793 (GRUB_MOD_INIT): Gettextizze.
32794 * lib/arg.c: Include `<grub/i18n.h>'.
32795 (help_options): Gettextizze.
32796 (find_long): Likewise.
32797 (grub_arg_show_help): Likewise.
32798 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32799 (read_command_list): Gettextizze.
32800 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32801 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32802
32803 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32804
32805 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32806 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32807 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32808 (led_status): New variable.
32809 (keyboard_controller_led): New function.
32810 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32811 update led status for caps lock, num lock and scroll lock.
32812
32813 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32814
32815 * util/hostdisk.c (open_device): Fix a comment.
32816
32817 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32818
32819 * util/grub-install.in (host_os): New variable.
32820 * util/i386/efi/grub-install.in (host_os): Likewise.
32821
32822 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32823
32824 * util/mkisofs/write.c (padblock_write): Abort when given an
32825 excedingly large embed image, instead of silently truncating it.
32826
32827 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32828
32829 * include/multiboot.h: Indentation fixes.
32830
32831 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32832
32833 * include/multiboot.h (struct multiboot_aout_symbol_table)
32834 (struct multiboot_elf_section_header_table): New structure
32835 declarations (stolen from GRUB Legacy).
32836 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32837 table information.
32838
32839 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32840 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32841 type aliases.
32842
32843 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32844
32845 * include/multiboot.h: Make comments src2texi-friendly.
32846
32847 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32848
32849 For consistency with [multiboot]/docs/boot.S.
32850
32851 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32852 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32853 (MULTIBOOT_MAGIC2): Rename from this ...
32854 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32855
32856 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32857
32858 * include/multiboot.h: Remove `<grub/types.h>'.
32859 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32860 types. Update all users.
32861
32862 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32863
32864 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32865 `couldn't' and `can not' by `cannot'.
32866 * commands/i386/pc/drivemap.c: Likewise.
32867 * disk/ata.c: Likewise.
32868 * disk/ieee1275/nand.c: Likewise.
32869 * fs/affs.c: Likewise.
32870 * fs/fat.c: Likewise.
32871 * fs/hfs.c: Likewise.
32872 * fs/hfsplus.c: Likewise.
32873 * fs/iso9660.c: Likewise.
32874 * fs/jfs.c: Likewise.
32875 * fs/minix.c: Likewise.
32876 * fs/reiserfs.c: Likewise.
32877 * fs/sfs.c: Likewise.
32878 * fs/udf.c: Likewise.
32879 * fs/ufs.c: Likewise.
32880 * fs/xfs.c: Likewise.
32881 * loader/powerpc/ieee1275/linux.c: Likewise.
32882 * loader/sparc64/ieee1275/linux.c: Likewise.
32883 * util/grub-probe.c: Likewise.
32884 * util/misc.c: Likewise.
32885
32886 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32887
32888 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32889 grub_errno calls.
32890 * commands/acpi.c: Likewise.
32891 * commands/blocklist.c: Likewise.
32892 * commands/efi/loadbios.c: Likewise.
32893 * commands/i386/pc/drivemap.c: Likewise.
32894 * commands/loadenv.c: Likewise.
32895 * commands/memrw.c: Likewise.
32896 * commands/password.c: Likewise.
32897 * commands/videotest.c: Likewise.
32898 * disk/ata.c: Likewise.
32899 * disk/ata_pthru.c: Likewise.
32900 * disk/dmraid_nvidia.c: Likewise.
32901 * disk/ieee1275/nand.c: Likewise.
32902 * disk/ieee1275/ofdisk.c: Likewise.
32903 * disk/loopback.c: Likewise.
32904 * disk/lvm.c: Likewise.
32905 * disk/mdraid_linux.c: Likewise.
32906 * disk/raid.c: Likewise.
32907 * disk/raid6_recover.c: Likewise.
32908 * disk/scsi.c: Likewise.
32909 * efiemu/main.c: Likewise.
32910 * efiemu/mm.c: Likewise.
32911 * efiemu/pnvram.c: Likewise.
32912 * efiemu/symbols.c: Likewise.
32913 * font/font.c: Likewise.
32914 * fs/cpio.c: Likewise.
32915 * fs/hfsplus.c: Likewise.
32916 * fs/iso9660.c: Likewise.
32917 * fs/jfs.c: Likewise.
32918 * fs/minix.c: Likewise.
32919 * fs/ntfs.c: Likewise.
32920 * fs/ntfscomp.c: Likewise.
32921 * fs/reiserfs.c: Likewise.
32922 * fs/ufs.c: Likewise.
32923 * fs/xfs.c: Likewise.
32924 * gettext/gettext.c: Likewise.
32925 * include/grub/auth.h: Likewise.
32926 * kern/elf.c: Likewise.
32927 * kern/file.c: Likewise.
32928 * kern/ieee1275/init.c: Likewise.
32929 * kern/ieee1275/mmap.c: Likewise.
32930 * kern/ieee1275/openfw.c: Likewise.
32931 * kern/powerpc/dl.c: Likewise.
32932 * kern/sparc64/dl.c: Likewise.
32933 * lib/arg.c: Likewise.
32934 * loader/i386/bsd.c: Likewise.
32935 * loader/i386/bsdXX.c: Likewise.
32936 * loader/i386/efi/linux.c: Likewise.
32937 * loader/i386/efi/xnu.c: Likewise.
32938 * loader/i386/ieee1275/linux.c: Likewise.
32939 * loader/i386/linux.c: Likewise.
32940 * loader/i386/multiboot.c: Likewise.
32941 * loader/i386/pc/linux.c: Likewise.
32942 * loader/i386/pc/multiboot2.c: Likewise.
32943 * loader/i386/xnu.c: Likewise.
32944 * loader/ieee1275/multiboot2.c: Likewise.
32945 * loader/macho.c: Likewise.
32946 * loader/machoXX.c: Likewise.
32947 * loader/multiboot2.c: Likewise.
32948 * loader/multiboot_loader.c: Likewise.
32949 * loader/powerpc/ieee1275/linux.c: Likewise.
32950 * loader/sparc64/ieee1275/linux.c: Likewise.
32951 * loader/xnu.c: Likewise.
32952 * loader/xnu_resume.c: Likewise.
32953 * mmap/i386/pc/mmap.c: Likewise.
32954 * normal/menu_viewer.c: Likewise.
32955 * partmap/acorn.c: Likewise.
32956 * partmap/amiga.c: Likewise.
32957 * partmap/apple.c: Likewise.
32958 * script/lexer.c: Likewise.
32959 * term/gfxterm.c: Likewise.
32960 * term/i386/pc/serial.c: Likewise.
32961 * term/i386/pc/vga.c: Likewise.
32962 * term/ieee1275/ofconsole.c: Likewise.
32963 * term/terminfo.c: Likewise.
32964 * video/bitmap.c: Likewise.
32965 * video/efi_gop.c: Likewise.
32966 * video/efi_uga.c: Likewise.
32967 * video/fb/video_fb.c: Likewise.
32968 * video/i386/pc/vbe.c: Likewise.
32969 * video/readers/tga.c: Likewise.
32970 * video/video.c: Likewise.
32971
32972 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
32973
32974 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
32975 * commands/lspci.c: Likewise.
32976 * commands/probe.c: Likewise.
32977 * commands/xnu_uuid.c: Likewise.
32978 * conf/i386-coreboot.rmk: Likewise.
32979 * conf/i386-efi.rmk: Likewise.
32980 * conf/i386-ieee1275.rmk: Likewise.
32981 * conf/i386-pc.rmk: Likewise.
32982 * conf/powerpc-ieee1275.rmk: Likewise.
32983 * conf/sparc64-ieee1275.rmk: Likewise.
32984 * conf/x86_64-efi.rmk: Likewise.
32985 * fs/i386/pc/pxe.c: Likewise.
32986 * gettext/gettext.c: Likewise.
32987 * include/grub/efi/graphics_output.h: Likewise.
32988 * include/grub/i386/pc/memory.h: Likewise.
32989 * kern/env.c: Likewise.
32990 * kern/i386/qemu/startup.S: Likewise.
32991 * lib/i386/pc/biosnum.c: Likewise.
32992 * lib/i386/relocator.c: Likewise.
32993 * lib/i386/relocator_asm.S: Likewise.
32994 * lib/relocator.c: Likewise.
32995 * loader/i386/bsd.c: Likewise.
32996 * loader/i386/multiboot.c: Likewise.
32997 * loader/i386/pc/chainloader.c: Likewise.
32998 * loader/i386/xnu.c: Likewise.
32999 * loader/xnu.c: Likewise.
33000 * normal/main.c: Likewise.
33001 * normal/menu_text.c: Likewise.
33002 * util/getroot.c: Likewise.
33003 * util/grub-mkconfig_lib.in: Likewise.
33004 * util/grub.d/00_header.in: Likewise.
33005 * util/i386/pc/grub-mkimage.c: Likewise.
33006 * util/mkisofs/eltorito.c: Likewise.
33007 * util/mkisofs/exclude.h: Likewise.
33008 * util/mkisofs/hash.c: Likewise.
33009 * util/mkisofs/iso9660.h: Likewise.
33010 * util/mkisofs/joliet.c: Likewise.
33011 * util/mkisofs/mkisofs.c: Likewise.
33012 * util/mkisofs/mkisofs.h: Likewise.
33013 * util/mkisofs/multi.c: Likewise.
33014 * util/mkisofs/name.c: Likewise.
33015 * util/mkisofs/rock.c: Likewise.
33016 * util/mkisofs/tree.c: Likewise.
33017 * util/mkisofs/write.c: Likewise.
33018 * video/efi_gop.c: Likewise.
33019
33020 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33021
33022 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33023 size counting.
33024
33025 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33026
33027 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33028 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33029
33030 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33031
33032 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33033 (GRUB_MOD_INIT(memrw)): Update help line.
33034
33035 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33036
33037 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33038 Use grub_extcmd_t. All users updated.
33039 (options): New variable.
33040 (grub_cmd_read): Restructure for readability. Support "-v" option.
33041 (grub_cmd_write): Restructure for readability.
33042
33043 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33044
33045 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33046
33047 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33048
33049 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33050 with the actual contents of the correspondending make variable.
33051 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33052 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33053 specifying `*.lst' and `efiemu??.o'
33054
33055 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33056
33057 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33058 after function name.
33059 Noticed by Rene Engelhard <rene@debian.org>.
33060
33061 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33062
33063 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33064 (options): New variable.
33065 (iospace): Likewise.
33066 (grub_lspci_iter): List IO spaces if "-i" was given.
33067 (grub_cmd_lspci): Parse options.
33068 (GRUB_MOD_INIT(lspci)): Use extcmd.
33069 (GRUB_MOD_FINI(lspci)): Likewise.
33070
33071 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33072
33073 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33074 `function' keyword.
33075 Patch by Tony Mancill <tmancill@debian.org>.
33076
33077 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33078
33079 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33080 (grub_uhci_portstatus): Likewise.
33081 (grub_uhci_portstatus): Add necessary delay.
33082 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33083
33084 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33085
33086 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33087 (GRUB_MOD_INIT): Likewise.
33088 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33089 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33090 * commands/echo.c (options): Fix capitalizations and/or full stops.
33091 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33092 (enable_rom_area): Likewise.
33093 (GRUB_MOD_INIT): Likewise.
33094 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33095 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33096 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33097 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33098 * commands/hexdump.c (options): Likewise.
33099 * commands/i386/cpuid.c (options): Likewise.
33100 (GRUB_MOD_INIT): Likewise.
33101 * commands/i386/pc/drivemap.c (options): Likewise.
33102 (GRUB_MOD_INIT): Likewise.
33103 * commands/i386/pc/halt (options): Likewise.
33104 (GRUB_MOD_INIT): Likewise.
33105 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33106 * commands/i386/pc/pxecmd.c (options): Likewise.
33107 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33108 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33109 * commands/keystatus.c (options): Likewise.
33110 (GRUB_MOD_INIT): Likewise.
33111 * commands/loadenv.c (options): Likewise.
33112 * commands/ls.c (options): Likewise.
33113 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33114 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33115 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33116 * commands/parttool.c (helpmsg): Likewise.
33117 * commands/probe.c (options): Likewise.
33118 * commands/read.c (GRUB_MOD_INIT): Likewise.
33119 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33120 * commands/search.c (options): Likewise.
33121 * commands/sleep.c (options): Likewise.
33122 * commands/test.c (GRUB_MOD_INIT): Likewise.
33123 * commands/true.c (GRUB_MOD_INIT): Likewise.
33124 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33125 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33126 * lib/arg.c (help_options): Likewise.
33127 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33128 `$(XGETTEXT)'.
33129 * po/POTFILES: Add `commands/loadenv.c'.
33130
33131 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33132
33133 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33134 instead of specifying them explicit.
33135
33136 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33137
33138 * NEWS: Add grub-probe support for GNU/Hurd.
33139
33140 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33141
33142 * NEWS: gettext was added after 1.97.
33143
33144 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33145
33146 * util/mkisofs/msdos_partition.h: New file (based on
33147 include/grub/msdos_partition.h).
33148 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33149 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33150 (ld_options, main): Recognize --protective-msdos-label.
33151 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33152 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33153 (padblock_write): If `use_protective_msdos_label' is set, patch a
33154 protective DOS-style label in the output image.
33155
33156 * util/grub-mkrescue.in: Use --protective-msdos-label.
33157
33158 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33159
33160 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33161 boot.
33162
33163 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33164
33165 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33166 variables.
33167 (ld_options, main): Recognize `--embedded-boot'.
33168 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33169 declarations.
33170 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33171 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33172 (padblock_write): Likewise. Rewrite to support embedded boot image.
33173
33174 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33175 for BIOS-based disk boot instead of only ElTorito.
33176
33177 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33178
33179 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33180 build (not needed for bootstrap).
33181
33182 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33183
33184 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33185 from i386-pc build (not needed for bootstrap).
33186 Rewrite a pair of strings.
33187
33188 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33189
33190 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33191
33192 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33193
33194 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33195
33196 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33197
33198 * kern/env.c (grub_env_context_open): Mark exported variable for
33199 reexport.
33200
33201 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33202
33203 * kern/env.c (grub_env_export): Create nonexistent variables before
33204 exporting.
33205
33206 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33207
33208 * include/grub/auth.h: Include `<grub/i18n.h>'.
33209 (GRUB_GET_PASSWORD): Gettextizze string.
33210 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33211 menu_text.c.
33212 (grub_utf8_to_ucs4_alloc): Fix indentation.
33213 (grub_print_ucs4): Likewise.
33214 (grub_getstringwidth): Likewise.
33215 (print_message_indented): New declaration.
33216 * normal/auth.c: Include `<grub/i18n.h>'.
33217 (grub_auth_check_authentication): Gettexttize string.
33218 * normal/cmdline.c: Include `<grub/i18n.h>'.
33219 (grub_cmdline_get): Gettextizze.
33220 * normal/color.c: Include `<grub/i18n.h>'.
33221 (grub_parse_color_name_pair): Gettexttize strings.
33222 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33223 string (use `print_message_indented').
33224 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33225 `include/grub/normal.h'.
33226 (print_message_indented): Renamed to ...
33227 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33228 used in normal/main.c).
33229 (print_message): Use `grub_print_message_indented' instead of
33230 `print_message_indented'.
33231 (print_timeout): Likewise.
33232 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33233 (grub_normal_print_device_info): Gettexttize strings.
33234 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33235
33236 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33237
33238 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33239 of arguments. Return number of tokens and not arguments. All users
33240 updated.
33241
33242 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33243
33244 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33245 non-MSDOS paritions.
33246
33247 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33248
33249 * include/grub/types.h (UNUSED): Removed since it conflicts with
33250 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33251 Reported by Grégoire Sutre.
33252
33253 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33254
33255 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33256 (grub_print_ucs4_alloc): Likewise.
33257 (grub_getstringwidth): Likewise.
33258 * normal/main.c (grub_normal_init_page): Gettextize version string.
33259 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33260 (getstringwidth): Renamed to ...
33261 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33262 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33263 (grub_print_ucs4): Remove `static' qualifer (now used in
33264 normal/main.c).
33265 * po/POTFILES: Add normal/main.c.
33266
33267 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33268
33269 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33270 (print_message_indented): Add `margin_left' and `margin_right'
33271 parameters.
33272 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33273 strings.
33274 (print_timeout): Use `print_message_indented' to print the message.
33275 Deletes `second_stage' parameter.
33276 (run_menu): Update `print_timeout' calls.
33277
33278 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33279
33280 Fix console palette on OpenFirmware.
33281
33282 * term/ieee1275/ofconsole.c (MAX): Removed.
33283 (colors): Redone based on VGA palette.
33284 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33285 colors are supported.
33286 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33287
33288 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33289
33290 Fix potential EfiEmu double prepare.
33291
33292 * efiemu/main.c (prepared): New variable
33293 (grub_efiemu_unload): Set prepare to '0'.
33294 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33295
33296 set_virtual_address_map support.
33297
33298 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33299 prototype.
33300 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33301 prototype.
33302 (grub_efiemu_crc32): Likewise.
33303 (grub_efiemu_crc64): Likewise.
33304 (grub_efiemu_set_virtual_address_map): Likewise.
33305 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33306 New definition.
33307 (grub_autoefi_set_virtual_address_map): Likewise.
33308 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33309 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33310 Restructure flow to accomodate it.
33311 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33312 (grub_efiemu_crc): Recompute CRC32.
33313 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33314 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33315 * efiemu/symbols.c (relocated_handle): New variable.
33316 (grub_efiemu_free_syms): Free relocated_handle.
33317 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33318 (grub_efiemu_write_sym_markers): New function.
33319 (grub_efiemu_set_virtual_address_map): Likewise.
33320
33321 Newer XNU parameters.
33322
33323 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33324 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33325 (grub_xnu_fill_devicetree): New prototype.
33326 (grub_xnu_heap_real_start): New variable.
33327 * loader/xnu.c (get_name_ptr): New function.
33328 (grub_xnu_load_driver): Fill namelen and name.
33329
33330 64-bit xnu support.
33331
33332 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33333 and 'loader/macho64.c'.
33334 * conf/i386-pc.rmk: Likewise.
33335 * conf/x86_64-efi.rmk: Likewise.
33336 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33337 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33338 * include/grub/macho.h (grub_macho_segment64): New structure.
33339 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33340 (grub_macho_size32): ... to this.
33341 (grub_macho32_get_entry_point): Renamed from ...
33342 (grub_macho_get_entry_point32): ... to this.
33343 (grub_macho_contains_macho64): New prototype.
33344 (grub_macho_size64): Likewise.
33345 (grub_macho_get_entry_point64): Likewise.
33346 (grub_macho32_load): Renamed from ...
33347 (grub_macho_load32): ... to this.
33348 (grub_macho32_filesize): Renamed from ...
33349 (grub_macho_filesize32): ... to this.
33350 (grub_macho32_readfile): Renamed from ...
33351 (grub_macho_readfile32): ... to this.
33352 (grub_macho_filesize64): New prototype.
33353 (grub_macho_readfile64): Likewise.
33354 (grub_macho_parse32): Likewise.
33355 (grub_macho_parse64): Likewise.
33356 * loader/macho.c: Split into ...
33357 * loader/machoXX.c: ... and this. Replace 32 with XX.
33358 * loader/macho32.c: New file.
33359 * loader/macho64.c: Likewise.
33360 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33361 (grub_cmd_xnu_kernel): Make 32-bit only.
33362 (grub_cmd_xnu_kernel64): New function.
33363 (grub_xnu_load_driver): Support Mach-O 64.
33364 (grub_cmd_xnu_mkext): Likewise.
33365 * util/grub.d/30_os-prober.in (osx_entry): New function.
33366 Generate entries for 64-bit boot too.
33367
33368 Eliminate ad-hoc tree format in XNU and EfiEmu.
33369
33370 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33371 * efiemu/pnvram.c: Rewritten to use environment variables.
33372 All users updated.
33373
33374 Inline utf16_to_utf8.
33375
33376 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33377 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33378 All users updated.
33379 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33380
33381 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33382 * commands/usbtest.c (grub_usb_get_string): ... move here.
33383 (usb_print_str): Fix error handling.
33384 * include/grub/usb.h (grub_usb_get_string): Remove.
33385
33386 UTF-8 to UTF-16 transformation.
33387
33388 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33389 (charset_mod_SOURCES): New variable.
33390 (charset_mod_CFLAGS): Likewise.
33391 (charset_mod_LDFLAGS): Likewise.
33392 * include/grub/utf.h: New file.
33393 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33394
33395 Support for device properties.
33396
33397 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33398 (grub_xnu_devprop_device_header): Likewise.
33399 (grub_xnu_devprop_device_descriptor): Likewise.
33400 (grub_xnu_devprop_add_device): New prototype.
33401 (grub_xnu_devprop_remove_device): Likewise.
33402 (grub_xnu_devprop_remove_property): Likewise.
33403 (grub_xnu_devprop_add_property_utf8): Likewise.
33404 (grub_xnu_devprop_add_property_utf16): Likewise.
33405 (grub_cpu_xnu_init): Likewise.
33406 (grub_cpu_xnu_fini): Likewise.
33407 (grub_cpu_xnu_unload): Likewise.
33408 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33409 (property_descriptor): Likewise.
33410 (devices): New variable.
33411 (grub_xnu_devprop_remove_property): New function.
33412 (grub_xnu_devprop_add_device): Likewise.
33413 (grub_xnu_devprop_remove_device): Likewise.
33414 (grub_xnu_devprop_add_property): Likewise.
33415 (grub_xnu_devprop_add_property_utf8): Likewise.
33416 (grub_xnu_devprop_add_property_utf16): Likewise.
33417 (hextoval): Likewise.
33418 (grub_cpu_xnu_fill_devprop): Likewise.
33419 (grub_cmd_devprop_load): Likewise.
33420 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33421 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33422 (cmd_devprop_load): New variable.
33423 (grub_cpu_xnu_init): New function.
33424 (grub_cpu_xnu_fini): Likewise.
33425 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33426 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33427 (grub_cmd_xnu_devtree): Likewise.
33428 (hextoval): New function.
33429 (unescape): Likewise.
33430 (grub_xnu_fill_devicetree): Likewise.
33431
33432 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33433 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33434
33435 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33436
33437 Workaround for broken ATI VBE.
33438
33439 * video/i386/pc/vbe.c (last_set_mode): New variable.
33440 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33441 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33442 (grub_video_vbe_setup): Don't check for reserved flag.
33443
33444 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33445
33446 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33447 the `find' command.
33448
33449 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33450
33451 UUID support for HFS.
33452
33453 * fs/hfs.c (grub_hfs_uuid): New function.
33454 (grub_hfs_fs): New value .uuid.
33455 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33456
33457 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33458
33459 Fix a segfault with parsing unknown long options.
33460
33461 * util/grub-mkrelpath.c (options): Zero terminate it.
33462
33463 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33464
33465 * include/grub/misc.h (grub_puts): New declaration.
33466 (grub_puts_): Likewise.
33467 * kern/misc.c (grub_puts): New definition.
33468 (grub_puts_): Likewise.
33469
33470 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33471
33472 * util/grub-probe.c (probe): Improve error message.
33473
33474 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33475
33476 * loader/i386/multiboot_elfxx.c
33477 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33478 initialization.
33479
33480 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33481
33482 Relocator framework
33483
33484 * loader/i386/xnu_helper.S: Removed. All users updated.
33485 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33486 (relocator_mod_SOURCES): New variable.
33487 (relocator_mod_CFLAGS): Likewise.
33488 (relocator_mod_LDFLAGS): Likewise.
33489 (relocator_mod_ASFLAGS): Likewise.
33490 * conf/x86_64.rmk: Likewise.
33491 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33492 (grub_multiboot_payload_entry_offset): Likewise.
33493 (grub_multiboot_forward_relocator): Likewise.
33494 (grub_multiboot_forward_relocator_end): Likewise.
33495 (grub_multiboot_backward_relocator): Likewise.
33496 (grub_multiboot_backward_relocator_end): Likewise.
33497 (grub_multiboot_payload_eip): New variable.
33498 (grub_multiboot_payload_orig): Likewise.
33499 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33500 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33501 * include/grub/i386/memory.h
33502 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33503 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33504 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33505 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33506 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33507 * include/grub/i386/relocator.h: New file.
33508 * include/grub/x86_64/relocator.h: Likewise.
33509 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33510 (XNU_RELOCATOR): New macro.
33511 (grub_xnu_launcher_start): Remove.
33512 (grub_xnu_launcher_end): Likewise.
33513 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33514 (grub_xnu_heap_real_start): Remove.
33515 (grub_xnu_heap_start): Change to void *. All users updated.
33516 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33517 * lib/i386/relocator.c: New file.
33518 * lib/i386/relocator_asm.S: Likewise.
33519 * lib/i386/relocator_backward.S: Likewise.
33520 * lib/mips/relocator.c: Likewise.
33521 * lib/mips/relocator_asm.S: Likewise.
33522 * lib/relocator.c: Likewise.
33523 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33524 (entry): Removed.
33525 (playground): Likewise.
33526 (grub_multiboot_payload_orig): New variable.
33527 (grub_multiboot_payload_dest): Likewise.
33528 (grub_multiboot_payload_size): Likewise.
33529 (grub_multiboot_payload_eip): Likewise.
33530 (grub_multiboot_payload_esp): Likewise.
33531 (grub_multiboot_boot): Use grub_relocator32_boot.
33532 (grub_multiboot_unload): Free relocators.
33533 (grub_multiboot): Setup stack. Use relocators.
33534 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33535 (grub_multiboot_load_elfXX): Use relocators.
33536 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33537 (grub_multiboot_payload_size): Likewise.
33538 (grub_multiboot_payload_dest): Likewise.
33539 (grub_multiboot_payload_entry_offset): Likewise.
33540 (grub_multiboot_forward_relocator): Likewise.
33541 (grub_multiboot_backward_relocator): Likewise.
33542 (grub_multiboot_real_boot): Likewise.
33543 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33544 (grub_xnu_entry_point): Likewise.
33545 (grub_xnu_arg1): Likewise.
33546 (grub_xnu_stack): Likewise.
33547 (grub_xnu_launch): Removed.
33548 (grub_xnu_boot_resume): New function.
33549 (grub_xnu_boot): Use relocators.
33550 * loader/i386/xnu_helper.S: Removed.
33551 * loader/xnu.c (grub_xnu_heap_start): New variable.
33552 (grub_xnu_heap_size): Likewise.
33553 (grub_xnu_heap_malloc): Use relocators.
33554 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33555
33556 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33557
33558 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33559 anything.
33560
33561 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33562
33563 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33564 GRUB_ERR_NONE before calling grub_env_set.
33565
33566 2009-12-12 Robert Millan <rmh@aybabtu.com>
33567
33568 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33569 * genmk.rb (video): New variable.
33570 (CLEANFILES, VIDEOFILES): Add #{video}.
33571 (#{video}): New target rule.
33572 * genvideolist.sh: New file.
33573 * Makefile.in (pkglib_DATA): Add video.lst.
33574 (video.lst): New target rule.
33575 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33576 `video.lst'.
33577 * util/grub.d/30_os-prober.in: Replace `vbe' with
33578 ${GRUB_VIDEO_BACKEND}.
33579
33580 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33581
33582 * THANKS: Add David Miller.
33583
33584 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33585
33586 libpciaccess support.
33587
33588 * Makefile.in (LIBPCIACCESS): New variable.
33589 (enable_grub_emu_pci): Likewise.
33590 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33591 util/pci.c and commands/lspci.c.
33592 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33593 * configure.ac (grub-emu-pci): New option.
33594 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33595 (grub_pci_device_unmap_range): Likewise.
33596 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33597 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33598 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33599 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33600 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33601 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33602 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33603 * include/grub/pciutils.h: New file.
33604 * util/pci.c: Likewise.
33605
33606 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33607
33608 * util/misc.c: Don't include <errno.h> twice.
33609
33610 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33611
33612 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33613 name in an error message.
33614 (grub_biosdisk_rw): Likewise.
33615
33616 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33617
33618 Eliminate NTFS 4Gib barrier.
33619
33620 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33621 (read_run_data): Likewise.
33622 (grub_ntfs_read_run_list): Likewise.
33623 (grub_ntfs_read_block): Likewise.
33624 (grub_ntfs_iterate_dir): Likewise.
33625 (read_mft): Likewise.
33626 (read_data): Likewise.
33627 Use COM_LOG_LEN.
33628 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33629 to avoid 64-bit division
33630 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33631 (grub_ntfs_rlst): Use grub_disk_addr_t.
33632
33633 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33634
33635 Eliminate grub-fstest 4Gib barrier.
33636
33637 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33638 (read_file): Fix error reporting.
33639
33640 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33641
33642 Eliminate hexdump 4Gib barrier.
33643
33644 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33645 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33646
33647 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33648
33649 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33650 Fixes amarsh bug.
33651
33652 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33653
33654 Remove miscellaneous files in distclean target.
33655
33656 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33657
33658 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33659
33660 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33661 if they're already set. This resolves the conflict between my
33662 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33663 fixing the --grub-probe option again.
33664 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33665 change on 2009-10-06, so that we now once again source
33666 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33667
33668 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33669
33670 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33671 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33672 `util/devicemap.c'.
33673
33674 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33675
33676 * include/grub/misc.h (grub_printf_): New declaration.
33677 * kern/misc.c (grub_printf_): New definition.
33678 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33679 instead of `grub_printf' and `_'.
33680 * normal/menu_entry.c (store_completion): Likewise.
33681 (run): Likewise.
33682 (grub_menu_entry_run): Likewise.
33683 * normal/menu_text.c (grub_wait_after_message): Likewise.
33684 (notify_booting): Likewise.
33685 (notify_fallback): Likewise.
33686 (notify_execution_failure): Likewise.
33687
33688 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33689
33690 * configure.ac: Check for vasprintf.
33691 * util/misc.c (asprintf): Move allocation from here ...
33692 (vasprintf): ... to here. New function.
33693 (xasprintf): New function.
33694 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33695 prototypes.
33696 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33697 * util/grub-mkfont.c (write_font): Likewise.
33698 * util/grub-probe.c (probe): Likewise.
33699 * util/hostdisk.c (make_device_name): Likewise.
33700
33701 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33702
33703 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33704 anything even prefixed with 'cdrom' as a cdrom.
33705
33706 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33707
33708 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33709 mount points.
33710
33711 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33712
33713 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33714 grub_gettext_msg_list.
33715 (grub_gettext_gettranslation_from_position): Return const char *
33716 and not char *.
33717 (grub_gettext_translate): Add the translated strings into a list,
33718 returns from the list if existing there.
33719 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33720 (grub_gettext_delete_list): Delete the list.
33721 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33722 lang environment variable is changed.
33723 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33724
33725 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33726
33727 Rename kernel.mod to kernel.img.
33728
33729 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33730 (kernel_mod_EXPORTS): Rename to ...
33731 (kernel_img_EXPORTS): ... this.
33732 (kernel_mod_SOURCES): Rename to ...
33733 (kernel_img_SOURCES): ... this.
33734 (kernel_mod_HEADERS): Rename to ...
33735 (kernel_img_HEADERS): ... this. All users updated.
33736 (kernel_mod_CFLAGS): Rename to ...
33737 (kernel_img_CFLAGS): ... this.
33738 (kernel_mod_ASFLAGS): Rename to ...
33739 (kernel_img_ASFLAGS): ... this.
33740 (kernel_mod_LDFLAGS): Rename to ...
33741 (kernel_img_LDFLAGS): ... this.
33742 * conf/x86_64-efi.rmk: Likewise.
33743 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33744 (read_kernel_image): ... this. All users updated.
33745 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33746
33747 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33748
33749 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33750 (print_spaces): New function.
33751 (grub_print_ucs4): New function.
33752 (getstringwidth): New function.
33753 (print_message_indented): New function.
33754 (print_message): Gettexttize strings using print_message_indented.
33755 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33756 width.
33757 (get_entry_number): Gettextize and uses dynamic terminal width.
33758 (notify_booting, notify_fallback, notify_execution_failure):
33759 Gettextize.
33760 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33761 string.
33762 (run): Likewise.
33763 (grub_menu_entry_run): Likewise.
33764 * PO/POTFILES: Add normal/menu_entry.c.
33765
33766 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33767
33768 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33769
33770 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33771
33772 * util/grub-install.in: Install gettext .mo files.
33773 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33774
33775 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33776
33777 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33778 grub_dprintf.
33779
33780 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33781
33782 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33783 non-firmware-dependant one in realmode.S takes precedence.
33784
33785 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33786
33787 * commands/halt.c: Replace misc arch-specific headers with
33788 `<grub/misc.h>'.
33789 * commands/reboot.c: Likewise.
33790 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33791 `<grub/misc.h>'.
33792 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33793 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33794 (kernel_img_SOURCES): ... to here.
33795
33796 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33797 * include/grub/i386/pc/init.h: Likewise.
33798 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33799 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33800
33801 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33802
33803 * include/grub/i386/halt.h: Remove.
33804 * include/grub/i386/reboot.h: Likewise.
33805
33806 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33807
33808 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33809
33810 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33811 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33812 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33813 "progname.h"
33814 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33815 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33816 (usage): Add missing comma in printf.
33817
33818 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33819
33820 Use the same reboot approach on i386 coreboot and qemu as we do on
33821 BIOS.
33822
33823 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33824 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33825 * kern/i386/reboot.c: Remove.
33826 * include/grub/i386/reboot.h (grub_reboot): Export function.
33827 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33828 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33829 0xf000:0xfff0 instead of 0xffff:0x0000.
33830 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33831 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33832
33833 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33834
33835 Fix $srcdir != $objdir build.
33836
33837 * Makefile.in (po/%.po): Rewrite as ...
33838 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33839
33840 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33841
33842 Fix GNU/Hurd grub-install crash.
33843 * util/grub-probe.c (probe): Try to access `path' only when it is not
33844 NULL.
33845
33846 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33847
33848 Correct module naming.
33849
33850 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33851 (GRUB_MOD_INIT(efi_uga)): ... to this
33852 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33853 (GRUB_MOD_FINI(efi_uga)): ... to this
33854 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33855 (GRUB_MOD_INIT(efi_gop)): ... to this
33856 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33857 (GRUB_MOD_FINI(efi_gop)): ... to this
33858
33859 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33860
33861 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33862 translatable.
33863 (usage): Translate `arg' strings using gettext().
33864 Thanks to Jordi Mallach for the suggestion.
33865
33866 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33867
33868 GOP support. Based on patch from Bean
33869 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33870
33871 * video/efi_gop.c: New file.
33872 * include/grub/efi/graphics_output.h: Likewise.
33873 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33874 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33875 variables.
33876 * conf/x86_64-efi.rmk: Likewise.
33877
33878 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33879
33880 Rename efi_fb to efi_uga.
33881
33882 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33883 'efi_uga.mod'.
33884 (efi_fb_mod_SOURCES): Rename this ...
33885 (efi_uga_mod_SOURCES): ... to this.
33886 (efi_fb_mod_CFLAGS): Rename this ...
33887 (efi_uga_mod_CFLAGS): ... to this.
33888 (efi_fb_mod_LDFLAGS): Rename this ...
33889 (efi_uga_mod_LDFLAGS): ... to this.
33890 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33891 'efi_uga.mod'.
33892 (efi_fb_mod_SOURCES): Rename this ...
33893 (efi_uga_mod_SOURCES): ... to this.
33894 (efi_fb_mod_CFLAGS): Rename this ...
33895 (efi_uga_mod_CFLAGS): ... to this.
33896 (efi_fb_mod_LDFLAGS): Rename this ...
33897 (efi_uga_mod_LDFLAGS): ... to this.
33898 * video/efi_fb.c: Move this ...
33899 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33900
33901 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33902
33903 * po/README: New file. Explain our PO file workflow.
33904
33905 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33906
33907 * po/ChangeLog: Remove. Move relevant entries back to ...
33908 * ChangeLog: ... here.
33909 * po/ca.po: Remove (now handled by TLP).
33910 * po/id.po: Likewise.
33911 * po/zh_CN.po: Likewise.
33912 * Makefile.in (LINGUAS): Initialize in a way that supports
33913 empty set.
33914
33915 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33916
33917 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33918 reliing on po/LINGUAS.
33919 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33920 (po/%.po): ... this.
33921
33922 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33923
33924 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33925 (main): Use `program_name' instead of nonexistent `progname'.
33926
33927 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33928
33929 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
33930 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
33931
33932 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33933
33934 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
33935 commit.
33936 * conf/i386-efi.rmk: Likewise.
33937 * conf/i386-ieee1275.rmk: Likewise.
33938 * conf/powerpc-ieee1275.rmk: Likewise.
33939 * conf/sparc64-ieee1275.rmk: Likewise.
33940 * conf/x86_64-efi.rmk: Likewise.
33941
33942 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33943
33944 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
33945
33946 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33947
33948 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
33949
33950 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
33951
33952 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
33953 (grub_mkdevicemap_SOURCES): New variable.
33954 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
33955 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
33956 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
33957 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
33958 (grub_mkdevicemap_SOURCES): Remove.
33959 * conf/i386-efi.rmk: Likewise.
33960 * conf/i386-ieee1275.rmk: Likewise.
33961 * conf/i386-pc.rmk: Likewise.
33962 * conf/powerpc-ieee1275.rmk: Likewise.
33963 * conf/sparc64-ieee1275.rmk: Likewise.
33964 * conf/x86_64-efi.rmk: Likewise.
33965 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
33966 (usage): Fix strings to use `program_name'.
33967 (main): Initialize gettext.
33968 * util/grub-editenv.c: Likewise.
33969 * util/grub-emu.c: Likewise.
33970 * util/grub-fstest.c: Likewise.
33971 * util/grub-mkdevicemap.c: Likewise.
33972 * util/grub-mkfont.c: Likewise.
33973 * util/grub-mkrelpath.c: Likewise.
33974 * util/grub-pe2elf.c: Likewise.
33975 * util/grub-probe.c: Likewise.
33976 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
33977 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33978 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33979
33980 * util/misc.c: Include `"progname.h"'.
33981 (progname): Remove variable.
33982 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
33983
33984 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33985
33986 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
33987 printf and print a newline after the menuentry header line.
33988 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
33989
33990 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
33991
33992 autoconf >= 2.60 support $(localedir).
33993
33994 * INSTALL: Note that autoconf 2.60 is required.
33995 * configure.ac (AC_PREREQ): Bump to 2.60.
33996 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
33997 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
33998
33999 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34000
34001 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34002 aclocal is run.
34003
34004 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34005
34006 * normal/main.c (grub_normal_read_line): Fix off-by-one
34007 buffer overflow.
34008
34009 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34010
34011 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34012 "parser.grub" in grub_command_execute() call.
34013
34014 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34015
34016 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34017 * conf/i386-efi.rmk: Likewise.
34018 * conf/i386-ieee1275.rmk: Likewise.
34019 * conf/i386-pc.rmk: Likewise.
34020 * conf/powerpc-ieee1275.rmk: Likewise.
34021 * conf/sparc64-ieee1275.rmk: Likewise.
34022 * conf/x86_64-efi.rmk: Likewise.
34023 * gettext/gettex.c: Include <grub/i18n.h>.
34024 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34025 here ...
34026 * include/grub/i18n.h: ... to here
34027 * include/grub/i18n.h: ... to here.
34028 * kern/misc.c: Include <grub/i18n.h>
34029 (grub_gettext_dummy): Move above user.
34030
34031 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34032
34033 * util/Makefile.in (install-local): Convert a `for' into a normal
34034 shell expansion.
34035
34036 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34037
34038 * autogen.sh: Add automake call.
34039 * config.guess: Remove.
34040 * config.sub: Likewise.
34041 * install-sh: Likewise.
34042
34043 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34044
34045 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34046
34047 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34048
34049 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34050 function to a normal shell `for'.
34051
34052 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34053
34054 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34055
34056 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34057
34058 * util/grub-mkrelpath.c: New file.
34059 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34060 (grub_mkrelpath_SOURCES): New variable.
34061 * include/grub/util/misc.h: New function prototype.
34062 * util/misc.c (make_system_path_relative_to_its_root): New function.
34063
34064 * util/grub-mkconfig_lib.in (bindir): New variable.
34065 (grub_mkrelpath): Likewise.
34066 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34067
34068 * util/probe.c (probe): Make the file path relative to its root.
34069 Change a info message to use the GRUB path. Enable again the
34070 check if we can read the file with GRUB facilities.
34071
34072 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34073 to its root.
34074
34075 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34076
34077 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34078 platform.
34079
34080 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34081
34082 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34083 strncmp().
34084
34085 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34086
34087 * util/getroot.c (grub_util_is_dmraid): New function.
34088 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34089 devices as normal ones, not as LVM.
34090
34091 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34092
34093 * conf/common.rmk: Add grub-gettext_lib target and updates
34094 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34095 LDFLAGS.
34096 * gettext/gettext.c: New file. (Reads mo files).
34097 * include/grub/file.h (grub_file_pread): New prototype.
34098 * include/grub/i18n.h (_): New prototype.
34099 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34100 prototypes.
34101 * kern/misc.c (grub_gettext_dummy): New function.
34102 * normal/menu_text.c: Include <grub/i18n.h>.
34103 * normal/menu_text.c (print_timeout): Gettexttize string.
34104 * normal/menu_text.c (print_message): Gettexttize string.
34105 * po/POTFILES: Add `normal/menu_text.c'.
34106 * po/ca.po: Add new translations.
34107 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34108 gettext module and defines locale_dir and lang in grub.cfg.
34109 * NEWS: Add gettext support.
34110
34111 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34112
34113 * util/hostdisk.c: Include `<grub/i18n.h>'.
34114 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34115 (make_device_name): Rewrite using asprintf.
34116 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34117 (find_system_device): If a device is not found, generate one just
34118 by reusing the OS path name.
34119 (read_device_map): Make it permissible for device.map not to exist.
34120
34121 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34122
34123 * script/sh/execute.c: Move from here ...
34124 * script/execute.c: ... to here. Update all users.
34125 * script/sh/function.c: Move from here ...
34126 * script/function.c: ... to here. Update all users.
34127 * script/sh/lexer.c: Move from here ...
34128 * script/lexer.c: ... to here. Update all users.
34129 * script/sh/main.c: Move from here ...
34130 * script/main.c: ... to here. Update all users.
34131 * script/sh/parser.y: Move from here ...
34132 * script/parser.y: ... to here. Update all users.
34133 * script/sh/script.c: Move from here ...
34134 * script/script.c: ... to here. Update all users.
34135
34136 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34137
34138 * configure.ac: Detect all `emu' platforms. Define
34139 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34140 --enable-grub-emu logic. Disable include/grub/machine
34141 symlink on `emu' platforms.
34142
34143 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34144 * gensymlist.sh.in: Likewise.
34145
34146 * include/grub/i386/coreboot/machine.h: Remove file.
34147 * include/grub/i386/efi/machine.h: Likewise.
34148 * include/grub/i386/ieee1275/machine.h: Likewise.
34149 * include/grub/i386/pc/machine.h: Likewise.
34150 * include/grub/i386/qemu/machine.h: Likewise.
34151 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34152 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34153 * include/grub/x86_64/efi/machine.h: Likewise.
34154
34155 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34156 * commands/halt.c: Likewise.
34157 * commands/reboot.c: Likewise.
34158 * include/grub/autoefi.h: Likewise.
34159 * include/grub/i386/at_keyboard.h: Likewise.
34160 * include/grub/i386/kernel.h: Likewise.
34161 * include/grub/i386/loader.h: Likewise.
34162 * include/grub/i386/pc/memory.h: Likewise.
34163 * kern/dl.c: Likewise.
34164 * kern/i386/coreboot/init.c: Likewise.
34165 * loader/i386/bsd.c: Likewise.
34166 * loader/i386/linux.c: Likewise.
34167 * loader/multiboot_loader.c: Likewise.
34168 * term/i386/pc/serial.c: Likewise.
34169 * term/usb_keyboard.c: Likewise.
34170
34171 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34172 `<grub/machine/machine.h>'
34173 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34174 * util/misc.c: Remove `<grub/machine/machine.h>' and
34175 `<grub/machine/time.h>'.
34176
34177 * Makefile.in (enable_grub_emu): Remove variable.
34178 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34179
34180 * conf/any-emu.rmk: New file.
34181 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34182 (grub_emu_init.c): Move from here ...
34183 * conf/any-emu.rmk: ... to here.
34184
34185 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34186 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34187 * conf/any-emu.rmk: ... to here.
34188
34189 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34190
34191 * include/grub/parser.h (grub_parser_register): Document need
34192 of `name' parameter.
34193 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34194 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34195 "sh" to "grub".
34196
34197 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34198
34199 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34200 `$(XGETTEXT)'.
34201 * include/grub/i18n.h (N_): New macro.
34202 * util/mkisofs/mkisofs.h: Likewise.
34203 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34204 around N_().
34205 (usage): Use gettext() to translate help strings when printing them.
34206
34207 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34208
34209 Based on patch from Bean
34210 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34211
34212 * video/efi_fb.c: New file.
34213 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34214 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34215 variables.
34216 * conf/x86_64-efi.rmk: Likewise.
34217
34218 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34219
34220 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34221 * util/i386/pc/grub-setup.c: Likewise.
34222
34223 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34224
34225 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34226 <hurd/fs.h>
34227 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34228 file_get_storage_info to implement grub_guess_root_device.
34229
34230 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34231
34232 * Makefile.in (target): Use make's builtin $(shell) function
34233 instead of calling directly $(SHELL) to create the locale directories,
34234 inside the $(foreach) function.
34235
34236 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34237
34238 * util/grub-mkrescue.in: Print an error and usage if output option
34239 has not been given.
34240
34241 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34242
34243 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34244 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34245 root and /boot are on different devices.
34246
34247 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34248
34249 Fix build for srcdir != objdir.
34250
34251 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34252 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34253 $(srcdir).
34254 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34255 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34256 reference for input.
34257
34258 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34259
34260 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34261 or hardlinking it). Remove -J option, Joliet is not compatible with
34262 multiple source directories.
34263
34264 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34265 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34266
34267 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34268 (process_input_dir): New function. Process an arbitrary input
34269 directory.
34270 Misc adjustments to support both "override mode" and system-wide mode.
34271
34272 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34273
34274 * configure.ac (UNIFONT_BDF): Rename to ...
34275 (FONT_SOURCE): ... this. Update all users.
34276
34277 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34278
34279 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34280 to the list of unifont files to look for.
34281
34282 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34283
34284 Patch from Joe Auricchio <jauricchio@gmail.com>
34285 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34286 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34287 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34288
34289 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34290
34291 * Makefile.in (install-local): Add a missing backslash.
34292
34293 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34294
34295 * include/grub/x86_64/io.h: New file.
34296
34297 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34298
34299 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34300 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34301 Include `"progname.h"'.
34302 (main): Initialize gettext.
34303 * util/i386/pc/grub-setup.c: Gettexttize.
34304 * util/i386/pc/grub-mkimage.c: Likewise.
34305
34306 * Makefile.in (po/*.po): Redefine as ...
34307 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34308
34309 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34310
34311 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34312
34313 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34314 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34315 (program_name): Remove.
34316 (main): Initialize gettext support.
34317 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34318 Include `<libintl.h>'.
34319 (_): New macro.
34320
34321 * util/mkisofs/eltorito.c: Gettexttize.
34322 * util/mkisofs/joliet.c: Likewise.
34323 * util/mkisofs/mkisofs.c: Likewise.
34324 * util/mkisofs/multi.c: Likewise.
34325 * util/mkisofs/rock.c: Likewise.
34326 * util/mkisofs/tree.c: Likewise.
34327 * util/mkisofs/write.c: Likewise.
34328
34329 * po/POTFILES: Update with new files.
34330
34331 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34332
34333 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34334 * util/mkisofs/iso9660.h: Likewise.
34335 * util/mkisofs/joliet.c: Likewise.
34336 * util/mkisofs/mkisofs.c: Likewise.
34337 * util/mkisofs/mkisofs.h: Likewise.
34338 * util/mkisofs/rock.c: Likewise.
34339 * util/mkisofs/tree.c: Likewise.
34340 * util/mkisofs/write.c: Likewise.
34341
34342 * util/mkisofs/eltorito.c (rcsid): Remove.
34343 * util/mkisofs/hash.c: Likewise.
34344 * util/mkisofs/joliet.c: Likewise.
34345 * util/mkisofs/name.c: Likewise.
34346 * util/mkisofs/rock.c: Likewise.
34347 * util/mkisofs/tree.c: Likewise.
34348 * util/mkisofs/write.c: Likewise.
34349
34350 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34351
34352 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34353 instead of static allocation.
34354 * util/mkisofs/match.h: Likewise.
34355
34356 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34357
34358 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34359 and `util/grub.d/10_linux.in'.
34360 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34361 translatable Shell files.
34362
34363 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34364
34365 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34366
34367 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34368
34369 * INSTALL: Document Automake is needed for bootstrap.
34370 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34371 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34372 Add gettext initialization.
34373 (kfreebsd_entry): Make menuentry output translatable.
34374
34375 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34376
34377 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34378 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34379 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34380 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34381 (LINGUAS): Auto-generate using `po/LINGUAS'.
34382 * po/LINGUAS: New file.
34383
34384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34385
34386 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34387 other things).
34388 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34389 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34390 bindtextdomain() calls for gettext initialization.
34391
34392 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34393
34394 * gnulib/progname.c: New file (imported from Gnulib).
34395 * gnulib/progname.h: Likewise.
34396 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34397 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34398 (usage): Replace `progname' with `program_name'.
34399 (main): Use set_program_name() for program name initialization.
34400
34401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34402
34403 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34404 from here ...
34405 * Makefile.in (CPPFLAGS): ... to here.
34406
34407 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34408
34409 * aclocal.m4: Move from here ...
34410 * acinclude.m4: ... to here.
34411 * autogen.sh: Add call to `aclocal'.
34412 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34413
34414 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34415
34416 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34417 (LINGUAS): New variable.
34418 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34419 (install-local): Install MO files.
34420 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34421 * include/grub/i18n.h: New file.
34422 * po/POTFILES: New file.
34423 * po/ca.po: New file.
34424 * util/grub.d/10_linux.in (bindir): New variable.
34425 Add gettext initialization.
34426 (linux_entry): Make menuentry output translatable.
34427 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34428 (usage): Make --help output translatable.
34429 (main): Initialize gettext.
34430
34431 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34432
34433 * import_gcry.py: New file (written by Vladimir with minor
34434 adjustments).
34435 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34436 ciphers.
34437 * INSTALL: Document that Python is required for bootstrap.
34438
34439 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34440
34441 Import ciphers from libgcrypt 1.4.4.
34442
34443 * lib/libgcrypt/cipher/ChangeLog
34444 * lib/libgcrypt/cipher/ac.c
34445 * lib/libgcrypt/cipher/arcfour.c
34446 * lib/libgcrypt/cipher/bithelp.h
34447 * lib/libgcrypt/cipher/blowfish.c
34448 * lib/libgcrypt/cipher/camellia-glue.c
34449 * lib/libgcrypt/cipher/camellia.c
34450 * lib/libgcrypt/cipher/camellia.h
34451 * lib/libgcrypt/cipher/cast5.c
34452 * lib/libgcrypt/cipher/cipher.c
34453 * lib/libgcrypt/cipher/crc.c
34454 * lib/libgcrypt/cipher/des.c
34455 * lib/libgcrypt/cipher/dsa.c
34456 * lib/libgcrypt/cipher/ecc.c
34457 * lib/libgcrypt/cipher/elgamal.c
34458 * lib/libgcrypt/cipher/hash-common.c
34459 * lib/libgcrypt/cipher/hash-common.h
34460 * lib/libgcrypt/cipher/hmac-tests.c
34461 * lib/libgcrypt/cipher/md.c
34462 * lib/libgcrypt/cipher/md4.c
34463 * lib/libgcrypt/cipher/md5.c
34464 * lib/libgcrypt/cipher/primegen.c
34465 * lib/libgcrypt/cipher/pubkey.c
34466 * lib/libgcrypt/cipher/rfc2268.c
34467 * lib/libgcrypt/cipher/rijndael-tables.h
34468 * lib/libgcrypt/cipher/rijndael.c
34469 * lib/libgcrypt/cipher/rmd.h
34470 * lib/libgcrypt/cipher/rmd160.c
34471 * lib/libgcrypt/cipher/rsa.c
34472 * lib/libgcrypt/cipher/seed.c
34473 * lib/libgcrypt/cipher/serpent.c
34474 * lib/libgcrypt/cipher/sha1.c
34475 * lib/libgcrypt/cipher/sha256.c
34476 * lib/libgcrypt/cipher/sha512.c
34477 * lib/libgcrypt/cipher/tiger.c
34478 * lib/libgcrypt/cipher/twofish.c
34479 * lib/libgcrypt/cipher/whirlpool.c
34480
34481 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34482
34483 Fix build for systems without error().
34484
34485 * gnulib/error.c: New file (imported from Gnulib).
34486 * gnulib/error.h: Likewise.
34487 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34488 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34489 (this variable is now used by error()).
34490
34491 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34492
34493 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34494 instead of relying that char is signed.
34495
34496 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34497
34498 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34499 blocksize different from specified.
34500 (grub_pxefs_read): Likewise.
34501
34502 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34503
34504 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34505
34506 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34507 (grub_ata_readwrite): Likewise. Update 2 format strings.
34508 (grub_atapi_read): Likewise.
34509
34510 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34511 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34512 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34513 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34514 (ata_mod_LDFLAGS): Move from here ...
34515 * conf/i386.rmk: ... to here ...
34516 * conf/x86_64-efi.rmk: ... and here.
34517 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34518 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34519
34520 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34521
34522 Relicense multiboot.h, with RMS' blessing.
34523
34524 * include/multiboot.h: Change to X11 license.
34525
34526 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34527
34528 Support --version in grub-mkisofs.
34529
34530 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34531 (OPTION_VERSION): New macro.
34532 (ld_options): Recognize --version.
34533 (usage): Move `program_name' from here ...
34534 (program_name): ... to here. Add `static' qualifier.
34535 (main): Recognize `OPTION_VERSION'.
34536
34537 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34538
34539 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34540 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34541
34542 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34543
34544 Fix help2man generation for mkisofs.
34545
34546 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34547 (usage): Send output to stdout (rather than stderr).
34548
34549 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34550
34551 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34552 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34553 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34554 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34555 (bin_SCRIPTS): Add `grub-mkfloppy'.
34556 (grub_mkfloppy_SOURCES): New variable.
34557
34558 * util/grub-mkrescue.in: New file.
34559 * util/i386/pc/grub-mkfloppy.in: New file.
34560
34561 * util/i386/coreboot/grub-mkrescue.in: Remove.
34562 * util/i386/pc/grub-mkrescue.in: Remove.
34563
34564 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34565
34566 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34567 from here ...
34568 * include/multiboot.h (struct multiboot_header): ... to here. Update
34569 all users.
34570 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34571 from here ...
34572 * include/multiboot.h (struct multiboot_info): ... to here. Update
34573 all users.
34574 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34575 from here ...
34576 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34577 Update all users.
34578 * include/grub/multiboot.h (struct grub_mod_list): Move
34579 from here ...
34580 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34581 Update all users.
34582
34583 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34584
34585 * include/multiboot2.h (multiboot_word): Rename from this ...
34586 (multiboot2_word): ... to this. Update all users.
34587 (multiboot_header): Rename from this ...
34588 (multiboot2_header): ... to this. Update all users.
34589 (multiboot_tag_header): Rename from this ...
34590 (multiboot2_tag_header): ... to this. Update all users.
34591 (multiboot_tag_start): Rename from this ...
34592 (multiboot2_tag_start): ... to this. Update all users.
34593 (multiboot_tag_name): Rename from this ...
34594 (multiboot2_tag_name): ... to this. Update all users.
34595 (multiboot_tag_module): Rename from this ...
34596 (multiboot2_tag_module): ... to this. Update all users.
34597 (multiboot_tag_memory): Rename from this ...
34598 (multiboot2_tag_memory): ... to this. Update all users.
34599 (multiboot_tag_unused): Rename from this ...
34600 (multiboot2_tag_unused): ... to this. Update all users.
34601 (multiboot_tag_end): Rename from this ...
34602 (multiboot2_tag_end): ... to this. Update all users.
34603
34604 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34605
34606 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34607 this platform we should support Multiboot1 first.
34608
34609 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34610 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34611 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34612
34613 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34614
34615 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34616 of write calls (converting them to fwrite() if they aren't already).
34617 (get_torito_desc): Likewise.
34618 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34619
34620 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34621
34622 * util/i386/pc/grub-install.in: Move from here ...
34623 * util/grub-install.in: ... to here. Update all users.
34624
34625 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34626
34627 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34628
34629 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34630
34631 Support for El Torito without floppy emulation.
34632
34633 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34634 (init_boot_catalog): Improve error handling.
34635 (get_torito_desc): Don't use floppy emulation unless requested by
34636 user. Patch boot information table when requested via
34637 `-boot-info-table'.
34638 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34639 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34640 (use_boot_info_table): New variables.
34641 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34642 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34643 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34644 `--eltorito-emul-floppy'.
34645 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34646 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34647 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34648 (use_boot_info_table, get_731): New prototypes.
34649 * util/mkisofs/write.c (get_731): New function.
34650
34651 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34652
34653 Fix the generation of the man page.
34654
34655 * util/pc/i386/grub-install.in: Source
34656 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34657
34658 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34659
34660 Large file support for grub-mkisofs.
34661
34662 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34663 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34664 (session_start): Upgrade type to `uint64_t'. Update all users.
34665 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34666 (struct directory_entry): Upgrade type of `starting_block' and
34667 `size' to `uint64_t'. Update all users.
34668 (struct deferred): Remove unused structure.
34669 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34670 Update all users.
34671 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34672 file is larger than `UINT32_MAX'.
34673 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34674 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34675 return value.
34676 (struct deferred_write): Upgrade type of `extent' and `size' to
34677 `uint64_t'. Update all users.
34678 (last_extent_written): Upgrade type to `uint64_t'. Update all
34679 users.
34680 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34681 Update all users. Upgrade type of `remain' to `int64_t' and
34682 `use' to `size_t'. Use error() to handle fread() errors.
34683 (write_files): Rely on write_one_file() rather than calling
34684 xfwrite() directly.
34685
34686 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34687
34688 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34689
34690 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34691
34692 * util/mkisofs/fnmatch.c: Remove.
34693 * util/mkisofs/getopt1.c: Likewise.
34694 * util/mkisofs/getopt.c: Likewise.
34695 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34696 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34697 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34698 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34699 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34700
34701 * configure.ac: Detect `mingw32msvc' host_os.
34702 Check for lstat(), getuid() and getgid().
34703
34704 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34705 instances of `u_char' with `uint8_t'.
34706
34707 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34708 [!HAVE_GETUID] (getuid): New function (stub).
34709 [!HAVE_GETGID] (getgid): Likewise.
34710 [!HAVE_LSTAT] (lstat): Likewise.
34711 [!S_IROTH] (S_IROTH): New macro (dummy).
34712 [!S_IRGRP] (S_IRGRP): Likewise.
34713
34714 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34715
34716 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34717 conditional expression).
34718
34719 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34720
34721 Import from Gnulib.
34722
34723 * gnulib/fnmatch.c: New file.
34724 * gnulib/fnmatch.h: Likewise.
34725 * gnulib/fnmatch_loop.c: Likewise.
34726 * gnulib/getopt.c: Likewise.
34727 * gnulib/getopt.h: Likewise.
34728 * gnulib/getopt1.c: Likewise.
34729 * gnulib/getopt_int.h: Likewise.
34730 * gnulib/gettext.h: Likewise.
34731
34732 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34733
34734 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34735 * normal/handler.c (read_handler_list): Likewise.
34736
34737 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34738
34739 Misc cleanup.
34740
34741 * kern/command.c (grub_register_command_prio): Use
34742 grub_zalloc() instead of explicitly zeroing data.
34743 * kern/list.c: Include `<grub/mm.h>'.
34744 (grub_named_list_find): Replace `0' with `NULL'.
34745 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34746 (fs_module_list): Change type to `grub_named_list_t'. Update all
34747 users.
34748 * normal/dyncmd.c (read_command_list): Add space between function
34749 call and parenthesis.
34750 * normal/handler.c (read_handler_list): Likewise.
34751
34752 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34753
34754 * normal/auth.c (punishment_delay): Moved from here ...
34755 (grub_auth_strcmp): ... to here (inside function).
34756
34757 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34758
34759 * include/grub/list.h (struct grub_named_list): Remove `const'
34760 qualifier from `name'.
34761 (struct grub_prio_list): Likewise.
34762
34763 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34764
34765 * normal/auth.c: Include `<grub/time.h>'.
34766 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34767
34768 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34769
34770 * normal/auth.c (punishment_delay): New variable.
34771 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34772 (grub_auth_check_authentication): Punish failed login attempts with
34773 an incremental (2^N) delay.
34774
34775 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34776
34777 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34778 path with $(srcdir).
34779
34780 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34781
34782 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34783
34784 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34785
34786 * util/i386/coreboot/grub-mkrescue.in: New file.
34787 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34788 variables.
34789
34790 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34791 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34792 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34793 requirements.
34794 * util/mkisofs/defaults.h: New file.
34795 * util/mkisofs/eltorito.c: Likewise.
34796 * util/mkisofs/exclude.h: Likewise.
34797 * util/mkisofs/fnmatch.c: Likewise.
34798 * util/mkisofs/getopt.c: Likewise.
34799 * util/mkisofs/getopt1.c: Likewise.
34800 * util/mkisofs/hash.c: Likewise.
34801 * util/mkisofs/include/fctldefs.h: Likewise.
34802 * util/mkisofs/include/mconfig.h: Likewise.
34803 * util/mkisofs/include/prototyp.h: Likewise.
34804 * util/mkisofs/include/statdefs.h: Likewise.
34805 * util/mkisofs/iso9660.h: Likewise.
34806 * util/mkisofs/joliet.c: Likewise.
34807 * util/mkisofs/match.c: Likewise.
34808 * util/mkisofs/match.h: Likewise.
34809 * util/mkisofs/mkisofs.c: Likewise.
34810 * util/mkisofs/mkisofs.h: Likewise.
34811 * util/mkisofs/multi.c: Likewise.
34812 * util/mkisofs/name.c: Likewise.
34813 * util/mkisofs/rock.c: Likewise.
34814 * util/mkisofs/tree.c: Likewise.
34815 * util/mkisofs/write.c: Likewise.
34816
34817 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34818
34819 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34820 being insecure.
34821
34822 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34823
34824 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34825 `grub-mkimage' (and use $0 when possible).
34826
34827 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34828
34829 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34830 error message for excessively large memory map.
34831
34832 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34833
34834 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34835 executable bit.
34836
34837 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34838
34839 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34840 message for coreboot users.
34841
34842 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34843
34844 Fix build with GNU gold.
34845
34846 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34847 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34848 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34849 link addresses.
34850 * aclocal.m4: Likewise.
34851
34852 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34853
34854 * configure.ac (AC_PREREQ): Bump to 2.59d.
34855 * INSTALL: Make it more clear when Autoconf and Ruby are
34856 needed and when to run `./autogen.sh'.
34857
34858 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34859
34860 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34861 OSes.
34862
34863 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34864
34865 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34866
34867 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34868
34869 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34870 giving it to GNU Mach.
34871
34872 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34873
34874 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34875 GNU partition number to get internal GRUB partition number.
34876
34877 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34878
34879 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34880 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34881
34882 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34883
34884 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34885 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34886 case.
34887
34888 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34889
34890 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34891
34892 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34893
34894 Fix build problem.
34895
34896 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34897 `-isystem=$(srcdir)/include'.
34898
34899 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34900
34901 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34902 checked (grub-install doesn't currently rely on it).
34903
34904 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34905
34906 Revert SVN r2660.
34907
34908 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34909 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34910 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34911 * conf/i386-ieee1275.rmk: Likewise.
34912 * conf/i386-pc.rmk: Likewise.
34913 * conf/powerpc-ieee1275.rmk: Likewise.
34914 * conf/sparc64-ieee1275.rmk: Likewise.
34915 * conf/x86_64-efi.rmk: Likewise.
34916
34917 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34920
34921 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34922
34923 * include/grub/misc.h: Stop checking for APPLE_CC.
34924
34925 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34926
34927 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34928 doesn't cause an infinite call loop.
34929
34930 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
34931
34932 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
34933 strings.
34934
34935 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34936
34937 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
34938 variable.
34939 * Makefile.in: Likewise.
34940
34941 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34942
34943 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
34944
34945 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34946
34947 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
34948
34949 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34950
34951 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
34952
34953 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34954
34955 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
34956 from here ...
34957 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
34958
34959 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34960
34961 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
34962 in $(MAKEINFO) invocation. This makes it clear in output that
34963 errors are being ignored.
34964
34965 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34966
34967 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
34968 from here ...
34969 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34970 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
34971 * conf/i386-ieee1275.rmk: Likewise.
34972 * conf/i386-pc.rmk: Likewise.
34973 * conf/powerpc-ieee1275.rmk: Likewise.
34974 * conf/sparc64-ieee1275.rmk: Likewise.
34975 * conf/x86_64-efi.rmk: Likewise.
34976
34977 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34978
34979 * util/grub-editenv.c (main): If only a command is given, use
34980 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
34981 (usage): FILENAME is now optional and has a default.
34982
34983 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
34984
34985 Improve grub-mkconfig performance when there are several menu
34986 entries on a single filesystem.
34987
34988 * util/grub.d/10_linux.in (linux_entry): Cache the output of
34989 prepare_grub_to_access_device.
34990 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34991 * util/grub.d/30_os-prober.in: Likewise.
34992
34993 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
34994
34995 * util/grub.d/10_freebsd.in: Remove.
34996 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
34997 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
34998
34999 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35000
35001 * docs/grub.cfg: Fix example usage of *BSD loaders.
35002
35003 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35004
35005 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35006 grub_util_error() call.
35007
35008 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35009
35010 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35011 `reserved_first_sector' member.
35012 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35013 `reserved_first_sector' to 1.
35014 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35015 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35016 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35017 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35018 filesystems which begin at first sector.
35019 (options): New option --skip-fs-probe.
35020 (main): Handle --skip-fs-probe and pass it to setup().
35021
35022 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35023
35024 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35025 (memset): Fix function prototype.
35026
35027 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35028 2009-10-25 Vasily Averin <vvs@parallels.com>
35029
35030 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35031 `dirent.direntlen == 0'.
35032
35033 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35034
35035 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35036 `cpio'.
35037 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35038
35039 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35040
35041 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35042 `__trampoline_setup' and `__ucmpdi2'.
35043 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35044 that libgcc provides.
35045
35046 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35047
35048 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35049 * include/grub/sparc64/libgcc.h (memset): Likewise.
35050 * include/grub/misc.h (memset, memcmp): New function prototypes.
35051
35052 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35053
35054 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35055 `cpio'.
35056 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35057
35058 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35059
35060 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35061 * docs/grub.cfg: Compensate for recent change in multiboot
35062 loader (since 2009-08-14 it won't pass filename to payload).
35063 * util/grub.d/10_hurd.in: Likewise.
35064
35065 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35066
35067 * config.guess: Update to latest version from config git
35068 repository.
35069 * config.sub: Likewise.
35070
35071 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35072
35073 Fix build on sparc64.
35074
35075 * configure.ac: Perform checks for libgcc symbols before
35076 adding `-nostdlib' to LDFLAGS.
35077
35078 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35079
35080 Let user specify OpenBSD root device.
35081
35082 * loader/i386/bsd.c (openbsd_root): New variable.
35083 (openbsd_opts): New option 'root'.
35084 (OPENBSD_ROOT_ARG): New macro.
35085 (grub_openbsd_boot): Use 'openbsd_root'.
35086 (grub_cmd_openbsd): Fill 'openbsd_root'.
35087
35088 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35089
35090 * NEWS: Misc adjustments.
35091
35092 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35093
35094 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35095
35096 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35097
35098 * configure.ac: Bump version to 1.97.
35099
35100 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35101
35102 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35103 -mno-3dnow on x86 architectures. Some toolchains enable these
35104 features by default, but they rely on registers that aren't enabled
35105 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35106
35107 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35108
35109 Make entry text a bit more readable.
35110
35111 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35112
35113 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35114
35115 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35116
35117 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35118
35119 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35120 operations.
35121
35122 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35123
35124 * configure.ac: Add missing dollar.
35125
35126 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35127
35128 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35129
35130 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35131 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35132 exports.
35133 * include/grub/sparc64/libgcc.h: Likewise. Use
35134 preprocessor conditionals.
35135
35136 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35137
35138 * conf/common.rmk (grub-dumpbios): Remove rule.
35139 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35140 * util/grub-dumpbios.in: Remove file.
35141
35142 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35143
35144 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35145 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35146
35147 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35148 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35149 users.
35150
35151 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35152 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35153 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35154 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35155 users.
35156
35157 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35158
35159 * term/tparm.c: Switch to GPLv3.
35160
35161 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35162
35163 * include/grub/i386/cpuid.h: Add header protection.
35164
35165 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35166
35167 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35168
35169 * include/grub/i386/cpuid.h: New file.
35170 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35171 (has_longmode): Rename to ...
35172 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35173 `static' attribute.
35174 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35175 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35176 on a CPU that doesn't implement AMD64 instruction set.
35177
35178 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35179
35180 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35181 that version.texi is rebuilt on version number changes.
35182
35183 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35184
35185 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35186 Fixes bug #27602.
35187
35188 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35189
35190 * util/i386/pc/grub-install.in: Source
35191 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35192 that the --grub-probe option will work.
35193 * util/sparc64/ieee1275/grub-install.in: Likewise.
35194
35195 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35196
35197 * configure.ac: Bump version to 1.97~beta4.
35198
35199 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35200
35201 Resync grub-mkdevicemap in x86_64-efi.
35202
35203 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35204 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35205 `util/devicemap.c'.
35206
35207 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35208
35209 * util/grub-editenv.c (create_envblk_file): Write new block with a
35210 .new suffix and then rename it into place, to ensure atomic
35211 creation.
35212
35213 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35214
35215 Do not automatically install headers.
35216
35217 * Makefile.in (include_DATA): Remove. Update all users.
35218
35219 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35220
35221 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35222 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35223
35224 * util/osdetect.lua: Remove.
35225 * script/lua/lauxlib.c: Likewise.
35226 * script/lua/ldebug.c: Likewise.
35227 * script/lua/grub_main.c: Likewise.
35228 * script/lua/lauxlib.h: Likewise.
35229 * script/lua/ldebug.h: Likewise.
35230 * script/lua/ltablib.c: Likewise.
35231 * script/lua/liolib.c: Likewise.
35232 * script/lua/lstrlib.c: Likewise.
35233 * script/lua/lualib.h: Likewise.
35234 * script/lua/ldo.c: Likewise.
35235 * script/lua/ldump.c: Likewise.
35236 * script/lua/ldo.h: Likewise.
35237 * script/lua/loslib.c: Likewise.
35238 * script/lua/lundump.c: Likewise.
35239 * script/lua/grub_lib.c: Likewise.
35240 * script/lua/ldblib.c: Likewise.
35241 * script/lua/lundump.h: Likewise.
35242 * script/lua/lmem.c: Likewise.
35243 * script/lua/grub_lib.h: Likewise.
35244 * script/lua/lmathlib.c: Likewise.
35245 * script/lua/lstate.c: Likewise.
35246 * script/lua/ltm.c: Likewise.
35247 * script/lua/lvm.c: Likewise.
35248 * script/lua/lmem.h: Likewise.
35249 * script/lua/lstate.h: Likewise.
35250 * script/lua/ltm.h: Likewise.
35251 * script/lua/ltable.c: Likewise.
35252 * script/lua/lvm.h: Likewise.
35253 * script/lua/llex.c: Likewise.
35254 * script/lua/lgc.c: Likewise.
35255 * script/lua/grub_lua.h: Likewise.
35256 * script/lua/loadlib.c: Likewise.
35257 * script/lua/lfunc.c: Likewise.
35258 * script/lua/lopcodes.c: Likewise.
35259 * script/lua/lparser.c: Likewise.
35260 * script/lua/ltable.h: Likewise.
35261 * script/lua/llex.h: Likewise.
35262 * script/lua/lgc.h: Likewise.
35263 * script/lua/lfunc.h: Likewise.
35264 * script/lua/lbaselib.c: Likewise.
35265 * script/lua/lopcodes.h: Likewise.
35266 * script/lua/lparser.h: Likewise.
35267 * script/lua/lzio.c: Likewise.
35268 * script/lua/linit.c: Likewise.
35269 * script/lua/lobject.c: Likewise.
35270 * script/lua/llimits.h: Likewise.
35271 * script/lua/lstring.c: Likewise.
35272 * script/lua/lzio.h: Likewise.
35273 * script/lua/lapi.c: Likewise.
35274 * script/lua/lcode.c: Likewise.
35275 * script/lua/lua.h: Likewise.
35276 * script/lua/lobject.h: Likewise.
35277 * script/lua/lstring.h: Likewise.
35278 * script/lua/lapi.h: Likewise.
35279 * script/lua/lcode.h: Likewise.
35280 * script/lua/luaconf.h: Likewise.
35281
35282 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35283
35284 * docs/grub.texi (Command-line and menu entry commands): Document
35285 date and echo commands.
35286
35287 2009-09-24 Pavel Roskin <proski@gnu.org>
35288
35289 * include/grub/kernel.h (struct grub_module_header): Remove
35290 `grub_module_header_types'. Make `type' unsigned. Make `size'
35291 32-bit on all platforms.
35292 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35293 8-bit field. Use grub_host_to_target32() for `size'.
35294 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35295 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35296 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35297
35298 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35299
35300 Fix "lost keypress" bug in at_keyboard.
35301
35302 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35303 Checks for readyness of input buffer (without flushing it).
35304 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35305 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35306
35307 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35308
35309 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35310 size check within GRUB_MACHINE_PCBIOS section.
35311
35312 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35313
35314 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35315 return value.
35316 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35317 KEYBOARD_ISREADY check.
35318 (grub_at_keyboard_checkkey): Rename to ...
35319 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35320 Remove gratuitous cast.
35321
35322 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35323
35324 * configure.ac: Call AC_PROG_MKDIR_P.
35325 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35326 version.texi in $(builddir) rather than $(srcdir).
35327 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35328 to makeinfo's @include search path.
35329
35330 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35331
35332 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35333
35334 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35335
35336 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35337 for `*.dpkg-new'.
35338
35339 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35340
35341 Build info documentation. Some code borrowed from Automake.
35342
35343 * configure.ac: Check for makeinfo.
35344 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35345 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35346 docs/version.texi.
35347 (MOSTLYCLEANFILES): Add vti.tmp.
35348 (docs/version.texi, docs/stamp-vti): Update automatically.
35349 (docs/grub.info): Build info documentation. Use --force and ignore
35350 errors for now.
35351 (all-local): Add $(INFOS).
35352 (install-local): Install info files.
35353 (uninstall): Uninstall info files.
35354 * docs/version.texi: Remove from revision control. This file is
35355 automatically generated on build now.
35356 * gendistlist.sh: Add `*.info'.
35357
35358 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35359
35360 * kern/term.c: Fix indentation.
35361
35362 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35363
35364 * util/hostdisk.c: Fix a comment.
35365
35366 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35367
35368 Fix regression introduced in r2539.
35369
35370 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35371 to 0xA1.
35372
35373 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35374
35375 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35376 os-prober. Under normal operation, it does not print anything to
35377 stderr; if it does, we need to debug it, and throwing away stderr
35378 makes that excessively difficult.
35379
35380 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35381
35382 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35383
35384 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35385
35386 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35387 AC_LANG_PROGRAM from autoconf.
35388 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35389 prototypes (fixes warning).
35390
35391 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35392 `--disable-werror' was used.
35393
35394 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35395
35396 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35397 uninitialized `lastaddr'.
35398
35399 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35400
35401 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35402
35403 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35404
35405 * commands/test.c (get_fileinfo): Return immediately if
35406 grub_fs_probe fails.
35407
35408 2009-09-14 José Martínez <xosemp@gmail.com>
35409
35410 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35411
35412 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35413
35414 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35415 output.
35416
35417 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35418
35419 * configure.ac: Remove --enable-grub-pe2elf. Only build
35420 grub-pe2elf when needed by the build system itself.
35421 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35422
35423 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35424
35425 * configure.ac: Bump version to 1.97~beta3.
35426 * docs/version.texi: Likewise.
35427
35428 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35429
35430 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35431 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35432 from here ...
35433 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35434 (grub_linux_setup_video): ... to here (with some adjustments).
35435
35436 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35437
35438 Fix memory corruption issue (spotted by Colin Watson).
35439
35440 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35441 causing returned size to be stored in an incorrect memory location.
35442 Fix use of uninitialized value when storing the returned size.
35443
35444 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35445
35446 Change clean rules to properly remove files
35447
35448 * genmk.rb: add new clean rules
35449 * Makefile.in (clean): add the new targets
35450 (mostlyclean): likewise
35451
35452 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35453
35454 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35455 to grub_uint64_t.
35456 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35457 non-resident files.
35458
35459 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35460
35461 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35462 part of bug #27349.
35463
35464 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35465
35466 * util/grub-mkconfig.in: Make the created config mode 400 and
35467 print a warning if it fails.
35468
35469 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35470
35471 * util/grub.d/40_custom.in: Ask user to type custom entries below
35472 comment, rather than below 'exec tail' line.
35473
35474 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35475
35476 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35477 visible in grub.cfg.
35478
35479 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35480
35481 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35482 file.
35483
35484 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35485
35486 * docs/grub.cfg: Add an example menu entry for memtest86+.
35487
35488 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35489
35490 * config.guess: Update to latest version from config git.
35491 * config.sub: Likewise.
35492
35493 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35494
35495 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35496 unknown-command case. Fixes bug #27320.
35497
35498 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35499
35500 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35501 `help' if the command exists.
35502
35503 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35504
35505 * INSTALL: Require GCC 4.1.3 or later.
35506
35507 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35508
35509 * Makefile.in (RMKFILES): add i386-qemu.rmk
35510 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35511 $(srcdir)/stamp-h.in
35512
35513 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35514
35515 * util/grub-probe.c (probe): Comment out buggy codepath, which
35516 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35517 should be re-enabled after 1.97.
35518
35519 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35520
35521 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35522 find searches for.
35523
35524 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35525
35526 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35527 unnecessary calls to grub_error.
35528
35529 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35530
35531 * NEWS: Mention `keystatus' and Unicode fonts.
35532
35533 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35534
35535 * configure.ac: Bump version to 1.97~beta2.
35536 * docs/version.texi: Likewise.
35537
35538 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35539
35540 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35541 containing unwind information in some cases where it previously did
35542 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35543 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35544 discussion.
35545
35546 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35547
35548 Embedding loadenv module into grub-emu
35549
35550 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35551 commands/loadenv.c
35552 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35553 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35556 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35557 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35558
35559 2009-09-03 Magnus Granberg <zorry@ume.nu>
35560
35561 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35562 include -fPIE in the default specs.
35563 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35564 to TARGET_CFLAGS.
35565
35566 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35567
35568 * INSTALL: Note that GNU Bison 2.3 or later is required.
35569
35570 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35571
35572 * kern/i386/pc/startup.S: Fix typo.
35573
35574 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35575
35576 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35577 according to GCS.
35578
35579 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35580
35581 * docs/grub.texi (Naming convention): Describe one-based partition
35582 numbering.
35583 (Device syntax): Likewise.
35584 (File name syntax): Likewise.
35585 (Block list syntax): Likewise.
35586 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35587 menu.lst.
35588 (File name syntax): Likewise.
35589 (Command-line and menu entry commands): Document acpi, blocklist,
35590 crc, export, insmod, keystatus, ls, set, and unset commands.
35591
35592 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35593
35594 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35595 to avoid implying that only one of --shift, --ctrl, or --alt may be
35596 used.
35597
35598 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35599
35600 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35601 rather than comparing against S_IFREG, which will almost never work.
35602
35603 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35604
35605 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35606 (write_blocklists): Likewise.
35607
35608 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35609
35610 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35611 argument to grub_printf.
35612
35613 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35614
35615 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35616 non GNU test.
35617
35618 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35619
35620 * kern/file.c (grub_file_read): Spelling fix
35621
35622 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35623
35624 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35625 loading of headers in some cases.
35626
35627 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35628
35629 * configure.ac: Bump version to 1.97~beta1.
35630 * docs/version.texi: Likewise.
35631
35632 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35633
35634 * include/grub/i386/xnu.h: Add license header.
35635 include grub/err.h explicitly.
35636
35637 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35638
35639 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35640 to `ufs' in the vfs.root.mountfrom kernel parameter.
35641
35642 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35643
35644 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35645
35646 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35647 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35648
35649 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35650 `ARRAY_SIZE' macro.
35651
35652 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35653
35654 * kern/file.c (grub_file_read): Check offset.
35655 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35656 * fs/jfs.c (grub_jfs_read_file): Likewise.
35657 * fs/ntfs.c (grub_ntfs_read): Likewise.
35658 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35659 * fs/minix.c (grub_minix_read_file): Correct offset check.
35660 * fs/ufs.c (grub_ufs_read_file): Likewise.
35661
35662 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35663
35664 * term/i386/pc/console.c (bios_data_area): Cast
35665 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35666
35667 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35668
35669 1-bit optimised blitters.
35670
35671 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35672 prototype.
35673 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35674 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35675 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35676 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35677 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35678 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35679 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35680 function.
35681 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35682 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35683 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35684 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35685 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35686 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35687 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35688 when possible.
35689 * video/video.c (grub_video_get_blit_format): Return
35690 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35691
35692 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35693
35694 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35695 the first argument to grub_printf.
35696
35697 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35698 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35699
35700 Add `getkeystatus' terminal method. Add a new `keystatus' command
35701 to query it.
35702
35703 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35704 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35705 modifier key bitmasks.
35706 (struct grub_term_input): Add `getkeystatus' member.
35707 (grub_getkeystatus): Add prototype.
35708 * kern/term.c (grub_getkeystatus): New function.
35709
35710 * include/grub/i386/pc/memory.h
35711 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35712 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35713 Data Area layout.
35714 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35715 (grub_console_term_input): Set `getkeystatus' member.
35716 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35717 constants.
35718 (grub_usb_keyboard_getreport): Likewise.
35719 (grub_usb_keyboard_checkkey): Likewise.
35720 (grub_usb_keyboard_getkeystatus): New function.
35721 (grub_usb_keyboard_term): Set `getkeystatus' member.
35722
35723 * commands/keystatus.c: New file.
35724 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35725 (keystatus_mod_SOURCES): New variable.
35726 (keystatus_mod_CFLAGS): Likewise.
35727 (keystatus_mod_LDFLAGS): Likewise.
35728 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35729 commands/keystatus.c.
35730 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35731 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35732 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35734 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35735 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35736
35737 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35738
35739 Split befs.mod and afs.mod into *_be.mod and *.mod
35740
35741 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35742 (grub_fstest_SOURCES): Likewise.
35743 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35744 (afs_be_mod_SOURCES): New variable.
35745 (afs_be_mod_CFLAGS): Likewise.
35746 (afs_be_mod_LDFLAGS): Likewise.
35747 (befs_be_mod_SOURCES): Likewise.
35748 (befs_be_mod_CFLAGS): Likewise.
35749 (befs_be_mod_LDFLAGS): Likewise.
35750 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35751 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35752 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35753 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35754 (grub_emu_SOURCES): Likewise.
35755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35757 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35758 * fs/afs_be.c: New file.
35759 * fs/befs_be.c: New file.
35760 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35761 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35762 (U16): Replaced with ...
35763 (grub_afs_to_cpu16): ...this. All users updated.
35764 (U32): Replaced with ...
35765 (grub_afs_to_cpu32): ...this. All users updated.
35766 (U64): Replaced with ...
35767 (grub_afs_to_cpu64): ...this. All users updated.
35768 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35769 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35770 (grub_afs_validate_sblock): Check only one endianness.
35771 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35772 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35773 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35774 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35775 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35776 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35777 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35778 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35779
35780 2009-08-26 Bean <bean123ch@gmail.com>
35781
35782 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35783 64-bit number.
35784 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35785 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35786 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35787
35788 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35789
35790 NetBSD memory map support.
35791
35792 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35793 (grub_netbsd_btinfo_mmap_header): New structure.
35794 (grub_netbsd_btinfo_mmap_entry): Likewise.
35795 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35796
35797 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35798
35799 Enable bsd.mod on coreboot.
35800
35801 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35802 (bsd_mod_SOURCES): New variable.
35803 (bsd_mod_CFLAGS): Likewise.
35804 (bsd_mod_LDFLAGS): Likewise.
35805 (bsd_mod_ASFLAGS): Likewise.
35806 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35807 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35808
35809 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35810
35811 Cleanup NetBSD root support.
35812
35813 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35814 grub_bsd_get_device.
35815 Fix typo.
35816
35817 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35818
35819 * util/grub.d/00_header.in: Move check for the video backend of
35820 gfxterm from here ...
35821 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35822 a suitable video backend.
35823
35824 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35825
35826 Fix breakage in grub-setup.
35827
35828 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35829 "msdos_partition_map".
35830
35831 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35832
35833 Fix breakage in normal/auth.c.
35834
35835 * normal/auth.c (grub_iswordseparator): New function.
35836
35837 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35838
35839 Authentication support.
35840
35841 * commands/password.c: New file.
35842 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35843 (password_mod_SOURCES): New variable.
35844 (password_mod_CFLAGS): Likewise.
35845 (password_mod_LDFLAGS): Likewise.
35846 (normal_mod_SOURCES): Add normal/auth.c.
35847 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35848 normal/auth.c.
35849 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35850 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35851 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35852 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35853 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35854 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35855 * include/grub/auth.h: New file.
35856 * include/grub/err.h (grub_err_t): New enum value
35857 GRUB_ERR_ACCESS_DENIED.
35858 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35859 'users'.
35860 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35861 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35862 users updated.
35863 * normal/auth.c: New file.
35864 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35865 (grub_cmdline_run): Don't allow to go to command line without
35866 authentication.
35867 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35868 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35869 menuentry without superuser rights.
35870 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35871 user isn't a superuser.
35872
35873 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35874
35875 Save space by inlining misc.c functions.
35876
35877 * kern/misc.c (grub_iswordseparator): Made static.
35878 * kern/misc.c (grub_strcat): Moved from here ...
35879 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35880 * kern/misc.c (grub_strncat): Moved from here ...
35881 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35882 * kern/misc.c (grub_strcasecmp): Moved from here ...
35883 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35884 * kern/misc.c (grub_strncasecmp): Moved from here ...
35885 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35886 * kern/misc.c (grub_isalpha): Moved from here ...
35887 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35888 * kern/misc.c (grub_isdigit): Moved from here ...
35889 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35890 * kern/misc.c (grub_isgraph): Moved from here ...
35891 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35892 * kern/misc.c (grub_tolower): Moved from here ...
35893 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35894
35895 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35896
35897 * script/sh/function.c (grub_script_function_find): Cut error message
35898 not to flood terminal.
35899 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35900 limit.
35901 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35902
35903 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35904
35905 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35906 `report' grub_uint8_t *.
35907 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35908 Use a 50-millisecond timeout rather than just repeating
35909 grub_usb_keyboard_getreport 50 times.
35910 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35911
35912 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35913
35914 Rename *_partition_map to part_*
35915
35916 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35917 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35918 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35919 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35920 All users updated.
35921 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35922 All users updated.
35923 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35924 * util/grub-probe.c (probe_partmap): Don't transform partition name
35925 to get module name.
35926
35927 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35928
35929 Fix OpenBSD and NetBSD support.
35930
35931 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
35932 memory address conflict.
35933 (OPENBSD_MMAP_ACPI): New definition.
35934 (OPENBSD_MMAP_NVS): Likewise.
35935 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
35936 and OPENBSD_MMAP_NVS.
35937 Add memory map terminator
35938 Explicit cast when calling grub_unix_real_boot.
35939 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
35940
35941 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35942
35943 Let user specify NetBSD root device.
35944
35945 * loader/i386/bsd.c (netbsd_root): New variable.
35946 (netbsd_opts): New option 'root'.
35947 (NETBSD_ROOT_ARG): New macro.
35948 (grub_netbsd_boot): Use 'netbsd_root'.
35949 (grub_bsd_unload): Free 'netbsd_root'.
35950 (grub_cmd_netbsd): Fill 'netbsd_root'.
35951
35952 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35953
35954 Support for 64-bit NetBSD.
35955
35956 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
35957 point when booting non-FreeBSD.
35958
35959 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35960
35961 Support --no-smp and --no-acpi for NetBSD.
35962
35963 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
35964 (NETBSD_AB_NOACPI): Likewise.
35965 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
35966 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
35967
35968 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35969
35970 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
35971 errors.
35972 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
35973 errors. Call grub_error when needed.
35974
35975 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
35976
35977 * commands/search.c (search_fs): Try searching without autoload first.
35978 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
35979 filesystem module explicitly for faster booting.
35980
35981 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35982
35983 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
35984
35985 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
35986
35987 * util/grub.d/30_os-prober.in: Disable os-prober if
35988 `GRUB_DISABLE_OS_PROBER' was set to true.
35989
35990 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
35991
35992 * partmap/pc.c: Rename to ...
35993 * partmap/msdos.c: ... this. Update all users.
35994 (grub_pc_partition_map): Rename to ...
35995 (grub_msdos_partition_map): ... this. Update all users.
35996
35997 * parttool/pcpart.c: Rename to ...
35998 * parttool/msdospart.c: ... this. Update all users.
35999
36000 * include/grub/pc_partition.h: Rename to ...
36001 * include/grub/msdos_partition.h: ... this. Update all users.
36002 (grub_pc_partition_bsd_entry): Rename to ...
36003 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36004 (grub_pc_partition_disk_label): Rename to ...
36005 (grub_msdos_partition_disk_label): ... this. Update all users.
36006 (grub_pc_partition_entry): Rename to ...
36007 (grub_msdos_partition_entry): ... this. Update all users.
36008 (grub_pc_partition_mbr): Rename to ...
36009 (grub_msdos_partition_mbr): ... this. Update all users.
36010 (grub_pc_partition): Rename to ...
36011 (grub_msdos_partition): ... this. Update all users.
36012 (grub_pc_partition_is_empty): Rename to ...
36013 (grub_msdos_partition_is_empty): ... this. Update all users.
36014 (grub_pc_partition_is_extended): Rename to ...
36015 (grub_msdos_partition_is_extended): ... this. Update all users.
36016 (grub_pc_partition_is_bsd): Rename to ...
36017 (grub_msdos_partition_is_bsd): ... this. Update all users.
36018
36019 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36020 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36021 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36022 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36023 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36024 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36025 (gpt_mod_LDFLAGS): Rename to ...
36026 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36027 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36028 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36029 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36030 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36031 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36032 (part_gpt_mod_LDFLAGS): ... this.
36033 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36034 `pcpart.mod' to `msdospart.mod'.
36035 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36036 to ...
36037 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36038 (msdospart_mod_LDFLAGS): ... this.
36039
36040 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36041
36042 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36043 (openbsd_opts): Likewise.
36044 (netbsd_opts): Likewise.
36045 (freebsd_flags): Added 0 terminator.
36046 (openbsd_flags): Likewise.
36047 (netbsd_flags): Likewise.
36048 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36049 (grub_cmd_freebsd): Transformed into extended command.
36050 (grub_cmd_openbsd): Likewise.
36051 (grub_cmd_netbsd): Likewise.
36052 (cmd_freebsd): Changed type to grub_extcmd_t.
36053 (cmd_openbsd): Likewise.
36054 (cmd_netbsd): Likewise.
36055 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36056 grub_cmd_openbsd as extended commands.
36057 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36058 cmd_netbsd and cmd_openbsd
36059
36060 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36061
36062 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36063
36064 2009-08-21 Pavel Roskin <proski@gnu.org>
36065
36066 * Makefile.in (install-local): When checking if a file is in the
36067 build directory, use "test -e" to detect symlinks.
36068
36069 * Makefile.in (install-local): Remove all files in
36070 $(DESTDIR)$(pkglibdir) before installing new files there.
36071
36072 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36073
36074 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36075 grub-mkelfimage.
36076
36077 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36078
36079 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36080 explicitly specified by the user.
36081
36082 2009-08-18 Pavel Roskin <proski@gnu.org>
36083
36084 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36085 grub_uint8_t pointer for data.
36086 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36087 Likewise.
36088 * video/fb/fbutil.c: Remove unnecessary casts.
36089
36090 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36091
36092 VBE cleanup.
36093
36094 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36095 (grub_vbe_set_video_mode): Save active mode info
36096 only after setting the mode.
36097 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36098 second argument.
36099
36100 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36101
36102 Rename variables for clarity.
36103
36104 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36105 (active_vbe_mode_info): ... this. All users updated.
36106 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36107 All users updated.
36108 (initial_mode): Rename to ...
36109 (initial_vbe_mode): ... this. All users updated.
36110 (mode_in_use): Rename to ..
36111 (vbe_mode_in_use): ... this. All users updated.
36112 (mode_list): Rename to ..
36113 (vbe_mode_list): ... this. All users updated.
36114 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36115 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36116 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36117 'mode_list_size' to 'vbe_mode_list_size'.
36118 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36119 'best_mode_info' to 'best_vbe_mode_info' and
36120 'best_mode' to 'best_vbe_mode'
36121
36122 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36123
36124 Remove duplicate grub_video_fb_get_video_ptr.
36125
36126 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36127 (grub_video_fb_get_video_ptr): ... this.
36128 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36129 * video/fb/fbutil.c: Add comment about addressing.
36130 (get_data_ptr): Rename to ...
36131 (grub_video_fb_get_video_ptr): ... this. All users updated.
36132 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36133
36134 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36135
36136 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36137 grub_dprintf() that was just added.
36138
36139 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36140
36141 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36142 (DEFAULT_VIDEO_MODE): Remove macros.
36143 (grub_linux_boot): Remove assumption that Linux has FB support,
36144 and use "text" as default video mode.
36145
36146 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36147
36148 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36149 grub_dprintf.
36150 * fs/fat.c (grub_fat_read_data): Likewise.
36151
36152 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36153
36154 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36155 payload.
36156 (grub_module): Likewise.
36157
36158 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36159
36160 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36161 mbi->cmdline but free playground.
36162
36163 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36164
36165 Handle group offset on UFS1.
36166
36167 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36168 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36169
36170 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36171
36172 Split ufs.mod into ufs1.mod and ufs2.mod.
36173
36174 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36175 (grub_fstest_SOURCES): Likewise.
36176 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36177 (ufs_mod_SOURCES): Remove.
36178 (ufs_mod_CFLAGS): Likewise.
36179 (ufs_mod_LDFLAGS): Likewise.
36180 (ufs1_mod_SOURCES): New variable.
36181 (ufs1_mod_CFLAGS): Likewise.
36182 (ufs1_mod_LDFLAGS): Likewise.
36183 (ufs2_mod_SOURCES): New variable.
36184 (ufs2_mod_CFLAGS): Likewise.
36185 (ufs2_mod_LDFLAGS): Likewise.
36186 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36187 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36188 Likewise.
36189 (grub_emu_SOURCES): Likewise.
36190 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36191 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36192 (grub_setup_SOURCES): Likewise.
36193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36194 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36195 (grub_setup_SOURCES): Likewise.
36196 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36197 Likewise.
36198 * fs/ufs2.c: New file.
36199 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36200
36201 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36202
36203 Framebuffer split.
36204
36205 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36206 subsystem at the end.
36207 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36208 (video_fb_mod_SOURCES): New variable.
36209 (video_fb_mod_CFLAGS): Likewise.
36210 (video_fb_mod_LDFLAGS): Likewise.
36211 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36212 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36213 * video/i386/pc/vbeblit.c: Moved from here ...
36214 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36215 * video/i386/pc/vbefill.c: Moved from here ...
36216 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36217 * video/i386/pc/vbeutil.c: Moved from here ...
36218 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36219 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36220 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36221 * include/grub/i386/pc/vbefill.h: Moved from here ...
36222 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36223 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36224 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36225 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36226 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36227 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36228 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36229 (grub_video_adapter): Added 'get_info_and_fini'.
36230 (grub_video_get_info_and_fini): New prototype.
36231 (grub_video_set_mode): make modestring const char *.
36232 * loader/i386/linux.c (grub_linux_setup_video): Use
36233 grub_video_get_info_and_fini.
36234 (grub_linux_boot): Move modesetting just before booting.
36235 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36236 grub_video_get_info_and_fini.
36237 * video/i386/pc/vbe.c: Moved framebuffer part ...
36238 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36239 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36240 grub_video_fbstd_colors and grub_video_fb_set_palette.
36241 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36242 grub_video_fb_init.
36243 (grub_video_vbe_fini): Use grub_video_fb_fini.
36244 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36245 render_target and use grub_video_fb_set_active_render_target and
36246 grub_video_fb_set_palette.
36247 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36248 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36249 (grub_video_vbe_adapter): Use framebuffer.
36250 * video/video.c (grub_video_get_info_and_fini): New function.
36251 (grub_video_set_mode): Make modestring const char *.
36252 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36253 values are already initialised.
36254
36255 2009-08-14 Pavel Roskin <proski@gnu.org>
36256
36257 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36258 ABS and APPLE_CC.
36259 * boot/i386/pc/diskboot.S: Likewise.
36260 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36261 sectors allow compilation on MacOSX.
36262 * conf/i386-pc.rmk: Enable unconditional compilation of
36263 lnxboot.img.
36264
36265 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36266
36267 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36268 * util/grub.d/00_header.in: Enter interruptible sleep if
36269 GRUB_HIDDEN_TIMEOUT is set.
36270
36271 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36272
36273 * include/grub/symbol.h: Add the LOCAL macro.
36274 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36275 starting with "L_".
36276
36277 2009-08-13 Pavel Roskin <proski@gnu.org>
36278
36279 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36280 any modern compilers we support.
36281
36282 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36283 Use local labels starting with "L_" so that Apple assembler
36284 knows they are local.
36285
36286 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36287
36288 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36289 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36290 (bsd_kernel_types): ... this enum.
36291
36292 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36293 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36294 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36295
36296 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36297 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36298 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36299 messages.
36300
36301 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36302
36303 * util/grub-dumpdevtree: Moved from here ...
36304 * util/i386/efi/grub-dumpdevtree: ... to here.
36305 (hexify): New function. Converts a string to its hex version.
36306 Generate hex versions of "efi" and "device-properties" by calling
36307 hexify() on the ASCII strings rather than by hardcoding numbers.
36308
36309 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36310
36311 * fs/jfs.c: Update copyright year.
36312
36313 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36314
36315 * util/grub.d/00_header.in: Fix a comment.
36316 * util/grub.d/10_linux.in: Likewise.
36317 * util/grub.d/10_windows.in: Likewise.
36318 * util/grub.d/10_hurd.in: Likewise.
36319
36320 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36321
36322 * util/grub-mkconfig.in: Allow the user to specify the used font
36323 with GRUB_FONT.
36324
36325 2009-08-08 Pavel Roskin <proski@gnu.org>
36326
36327 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36328 available, xfs.mod needs it now.
36329
36330 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36331 the "g" modifier in sed when the intention is to strip something
36332 once. This fixes comparison of kernels with multiple dashes.
36333
36334 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36335 on it. Add missing space before closing bracket. Fix
36336 misleading formatting.
36337
36338 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36339
36340 * docs/grub.texi: Major overhaul. Remove all sections that are
36341 specific to GRUB Legacy, or mostly composed of Legacy-specific
36342 information.
36343
36344 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36345
36346 * docs/version.texi: New file. Provides version information for
36347 grub.texi.
36348
36349 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36350
36351 * docs/grub.texi: Update CVS information to SVN.
36352 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36353
36354 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36355
36356 * util/grub-mkconfig.in: Remove a wrong `fi'.
36357
36358 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36359
36360 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36361 (grub_jfs_uuid): New function.
36362 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36363
36364 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36365
36366 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36367 of it to ...
36368 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36369 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36370
36371 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36372
36373 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36374 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36375 Update all users.
36376
36377 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36378 not just "vmlinu[zx]".
36379 Moved from here ...
36380 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36381 all users.
36382
36383 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36384 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36385 all users.
36386
36387 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36388
36389 * util/grub.d/10_freebsd.in: Use an absolute device path for
36390 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36391
36392 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36393
36394 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36395 handling of multiple abstraction modules.
36396
36397 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36398
36399 Fix a bug resulting in black screen when loading Linux using a
36400 packed video mode.
36401
36402 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36403 function.
36404
36405 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36406 (grub_vbe_bios_getset_dac_palette_width): New function.
36407 (grub_vbe_bios_get_dac_palette_width)
36408 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36409 grub_vbe_bios_getset_dac_palette_width()).
36410
36411 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36412 check for return status.
36413 (grub_vbe_get_video_mode_info): When getting information for a packed
36414 mode (<= 8 bpp), obtain DAC palette width using
36415 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36416 {red,green,blue}_mark_size.
36417
36418 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36419
36420 * commands/search.c (options): Fix help output to match actual code.
36421
36422 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36423
36424 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36425 of homegrown code.
36426
36427 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36428
36429 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36430 on XFS or ReiserFS.
36431
36432 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36433
36434 Support Apple partition map with sector size different from 512 bytes.
36435
36436 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36437 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36438 and 'apart.partmap_size'.
36439
36440 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36441 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36442
36443 Fix cpuid command.
36444
36445 * commands/i386/cpuid.c (options): New variable.
36446 (grub_cmd_cpuid): Return real error.
36447 (GRUB_MOD_INIT(cpuid)): Declare options.
36448
36449 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36450
36451 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36452 valid.
36453
36454 2009-07-31 Bean <bean123ch@gmail.com>
36455
36456 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36457 log2_inode.
36458 (grub_fshelp_node): Move inode field to the end.
36459 (grub_xfs_data): Remove inode field.
36460 (grub_xfs_inode_block): Calculate inode size using sblock.
36461 (grub_xfs_inode_offset): Likewise.
36462 (grub_xfs_read_inode): Calculate inode size using sblock.
36463 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36464 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36465 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36466 to match inode size.
36467 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36468 not accessible when data is null.
36469 (grub_xfs_open): Likewise.
36470
36471 2009-07-31 Bean <bean123ch@gmail.com>
36472
36473 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36474 Don't change pv->disk if it's already set.
36475
36476 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36477 (grub_raid_register): ... here.
36478 (grub_raid_rescan): Removed.
36479
36480 * include/grub/raid.h (grub_raid_rescan): Removed.
36481
36482 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36483 (fstest): Replace grub_raid_rescan with module fini function followed
36484 by init function.
36485
36486 * util/grub-probe.c: Add include file <grub/raid.h>.
36487 (probe_raid_level): New function.
36488 (probe): Detect abstraction by walking the disk device, support two
36489 level of abstraction (LVM on RAID) when detecting partition map.
36490
36491 2009-07-31 Pavel Roskin <proski@gnu.org>
36492
36493 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36494 to grub_zalloc(), it was erroneous.
36495 Reported by Bean <bean123ch@gmail.com>
36496
36497 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36498
36499 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36500 embedding zone, not only the first one.
36501
36502 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36503
36504 * term/gfxterm.c (clear_char): New function.
36505 (grub_virtual_screen_setup): Use clear_char.
36506 (scroll_up): Likewise.
36507 (grub_virtual_screen_cls): Likewise.
36508
36509 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36510
36511 * util/deviceiter.c (get_acceleraid_disk_name): New static
36512 function.
36513 (grub_util_iterate_devices): Handle Accelraid devices.
36514 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36515
36516 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36517
36518 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36519 separator for the suggested gfxpayload string (';' collides with the
36520 parser and needs escaping).
36521
36522 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36523
36524 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36525 Clear direction flag before jumping to OS.
36526 (grub_multiboot2_real_boot): Likewise.
36527
36528 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36529
36530 * util/i386/pc/grub-install: Fix parsing of --disk-module
36531 option.
36532
36533 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36534
36535 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36536 when embedding.
36537
36538 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36539
36540 * util/grub-mkconfig.in (package_version): New variable.
36541 Use it do display the version.
36542
36543 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36544
36545 * kern/file.c (grub_file_open): Revert to previous check with
36546 grub_errno.
36547
36548 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36549
36550 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36551 from help line. It's out of sync with code.
36552
36553 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36554
36555 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36556 entries on failed boot.
36557
36558 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36559
36560 * kern/file.c (grub_file_open): Fix an error check.
36561
36562 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36563
36564 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36565 partition map couldn't be identified.
36566
36567 2009-07-23 Pavel Roskin <proski@gnu.org>
36568
36569 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36570 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36571 case of little endian words becomes just an optimization.
36572 Respect const modifier.
36573 (md5_final): Use code that doesn't depend on endianness.
36574
36575 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36576 to avoid loss of upper bits if align is unsigned and shorter
36577 than addr.
36578
36579 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36580
36581 UUID support for UFS
36582
36583 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36584 (grub_ufs_uuid): New function.
36585 (grub_ufs_fs): add .uuid
36586
36587 2009-07-21 Pavel Roskin <proski@gnu.org>
36588
36589 * kern/dl.c (grub_dl_check_header): Make static.
36590
36591 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36592
36593 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36594 add drivemap for Vista. It breaks Windows 7.
36595
36596 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36597
36598 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36599 128 bytes
36600
36601 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36602
36603 Add BFS support
36604
36605 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36606 (grub_fstest_SOURCES): Likewise.
36607 (pkglib_MODULES): Add befs.mod.
36608 (befs_mod_SOURCES): New variable.
36609 (befs_mod_CFLAGS): Likewise.
36610 (befs_mod_LDFLAGS): Likewise.
36611 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36612 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36613 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36614 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36615 (grub_setup_SOURCES): Likewise.
36616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36617 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36618 (grub_setup_SOURCES): Likewise.
36619 * fs/befs.c: New file.
36620 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36621 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36622 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36623 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36624 (B_KEY_INDEX_ALIGN): New declaration.
36625 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36626 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36627 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36628 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36629 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36630 (grub_afs_mount) [MODE_BFS]: Likewise.
36631 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36632 (grub_afs_fs): Use GRUB_AFS_FSNAME
36633 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36634 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36635 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36636 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36637
36638 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36639
36640 * util/getroot.c (find_root_device): Add support for MacOSX.
36641 * util/hostdisk.c: Likewise.
36642
36643 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36644
36645 * font/font.c (find_glyph): Check whether a font is present to avoid
36646 segmentation fault.
36647
36648 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36649
36650 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36651
36652 2009-07-20 Pavel Roskin <proski@gnu.org>
36653
36654 * configure.ac: Trim excessively wordy excuses.
36655
36656 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36657
36658 Add symlink, mtime and label support to AtheFS.
36659
36660 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36661 (grub_afs_iterate_dir): Handle symlinks.
36662 (grub_afs_open): Use grub_afs_read_symlink.
36663 (grub_afs_dir): Likewise.
36664 Pass mtime.
36665 (grub_afs_label): New function.
36666 (grub_afs_fs): Add grub_afs_label.
36667 (grub_afs_read_symlink): New function.
36668
36669 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36670
36671 Fix AtheFS support.
36672
36673 * fs/afs.c: Fix comments style.
36674 (grub_afs_blockrun): Declare as packed.
36675 (grub_afs_datastream): Likewise.
36676 (grub_afs_bnode): Likewise.
36677 (grub_afs_btree): Likewise.
36678 (grub_afs_sblock): Likewise.
36679 Declare `name' as char.
36680 (grub_afs_inode): Declare as packed.
36681 Change void *vnode to grub_uint32_t unused.
36682 (grub_afs_iterate_dir): Check that key_size is positive.
36683 (grub_afs_mount): Don't read superblock twice.
36684 (grub_afs_dir): Don't free node in case of error,
36685 grub_fshelp_find_file already handles this.
36686 (grub_afs_open): Likewise.
36687
36688 2009-07-19 Pavel Roskin <proski@gnu.org>
36689
36690 * Makefile.in: Remove LIBLZO and enable_lzo.
36691 * conf/i386-pc.rmk: Remove lzo support.
36692 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36693 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36694 support.
36695 * kern/i386/pc/lzo1x.S: Remove.
36696 * kern/i386/pc/startup.S: Remove lzo support.
36697 * util/i386/pc/grub-mkimage.c: Likewise.
36698
36699 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36700
36701 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36702 * fs/xfs.c (grub_xfs_dir): Likewise.
36703 * fs/afs.c (grub_afs_dir): Likewise.
36704 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36705 (grub_iso9660_open): Likewise.
36706 * fs/jfs.c (grub_jfs_open): Likewise.
36707 * fs/ext2.c (grub_ext2_dir): Likewise.
36708 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36709 * script/sh/lexer.c (grub_script_yylex): Likewise.
36710
36711 2009-07-16 Pavel Roskin <proski@gnu.org>
36712
36713 * configure.ac: Never add "-c" to CFLAGS.
36714
36715 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36716
36717 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36718 grub_cv_cc_efiemu should be used.
36719
36720 * configure.ac: Typo fixes.
36721
36722 * kern/mm.c (grub_zalloc): New function.
36723 (grub_debug_zalloc): Likewise.
36724 * include/grub/mm.h: Declare grub_zalloc() and
36725 grub_debug_zalloc().
36726 * util/misc.c (grub_zalloc): New function.
36727 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36728 instead of grub_malloc(), remove unneeded initializations.
36729 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36730 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36731 * commands/parttool.c (grub_cmd_parttool): Likewise.
36732 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36733 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36734 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36735 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36736 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36737 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36738 (grub_cmd_efiemu_pnvram): Likewise.
36739 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36740 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36741 (grub_iso9660_iterate_dir): Likewise.
36742 * fs/jfs.c (grub_jfs_opendir): Likewise.
36743 * fs/ntfs.c (list_file): Likewise.
36744 (grub_ntfs_mount): Likewise.
36745 * kern/disk.c (grub_disk_open): Likewise.
36746 * kern/dl.c (grub_dl_load_core): Likewise.
36747 * kern/elf.c (grub_elf_file): Likewise.
36748 * kern/env.c (grub_env_context_open): Likewise.
36749 (grub_env_set): Likewise.
36750 (grub_env_set_data_slot): Likewise.
36751 * kern/file.c (grub_file_open): Likewise.
36752 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36753 * loader/i386/multiboot.c (grub_module): Likewise.
36754 * loader/xnu.c (grub_xnu_create_key): Likewise.
36755 (grub_xnu_create_value): Likewise.
36756 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36757 (read_config_file): Likewise.
36758 * normal/menu_entry.c (make_screen): Likewise.
36759 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36760 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36761 * script/sh/script.c (grub_script_parse): Likewise.
36762 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36763 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36764 * video/readers/png.c (grub_png_output_byte): Likewise.
36765 (grub_video_reader_png): Likewise.
36766
36767 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36768
36769 Enable all targets that can be built by default
36770
36771 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36772 grub-mkfont and grub-fstest if they can be built
36773
36774 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36775
36776 Fix hang and segmentation fault in grub-emu-usb
36777
36778 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36779 * util/usb.c (grub_libusb_devices): likewise
36780 (grub_libusb_init): rename to ...
36781 (GRUB_MOD_INIT (libusb)):...this
36782 (grub_libusb_fini): rename to ..
36783 (GRUB_MOD_FINI (libusb)):...this
36784 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36785 * include/grub/disk.h (grub_raid_init): removed, it's useless
36786 (grub_raid_fini): likewise
36787 (grub_lvm_init): likewise
36788 (grub_lvm_fini): likewise
36789 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36790 by grub_init_all
36791
36792 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36793
36794 Fix libusb
36795
36796 * Makefile.in (LIBUSB): new macro
36797 * genmk.rb (Utility/print_tail): new method
36798 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36799 (top level): call util.print_tail at the end.
36800
36801 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36802
36803 Make FreeBSD accept zpool.cache
36804
36805 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36806 type is /boot/zfs/zpool.cache
36807
36808 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36809
36810 Fix 64-bit efiemu
36811
36812 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36813 correct wrong typedef
36814 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36815
36816 2009-07-15 Pavel Roskin <proski@gnu.org>
36817
36818 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36819 * kern/disk.c (struct grub_disk_cache): Likewise.
36820
36821 * commands/probe.c (options): Typo fix.
36822
36823 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36824 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36825 accordingly.
36826 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36827
36828 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36829 the end of "Error" to make the message more readable.
36830
36831 * boot/i386/pc/boot.S (kernel_segment): Remove.
36832 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36833 for destination.
36834
36835 * boot/i386/pc/boot.S (boot_version): Remove.
36836 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36837 Remove.
36838
36839 * include/grub/i386/pc/boot.h: Sort all offsets.
36840 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36841 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36842 * boot/i386/pc/boot.S: Assert location of every offset listed in
36843 include/grub/i386/pc/boot.h.
36844
36845 2009-07-13 Pavel Roskin <proski@gnu.org>
36846
36847 * include/grub/i386/coreboot/machine.h: Rename
36848 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36849 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36850 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36851
36852 * kern/dl.c: Force native word size to suppress warnings when
36853 compiling grub-emu.
36854
36855 * kern/device.c (grub_device_iterate): Change struct part_ent to
36856 hold the name, not a pointer to it. Use one grub_malloc() per
36857 partition, not two. Free partition_name if grub_malloc() fails.
36858 Set ents to NULL only before grub_partition_iterate() is called.
36859
36860 2009-07-11 Bean <bean123ch@gmail.com>
36861
36862 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36863 childname.
36864
36865 2009-07-10 Bean <bean123ch@gmail.com>
36866 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36867
36868 * kern/ieee1275/openfw.c (grub_children_iterate)
36869 (grub_devalias_iterate): Fix size evaluation for property or path
36870 strings, which was broken since r2132.
36871
36872 2009-07-07 Pavel Roskin <proski@gnu.org>
36873
36874 * commands/search.c (search_file): Merge into ...
36875 (search_fs): ... this. Accept search type as argument.
36876 (grub_cmd_search): Pass search type to search_fs().
36877
36878 * include/grub/util/console.h: New file.
36879 * util/console.c: Use it instead of grub/machine/console.h.
36880 * util/grub-emu.c: Likewise.
36881
36882 * lib/arg.c (find_long_option): Remove.
36883 (find_long): Add `len' argument, make `s' const char *.
36884 (grub_arg_parse): Parse long options in place, not in a
36885 temporary buffer.
36886
36887 2009-07-06 Pavel Roskin <proski@gnu.org>
36888
36889 * commands/search.c (search_fs): Fix potential NULL pointer
36890 dereference.
36891
36892 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36893 function pointer.
36894
36895 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36896
36897 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36898 comparison.
36899
36900 2009-07-05 Pavel Roskin <proski@gnu.org>
36901
36902 * include/grub/i386/linux.h (struct linux_kernel_params):
36903 Restore padding3, it's still needed.
36904
36905 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36906 FreeBSD.
36907 * util/osdetect.lua: Likewise.
36908
36909 2009-07-05 Bean <bean123ch@gmail.com>
36910
36911 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36912
36913 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36914 (grub_lua_getenv): Likewise.
36915 (grub_lua_setenv): Likewise.
36916 (save_errno): New function.
36917 (push_result): Likewise.
36918 (grub_lua_enum_device): Likewise.
36919 (grub_lua_enum_file): Likewise.
36920 (grub_lua_file_open): Likewise.
36921 (grub_lua_file_close): Likewise.
36922 (grub_lua_file_seek): Likewise.
36923 (grub_lua_file_read): Likewise.
36924 (grub_lua_file_getline): Likewise.
36925 (grub_lua_file_getsize): Likewise.
36926 (grub_lua_file_getpos): Likewise.
36927 (grub_lua_file_eof): Likewise.
36928 (grub_lua_file_exist): Likewise.
36929 (grub_lua_add_menu): Likewise.
36930
36931 * script/lua/grub_lua.h (isupper): New inline function.
36932 (islower): Likewise.
36933 (ispunct): Likewise.
36934 (isxdigit): Likewise.
36935 (strcspn): Change to normal function.
36936 (strpbkr): New function declaration.
36937 (memchr): Likewise.
36938
36939 * script/lua/grub_main.c (scan_str): New function.
36940 (strcspn): Likewise.
36941 (strpbrk): Likewise.
36942 (memchr): Likewise.
36943
36944 * script/lua/linit.c (lualibs): Enable the string library.
36945
36946 * util/osdetect.lua: New file.
36947
36948 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
36949
36950 * include/grub/i386/linux.h (struct linux_kernel_params): Add
36951 `capabilities' member.
36952
36953 2009-07-02 Pavel Roskin <proski@gnu.org>
36954
36955 * genparttoollist.sh: Add missing newline at the end.
36956
36957 2009-07-01 Pavel Roskin <proski@gnu.org>
36958
36959 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
36960
36961 * util/hostdisk.c (open_device): Remove `const' from
36962 `sysctl_size', as sysctlbyname() can change it (in this case it
36963 doesn't actually happen).
36964
36965 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
36966 using signed long int constants.
36967
36968 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
36969 constant to avoid a warning on FreeBSD.
36970
36971 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
36972 where it's needed.
36973
36974 * Makefile.in: Install include/grub/machine symlink.
36975
36976 * Makefile.in: When installing symlinks, use "cp -fR", which
36977 works on FreeBSD and MacOSX.
36978 From Yves Blusseau <cl7m42e02@sneakemail.com>
36979
36980 * kern/dl.c (grub_dl_resolve_symbol): Make static.
36981 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
36982
36983 * util/misc.c: Move grub_reboot() and grub_halt() ...
36984 * util/grub-emu.c: ... here. Make main_env static.
36985 * include/grub/util/misc.h: Remove main_env.
36986
36987 * kern/mm.c: Use correct format to print size_t.
36988
36989 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
36990 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
36991 * kern/powerpc/dl.c: Likewise.
36992 * kern/sparc64/dl.c: Likewise.
36993 * kern/x86_64/dl.c: Likewise.
36994
36995 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
36996
36997 Fix grub-emu build on sparc64-ieee1275.
36998
36999 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37001
37002 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37003
37004 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37005 (grub_reboot, grub_halt): New functions.
37006
37007 * util/i386/pc/misc.c: Delete. Update all users.
37008 * util/sparc64/ieee1275/misc.c: Likewise.
37009 * util/powerpc/ieee1275/misc.c: Likewise.
37010
37011 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37012
37013 * conf/i386.rmk (setjmp_mod_SOURCES)
37014 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37015 * conf/common.rmk (setjmp_mod_SOURCES)
37016 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37017 to use $(target_cpu).
37018 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37019 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37020 * conf/powerpc-ieee1275.rmk: Likewise.
37021 * conf/sparc64-ieee1275.rmk: Likewise.
37022
37023 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37024 $(target_cpu) for kern/$(target_cpu)/dl.c.
37025 * conf/i386-efi.rmk: Likewise.
37026 * conf/i386-ieee1275.rmk: Likewise.
37027 * conf/x86_64-efi.rmk: Likewise.
37028 * conf/i386-coreboot.rmk: Likewise.
37029 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37030 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37031 kern/$(target_cpu)/cache.S.
37032 * conf/sparc64-ieee1275.rmk: Likewise.
37033
37034 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37035
37036 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37037 type to `grub_uint8_t', and adjust `padding9' accordingly.
37038
37039 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37040
37041 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37042
37043 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37044 assembly in final jump, using register constraints.
37045
37046 (grub_linux_boot): For text mode, initialize `have_vga' using
37047 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37048
37049 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37050 right before the final jump.
37051
37052 Set `video_mode' to 0x3.
37053
37054 Document initialization of `video_page', `video_mode' and
37055 `video_ega_bx'.
37056
37057 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37058
37059 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37060 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37061 and set GRUB_LINUX_FLAG_QUIET appropriately.
37062
37063 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37064
37065 Fix build on Debian / sparc.
37066
37067 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37068
37069 2009-06-28 Pavel Roskin <proski@gnu.org>
37070
37071 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37072 fix a warning.
37073
37074 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37075
37076 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37077
37078 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37079 `err'.
37080
37081 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37082
37083 Revert r2338.
37084
37085 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37086 file can't be opened. grub_file_open() is already supposed to set
37087 grub_errno / grub_errmsg appropriately.
37088 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37089
37090 2009-06-27 Pavel Roskin <proski@gnu.org>
37091 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37092
37093 * include/grub/dl.h: Include grub/elf.h.
37094 (struct grub_dl): Add symtab field.
37095 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37096 GRUB_MODULES_MACHINE_READONLY.
37097 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37098 of the header for read-only modules.
37099 (grub_dl_unload): Free mod->symtab for read-only modules.
37100 * kern/i386/dl.c: Use mod->symtab.
37101 * kern/powerpc/dl.c: Likewise.
37102 * kern/sparc64/dl.c: Likewise.
37103 * kern/x86_64/dl.c: Likewise.
37104
37105 * conf/i386-qemu.rmk: New file.
37106 * kern/i386/qemu/startup.S: Likewise.
37107 * kern/i386/qemu/mmap.c: Likewise.
37108 * boot/i386/qemu/boot.S: Likewise.
37109 * include/grub/i386/qemu/time.h: Likewise.
37110 * include/grub/i386/qemu/serial.h: Likewise.
37111 * include/grub/i386/qemu/kernel.h: Likewise.
37112 * include/grub/i386/qemu/console.h: Likewise.
37113 * include/grub/i386/qemu/boot.h: Likewise.
37114 * include/grub/i386/qemu/init.h: Likewise.
37115 * include/grub/i386/qemu/machine.h: Likewise.
37116 * include/grub/i386/qemu/loader.h: Likewise.
37117 * include/grub/i386/qemu/memory.h: Likewise.
37118
37119 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37120 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37121 [qemu] (pkglib_IMAGES): Add `boot.img'.
37122 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37123 [qemu] (boot_img_FORMAT): New variables.
37124 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37125 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37126 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37127 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37128 [qemu] (kernel_img_FORMAT): New variables.
37129
37130 * configure.ac: Recognise `i386-qemu'.
37131
37132 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37133 (for no compression).
37134 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37135 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37136 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37137 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37138 ifdefs).
37139
37140 2009-06-27 Pavel Roskin <proski@gnu.org>
37141
37142 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37143 read.
37144 * efiemu/prepare32.c: Likewise.
37145 * efiemu/prepare64.c: Likewise.
37146
37147 2009-06-26 Pavel Roskin <proski@gnu.org>
37148
37149 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37150 * include/grub/elf.h: Define symbols without "32" or "64" based
37151 on GRUB_TARGET_WORDSIZE.
37152 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37153 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37154 ELF definitions.
37155 * efiemu/loadcore64.c: Likewise.
37156 * loader/i386/bsd32.c: Likewise.
37157 * loader/i386/bsd64.c: Likewise.
37158 * kern/dl.c: Remove own ELF definitions.
37159 * util/i386/efi/grub-mkimage.c: Likewise.
37160
37161 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37162
37163 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37164 segment 0x0 unconditionally, because the reference generated by
37165 GAS is an absolute address.
37166
37167 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37168
37169 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37170 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37171
37172 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37173
37174 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37175 indexes. Check for -f explicitly.
37176 (search_file): Improve error message.
37177 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37178
37179 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37180
37181 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37182 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37183
37184 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37185
37186 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37187 * conf/i386-ieee1275.rmk: Likewise.
37188 * conf/i386-coreboot.rmk: Likewise.
37189
37190 * kern/i386/pc/startup.S (grub_stop): Remove function.
37191 * kern/i386/ieee1275/startup.S: Likewise.
37192 * kern/i386/coreboot/startup.S: Likewise.
37193 * kern/i386/misc.S (grub_stop): New function.
37194
37195 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37196
37197 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37198 * kern/i386/realmode.S (real_to_prot): ... to here.
37199
37200 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37201
37202 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37203 with `kernel.img'.
37204 (kernel_elf_SOURCES): Rename to ...
37205 (kernel_img_SOURCES): ... this.
37206 (kernel_elf_HEADERS): Rename to ...
37207 (kernel_img_HEADERS): ... this. Update all users.
37208 (kernel_elf_ASFLAGS): Rename to ...
37209 (kernel_img_ASFLAGS): ... this.
37210 (kernel_elf_CFLAGS): Rename to ...
37211 (kernel_img_CFLAGS): ... this.
37212 (kernel_elf_LDFLAGS): Rename to ...
37213 (kernel_img_LDFLAGS): ... this.
37214 * conf/i386-coreboot.rmk: Likewise.
37215 * conf/powerpc-ieee1275.rmk: Likewise.
37216
37217 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37218 with "kernel.img".
37219
37220 2009-06-21 Pavel Roskin <proski@gnu.org>
37221
37222 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37223 to match nested functions.
37224 * loader/sparc64/ieee1275/linux.c: Likewise.
37225
37226 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37227
37228 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37229
37230 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37231 all i386 platforms.
37232
37233 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37234
37235 Fix asm file handling on ELF, and remove workarounds.
37236
37237 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37238 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37239 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37240 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37241
37242 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37243
37244 Load BSD ELF modules
37245
37246 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37247 and loader/i386/bsd64.c
37248 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37249 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37250 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37251 (grub_freebsd_load_elfmodule32): New declaration
37252 (grub_freebsd_load_elfmoduleobj64): Likewise
37253 (grub_freebsd_load_elf_meta32): Likewise
37254 (grub_freebsd_load_elf_meta64): Likewise
37255 (grub_freebsd_add_meta): Likewise
37256 (grub_freebsd_add_meta_module): Likewise
37257 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37258 (grub_freebsd_add_meta_module): Likewise and move module-specific
37259 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37260 (grub_cmd_freebsd): Add elf-kernel specific parts
37261 based on grub_freebsd_add_meta_module
37262 (grub_cmd_freebsd_module): Add type parsing moved from
37263 grub_freebsd_add_meta_module
37264 (grub_cmd_freebsd_module_elf): New function
37265 (cmd_freebsd_module_elf): New variable
37266 (GRUB_MOD_INIT): Register freebsd_module_elf
37267 * loader/i386/bsd32.c: New file
37268 * loader/i386/bsd64.c: Likewise
37269 * loader/i386/bsdXX.c: Likewise
37270 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37271 (grub_elf64_load): Likewise
37272 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37273 All users updated
37274 (grub_elf64_load_hook_t): Likewise
37275
37276 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37277
37278 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37279 variable.
37280 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37281 don't write a menu entry for recovery mode.
37282
37283 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37284
37285 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37286 after it's no longer needed.
37287
37288 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37289
37290 * include/grub/i386/loader.h (grub_linux_prot_size)
37291 (grub_linux_tmp_addr, grub_linux_real_addr)
37292 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37293 GRUB_MACHINE_PCBIOS.
37294 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37295 common grub_util_info() call to ...
37296 (generate_image): ... here.
37297 Fix use of uninitialized memory, comparison of signed with
37298 unsigned integers and memory leak.
37299 Remove bogus module address message.
37300
37301 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37302
37303 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37304 grub_raid_register
37305 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37306
37307 2009-06-19 Pavel Roskin <proski@gnu.org>
37308
37309 * configure.ac: Remove stray AC_MSG_CHECKING.
37310
37311 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37312
37313 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37314
37315 2009-06-18 Pavel Roskin <proski@gnu.org>
37316
37317 * conf/common.rmk: Add fs_file.mod.
37318 * disk/fs_file.c: New file.
37319 * include/grub/disk.h (enum grub_disk_dev_id): Add
37320 GRUB_DISK_DEVICE_FILE_ID.
37321
37322 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37323
37324 Fix build with Apple's toolchain. Part 2
37325
37326 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37327 a fake start
37328
37329 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37330
37331 Fix build with Apple's toolchain. Part 1
37332
37333 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37334 for long calls
37335 * configure.ac: remove a leftover AC_MSG_RESULT
37336 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37337 Apple's toolchain
37338
37339 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37340
37341 Fix warnings
37342
37343 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37344 (decomp_block): initialize ch
37345 use grub_memcpy instead of memcpy
37346
37347 2009-06-17 Pavel Roskin <proski@gnu.org>
37348
37349 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37350 version, use declarations needed to use vga_text as the startup
37351 console.
37352
37353 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37354 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37355 the kernel.
37356 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37357 and grub_at_keyboard_fini(), it's done on module load and
37358 unload.
37359
37360 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37361
37362 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37363 file can't be found.
37364 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37365
37366 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37367
37368 Fix newline handling
37369
37370 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37371 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37372 (grub_script_yylex): don't segfault on unterminated script
37373 newline terminates command and variable
37374
37375 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37376
37377 avoid double grub_adjust_range call. Bug reported by David Simner
37378
37379 * kern/disk.c (grub_disk_write): change to raw disk access before
37380 calling disk_read
37381
37382 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37383
37384 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37385 spaces, for the benefit of help2man.
37386 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37387
37388 2009-06-16 Pavel Roskin <proski@gnu.org>
37389
37390 * kern/i386/halt.c: Include grub/machine/init.h.
37391 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37392
37393 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37394
37395 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37396 drivemap menuentry.
37397
37398 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37399
37400 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37401 `echo' command.
37402
37403 2009-06-16 Pavel Roskin <proski@gnu.org>
37404
37405 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37406 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37407 save %dx, we only need %dl and we never change it.
37408 * boot/i386/pc/cdboot.S: Don't set the root drive.
37409 * boot/i386/pc/pxeboot.S: Likewise.
37410 * include/grub/i386/pc/boot.h: Remove
37411 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37412 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37413 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37414 * kern/i386/pc/init.c (make_install_device): Remove references
37415 to grub_root_drive.
37416 * kern/i386/pc/startup.S: Likewise.
37417 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37418
37419 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37420
37421 xnu_uuid command
37422
37423 * commands/xnu_uuid.c: new file
37424 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37425 (xnu_uuid_mod_SOURCES): new variable
37426 (xnu_uuid_mod_CFLAGS): likewise
37427 (xnu_uuid_mod_LDFLAGS): likewise
37428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37429 * conf/i386-ieee1275.rmk: likewise
37430 * conf/i386-pc.rmk: likewise
37431 * conf/powerpc-ieee1275.rmk: likewise
37432 * conf/sparc64-ieee1275.rmk: likewise
37433 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37434
37435 2009-06-16 Pavel Roskin <proski@gnu.org>
37436
37437 * configure.ac: Avoid '==' in test command, it's not portable.
37438
37439 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37440
37441 Probe command
37442
37443 * commands/probe.c: new file
37444 * conf/common.rmk (pkglib_MODULES): add probe.mod
37445 (probe_mod_SOURCES): new variable
37446 (probe_mod_CFLAGS): likewise
37447 (probe_mod_LDFLAGS): likewise
37448 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37449 * conf/i386-ieee1275.rmk: likewise
37450 * conf/i386-pc.rmk: likewise
37451 * conf/powerpc-ieee1275.rmk: likewise
37452 * conf/sparc64-ieee1275.rmk: likewise
37453
37454 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37455
37456 Fix handling of string like \"hello\" and "a
37457 b"
37458
37459 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37460 (grub_script_yylex): fix parsing of quoting, escaping and newline
37461
37462 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37463
37464 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37465 handling
37466
37467 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37468
37469 * util/grub-mkconfig.in: Fix parsing of --output option.
37470
37471 2009-06-12 Pavel Roskin <proski@gnu.org>
37472
37473 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37474 genmk.rb don't need to be generated or installed.
37475
37476 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37477
37478 * commands/i386/pc/drivemap_int13h.S: add more comments
37479
37480 2009-06-11 Pavel Roskin <proski@gnu.org>
37481
37482 * Makefile.in (uninstall): Uninstall manuals.
37483
37484 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37485 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37486 and update-grub_lib in two places.
37487 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37488
37489 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37490 a compiler warning.
37491
37492 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37493 `entry_lo' to fix variable shadowing.
37494
37495 2009-06-11 Christian Franke <franke@computer.org>
37496
37497 * kern/misc.c (__enable_execute_stack): Add missing return type
37498 to prevent gcc warning.
37499
37500 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37501
37502 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37503
37504 2009-06-11 Pavel Roskin <proski@gnu.org>
37505
37506 * Makefile.in: Don't rely on any scripts being executable.
37507 Always use $(SHELL) to run shell scripts.
37508
37509 * configure.ac: Always define ___main if using -nostdlib. This
37510 fixes tests on Cygwin.
37511
37512 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37513
37514 UDF fix
37515
37516 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37517 is in bytes and not in blocks
37518
37519 2009-06-11 Pavel Roskin <proski@gnu.org>
37520
37521 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37522 warning.
37523
37524 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37525
37526 * util/grub.d/30_os-prober.in: Fix a comment. Source
37527 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37528 to set the root device. Place drivemap command in the generated
37529 chain entry.
37530
37531 2009-06-11 Pavel Roskin <proski@gnu.org>
37532
37533 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37534 have long been resolved.
37535
37536 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37537
37538 * util/grub.d/10_linux.in: Capitalise "Linux".
37539
37540 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37541
37542 2009-06-11 Pavel Roskin <proski@gnu.org>
37543
37544 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37545 fix a gcc warning and ensure that the function won't ever exit.
37546
37547 * kern/i386/ieee1275/init.c: Add missing prototype for
37548 grub_stop_floppy().
37549
37550 * loader/ieee1275/multiboot2.c [__i386__]: Include
37551 grub/cpu/multiboot.h.
37552
37553 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37554 casts to short - they are not portable and cause warnings. Fix
37555 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37556
37557 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37558
37559 Drivemap fixes
37560
37561 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37562 new function
37563 (grub_get_root_biosnumber_saved): new variable
37564 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37565 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37566 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37567 %dx after the call if necessary
37568 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37569 (boot_mod_SOURCES): remove
37570 (boot_mod_CFLAGS): remove
37571 (boot_mod_LDFLAGS): remove
37572 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37573 (boot_mod_SOURCES): new variable
37574 (boot_mod_CFLAGS): likewise
37575 (boot_mod_LDFLAGS): likewise
37576 * conf/i386-efi.rmk: likewise
37577 * conf/i386-ieee1275.rmk: likewise
37578 * conf/i386-pc.rmk: likewise
37579 * conf/powerpc-ieee1275.rmk: likewise
37580 * conf/sparc64-ieee1275.rmk: likewise
37581 * conf/x86_64-efi.rmk: likewise
37582 * include/grub/i386/pc/biosnum.h: new file
37583 * lib/i386/pc/biosnum.c: likewise
37584 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37585 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37586 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37587
37588 2009-06-10 Pavel Roskin <proski@gnu.org>
37589
37590 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37591 Use separate variables. Read only the file size at the end, but
37592 not the checksum that we don't use.
37593
37594 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37595 Adjust all callers.
37596
37597 * kern/ieee1275/openfw.c: Remove libc includes.
37598 * kern/ieee1275/cmain.c: Likewise.
37599 * include/grub/ieee1275/ieee1275.h: Likewise.
37600
37601 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37602 compiler warnings.
37603
37604 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37605
37606 * Makefile.in: Remove all trailing whitespace.
37607 * conf/i386-pc.rmk: Likewise.
37608 * conf/powerpc-ieee1275.rmk: Likewise.
37609 * conf/sparc64-ieee1275.rmk: Likewise.
37610 * docs/grub.texi: Likewise.
37611 * docs/texinfo.tex: Likewise.
37612 * disk/fs_uuid.c: Likewise.
37613 * disk/lvm.c: Likewise.
37614 * disk/scsi.c: Likewise.
37615 * disk/ata.c: Likewise.
37616 * disk/ieee1275/ofdisk.c: Likewise.
37617 * disk/i386/pc/biosdisk.c: Likewise.
37618 * disk/host.c: Likewise.
37619 * disk/raid.c: Likewise.
37620 * disk/efi/efidisk.c: Likewise.
37621 * disk/usbms.c: Likewise.
37622 * disk/memdisk.c: Likewise.
37623 * disk/loopback.c: Likewise.
37624 * kern/powerpc/dl.c: Likewise.
37625 * kern/device.c: Likewise.
37626 * kern/dl.c: Likewise.
37627 * kern/sparc64/dl.c: Likewise.
37628 * kern/ieee1275/ieee1275.c: Likewise.
37629 * kern/term.c: Likewise.
37630 * kern/fs.c: Likewise.
37631 * kern/i386/dl.c: Likewise.
37632 * kern/i386/pc/startup.S: Likewise.
37633 * kern/i386/pc/init.c: Likewise.
37634 * kern/i386/pc/mmap.c: Likewise.
37635 * kern/i386/pc/lzo1x.S: Likewise.
37636 * kern/i386/ieee1275/init.c: Likewise.
37637 * kern/i386/realmode.S: Likewise.
37638 * kern/i386/tsc.c: Likewise.
37639 * kern/partition.c: Likewise.
37640 * kern/corecmd.c: Likewise.
37641 * kern/file.c: Likewise.
37642 * kern/efi/efi.c: Likewise.
37643 * kern/efi/init.c: Likewise.
37644 * kern/efi/mm.c: Likewise.
37645 * kern/main.c: Likewise.
37646 * kern/err.c: Likewise.
37647 * kern/env.c: Likewise.
37648 * kern/disk.c: Likewise.
37649 * kern/generic/millisleep.c: Likewise.
37650 * kern/generic/rtc_get_time_ms.c: Likewise.
37651 * kern/misc.c: Likewise.
37652 * kern/parser.c: Likewise.
37653 * genmk.rb: Likewise.
37654 * configure.ac: Likewise.
37655 * boot/i386/pc/diskboot.S: Likewise.
37656 * boot/i386/pc/pxeboot.S: Likewise.
37657 * boot/i386/pc/boot.S: Likewise.
37658 * boot/i386/pc/lnxboot.S: Likewise.
37659 * boot/i386/pc/cdboot.S: Likewise.
37660 * parttool/pcpart.c: Likewise.
37661 * video/readers/tga.c: Likewise.
37662 * video/video.c: Likewise.
37663 * video/bitmap.c: Likewise.
37664 * lib/envblk.c: Likewise.
37665 * lib/i386/setjmp.S: Likewise.
37666 * fs/xfs.c: Likewise.
37667 * fs/afs.c: Likewise.
37668 * fs/fat.c: Likewise.
37669 * fs/ntfs.c: Likewise.
37670 * fs/udf.c: Likewise.
37671 * fs/affs.c: Likewise.
37672 * fs/iso9660.c: Likewise.
37673 * fs/hfs.c: Likewise.
37674 * fs/fshelp.c: Likewise.
37675 * fs/ext2.c: Likewise.
37676 * fs/jfs.c: Likewise.
37677 * fs/reiserfs.c: Likewise.
37678 * fs/hfsplus.c: Likewise.
37679 * fs/minix.c: Likewise.
37680 * fs/cpio.c: Likewise.
37681 * fs/sfs.c: Likewise.
37682 * fs/ufs.c: Likewise.
37683 * efiemu/prepare.c: Likewise.
37684 * efiemu/loadcore_common.c: Likewise.
37685 * efiemu/runtime/efiemu.sh: Likewise.
37686 * efiemu/runtime/efiemu.S: Likewise.
37687 * efiemu/runtime/efiemu.c: Likewise.
37688 * efiemu/pnvram.c: Likewise.
37689 * efiemu/main.c: Likewise.
37690 * efiemu/i386/pc/cfgtables.c: Likewise.
37691 * efiemu/i386/loadcore64.c: Likewise.
37692 * efiemu/i386/loadcore32.c: Likewise.
37693 * efiemu/loadcore.c: Likewise.
37694 * efiemu/symbols.c: Likewise.
37695 * efiemu/mm.c: Likewise.
37696 * include/grub/autoefi.h: Likewise.
37697 * include/grub/datetime.h: Likewise.
37698 * include/grub/term.h: Likewise.
37699 * include/grub/hfs.h: Likewise.
37700 * include/grub/lvm.h: Likewise.
37701 * include/grub/i386/tsc.h: Likewise.
37702 * include/grub/i386/linux.h: Likewise.
37703 * include/grub/i386/xnu.h: Likewise.
37704 * include/grub/i386/efiemu.h: Likewise.
37705 * include/grub/i386/pc/biosdisk.h: Likewise.
37706 * include/grub/i386/pc/memory.h: Likewise.
37707 * include/grub/i386/pc/vbe.h: Likewise.
37708 * include/grub/parttool.h: Likewise.
37709 * include/grub/video.h: Likewise.
37710 * include/grub/memory.h: Likewise.
37711 * include/grub/fs.h: Likewise.
37712 * include/grub/partition.h: Likewise.
37713 * include/grub/xnu.h: Likewise.
37714 * include/grub/efi/api.h: Likewise.
37715 * include/grub/efi/pe32.h: Likewise.
37716 * include/grub/efi/memory.h: Likewise.
37717 * include/grub/multiboot.h: Likewise.
37718 * include/grub/usbdesc.h: Likewise.
37719 * include/grub/multiboot2.h: Likewise.
37720 * include/grub/acpi.h: Likewise.
37721 * include/grub/efiemu/efiemu.h: Likewise.
37722 * include/grub/disk.h: Likewise.
37723 * include/grub/ieee1275/ieee1275.h: Likewise.
37724 * include/grub/net.h: Likewise.
37725 * include/grub/machoload.h: Likewise.
37726 * include/grub/macho.h: Likewise.
37727 * include/multiboot.h: Likewise.
37728 * genmoddep.awk: Likewise.
37729 * normal/main.c: Likewise.
37730 * normal/menu_entry.c: Likewise.
37731 * normal/menu_viewer.c: Likewise.
37732 * normal/completion.c: Likewise.
37733 * normal/cmdline.c: Likewise.
37734 * normal/misc.c: Likewise.
37735 * normal/datetime.c: Likewise.
37736 * bus/usb/usbtrans.c: Likewise.
37737 * bus/usb/ohci.c: Likewise.
37738 * bus/usb/uhci.c: Likewise.
37739 * bus/usb/usb.c: Likewise.
37740 * mmap/efi/mmap.c: Likewise.
37741 * mmap/i386/pc/mmap_helper.S: Likewise.
37742 * mmap/i386/pc/mmap.c: Likewise.
37743 * mmap/i386/mmap.c: Likewise.
37744 * mmap/i386/uppermem.c: Likewise.
37745 * mmap/mmap.c: Likewise.
37746 * commands/acpi.c: Likewise.
37747 * commands/echo.c: Likewise.
37748 * commands/blocklist.c: Likewise.
37749 * commands/loadenv.c: Likewise.
37750 * commands/usbtest.c: Likewise.
37751 * commands/boot.c: Likewise.
37752 * commands/parttool.c: Likewise.
37753 * commands/search.c: Likewise.
37754 * commands/cat.c: Likewise.
37755 * commands/i386/pc/play.c: Likewise.
37756 * commands/i386/pc/drivemap.c: Likewise.
37757 * commands/i386/pc/vbeinfo.c: Likewise.
37758 * commands/i386/pc/acpi.c: Likewise.
37759 * commands/i386/pc/vbetest.c: Likewise.
37760 * commands/ls.c: Likewise.
37761 * commands/cmp.c: Likewise.
37762 * commands/test.c: Likewise.
37763 * commands/efi/acpi.c: Likewise.
37764 * commands/gptsync.c: Likewise.
37765 * commands/help.c: Likewise.
37766 * partmap/amiga.c: Likewise.
37767 * partmap/apple.c: Likewise.
37768 * partmap/acorn.c: Likewise.
37769 * partmap/pc.c: Likewise.
37770 * partmap/sun.c: Likewise.
37771 * partmap/gpt.c: Likewise.
37772 * script/sh/lexer.c: Likewise.
37773 * script/sh/function.c: Likewise.
37774 * font/font.c: Likewise.
37775 * font/font_cmd.c: Likewise.
37776 * loader/powerpc/ieee1275/linux.c: Likewise.
37777 * loader/efi/chainloader.c: Likewise.
37778 * loader/multiboot_loader.c: Likewise.
37779 * loader/macho.c: Likewise.
37780 * loader/i386/multiboot.c: Likewise.
37781 * loader/i386/linux.c: Likewise.
37782 * loader/i386/pc/linux.c: Likewise.
37783 * loader/i386/pc/multiboot2.c: Likewise.
37784 * loader/i386/pc/chainloader.c: Likewise.
37785 * loader/i386/pc/xnu.c: Likewise.
37786 * loader/i386/bsd_trampoline.S: Likewise.
37787 * loader/i386/efi/linux.c: Likewise.
37788 * loader/i386/multiboot_elfxx.c: Likewise.
37789 * loader/i386/bsd_helper.S: Likewise.
37790 * loader/i386/bsd.c: Likewise.
37791 * loader/i386/linux_trampoline.S: Likewise.
37792 * loader/i386/xnu_helper.S: Likewise.
37793 * loader/i386/xnu.c: Likewise.
37794 * loader/i386/bsd_pagetable.c: Likewise.
37795 * loader/i386/multiboot_helper.S: Likewise.
37796 * loader/xnu.c: Likewise.
37797 * loader/xnu_resume.c: Likewise.
37798 * io/gzio.c: Likewise.
37799 * term/efi/console.c: Likewise.
37800 * term/terminfo.c: Likewise.
37801 * term/ieee1275/ofconsole.c: Likewise.
37802 * term/i386/pc/serial.c: Likewise.
37803 * term/i386/pc/vesafb.c: Likewise.
37804 * term/i386/pc/vga.c: Likewise.
37805 * term/usb_keyboard.c: Likewise.
37806 * term/gfxterm.c: Likewise.
37807 * aclocal.m4: Likewise.
37808 * util/lvm.c: Likewise.
37809 * util/grub.d/30_os-prober.in: Likewise.
37810 * util/grub.d/10_hurd.in: Likewise.
37811 * util/console.c: Likewise.
37812 * util/grub-macho2img.c: Likewise.
37813 * util/grub-probe.c: Likewise.
37814 * util/hostfs.c: Likewise.
37815 * util/i386/pc/grub-mkimage.c: Likewise.
37816 * util/i386/pc/grub-setup.c: Likewise.
37817 * util/i386/efi/grub-mkimage.c: Likewise.
37818 * util/grub-mkconfig.in: Likewise.
37819 * util/raid.c: Likewise.
37820 * util/resolve.c: Likewise.
37821 * util/grub-mkdevicemap.c: Likewise.
37822 * util/grub-emu.c: Likewise.
37823 * util/getroot.c: Likewise.
37824 * util/hostdisk.c: Likewise.
37825 * util/usb.c: Likewise.
37826 * util/grub-editenv.c: Likewise.
37827 * util/misc.c: Likewise.
37828
37829 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37830
37831 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37832 `genparttoollist.sh'.
37833 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37834 Add `*.sh' to the list find searches for and change `mdate.sh'
37835 to `mdate-sh'.
37836
37837 2009-06-10 Pavel Roskin <proski@gnu.org>
37838
37839 * include/grub/multiboot2.h: Provide compatibility defines for
37840 multiboot2.h.
37841 * include/multiboot2.h: Include stdint.h only if needed, using
37842 angle brackets.
37843 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37844 grub/multiboot2.h.
37845 * loader/ieee1275/multiboot2.c: Likewise.
37846 * loader/multiboot2.c: Likewise.
37847 * loader/multiboot_loader.c: Likewise.
37848
37849 * configure.ac: Use -nostdlib when probing for the target. It
37850 should not be required to have libc for the target.
37851
37852 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37853 they fail without libc headers for the target.
37854 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37855 exports.
37856 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37857 preprocessor conditionals.
37858
37859 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37860 build system doesn't need to be aware of the tar.c internals.
37861
37862 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37863
37864 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37865
37866 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37867
37868 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37869 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37870
37871 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37872
37873 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37874 aren't available if ata.mod gets used.
37875
37876 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37877
37878 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37879 initialising controller.
37880 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37881
37882 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37883
37884 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37885 to choose between ata and biosdisk module on i386-pc.
37886
37887 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37888
37889 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37890 Subclass and Programming Interface fields in terms of the 3 byte
37891 Class Code register.
37892 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37893
37894 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37895 interface is OHCI. Add grub_dprintf for symmetry with
37896 bus/usb/uhci.c.
37897 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37898 interface is UHCI. Add interf variable for programming
37899 interface. Print interface with class/subclass.
37900
37901 * bus/usb/ohci.c: Set interf with correct field.
37902
37903 * bus/usb/uhci.c: Remove unneeded doubled lines.
37904 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37905 Remove whitespace inside comment.
37906
37907 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37908
37909 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37910 as fallback an equivalent option without depth.
37911
37912 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37913
37914 Not fail if unable to retrieve C/H/S on LBA disks
37915
37916 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37917 if unable to retrieve C/H/S on LBA disks
37918
37919 2009-06-08 Pavel Roskin <proski@gnu.org>
37920
37921 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37922 about aliasing.
37923
37924 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37925
37926 * Makefile.in (uninstall): Remove all $lib_DATA files.
37927
37928 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37929
37930 Bugfix: install on partitionless device
37931
37932 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
37933 is a whole disk
37934
37935 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37936
37937 * Makefile.in (uninstall): Remove all $include_DATA files.
37938
37939 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37940
37941 * commands/true.c: New file. Implement the true and false commands.
37942 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
37943 (true_mod_SOURCES): New variable.
37944 (true_mod_CFLAGS): Likewise.
37945 (true_mod_LDFLAGS): Likewise.
37946
37947 2009-06-05 Colin D Bennett <colin@gibibit.com>
37948
37949 Optimized font character lookup using binary search instead of linear
37950 search. Fonts now are required to have the character index ordered by
37951 code point.
37952
37953 * font/font.c (load_font_index): Verify that fonts have ordered
37954 character indices.
37955 (find_glyph): Use binary search instead of linear search to find a
37956 character in a font.
37957
37958 2009-06-05 Michael Scherer <misc@mandriva.org>
37959
37960 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
37961 uses case sensitive btree.
37962 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
37963 only for case insensitive filesystems.
37964
37965 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
37966
37967 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
37968 * conf/common.rmk (search_mod_CFLAGS): likewise
37969
37970 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37971
37972 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
37973 compensate a compiler bug
37974
37975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37976
37977 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
37978 instead of '\b'
37979
37980 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37981
37982 Definitions for creating asm symbols with Apple's CC
37983
37984 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
37985 [APPLE_CC] (VARIABLE): likewise
37986
37987 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
37988
37989 Disable lnxboot.img when compiled
37990 with Apple's CC
37991
37992 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
37993 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
37994 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
37995 [! APPLE_CC] (CODE_LENG): skip
37996 [! APPLE_CC] (setup_sects): likewise
37997 [! APPLE_CC]: skip filling
37998
37999 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38000
38001 Address in trampolines based on 32-bit registers when compiled
38002 with Apple's CC
38003
38004 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38005 for addresses
38006 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38007
38008 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38009
38010 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38011
38012 * kern/misc.c [APPLE_CC] (memcpy): new function
38013 [APPLE_CC] (memmove): likewise
38014 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38015 (memcpy): define alias conditionally on !APPLE_CC
38016 (memset): likewise
38017 (abort): likewise
38018 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38019 APPLE_CC are defined
38020 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38021 (grub_assert_fail): make prototype conditional
38022
38023 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38024
38025 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38026
38027 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38028 grub-macho2img
38029 (CLEANFILES): add grub-macho2img
38030 (grub_macho2img_SOURCES): new variable
38031 * kern/i386/pc/startup.S (bss_start): new variable
38032 (bss_end): likewise
38033 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38034 * util/grub-macho2img.c: new file
38035
38036 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38037
38038 Use objconv when compiling with Apple's CC
38039
38040 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38041 (efiemu64.o): likewise
38042 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38043 when compiling with Apple's CC
38044 (efiemu64_s.o): likewise
38045 * configure.ac: check for objconv when compiling with Apple's CC
38046 * genmk.rb: use objconv for modules when compiled with Apple's CC
38047
38048 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38049
38050 Define segment as well as section when compiling with
38051 Apple's CC
38052
38053 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38054 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38055 (efiemu_convert_pointer): likewise
38056 (efiemu_set_virtual_address_map): likewise
38057 (efiemu_convert_pointer): likewise
38058 (efiemu_getcrc32): likewise
38059 (init_crc32_table): likewise
38060 (reflect): likewise
38061 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38062 (GRUB_MOD_DEP): likewise
38063
38064 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38065
38066 Allow a compilation without -mcmodel=large
38067
38068 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38069 when compiled without -mcmodel=large
38070 (filter_memory_map): remove memory post 4 GiB when compiled
38071 without -mcmodel=large
38072 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38073 TARGET_CFLAGS when -mcmodel=large isn't supported
38074
38075 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38076
38077 Remove nested functions in efiemu core
38078
38079 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38080
38081 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38082
38083 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38084
38085 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38086 temporary storage
38087 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38088 using Apple's CC
38089 (grub_cpu_is_tsc_supported): likewise
38090 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38091
38092 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38093
38094 Absolute addressing through constant with Apple's cc
38095
38096 * kern/i386/pc/startup.S: Define necessary constants
38097 and address through it when using ABS with Apple's CC
38098 * boot/i386/pc/diskboot.S: likewise
38099 * boot/i386/pc/boot.S: likewise
38100 * boot/i386/pc/lnxboot.S: likewise
38101 * boot/i386/pc/cdboot.S: likewise
38102 * mmap/i386/pc/mmap_helper.S: likewise
38103 * commands/i386/pc/drivemap_int13h.S: likewise
38104
38105 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38106
38107 Check if compiler is apple cc
38108
38109 * Makefile.in (ASFLAGS): new variable
38110 (TARGET_ASFLAGS): likewise
38111 (TARGET_MODULE_FORMAT): likewise
38112 (TARGET_APPLE_CC): likewise
38113 (OBJCONV): likewise
38114 (TARGET_IMG_CFLAGS): likewise
38115 (TARGET_CPPFLAGS): add includedir
38116 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38117 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38118 Check for linker script only if compiler isn't Apple's CC
38119 (TARGET_MODULE_FORMAT): set
38120 (TARGET_APPLE_CC): likewise
38121 (TARGET_ASFLAGS): likewise
38122 (ASFLAGS): likewise
38123 Check for objcopy only if compiler isn't Apple's CC
38124 Check for BSS symbol only if compiler isn't Apple's CC
38125 * genmk.rb: adapt nm options if we use Apple's utils
38126 * aclocal.m4 (grub_apple_cc): new test
38127 (grub_apple_target_cc): likewise
38128
38129 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38130
38131 Simplify sed expressions and improve awk
38132
38133 * Makefile.in (install-local): simplify sed expression
38134 * gencmdlist.sh: likewise
38135 * genmoddep.awk: avoid adding module as a dependency of itself
38136
38137 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38138
38139 Add missing start symbols
38140
38141 * boot/i386/pc/boot.S: add start
38142 * boot/i386/pc/pxeboot.S: likewise
38143
38144 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38145
38146 Fix wrong assumptions with grub-mkimage on EFI
38147
38148 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38149 (relocate_addresses): consider both r_addend and value at offset
38150 (make_mods_section): zerofill modinfo and header
38151 (convert_elf): write prefix here
38152
38153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38154
38155 Use .asciz instead of .string
38156
38157 * i386/pc/diskboot.S: use .asciz instead of .string
38158 * i386/pc/boot.S: likewise
38159 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38160 (GRUB_MOD_NAME): likewise
38161
38162 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38163
38164 gfxpayload support
38165
38166 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38167 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38168 (grub_video_setup): remove
38169 (grub_video_set_mode): new prototype
38170 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38171 (vid_mode): remove
38172 (linux_vesafb_res): compile only on PCBIOS
38173 (grub_linux_boot): support gfxpayload
38174 * loader/i386/pc/xnu.c (video_hook): new function
38175 (grub_xnu_set_video): support gfxpayload
38176 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38177 (DEFAULT_VIDEO_HEIGHT): likewise
38178 (DEFAULT_VIDEO_FLAGS): likewise
38179 (DEFAULT_VIDEO_MODE): new definition
38180 (video_hook): new function
38181 (grub_gfxterm_init): use grub_video_set_mode
38182 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38183 loading xnu
38184 * video/video.c (grub_video_setup): removed
38185 (grub_video_set_mode): new function based on grub_gfxterm_init and
38186 grub_video_setup
38187
38188 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38189
38190 Avoid calling biosdisk in drivemap
38191
38192 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38193 (revparse_biosdisk): likewise
38194 (list_mappings): derive name from id directly
38195 (grub_cmd_drivemap): use tryparse_diskstring
38196
38197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198
38199 Script fixes
38200
38201 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38202 (grub_lexer_param): add tokenonhold
38203 (grub_script_create_cmdline): remove cmdline. All callers updated
38204 (grub_script_function_create): make functionname
38205 grub_script_arg. All callers updated
38206 (grub_script_execute_argument_to_string): new prototype
38207 * kern/parser.c (state_transitions): reorder
38208 (grub_parser_cmdline_state): fix a bug and make more compact
38209 * script/sh/execute.c (grub_script_execute_argument_to_string):
38210 make global
38211 (grub_script_execute_cmdline): use new format
38212 * script/sh/function.c (grub_script_function_create): make functionname
38213 grub_script_arg. All callers updated
38214 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38215 (grub_script_yylex): remove
38216 (grub_script_yylex2): renamed to ...
38217 (grub_script_yylex): ...renamed
38218 parse the expressions like a${b}c
38219 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38220 (GRUB_PARSER_TOKEN_VAR): remove
38221 (GRUB_PARSER_TOKEN_NAME): likewise
38222 ("if"): declare as typeless
38223 ("while"): likewise
38224 ("function"): likewise
38225 ("else"): likewise
38226 ("then"): likewise
38227 ("fi"): likewise
38228 (text): remove
38229 (argument): likewise
38230 (script): accept empty scripts and make exit on error
38231 (arguments): use GRUB_PARSER_TOKEN_ARG
38232 (function): likewise
38233 (command): move error handling to script
38234 (menuentry): move grub_script_lexer_ref before
38235 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38236 argument. All callers updated
38237
38238 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38239
38240 Prevent GRUB from probing floppies during boot.
38241
38242 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38243 * commands/search.c (options): Add --no-floppy.
38244 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38245 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38246 --no-floppy when searching for UUIDs.
38247
38248 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38249
38250 Simplify the code duplication in commands/search.c.
38251
38252 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38253 (search_fs): ... this. Update all users.
38254
38255 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38256
38257 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38258
38259 2009-05-28 Pavel Roskin <proski@gnu.org>
38260
38261 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38262 Remove the original symlink explicitly.
38263
38264 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38265 just one slash. That's how grub_fshelp_find_file() does it.
38266
38267 2009-05-26 Pavel Roskin <proski@gnu.org>
38268
38269 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38270 to `str'.
38271
38272 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38273 possibly unused.
38274
38275 2009-05-25 Christian Franke <franke@computer.org>
38276
38277 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38278 register.
38279 (grub_atapi_identify): Add wait after drive select.
38280 (grub_ata_identify): Do more strict status register check before
38281 calling grub_atapi_identify (). Suppress error message if status
38282 register is 0x00 after command failure. Add status register
38283 check after PIO read to avoid bogus identify due to stuck DRQ.
38284 Thanks to Pavel Roskin for testing.
38285 (grub_device_initialize): Remove unsafe status register check.
38286 Thanks to 'phcoder' for problem report and patch.
38287 Prevent sign extension in debug message.
38288
38289 2009-05-23 Colin D Bennett <colin@gibibit.com>
38290
38291 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38292 definition file, and functions defined in `normal/menu.c' have had
38293 their prototypes moved to `include/grub/menu.h' for consistency.
38294
38295 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38296 from normal.h.
38297 (grub_menu_get_entry): Likewise.
38298 (grub_menu_get_timeout): Likewise.
38299 (grub_menu_set_timeout): Likewise.
38300 (grub_menu_execute_entry): Likewise.
38301 (grub_menu_execute_with_fallback): Likewise.
38302 (grub_menu_entry_run): Likewise.
38303
38304 * include/grub/normal.h: Re-ordered and grouped function
38305 prototypes by file that the function is defined in.
38306 (grub_menu_execute_callback): Removed; moved to menu.h.
38307 (grub_menu_get_entry): Likewise.
38308 (grub_menu_get_timeout): Likewise.
38309 (grub_menu_set_timeout): Likewise.
38310 (grub_menu_execute_entry): Likewise.
38311 (grub_menu_execute_with_fallback): Likewise.
38312 (grub_menu_entry_run): Likewise.
38313 (grub_menu_addentry): Renamed from this ...
38314 (grub_normal_add_menu_entry): ... to this.
38315
38316 * normal/main.c (grub_menu_addentry): Renamed from this ...
38317 (grub_normal_add_menu_entry): ... to this.
38318
38319 * script/sh/execute.c (grub_script_execute_menuentry): Update
38320 reference to renamed grub_menu_addentry function.
38321
38322 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38323
38324 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38325
38326 2009-05-22 Pavel Roskin <proski@gnu.org>
38327
38328 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38329 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38330 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38331 compiling for the i386 targets, but not for the utilities.
38332
38333 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38334 to grub_uint8_t.
38335 (grub_root_drive): Likewise.
38336 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38337 remove alignment.
38338 (grub_root_drive): Change size to byte.
38339 (grub_start_addr): Remove.
38340 (grub_end_addr): Likewise.
38341 (grub_apm_bios_info): Likewise.
38342
38343 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38344
38345 * normal/i386: Remove.
38346 * normal/powerpc: Likewise.
38347 * normal/sparc64: Likewise.
38348 * normal/x86_64: Likewise.
38349
38350 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38351
38352 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38353 * loader/i386/linux_trampoline.S: Fix indentation
38354 * loader/i386/xnu_helper.S: Likewise
38355
38356 2009-05-18 Colin D Bennett <colin@gibibit.com>
38357
38358 Display error messages when parsing a Lua statement fails.
38359 Previously, executing a syntactically invalid statement like
38360 ")foo" or "bar;" would silently fail.
38361
38362 * script/lua/grub_main.c (handle_lua_error): New function.
38363 (grub_lua_parse_line): Improved reporting of Lua parser and
38364 execution errors.
38365
38366 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38367
38368 Remove -Werror which causes build to fail on some systems
38369
38370 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38371 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38372 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38373
38374 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38375
38376 trampoline for linux on 64-bit platform
38377
38378 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38379 loader/i386/efi/linux_trampoline.S
38380 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38381 declaration
38382 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38383 here
38384 * loader/i386/linux_trampoline.S: moved here
38385 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38386 trampoline
38387 (jumpvector): removed
38388 (grub_linux_trampoline_start): new declaration
38389 (grub_linux_trampoline_end): likewise
38390 (grub_linux_boot): use trampoline when on 64-bit platform
38391 * loader/i386/linux.c: likewise
38392
38393 2009-05-16 Pavel Roskin <proski@gnu.org>
38394
38395 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38396 const to avoid a warning.
38397 (grub_lua_setenv): Likewise.
38398 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38399 lmsg to fix a warning.
38400
38401 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38402
38403 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38404 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38405 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38406 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38407 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38408 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38409 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38410 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38411
38412 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38413
38414 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38415
38416 2009-05-16 Bean <bean123ch@gmail.com>
38417
38418 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38419 (lua_mod_SOURCES): New variable.
38420 (lua_mod_CFLAGS): Likewise.
38421 (lua_mod_LDFLAGS): Likewise.
38422
38423 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38424 (setjmp_mod_SOURCES): New variable.
38425 (setjmp_mod_CFLAGS): Likewise.
38426 (setjmp_LDFLAGS): Likewise.
38427
38428 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38429 (setjmp_mod_SOURCES): New variable.
38430 (setjmp_mod_CFLAGS): Likewise.
38431 (setjmp_LDFLAGS): Likewise.
38432
38433 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38434 (setjmp_mod_SOURCES): New variable.
38435 (setjmp_mod_CFLAGS): Likewise.
38436 (setjmp_LDFLAGS): Likewise.
38437
38438 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38439 (setjmp_mod_SOURCES): New variable.
38440 (setjmp_mod_CFLAGS): Likewise.
38441 (setjmp_LDFLAGS): Likewise.
38442
38443 * normal/i386/setjmp.S: Moved from here ...
38444 * lib/i386/setjmp.S: ... Moved here
38445 * normal/x86_64/setjmp.S: Moved from here ...
38446 * lib/x86_64/setjmp.S: ... Moved here
38447 * normal/powerpc/setjmp.S: Moved from here ...
38448 * lib/powerpc/setjmp.S: ... Moved here
38449 * normal/sparc64/setjmp.S: Moved from here ...
38450 * lib/sparc64/setjmp.S: ... Moved here
38451
38452 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38453 returns_twice in mingw.
38454
38455 * script/lua/grub_lib.c: New file.
38456 * script/lua/grub_lib.h: Likewise.
38457 * script/lua/grub_lua.h: Likewise.
38458 * script/lua/grub_main.c: Likewise.
38459 * script/lua/lapi.c: Likewise.
38460 * script/lua/lapi.h: Likewise.
38461 * script/lua/lauxlib.c: Likewise.
38462 * script/lua/lauxlib.h: Likewise.
38463 * script/lua/lbaselib.c: Likewise.
38464 * script/lua/lcode.c: Likewise.
38465 * script/lua/lcode.h: Likewise.
38466 * script/lua/ldblib.c: Likewise.
38467 * script/lua/ldebug.c: Likewise.
38468 * script/lua/ldebug.h: Likewise.
38469 * script/lua/ldo.c: Likewise.
38470 * script/lua/ldo.h: Likewise.
38471 * script/lua/ldump.c: Likewise.
38472 * script/lua/lfunc.c: Likewise.
38473 * script/lua/lfunc.h: Likewise.
38474 * script/lua/lgc.c: Likewise.
38475 * script/lua/lgc.h: Likewise.
38476 * script/lua/linit.c: Likewise.
38477 * script/lua/liolib.c: Likewise.
38478 * script/lua/llex.c: Likewise.
38479 * script/lua/llex.h: Likewise.
38480 * script/lua/llimits.h: Likewise.
38481 * script/lua/lmathlib.c: Likewise.
38482 * script/lua/lmem.c: Likewise.
38483 * script/lua/lmem.h: Likewise.
38484 * script/lua/loadlib.c: Likewise.
38485 * script/lua/lobject.c: Likewise.
38486 * script/lua/lobject.h: Likewise.
38487 * script/lua/lopcodes.c: Likewise.
38488 * script/lua/lopcodes.h: Likewise.
38489 * script/lua/loslib.c: Likewise.
38490 * script/lua/lparser.c: Likewise.
38491 * script/lua/lparser.h: Likewise.
38492 * script/lua/lstate.c: Likewise.
38493 * script/lua/lstate.h: Likewise.
38494 * script/lua/lstring.c: Likewise.
38495 * script/lua/lstring.h: Likewise.
38496 * script/lua/lstrlib.c: Likewise.
38497 * script/lua/ltable.c: Likewise.
38498 * script/lua/ltable.h: Likewise.
38499 * script/lua/ltablib.c: Likewise.
38500 * script/lua/ltm.c: Likewise.
38501 * script/lua/ltm.h: Likewise.
38502 * script/lua/lua.h: Likewise.
38503 * script/lua/luaconf.h: Likewise.
38504 * script/lua/lualib.h: Likewise.
38505 * script/lua/lundump.c: Likewise.
38506 * script/lua/lundump.h: Likewise.
38507 * script/lua/lvm.c: Likewise.
38508 * script/lua/lvm.h: Likewise.
38509 * script/lua/lzio.c: Likewise.
38510 * script/lua/lzio.h: Likewise.
38511
38512 2009-05-16 Bean <bean123ch@gmail.com>
38513
38514 * include/grub/kernel.h (grub_module_header_types): Add type
38515 OBJ_TYPE_CONFIG.
38516
38517 * kern/main.c (grub_load_config): New function.
38518 (grub_main): Call grub_load_config to read boot config.
38519
38520 * grub-mkimage (generate_image): New parameter config_path.
38521 (options): New option --config.
38522 (main): Parse --config option, and pass it to generate_image.
38523
38524 2009-05-14 Christian Franke <franke@computer.org>
38525
38526 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38527 This fixes build on Cygwin.
38528
38529 2009-05-14 Pavel Roskin <proski@gnu.org>
38530
38531 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38532 jump. This saves two bytes, so the typical case of 2 swapped
38533 drives would fit 32 bytes.
38534
38535 2009-05-13 Pavel Roskin <proski@gnu.org>
38536
38537 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38538 grub_uint32_t to avoid a warning.
38539
38540 * loader/i386/linux.c (allocate_pages): When assigning
38541 real_mode_mem, cast through grub_size_t to fix a warning. The
38542 code already makes sure that the value would fit a pointer.
38543 (grub_linux_setup_video): Cast render_target->data to
38544 grub_size_t to fix a warning.
38545
38546 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38547
38548 * commands/i386/pc/drivemap.c: New file - implement drivemap
38549 command.
38550 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38551 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38552
38553 2009-05-13 Pavel Roskin <proski@gnu.org>
38554
38555 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38556 embedding_area_exists.
38557
38558 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38559
38560 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38561 it easier to understand / work with.
38562 Improve warning messages for cases where there's no embedding area,
38563 or when it is too small (or core.img too large).
38564
38565 2009-05-13 Pavel Roskin <proski@gnu.org>
38566
38567 * loader/i386/pc/multiboot2.c: Add necessary includes for
38568 grub_multiboot2_real_boot().
38569
38570 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38571 PX record is always little-endian. We only need the lower 2
38572 bytes of the mode.
38573
38574 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38575 facilitate code reuse.
38576 (grub_cpio_mount): Use "struct head", not a char buffer. This
38577 fixes a warning reported by gcc 4.4.
38578
38579 * kernel/disk.c (grub_disk_read): Use void pointer for the
38580 buffer.
38581 (grub_disk_write): Use const void pointer for the buffer.
38582 Adjust all callers. Remove unnecessary casts.
38583
38584 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38585
38586 * util/i386/pc/grub-install.in: Update copyright year.
38587
38588 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38589
38590 gptsync
38591
38592 * commands/gptsync.c: new file
38593 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38594 (gptsync_mod_SOURCES): new variable
38595 (gptsync_mod_CFLAGS): likewise
38596 (gptsync_mod_LDFLAGS): likewise
38597 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38598 new definition
38599 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38600 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38601 * conf/i386-ieee1275.rmk: likewise
38602 * conf/i386-pc.rmk: likewise
38603 * conf/powerpc-ieee1275.rmk: likewise
38604
38605 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38606
38607 Fixed grub-emu
38608
38609 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38610 (grub_dl_ref): likewise
38611
38612 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38613
38614 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38615 split in two functions (one for msdos and one for gpt).
38616
38617 2009-05-08 Pavel Roskin <proski@gnu.org>
38618
38619 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38620 not modified.
38621
38622 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38623 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38624 Initialize them with -1. Add sanity check for bad1. Eliminate
38625 nerr variable.
38626
38627 2009-05-08 David S. Miller <davem@davemloft.net>
38628
38629 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38630
38631 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38632
38633 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38634 existence.
38635
38636 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38637
38638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38639 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38640
38641 2009-05-05 David S. Miller <davem@davemloft.net>
38642
38643 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38644
38645 2009-05-05 Pavel Roskin <proski@gnu.org>
38646
38647 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38648 of grub_dl_ref() and grub_dl_unref().
38649 * commands/parttool.c: Remove preprocessor conditionals around
38650 grub_dl_ref() and grub_dl_unref().
38651 * fs/affs.c: Likewise.
38652 * fs/afs.c: Likewise.
38653 * fs/cpio.c: Likewise.
38654 * fs/ext2.c: Likewise.
38655 * fs/fat.c: Likewise.
38656 * fs/hfs.c: Likewise.
38657 * fs/hfsplus.c: Likewise.
38658 * fs/iso9660.c: Likewise.
38659 * fs/jfs.c: Likewise.
38660 * fs/minix.c: Likewise.
38661 * fs/ntfs.c: Likewise.
38662 * fs/reiserfs.c: Likewise.
38663 * fs/sfs.c: Likewise.
38664 * fs/udf.c: Likewise.
38665 * fs/ufs.c: Likewise.
38666 * fs/xfs.c: Likewise.
38667 * include/grub/dl.h: Likewise.
38668 * loader/xnu.c: Likewise.
38669
38670 2009-05-04 Pavel Roskin <proski@gnu.org>
38671
38672 * commands/acpi.c: Remove unused variable my_mod.
38673 * partmap/amiga.c: Likewise.
38674 * partmap/apple.c: Likewise.
38675 * partmap/gpt.c: Likewise.
38676 * partmap/pc.c: Likewise.
38677 * partmap/sun.c: Likewise.
38678 * term/gfxterm.c: Likewise.
38679 * term/i386/pc/vesafb.c: Likewise.
38680 * term/i386/pc/vga.c: Likewise.
38681
38682 2009-05-04 David S. Miller <davem@davemloft.net>
38683
38684 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38685 pointer args to grub_ieee1275_get_property().
38686
38687 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38688
38689 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38690 devices, and do not traverse down under controller nodes.
38691
38692 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38693 (grub_ofdisk_open): Use it to un-escape "," characters.
38694 * kern/disk.c (find_part_sep): New.
38695 (grub_disk_open): Use it to find the first non-escaped ','
38696 character in the disk name.
38697 * util/ieee1275/devicemap.c (escape_of_path): New.
38698 (grub_util_emit_devicemap_entry): Use it.
38699 * util/sparc64/ieee1275/grub-install.in: Update script to
38700 strip partition specifiers properly by not triggering on
38701 '\' escaped ',' characters.
38702
38703 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38704
38705 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38706 to 0x300.
38707 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38708 resolutions.
38709 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38710 on documentation from Wikipedia).
38711
38712 2009-05-04 Pavel Roskin <proski@gnu.org>
38713
38714 * disk/ata.c: Spelling fixes.
38715 * disk/raid.c: Likewise.
38716 * disk/usbms.c: Likewise.
38717 * disk/dmraid_nvidia.c: Likewise.
38718 * kern/ieee1275/openfw.c: Likewise.
38719 * kern/ieee1275/init.c: Likewise.
38720 * kern/ieee1275/cmain.c: Likewise.
38721 * boot/i386/pc/cdboot.S: Likewise.
38722 * video/readers/png.c: Likewise.
38723 * video/i386/pc/vbe.c: Likewise.
38724 * fs/udf.c: Likewise.
38725 * fs/hfs.c: Likewise.
38726 * fs/reiserfs.c: Likewise.
38727 * efiemu/runtime/efiemu.c: Likewise.
38728 * efiemu/main.c: Likewise.
38729 * efiemu/mm.c: Likewise.
38730 * include/grub/elf.h: Likewise.
38731 * include/grub/xnu.h: Likewise.
38732 * include/grub/usbdesc.h: Likewise.
38733 * include/grub/usb.h: Likewise.
38734 * include/grub/script_sh.h: Likewise.
38735 * include/grub/lib/LzmaEnc.h: Likewise.
38736 * include/grub/efiemu/efiemu.h: Likewise.
38737 * include/grub/command.h: Likewise.
38738 * normal/menu.c: Likewise.
38739 * normal/main.c: Likewise.
38740 * normal/datetime.c: Likewise.
38741 * bus/usb/uhci.c: Likewise.
38742 * mmap/i386/uppermem.c: Likewise.
38743 * mmap/mmap.c: Likewise.
38744 * commands/acpi.c: Likewise.
38745 * commands/test.c: Likewise.
38746 * partmap/apple.c: Likewise.
38747 * font/font.c: Likewise.
38748 * loader/sparc64/ieee1275/linux.c: Likewise.
38749 * loader/macho.c: Likewise.
38750 * loader/i386/bsd_trampoline.S: Likewise.
38751 * loader/i386/bsd.c: Likewise.
38752 * loader/xnu.c: Likewise.
38753 * term/i386/pc/vesafb.c: Likewise.
38754 * term/usb_keyboard.c: Likewise.
38755 * util/resolve.c: Likewise.
38756 * util/getroot.c: Likewise.
38757
38758 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38759
38760 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38761
38762 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38763
38764 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38765 build error.
38766
38767 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38768
38769 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38770 parameter only available on BIOS.
38771
38772 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38773
38774 Removed wrong semicolon in declaration
38775
38776 * grub/misc.h (grub_dprintf): remove semicolon
38777
38778 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38779
38780 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38781 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38782 is done by grub_cmd_linux() now).
38783 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38784 restore video to text mode.
38785 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38786 indicates lack of "vga=" parameter. "vga=0" is mapped to
38787 `GRUB_LINUX_VID_MODE_NORMAL'.
38788
38789 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38790
38791 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38792 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38793 and `normal/script.c'. Add `kern/rescue_reader.c',
38794 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38795 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38796 `grub_script.tab.c'.
38797
38798 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38799 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38800 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38801 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38802 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38803
38804 * Makefile.in: Remove duplicated 2008 in Copyright line.
38805
38806 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38807
38808 * util/misc.c (grub_util_warn): New function. Emits a warning
38809 unconditionally.
38810 * include/grub/util/misc.h (grub_util_warn): New declaration.
38811
38812 * util/i386/pc/grub-install.in: Understand --force and pass it down
38813 to grub-setup.
38814
38815 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38816 down to setup().
38817 (setup): Improve error messages and add warnings when requested to
38818 install in odd layouts. Refuse to install using blocklists unless
38819 --force was set.
38820
38821 2009-05-04 martin f. krafft <madduck@madduck.net>
38822
38823 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38824
38825 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38826
38827 Updated copyright year
38828
38829 * fs/hfsplus.c: updated copyright year
38830
38831 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38832
38833 HFS+ UUID
38834
38835 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38836 in the space previously used by unused3
38837 (grub_hfsplus_uuid): new function
38838 (grub_hfsplus_fs): added uuid field
38839
38840 2009-05-03 Pavel Roskin <proski@gnu.org>
38841
38842 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38843 suppress warnings. It's no longer needed.
38844 * disk/host.c: Likewise.
38845 * disk/ata_pthru.c: Likewise.
38846 * disk/loopback.c: Likewise.
38847 * hook/datehook.c: Likewise.
38848 * parttool/pcpart.c: Likewise.
38849 * fs/i386/pc/pxe.c: Likewise.
38850 * fs/ntfscomp.c: Likewise.
38851 * efiemu/main.c: Likewise.
38852 * mmap/mmap.c: Likewise.
38853 * commands/crc.c: Likewise.
38854 * commands/hexdump.c: Likewise.
38855 * commands/hdparm.c: Likewise.
38856 * commands/acpi.c: Likewise.
38857 * commands/echo.c: Likewise.
38858 * commands/minicmd.c: Likewise.
38859 * commands/blocklist.c: Likewise.
38860 * commands/memrw.c: Likewise.
38861 * commands/loadenv.c: Likewise.
38862 * commands/usbtest.c: Likewise.
38863 * commands/lsmmap.c: Likewise.
38864 * commands/boot.c: Likewise.
38865 * commands/parttool.c: Likewise.
38866 * commands/configfile.c: Likewise.
38867 * commands/search.c: Likewise.
38868 * commands/ieee1275/suspend.c: Likewise.
38869 * commands/cat.c: Likewise.
38870 * commands/i386/pc/pxecmd.c: Likewise.
38871 * commands/i386/pc/play.c: Likewise.
38872 * commands/i386/pc/halt.c: Likewise.
38873 * commands/i386/pc/vbeinfo.c: Likewise.
38874 * commands/i386/pc/vbetest.c: Likewise.
38875 * commands/lspci.c: Likewise.
38876 * commands/date.c: Likewise.
38877 * commands/handler.c: Likewise.
38878 * commands/ls.c: Likewise.
38879 * commands/test.c: Likewise.
38880 * commands/cmp.c: Likewise.
38881 * commands/efi/loadbios.c: Likewise.
38882 * commands/efi/fixvideo.c: Likewise.
38883 * commands/halt.c: Likewise.
38884 * commands/help.c: Likewise.
38885 * commands/reboot.c: Likewise.
38886 * hello/hello.c: Likewise.
38887 * script/sh/main.c: Likewise.
38888 * loader/xnu.c: Likewise.
38889 * term/terminfo.c: Likewise.
38890 * term/i386/pc/serial.c: Likewise.
38891 * term/usb_keyboard.c: Likewise.
38892
38893 2009-05-03 David S. Miller <davem@davemloft.net>
38894
38895 * normal/menu.c: Include grub/parser.h
38896
38897 2009-05-03 Pavel Roskin <proski@gnu.org>
38898
38899 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38900 not char*.
38901 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38902 Suggested by Javier Martín <lordhabbit@gmail.com>
38903
38904 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38905 efiemu??.o doesn't exist.
38906 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38907 copying.
38908
38909 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38910
38911 FreeBSD 64-bit support
38912
38913 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38914 and loader/i386/bsd_trampoline.S
38915 (bsd_mod_ASFLAGS): new variable
38916 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38917 (FREEBSD_MODTYPE_KERNEL64): likewise
38918 (grub_bsd64_trampoline_start): likewise
38919 (grub_bsd64_trampoline_end): likewise
38920 (grub_bsd64_trampoline_selfjump): likewise
38921 (grub_bsd64_trampoline_gdt): likewise
38922 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38923 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38924 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38925 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38926 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38927 of "attrib" member
38928 * loader/i386/bsd_pagetable.c: new file
38929 * loader/i386/bsd_trampoline.S: likewise
38930 * loader/i386/bsd.c (ALIGN_QWORD): new macro
38931 (ALIGN_VAR): likewise
38932 (entry_hi): new variable
38933 (kern_end_mdofs): likewise
38934 (is_64bit): likewise
38935 (grub_freebsd_add_meta): use ALIGN_VAR
38936 (grub_e820_mmap): new declaration
38937 (grub_freebsd_add_mmap): new function
38938 (grub_freebsd_add_meta_module): support 64 bit kernels
38939 (grub_freebsd_list_modules): use ALIGN_VAR
38940 (gdt_descriptor): new declaration
38941 (grub_freebsd_boot): support 64 bit kernels
38942 (grub_bsd_elf64_hook): new function
38943 (grub_bsd_load_elf): support elf64
38944
38945 2009-05-03 Bean <bean123ch@gmail.com>
38946
38947 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
38948 after we get the result of if statement.
38949
38950 2009-05-03 Bean <bean123ch@gmail.com>
38951
38952 * Makefile.in (enable_efiemu): New variable.
38953
38954 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
38955 set.
38956 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
38957 path.
38958 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
38959 path, add -mno-red-zone option.
38960 (efiemu64_s.o): Likewise.
38961 (efiemu64.o): Use macro $^ for source file.
38962
38963 * configure.ac (--enable-efiemu): New option.
38964
38965 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
38966
38967 xnu support
38968
38969 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
38970 (pkglib_MODULES): add xnu.mod
38971 (xnu_mod_SOURCES): new variable
38972 (xnu_mod_CFLAGS): likewise
38973 (xnu_mod_LDFLAGS): likewise
38974 (xnu_mod_ASFLAGS): likewise
38975 * conf/i386-pc.rmk: likewise
38976 * conf/x86_64-efi.rmk: likewise
38977 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
38978 new declaration
38979 * include/grub/i386/macho.h: new file
38980 * include/grub/i386/xnu.h: likewise
38981 * include/grub/macho.h: likewise
38982 * include/grub/machoload.h: likewise
38983 * include/grub/x86_64/macho.h: likewise
38984 * include/grub/x86_64/xnu.h: likewise
38985 * include/grub/xnu.h: likewise
38986 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
38987 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
38988 * loader/i386/efi/xnu.c: new file
38989 * loader/i386/pc/xnu.c: likewise
38990 * loader/i386/xnu.c: likewise
38991 * loader/i386/xnu_helper.S: likewise
38992 * loader/macho.c: likewise
38993 * loader/xnu.c: likewise
38994 * loader/xnu_resume.c: likewise
38995 * util/grub-dumpdevtree: likewise
38996 * include/grub/i386/pit.h: include grub/err.h
38997 (grub_pit_wait): export
38998 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
38999
39000 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39001
39002 Efiemu
39003
39004 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39005 _linux_efi, linux_efi.
39006 new files in grub-emu
39007 new targets efiemu32.o and efiemu64.o
39008 * loader/linux_normal_efiemu.c: likewise
39009 * loader/i386/efi/linux.c: added preliminary efiemu support
39010 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39011 files to copy
39012 * include/grub/autoefi.h: new file
39013 * include/grub/i386/efiemu.h: likewise
39014 * include/grub/i386/pc/efiemu.h: likewise
39015 * include/grub/efi/api.h: add LL suffix when necessary
39016 new definitions relating to tables
39017 * include/grub/efiemu/efiemu.h: new file
39018 * include/grub/efiemu/runtime.h: likewise
39019 * efiemu/prepare.c: likewise
39020 * efiemu/loadcore_common.c: likewise
39021 * efiemu/loadcore64.c: likewise
39022 * efiemu/runtime/efiemu.sh: likewise
39023 * efiemu/runtime/efiemu.S: likewise
39024 * efiemu/runtime/efiemu.c: likewise
39025 * efiemu/runtime/config.h: likewise
39026 * efiemu/prepare32.c: likewise
39027 * efiemu/main.c: likewise
39028 * efiemu/modules/pnvram.c: likewise
39029 * efiemu/modules/i386: likewise
39030 * efiemu/modules/i386/pc: likewise
39031 * efiemu/modules/acpi.c: likewise
39032 * efiemu/i386/pc/cfgtables.c: likewise
39033 * efiemu/i386/loadcore64.c: likewise
39034 * efiemu/i386/loadcore32.c: likewise
39035 * efiemu/prepare64.c: likewise
39036 * efiemu/loadcore.c: likewise
39037 * efiemu/symbols.c: likewise
39038 * efiemu/mm.c: likewise
39039 * efiemu/loadcore32.c: likewise
39040
39041 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39042
39043 ACPI spoofing
39044
39045 * commands/acpi.c: new file
39046 * commands/i386/pc/acpi.c: likewise
39047 * commands/efi/acpi.c: likewise
39048 * include/grub/acpi.h: likewise
39049 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39050 (acpi_mod_SOURCES): new variable
39051 (acpi_mod_CFLAGS): likewise
39052 (acpi_mod_LDFLAGS): likewise
39053 * conf/i386-efi.rmk: likewise
39054 * conf/x86_64-efi.rmk: likewise
39055
39056 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39057
39058 Missing part from mmap patch
39059
39060 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39061 (grub_mmap_unregister)
39062 (grub_mmap_free_and_unregister): use grub_mmap_register
39063
39064 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39065
39066 Mmap services
39067
39068 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39069 * loader/i386/linux.c (find_mmap_size): likewise
39070 (allocate_pages): likewise
39071 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39072 (grub_fill_multiboot_mmap): likewise
39073 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39074 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39075 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39076 (OPENBSD_MMAP_RESERVED): likewise
39077 * include/grub/i386/pc/memory.h: include grub/memory.h
39078 (grub_lower_mem): removed
39079 (grub_upper_mem): likewise
39080 (GRUB_MACHINE_MEMORY_ACPI): new definition
39081 (GRUB_MACHINE_MEMORY_NVS): likewise
39082 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39083 (GRUB_MACHINE_MEMORY_HOLE): likewise
39084 (grub_machine_mmap_register): likewise
39085 (grub_machine_mmap_unregister): likewise
39086 (grub_machine_get_upper): likewise
39087 (grub_machine_get_lower): likewise
39088 (grub_machine_get_post64): likewise
39089 * include/grub/i386/efi/memory.h: new file
39090 * include/grub/x86_64/efi/memory.h: likewise
39091 * include/grub/efi/memory.h: likewise
39092 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39093 (mmap_mod_SOURCES): new variable
39094 (mmap_mod_LDFLAGS): likewise
39095 (mmap_mod_ASFLAGS): likewise
39096 * conf/i386-coreboot.rmk: likewise
39097 * conf/i386-ieee1275.rmk: likewise
39098 * conf/i386-efi.rmk: likewise
39099 * conf/x86_64-efi.rmk: likewise
39100 * include/grub/types.h (UINT_TO_PTR): new macro
39101 (PTR_TO_UINT32): likewise
39102 (PTR_TO_UINT64): likewise
39103 * include/grub/memory.h: new file
39104 * mmap/i386/pc/mmap.c: likewise
39105 * mmap/i386/pc/mmap_helper.S: likewise
39106 * mmap/i386/uppermem.c: likewise
39107 * mmap/mmap.c: likewise
39108 * mmap/efi/mmap.c: likewise
39109 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39110 grub_upper_mem
39111 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39112 (grub_upper_mem): likewise
39113 (grub_machine_init): don't use grub_upper_mem,
39114 make grub_lower_mem local
39115 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39116 grub_mmap_iterate and grub_mmap_get_upper
39117 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39118
39119 2009-05-02 Bean <bean123ch@gmail.com>
39120
39121 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39122 script/sh/parser.y.
39123 (pkglib_MODULES): Add normal.mod and sh.mod.
39124 (normal_SOURCES): New variable.
39125 (normal_mod_CFLAGS): Likewise.
39126 (normal_mod_LDFLAGS): Likewise.
39127 (sh_mod_SOURCES): Likewise.
39128 (sh_mod_CFLAGS): Likewise.
39129 (sh_mod_LDFLAGS): Likewise.
39130
39131 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39132 script/sh/lexer.c_DEPENDENCIES.
39133 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39134 kern/rescue_reader.c and kern/rescue_parser.c.
39135 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39136 (grub_emu_SOURCES): Change source files.
39137 (pkglib_MODULES): Remove normal.mod.
39138 (normal_SOURCES): Removed.
39139 (normal_mod_CFLAGS): Likewise.
39140 (normal_mod_LDFLAGS): Likewise.
39141 * conf/i386-coreboot.rmk: Likewise.
39142 * conf/i386-efi.rmk: Likewise.
39143 * conf/i386-ieee1276.rmk: Likewise.
39144 * conf/powerpc-ieee1275.rmk: Likewise.
39145 * conf/sparc64-ieee1275.rmk: Likewise.
39146 * conf/x86_64-efi.rmk: Likewise.
39147
39148 * include/grub/command.h (grub_command_execute): New inline function.
39149
39150 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39151
39152 * include/grub/normal.h: Remove <grub/setjmp.h>.
39153 (grub_fs_module_list): Moved to normal/autofs.c.
39154 (grub_exit_env): Removed.
39155 (grub_command_execute): Likewise.
39156 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39157 parameter script.
39158 (read_command_list): New function declaration.
39159 (read_fs_list): Likewise.
39160
39161 * include/parser.h: Include <grub/reader.h>.
39162 (grub_parser_split_cmdline): Change type of getline parameter.
39163 (grub_parser): New structure.
39164 (grub_parser_class): New variable.
39165 (grub_parser_execute): New function declaration.
39166 (grub_register_rescue_parser): Likewise.
39167 (grub_parser_register): New inline function.
39168 (grub_parser_unregister): Likewise.
39169 (grub_parser_get_current): Likewise.
39170 (grub_parser_set_current): Likewise.
39171
39172 * include/grub/reader.h: New file.
39173 * kern/reader.c: Likewise.
39174 * kern/rescue_parser.c: Likewise.
39175 * kern/rescue_reader.c: Likewise.
39176 * normal/autofs.c: Likewise.
39177 * normal/dyncmd.c: Likewise.
39178
39179 * include/grub/rescue.h: Removed.
39180 * normal/command.h: Likewise.
39181
39182 * include/grub/script.h: Moved to ...
39183 * include/grub/script_sh.h: ... Moved here.
39184 * normal/execute.c: Moved to ...
39185 * script/sh/execute.c: ... Moved here.
39186 * normal/function.c: Moved to ...
39187 * script/sh/function.c: ... Moved here.
39188 * normal/lexer.c: Moved to ...
39189 * script/sh/lexer.c: ... Moved here.
39190 * normal/parser.y: Moved to ...
39191 * script/sh/parser.y: ... Moved here.
39192 * normal/script.c: Moved to ...
39193 * script/sh/script.c: ... Moved here.
39194
39195 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39196 <grub/reader.h>.
39197 (grub_exit_env): Removed.
39198 (fs_module_list): Moved to normal/autofs.c.
39199 (grub_file_getline): Don't handle comment here.
39200 (free_menu): Skip removed field entry->commands.
39201 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39202 script parameter.
39203 (read_config_file): Removed nested parameter, change getline function.
39204 (grub_enter_normal_mode): Removed.
39205 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39206 (read_command_list): Likewise.
39207 (autoload_fs_module): Moved to normal/autofs.c.
39208 (read_fs_list): Likewise.
39209 (reader_nested): New variable.
39210 (grub_normal_execute): Run parser.sh to switch to sh parser.
39211 (grub_cmd_rescue): Removed.
39212 (cmd_normal): Removed.
39213 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39214 rescue command.
39215 (grub_cmdline_run): New function.
39216 (grub_normal_reader_init): Likewise.
39217 (grub_normal_read_line): Likewise.
39218 (grub_env_write_pager): Likewise.
39219 (cmdline): New variable.
39220 (grub_normal_reader): Likewise.
39221 (GRUB_MOD_INIT): Register normal reader and set as current, register
39222 pager hook, register normal command with grub_register_command_prio,
39223 so that it won't show up in command.lst.
39224 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39225 grub_fs_autoload_hook.
39226
39227 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39228 (grub_menu_execute_entry): Replace grub_script_execute with
39229 grub_parser_execute, change parameter to grub_command_execute.
39230
39231 * normal/menu_text.c: Remove <grub/script.h>.
39232
39233 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39234 and <grub/parser.h>.
39235 (run): Change editor_getline to use new parser interface. Change
39236 parameter to grub_command_execute.
39237
39238 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39239 <grub/reader.h> and <grub/parser.h>.
39240 (grub_load_normal_mode): Execute normal command.
39241 (grub_main): Call grub_register_core_commands,
39242 grub_register_rescue_parser and grub_register_rescue_reader, use
39243 grub_reader_loop to enter input loop.
39244
39245 * kern/parser.c (grub_parser_split_cmdline): Change type of
39246 getline parameter.
39247 (grub_parser_class): New variable.
39248 (grub_parser_execute): New function.
39249
39250 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39251 * loader/multiboot2.c: Likewise.
39252 * loader/sparc64/ieee1275/linux.c: Likewise.
39253
39254 * util/grub-emu.c (read_command_list): New dummy function.
39255
39256 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39257
39258 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39259 count to 16 for CCISS and IDA.
39260
39261 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39262
39263 * normal/menu_text.c (grub_wait_after_message): Print a newline
39264 after waiting for user input.
39265
39266 * loader/i386/linux.c: Include `<grub/normal.h>'.
39267 (grub_cmd_linux): Improve the error message about `ask' mode, by
39268 waiting for user input so it's not missed (we can do this, since
39269 user requested interaction).
39270
39271 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39272
39273 Added missing lst to grub-mkrescue
39274
39275 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39276 and ${input_dir}/parttool.lst
39277
39278 2009-04-30 David S. Miller <davem@davemloft.net>
39279
39280 * util/hostdisk.c (device_is_wholedisk): New function.
39281 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39282 zero only if device_is_wholedisk() returns true.
39283
39284 * util/hostdisk.c (convert_system_partition_to_system_disk):
39285 Handle virtual disk devices named /dev/vdiskX as found on sparc
39286 and powerpc.
39287
39288 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39289 lettered partition specifier is found, convert to numbered.
39290
39291 2009-04-29 David S. Miller <davem@davemloft.net>
39292
39293 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39294 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39295
39296 * normal/command.c: Add missing newline at end of file.
39297
39298 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39299 warnings.
39300 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39301 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39302 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39303 ihandles have a 32-bit type but need to be stored in a "void *".
39304
39305 2009-04-28 Pavel Roskin <proski@gnu.org>
39306
39307 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39308 not disk. Adjust all dependencies.
39309 (grub_fs_uuid_close): Use grub_device_close(), not
39310 grub_disk_close().
39311
39312 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39313 parent's partition, don't copy it by reference, as it gets freed
39314 on close.
39315
39316 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39317
39318 Preboot hooks support
39319
39320 * commands/boot.c (struct grub_preboot_t): new declaration
39321 (preboots_head): new variable
39322 (preboots_tail): likewise
39323 (grub_loader_register_preboot_hook): new function
39324 (grub_loader_unregister_preboot_hook): likewise
39325 (grub_loader_set): launch preboot hooks
39326 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39327 (grub_loader_register_preboot_hook): new declaration
39328 (grub_loader_unregister_preboot_hook): likewise
39329
39330 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39331
39332 Warning fix
39333
39334 * disk/scsi.c (grub_scsi_open): added missing cast when
39335 calling grub_dprintf
39336
39337 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39338
39339 Bug and warning fixes
39340
39341 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39342 declaration
39343 * commands/test.c (test_parse): fixed bug with file tests and corrected
39344 declaration of find_file
39345
39346 2009-04-26 Pavel Roskin <proski@gnu.org>
39347
39348 * Makefile.in: Don't install empty manual pages if help2man is
39349 missing. Use help2man option for output, not shell redirection.
39350
39351 2009-04-26 David S. Miller <davem@davemloft.net>
39352
39353 * util/grub-mkdevicemap.c (make_device_map): Add missing
39354 NESTED_FUNC_ATTR to process_device().
39355
39356 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39357
39358 Test command
39359
39360 * commands/test.c: rewritten to use bash-like test
39361
39362 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39363
39364 Parttool autoloading and improvements
39365
39366 * Makefile.in (pkglib_DATA): add parttool.lst
39367 (parttool.lst): new target
39368 * genmk.rb: generate parttool-*
39369 (CLEANFILES): add #{parttool}
39370 (PARTTOOLFILES): new variable
39371 * genparttoollist.sh: new file
39372 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39373 (grub_pcpart_type): likewise
39374 * commands/parttool.c (helpmsg): new variable
39375 (grub_cmd_parttool): output help if not enough arguments are supplied
39376 autoload modules
39377 (GRUB_MOD_INIT(parttool)): use helpmsg
39378
39379 2009-04-24 David S. Miller <davem@davemloft.net>
39380
39381 Avoiding opening same device multiple times in device iterator.
39382
39383 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39384 and use it to build a list of partitions in iterate_disk() and
39385 iterate_partition().
39386
39387 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39388 on disk->data.
39389
39390 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39391 grub_devalias_iterate() result instead of unconditional 0.
39392 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39393 Also, capture hook return value, either directly or via
39394 grub_children_iterate(), and propagate to caller.
39395 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39396 grub_children_iterate): Return value is now 'int' instead of
39397 'grub_err_t'.
39398 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39399 like a proper iterator, stopping when hooks return non-zero.
39400 (grub_devalias_iterate): Likewise.
39401
39402 2009-04-23 David S. Miller <davem@davemloft.net>
39403
39404 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39405
39406 2009-04-22 David S. Miller <davem@davemloft.net>
39407
39408 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39409 is larger than address_cells, use that value for address_cells too.
39410
39411 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39412 IEEE1275_MAX_PATH_LEN): Define.
39413 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39414 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39415 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39416 'devtype'. Explicitly NULL terminate devalias expansion.
39417
39418 * util/sparc64/ieee1275/misc.c: New file.
39419 * util/sparc64/ieee1275/grub-setup.c: New file.
39420 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39421 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39422 * util/sparc64/ieee1275/grub-install.in: New file.
39423 * util/ieee1275/ofpath.c: New file.
39424 * util/ieee1275/devicemap.c: New file.
39425 * util/devicemap.c: New file.
39426 * util/deviceiter.c: New file.
39427 * kern/sparc64/ieee1275/init.c: New file.
39428 * include/grub/util/ofpath.h: New file.
39429 * include/grub/util/deviceiter.h: New file.
39430 * util/grub-mkdevicemap.c: Include deviceiter.h.
39431 Implement using grub_util_emit_devicemap_entry and
39432 grub_util_iterate_devices.
39433 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39434 util/devicemap.c into grub-mkdevicemap
39435 * conf/i386-efi.rmk: Likewise.
39436 * conf/i386-ieee1275.rmk: Likewise.
39437 * conf/i386-pc.rmk: Likewise.
39438 * conf/powerpc-ieee1275.rmk: Likewise.
39439 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39440 images and installation utilities. Build kernel as image
39441 instead of as elf binary. Use common rules as much as possible.
39442
39443 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39444
39445 Correct GPT definition
39446
39447 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39448 of "attrib" member
39449
39450 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39451
39452 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39453
39454 2009-04-19 David S. Miller <davem@davemloft.net>
39455
39456 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39457 (grub_rescue_cmd_linux): Rename to...
39458 (grub_cmd_linux): and fix prototype.
39459 (grub_rescue_cmd_initrd): Rename to...
39460 (grub_cmd_initrd): and fix prototype.
39461 (cmd_linux, cmd_initrd): New.
39462 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39463 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39464
39465 2009-04-17 Pavel Roskin <proski@gnu.org>
39466
39467 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39468 format.
39469 (grub_ohci_transfer): Likewise.
39470
39471 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39472
39473 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39474 return without a value. Fix inconsistent indentation.
39475
39476 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39477 match struct grub_fs.
39478
39479 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39480 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39481 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39482 * commands/lspci.c (grub_lspci_iter): Likewise.
39483
39484 2009-04-16 Bean <bean123ch@gmail.com>
39485
39486 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39487 value.
39488
39489 2009-04-15 Pavel Roskin <proski@gnu.org>
39490
39491 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39492 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39493 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39494 definitions.
39495
39496 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39497
39498 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39499 that no multiple data or metadata areas are supported and `Unknown
39500 metadata header'.
39501
39502 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39503
39504 Move loader out of the kernel
39505
39506 * kern/loader.c: moved to ...
39507 * commands/boot.c: ... moved here
39508 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39509 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39510 * include/grub/kernel.h (grub_machine_fini): export
39511 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39512 (grub_loader_set): likewise
39513 (grub_loader_unset): likewise
39514 (grub_loader_boot): likewise
39515 * conf/common.rmk: new module boot.mod
39516 (pkglib_MODULES): add boot.mod
39517 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39518 (grub_emu_SOURCES): likewise
39519 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39520 (grub_emu_SOURCES): likewise
39521 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39522 (grub_emu_SOURCES): likewise
39523 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39524 (grub_emu_SOURCES): likewise
39525 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39526 (grub_emu_SOURCES): likewise
39527 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39528 (grub_emu_SOURCES): likewise
39529 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39530 (grub_emu_SOURCES): likewise
39531
39532 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39533
39534 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39535
39536 * kern/misc.c (grub_itoa): Removed function
39537 (grub_ltoa): likewise
39538 (grub_vsprintf): use grub_lltoa
39539
39540 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39541
39542 Restore grub-emu
39543
39544 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39545 * conf/i386-coreboot.rmk: likewise
39546 * conf/i386-ieee1275.rmk: likewise
39547 * conf/powerpc-ieee1275.rmk: likewise
39548
39549 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39550
39551 * INSTALL: Add that `./autogen.sh' needs to be run before
39552 `./configure.'.
39553
39554 2009-04-14 Bean <bean123ch@gmail.com>
39555
39556 * Makefile.in (pkglib_DATA): Add handler.lst.
39557 (handler.lst): New rule.
39558
39559 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39560 * conf/i386-coreboot.rmk: Likewise.
39561 * conf/i386-ieee1275.rmk: Likewise.
39562 * conf/i386-efi.rmk: Likewise.
39563 * conf/x86_64-efi.rmk: Likewise.
39564 * conf/powerpc-ieee1275.rmk: Likewise.
39565 * conf/sparc64-ieee1275.rmk: Likewise.
39566
39567 * genhandlerlist.sh: New file.
39568
39569 * genmk.rb: Add rules to generate handler.lst.
39570
39571 * include/grub/normal.h (grub_file_getline): New function definition.
39572 (read_handler_list): Likewise.
39573 (free_handler_list): Likewise.
39574
39575 * include/grub/term.h (grub_term_register_input): Add name parameter
39576 for auto generation of handler.lst.
39577 (grub_term_register_output): Likewise.
39578
39579 * normal/handler.c: New file.
39580
39581 * normal/main.c (get_line): Renamed to grub_file_getline.
39582 (read_config_file): Use the newly renamed grub_file_getline.
39583 (read_command_list): Likewise.
39584 (read_fs_list): Likewise.
39585 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39586 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39587
39588 * term/efi/console.c (grub_console_init): Add name parameter for auto
39589 generation of handler.lst.
39590 * term/gfxterm.c: Likewise.
39591 * term/i386/pc/at_keyboard.c: Likewise.
39592 * term/i386/pc/console.c: Likewise.
39593 * term/i386/pc/serial.c: Likewise.
39594 * term/i386/pc/vesafb.c: Likewise.
39595 * term/i386/pc/vga.c: Likewise.
39596 * term/i386/pc/vga_text.c: Likewise.
39597 * term/ieee1275/ofconsole.c: Likewise.
39598 * term/usb_keyboard.c: Likewise.
39599
39600 2009-04-14 Bean <bean123ch@gmail.com>
39601
39602 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39603 properly with null character.
39604
39605 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39606
39607 * configure: Remove.
39608 * config.h.in: Likewise.
39609 * stamp-h.in: Likewise.
39610 * DISTLIST: Likewise.
39611 * conf/common.mk: Likewise.
39612 * conf/i386-coreboot.mk: Likewise.
39613 * conf/i386-efi.mk: Likewise.
39614 * conf/i386-ieee1275.mk: Likewise.
39615 * conf/i386.mk: Likewise.
39616 * conf/i386-pc.mk: Likewise.
39617 * conf/powerpc-ieee1275.mk: Likewise.
39618 * conf/sparc64-ieee1275.mk: Likewise.
39619 * conf/x86_64-efi.mk: Likewise.
39620
39621 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39622 develop on GRUB.
39623
39624 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39625 David S. Miller <davem@davemloft.net>
39626
39627 * util/hostdisk.c (make_device_name): Fix buffer length
39628 calculations.
39629
39630 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39631
39632 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39633 <sys/param.h> and <sys/sysctl.h>.
39634 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39635 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39636 opening the device and reset them afterwards.
39637
39638 2009-04-13 Pavel Roskin <proski@gnu.org>
39639
39640 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39641 Reported by John Stanley <jpsinthemix@verizon.net>
39642
39643 2009-04-13 Robert Millan <rmh@aybabtu.com>
39644
39645 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39646 that name for menuentries when appropriate.
39647
39648 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39649
39650 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39651
39652 2009-04-13 Robert Millan <rmh@aybabtu.com>
39653
39654 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39655 to Linux, simply abort telling the user it's no longer supported.
39656
39657 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39658
39659 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39660 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39661 `freebsd_loadenv' only when devices.hints exist.
39662
39663 2009-04-13 Pavel Roskin <proski@gnu.org>
39664
39665 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39666
39667 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39668
39669 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39670 partition number.
39671 (grub_drive): Likewise.
39672
39673 2009-04-13 David S. Miller <davem@davemloft.net>
39674
39675 * kern/sparc64/ieee1275/ieee1275.c: New file.
39676 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39677 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39678 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39679 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39680 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39681 grub_ieee1275_alloc_physmem): Declare new exported functions.
39682
39683 * include/grub/sparc64/ieee1275/loader.h: New file.
39684 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39685 * include/grub/sparc64/kernel.h: Likewise.
39686 * loader/sparc64/ieee1275/linux.c: Likewise.
39687
39688 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39689 (grub_fstest_SOURCES): Likewise.
39690
39691 * util/hostdisk.c (make_device_name): Do not make any assumptions
39692 about the length of drive names.
39693
39694 * kern/dl.c (grub_dl_load_file): Close file immediately when
39695 we are done using it.
39696
39697 2009-04-12 David S. Miller <davem@davemloft.net>
39698
39699 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39700 values. Noticed by Pavel Roskin.
39701
39702 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39703 target compiler.
39704
39705 * genmk.rb: Add more flexible image type specification, also
39706 pass --strip-unneeded to objcopy.
39707 * conf/i386-pc.rmk: Use *_FORMAT.
39708 * conf/i386-pc.mk: Rebuilt.
39709
39710 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39711 (OFDISK_HASH_SZ): Define.
39712 (ofdisk_hash): New hash table.
39713 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39714 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39715 instead of device phandle which is not unique.
39716
39717 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39718 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39719 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39720 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39721 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39722 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39723 GRUB_KERNEL_MACHINE_DATA_END): Define.
39724 (grub_kernel_image_size, grub_total_module_size): Declare.
39725
39726 2009-04-12 Pavel Roskin <proski@gnu.org>
39727
39728 * configure.ac: Change the logic when we check for target tools.
39729 Do it when the target is specified and it's different from the
39730 specified value of the host.
39731
39732 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39733
39734 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39735 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39736 GNU/kFreeBSD. Check if a device is a character device. Use
39737 DIOCGMEDIASIZE to get the size.
39738 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39739 support for GNU/kFreeBSD.
39740 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: 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_kernel__]: Check if ENT
39745 is a character device instead of a block device.
39746
39747 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39748 is a character device instead of a block device.
39749
39750 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39751
39752 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39753 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39754 FreeBSD. Check if a device is a character device. Use
39755 DIOCGMEDIASIZE to get the size.
39756 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39757 support for FreeBSD.
39758 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39759 is a character device instead of a block device. Add support for
39760 FreeBSD device names.
39761
39762 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39763 a character device instead of a block device.
39764 (grub_util_check_char_device): New function.
39765
39766 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39767 a character device instead of a block device.
39768
39769 * include/grub/util/getroot.h (grub_util_check_char_device): New
39770 prototype.
39771
39772 2009-04-11 David S. Miller <davem@davemloft.net>
39773
39774 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39775 static libgcc.
39776 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39777 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39778 function, if present.
39779 (__bswapdi2): Likewise.
39780
39781 * include/grub/sparc64/ieee1275/boot.h: New file.
39782 * boot/sparc64/ieee1275/boot.S: Likewise.
39783 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39784
39785 * kern/misc.c (grub_ltoa): New function.
39786 (grub_vsprintf): Use it to format 'long' integers.
39787
39788 2009-04-10 David S. Miller <davem@davemloft.net>
39789
39790 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39791 slots are of type grub_ieee1275_cell_t.
39792 (grub_nand_read): Likewise.
39793 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39794 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39795 macros are used to compare values in arg/ret block of the call.
39796 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39797 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39798 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39799 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39800 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39801 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39802 grub_ieee1275_close, grub_ieee1275_set_property,
39803 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39804 grub_ieee1275_cell_t.
39805 * kern/ieee1275/openfw.c (grub_map): Likewise.
39806 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39807 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39808
39809 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39810 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39811 (grub_devalias_iterate): Likewise.
39812
39813 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39814
39815 UFS improvements
39816
39817 * fs/ufs.c (INODE_NBLOCKS): new definition
39818 (struct grub_ufs_dirent): added fields for non-BSD dirents
39819 (grub_ufs_get_file_block): fixed double indirect handling
39820 (grub_ufs_lookup_symlink): use more robust way to determine whether
39821 symlink is inline
39822 (grub_ufs_find_file): support for non-BSD dirents
39823 (grub_ufs_dir): support for non-BSD dirents
39824
39825 2009-04-10 Bean <bean123ch@gnail.com>
39826
39827 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39828 attribute, otherwise the size would be wrong for i386 platform.
39829
39830 * include/grub/pci.h (grub_pci_read_word): New inline function.
39831 (grub_pci_read_byte): Likewise.
39832 (grub_pci_write): Likewise.
39833 (grub_pci_write_word): Likewise.
39834 (grub_pci_write_byte): Likewise.
39835
39836 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39837
39838 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39839 (find_framebuf): Scan pci to locate the frame buffer address.
39840
39841 * commands/efi/fixvideo.c: New file.
39842
39843 * commands/efi/loadbios.c: Likewise.
39844
39845 * commands/memrw.c: Likewise.
39846
39847 * util/grub-dumpbios.in: Likewise.
39848
39849 * conf/common.rmk (grub-dumpbios): New utility.
39850 (pkglib_MODULES): New module memrw.mod.
39851 (memrw_mod_SOURCE): New macro.
39852 (memrw_mod_CFLAGS): Likewise.
39853 (memrw_mod_LDFLAGS): Likewise.
39854
39855 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39856 fixvideo.mod.
39857 (loadbios_mod_SOURCE): New macro.
39858 (loadbios_mod_CFLAGS): Likewise.
39859 (loadbios_mod_LDFLAGS): Likewise.
39860 (fixvideo_mod_SOURCE): Likewise.
39861 (fixvideo_mod_CFLAGS): Likewise.
39862 (fixvideo_mod_LDFLAGS): Likewise.
39863
39864 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39865 fixvideo.mod.
39866 (loadbios_mod_SOURCE): New macro.
39867 (loadbios_mod_CFLAGS): Likewise.
39868 (loadbios_mod_LDFLAGS): Likewise.
39869 (fixvideo_mod_SOURCE): Likewise.
39870 (fixvideo_mod_CFLAGS): Likewise.
39871 (fixvideo_mod_LDFLAGS): Likewise.
39872
39873 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39874
39875 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39876
39877 2009-04-07 David S. Miller <davem@davemloft.net>
39878
39879 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39880 support for R_SPARC_OLO10 relocations. Fix compile warning for
39881 R_SPARC_WDISP30 case.
39882 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39883
39884 2009-04-06 Pavel Roskin <proski@gnu.org>
39885
39886 * include/grub/misc.h (ARRAY_SIZE): New macro.
39887 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39888 New macro.
39889 * loader/i386/linux.c (allocate_pages): Use free_pages().
39890 (grub_linux_unload): Don't use free_pages().
39891 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39892 wrong index. Treat all other modes as text modes.
39893 (grub_cmd_linux): Initialize vid_mode unconditionally to
39894 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39895
39896 * commands/help.c (print_command_help): Use cmd->prio, not
39897 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39898
39899 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39900
39901 Parttool
39902
39903 * parttool/pcpart.c: new file
39904 * commands/parttool.c: likewise
39905 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39906 (parttool_mod_SOURCES): new variable
39907 (parttool_mod_CFLAGS): likewise
39908 (parttool_mod_LDFLAGS): likewise
39909 (pcpart_mod_SOURCES): likewise
39910 (pcpart_mod_CFLAGS): likewise
39911 (pcpart_mod_LDFLAGS): likewise
39912 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39913 and parttool/pcpart.c
39914 * conf/i386-efi.rmk: likewise
39915 * conf/i386-ieee1275.rmk: likewise
39916 * conf/i386-pc.rmk: likewise
39917 * conf/powerpc-ieee1275.rmk: likewise
39918 * conf/sparc64-ieee1275.rmk: likewise
39919 * conf/x86_64-ieee1275.rmk: likewise
39920
39921 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39922
39923 Support for mtime and further expandability of dir command
39924
39925 * include/grub/lib/datetime.h: moved to ...
39926 * include/grub/datetime.h: ... moved here and added
39927 declaration of grub_unixtime2datetime. All users updated
39928 * include/grub/fs.h: new syntax for dir and mtime functions in
39929 struct grub_fs
39930 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
39931 and GRUB_FSHELP_FLAGS_MASK
39932 * commands/ls.c (grub_ls_list_files): Write mtime in long format
39933 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
39934 (grub_ext2_mtime): new function
39935 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
39936 (grub_hfsplus_mtime): new function
39937 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
39938 (GRUB_UFS_ATTR_FILE): likewise
39939 (GRUB_UFS_ATTR_LNK): likewise
39940 (struct grub_ufs_sblock): new fields mtime
39941 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
39942 all users updated
39943 (grub_ufs_dir): mtime support
39944 (grub_ufs_mtime): new function
39945 * fs/affs.c (grub_affs_dir): use new dir syntax
39946 * fs/afs.c (grub_afs_dir): likewise
39947 * fs/cpio.c (grub_cpio_dir): likewise
39948 * fs/fat.c (grub_fat_find_dir): likewise
39949 * fs/hfs.c (grub_hfs_dir): likewise
39950 * fs/iso9660.c (grub_iso9660_dir): likewise
39951 * fs/jfs.c (grub_jfs_dir): likewise
39952 * fs/minix.c (grub_minix_dir): likewise
39953 * fs/ntfs.c (grub_ntfs_dir): likewise
39954 * fs/reiserfs.c (grub_reiserfs_dir): likewise
39955 * fs/sfs.c (grub_sfs_dir): likewise
39956 * fs/xfs.c (grub_xfs_dir): likewise
39957 * util/hostfs.c (grub_hostfs_dir): likewise
39958 * lib/datetime.c: moved to ...
39959 * normal/datetime.c: ... moved here
39960 (grub_unixtime2datetime): new function
39961 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
39962 * normal/completion.c (iterate_dir): use new dir syntax
39963 * normal/misc.c (grub_normal_print_device_info): tell the
39964 last modification time of a volume
39965 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
39966 * conf/common.rmk: added lib/datetime.c to ls.mod
39967 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
39968 (normal_mod_SOURCES): likewise
39969 (datetime_mod_SOURCES): Removed lib/datetime.c
39970 * conf/i386-efi.rmk: likewise
39971 * conf/i386-ieee1275.rmk: likewise
39972 * conf/i386-pc.rmk: likewise
39973 * conf/powerpc-ieee1275.rmk: likewise
39974 * conf/sparc64-ieee1275.rmk: likewise
39975 * conf/x86_64-efi.rmk: likewise
39976
39977 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39978
39979 Trim trailing spaces in FAT label and support mtools-like labels
39980
39981 * fs/fat.c (grub_fat_iterate_dir): New function based
39982 on grub_fat_find_dir
39983 (grub_fat_find_dir): use grub_fat_iterate_dir
39984 (grub_fat_label): likewise
39985
39986 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39987
39988 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
39989 and command.h
39990 remove extraneous kernel_elf_HEADERS
39991
39992 2009-04-04 Bean <bean123ch@gnail.com>
39993
39994 * include/grub/util/misc.h: Add dummy function fsync for mingw.
39995
39996 * util/misc.c: Likewise.
39997
39998 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
39999
40000 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40001 instead of grub_printf.
40002
40003 2009-04-03 Robert Millan <rmh@aybabtu.com>
40004
40005 * loader/i386/linux.c (grub_linux_setup_video): Fill
40006 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40007 values from `mode info' structure instead of hardcoded
40008 values.
40009
40010 2009-04-01 Pavel Roskin <proski@gnu.org>
40011
40012 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40013 unused now.
40014 * genmk.rb: Likewise.
40015 * configure.ac: Likewise.
40016
40017 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40018
40019 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40020 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40021
40022 2009-04-01 David S. Miller <davem@davemloft.net>
40023
40024 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40025 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40026 (grub_setjmp): Mark with 'returns_twice' attribute.
40027 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40028 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40029 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40030
40031 2009-04-01 Robert Millan <rmh@aybabtu.com>
40032
40033 Reapply fix from 2008-07-28 which was accidentally reverted; also
40034 perform the same fix to a similar check in same function.
40035
40036 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40037 with the same number are found, just use issue a warning with
40038 grub_dprintf(), as this error has been reported to be non-fatal.
40039
40040 2009-03-31 Pavel Roskin <proski@gnu.org>
40041
40042 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40043 for cross-compilation.
40044
40045 2009-03-30 Robert Millan <rmh@aybabtu.com>
40046
40047 Fix i386-ieee1275 build.
40048
40049 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40050 Remove declaration.
40051
40052 2009-03-30 Pavel Roskin <proski@gnu.org>
40053
40054 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40055 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40056 zero-terminated, rely only on the strlen value. Fix comparison
40057 of strings differing in length.
40058
40059 2009-03-30 Robert Millan <rmh@aybabtu.com>
40060
40061 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40062 checking for abi version. Improve error messages on BIOS to notify
40063 user about `linux16' command.
40064
40065 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40066
40067 Leak fixes
40068
40069 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40070 in case of collision
40071 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40072
40073 2009-03-29 Robert Millan <rmh@aybabtu.com>
40074
40075 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40076 set `vid_mode' accordingly.
40077 (grub_linux_boot): Process `vid_mode' and set video mode.
40078
40079 2009-03-29 Robert Millan <rmh@aybabtu.com>
40080
40081 * util/grub.d/10_linux.in (linux_entry): New function.
40082 Factorize generation of Linux boot entries.
40083
40084 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40085
40086 Make the format of Environment Block plain text. The boot loader
40087 part is not tested well yet.
40088
40089 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40090 (buffer): Removed.
40091 (envblk): Likewise.
40092 (usage): Remove "info" and "clear". Add "unset". Update the
40093 description of "set", as this does not delete variables any
40094 longer.
40095 (create_envblk_file): Complete rewrite.
40096 (open_envblk_file): Likewise.
40097 (cmd_info): Removed.
40098 (cmd_list): Likewise.
40099 (cmd_set): Likewise.
40100 (cmd_clear): Likewise.
40101 (list_variables): New function.
40102 (write_envblk): Likewise.
40103 (set_variables): Likewise.
40104 (unset_variables): Likewise.
40105 (main): Complete rewrite.
40106
40107 * commands/loadenv.c (buffer): Removed.
40108 (envblk): Likewise.
40109 (open_envblk_file): New function.
40110 (read_envblk_file): Complete rewrite.
40111 (grub_cmd_load_env): Likewise.
40112 (grub_cmd_list_env): Likewise.
40113 (struct blocklist): New struct.
40114 (free_blocklists): New function.
40115 (check_blocklists): Likewise.
40116 (write_blocklists): Likewise.
40117 (grub_cmd_save_env): Complete rewrite.
40118
40119 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40120 a plain text signature.
40121 (GRUB_ENVBLK_MAXLEN): Removed.
40122 (struct grub_envblk): Complete rewrite.
40123 (grub_envblk_find): Removed.
40124 (grub_envblk_insert): Likewise.
40125 (grub_envblk_open): New prototype.
40126 (grub_envblk_set): Likewise.
40127 (grub_envblk_delete): Put const to VALUE.
40128 (grub_envblk_iterate): Put const to NAME and VALUE.
40129 (grub_envblk_close): New prototype.
40130 (grub_envblk_buffer): New inline function.
40131 (grub_envblk_size): Likewise.
40132
40133 * lib/envblk.c: Include grub/mm.h.
40134 (grub_env_find): Removed.
40135 (grub_envblk_open): New function.
40136 (grub_envblk_close): Likewise.
40137 (escaped_value_len): Likewise.
40138 (find_next_line): Likewise.
40139 (grub_envblk_insert): Removed.
40140 (grub_envblk_set): New function.
40141 (grub_envblk_delete): Complete rewrite.
40142 (grub_envblk_iterate): Likewise.
40143
40144 2009-03-28 Robert Millan <rmh@aybabtu.com>
40145
40146 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40147 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40148 variables. Use 16-bit loader.
40149 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40150 loader.
40151 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40152 (grub_linux16_boot): ... this. Update all users.
40153 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40154 (grub_linux_boot): ... this. Update all users.
40155
40156 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40157 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40158 commands to `linux16' and `initrd16'.
40159 (GRUB_MOD_FINI(linux)): Rename to ...
40160 (GRUB_MOD_FINI(linux16)): ... this.
40161
40162 2009-03-24 Pavel Roskin <proski@gnu.org>
40163
40164 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40165 not just for compilation.
40166
40167 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40168
40169 Move multiboot helper out of kernel
40170
40171 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40172 `loader/i386/multiboot_helper.S'.
40173 * conf/i386-coreboot.rmk: Likewise
40174 * conf/i386-ieee1275.rmk: Likewise
40175
40176 * kern/i386/loader.S: Move multiboot helpers from here...
40177 * loader/i386/multiboot_helper.S: ...moved here
40178 * include/grub/i386/loader.h: Move declarations of multiboot
40179 helpers from here...
40180 * include/grub/i386/multiboot.h: ...moved here
40181 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40182
40183 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40184
40185 * kern/env.c (grub_env_context_open): Added an argument to specify
40186 whether a new context inherits exported variables from current
40187 one. This is useful when making a sandbox to interpret a config
40188 file.
40189 All callers updated.
40190
40191 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40192
40193 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40194
40195 * kern/env.c (grub_env_context_close): Fix memory leaks.
40196
40197 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40198
40199 * normal/main.c (grub_normal_execute): Added an argument
40200 BATCH to specify if an interactive interface should be provided
40201 after reading a config file.
40202 All callers updated.
40203 (read_command_list): Prevent being executed twice.
40204 (read_fs_list): Likewise.
40205
40206 * include/grub/normal.h (grub_normal_execute): Updated the
40207 prototype.
40208
40209 2009-03-22 Pavel Roskin <proski@gno.org>
40210
40211 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40212 _start.
40213 * kern/i386/pc/startup.S: Likewise.
40214 * kern/i386/efi/startup.S: Likewise.
40215 * kern/i386/ieee1275/startup.S: Likewise.
40216 * kern/i386/coreboot/startup.S: Likewise.
40217 * kern/x86_64/efi/startup.S: Likewise.
40218
40219 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40220 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40221 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40222
40223 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40224
40225 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40226
40227 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40228 limit detection.
40229 Use vaddr of correct segment for entry_point.
40230
40231 2009-03-21 Bean <bean123ch@gmail.com>
40232
40233 * commands/blocklist.c: Add include file <grub/command.h>, remove
40234 <grub/normal.h> and <grub/arg.h>.
40235 (grub_cmd_blocklist): Use the new command interface.
40236 (GRUB_MOD_INIT): Likewise.
40237 (GRUB_MOD_FINI): Likewise.
40238 * commands/boot.c: Likewise.
40239 * commands/cat.c: Likewise.
40240 * commands/cmp.c: Likewise.
40241 * commands/configfile.c: Likewise.
40242 * commands/crc.c: Likewise.
40243 * commands/echo.c: Likewise.
40244 * commands/halt.c: Likewise.
40245 * commands/handler.c: Likewise.
40246 * commands/hdparm.c: Likewise.
40247 * commands/help.c: Likewise.
40248 * commands/hexdump.c: Likewise.
40249 * commands/loadenv.c: Likewise.
40250 * commands/ls.c: Likewise.
40251 * commands/lsmmap.c: Likewise.
40252 * commands/lspci.c: Likewise.
40253 * commands/loadenv.c: Likewise.
40254 * commands/read.c: Likewise.
40255 * commands/reboot.c: Likewise.
40256 * commands/search.c: Likewise.
40257 * commands/sleep.c: Likewise.
40258 * commands/test.c: Likewise.
40259 * commands/usbtest.c: Likewise.
40260 * commands/videotest.c: Likewise.
40261 * commands/i386/cpuid.c: Likewise.
40262 * commands/i386/pc/halt.c: Likewise.
40263 * commands/i386/pc/play.c: Likewise.
40264 * commands/i386/pc/pxecmd.c: Likewise.
40265 * commands/i386/pc/vbeinfo.c: Likewise.
40266 * commands/i386/pc/vbetest.c: Likewise.
40267 * commands/ieee1275/suspend.c: Likewise.
40268 * disk/loopback.c: Likewise.
40269 * font/font_cmd.c: Likewise.
40270 * hello/hello.c: Likewise.
40271 * loader/efi/appleloader.c: Likewise.
40272 * loader/efi/chainloader.c: Likewise.
40273 * loader/i386/bsd.c: Likewise.
40274 * loader/i386/efi/linux.c: Likewise.
40275 * loader/i386/ieee1275/linux.c: Likewise.
40276 * loader/i386/linux.c: Likewise.
40277 * loader/i386/pc/chainloader.c: Likewise.
40278 * loader/i386/pc/linux.c: Likewise.
40279 * loader/powerpc/ieee1275/linux.c: Likewise.
40280 * loader/multiboot_loader.c: Likewise.
40281 * term/gfxterm.c: Likewise.
40282 * term/i386/pc/serial.c: Likewise.
40283 * term/terminfo.c: Likewise.
40284
40285 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40286 * term/i386/pc/vga.c: Likewise.
40287 * video/readers/jpeg.c: Likewise.
40288 * video/readers/png.c: Likewise.
40289 * video/readers/tga.c: Likewise.
40290
40291 * util/grub-fstest (cmd_loopback): Removed.
40292 (cmd_blocklist): Likewise.
40293 (cmd_ls): Likewise.
40294 (grub_register_command): Likewise.
40295 (grub_unregister_command): Likewise.
40296 (execute_command): Use grub_command_find to locate command and execute
40297 it.
40298
40299 * include/grub/efi/chainloader.h: Removed.
40300 * loader/efi/chainloader_normal.c: Likewise.
40301 * loader/i386/bsd_normal.c: Likewise.
40302 * loader/i386/pc/chainloader_normal.c: Likewise.
40303 * loader/i386/pc/multiboot_normal.c: Likewise.
40304 * loader/linux_normal.c: Likewise.
40305 * loader/multiboot_loader_normal.c: Likewise.
40306 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40307
40308 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40309 and grub_register_command_p1.
40310
40311 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40312 kern/command.c, lib/arg.c and commands/extcmd.c.
40313 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40314 (minicmd_mod_SOURCES): New variable.
40315 (minicmd_mod_CFLAGS): Likewise.
40316 (minicmd_mod_LDFLAGS): Likewise.
40317 (extcmd_mod_SOURCES): Likewise.
40318 (extcmd_mod_CFLAGS): Likewise.
40319 (extcmd_mod_LDFLAGS): Likewise.
40320 (boot_mod_SOURCES): Removed.
40321 (boot_mod_CFLAGS): Likewise.
40322 (boot_mod_LDFLAGS): Likewise.
40323
40324 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40325 kern/corecmd.c.
40326 (kernel_img_HEADERS): Add command.h.
40327 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40328 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40329 and lib/arg.c.
40330 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40331 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40332 remove the corresponding normal mode command.
40333 (normal_mod_SOURCES): Remove normal/arg.c.
40334 * conf/i386-coreboot.rmk: Likewise.
40335 * conf/i386-efi.rmk: Likewise.
40336 * conf/i386-ieee1275.rmk: Likewise.
40337 * conf/powerpc-ieee1275.rmk: Likewise.
40338 * conf/x86_64-efi.rmk: Likewise.
40339
40340 * include/grub/arg.h: Move from here ...
40341 * include/grub/lib/arg.h: ... to here.
40342
40343 * normal/arg.c: Move from here ...
40344 * lib/arg.c: ... to here.
40345
40346 * commands/extcmd.c: New file.
40347 * commands/minicmd.c: Likewise.
40348 * include/grub/command.h: Likewise.
40349 * include/grub/extcmd.h: Likewise.
40350 * kern/command.c: Likewise.
40351 * kern/corecmd.c: Likewise.
40352
40353 * kern/list.c (grub_list_iterate): Return int instead of void.
40354 (grub_list_insert): New function.
40355 (grub_prio_list_insert): Likewise.
40356
40357 * kern/rescue.c (grub_rescue_command): Removed.
40358 (grub_rescue_command_list): Likewise.
40359 (grub_rescue_register_command): Likewise.
40360 (grub_rescue_unregister_command): Likewise.
40361 (grub_rescue_cmd_boot): Move to minicmd.c
40362 (grub_rescue_cmd_help): Likewise.
40363 (grub_rescue_cmd_info): Likewise.
40364 (grub_rescue_cmd_boot): Likewise.
40365 (grub_rescue_cmd_testload): Likewise.
40366 (grub_rescue_cmd_dump): Likewise.
40367 (grub_rescue_cmd_rmmod): Likewise.
40368 (grub_rescue_cmd_lsmod): Likewise.
40369 (grub_rescue_cmd_exit): Likewise.
40370 (grub_rescue_print_devices): Moved to corecmd.c.
40371 (grub_rescue_print_files): Likewise.
40372 (grub_rescue_cmd_ls): Likewise.
40373 (grub_rescue_cmd_insmod): Likewise.
40374 (grub_rescue_cmd_set): Likewise.
40375 (grub_rescue_cmd_unset): Likewise.
40376 (attempt_normal_mode): Use grub_command_find to get normal module.
40377 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40378 commands, remove grub_rescue_register_command calls.
40379
40380 * normal/command.c (grub_register_command): Removed.
40381 (grub_unregister_command): Likewise.
40382 (grub_command_find): Likewise.
40383 (grub_iterate_commands): Likewise.
40384 (rescue_command): Likewise.
40385 (export_command): Moved to corecmd.c.
40386 (set_command): Removed.
40387 (unset_command): Likewise.
40388 (insmod_command): Likewise.
40389 (rmmod_command): Likewise.
40390 (lsmod_command): Likewise.
40391 (grub_command_init): Likewise.
40392
40393 * normal/completion.c (iterate_command): Use cmd->prio to check for
40394 active command.
40395 (complete_arguments): Use grub_extcmd_t structure to find options.
40396 (grub_normal_do_completion): Change function grub_iterate_commands to
40397 grub_command_iterate.
40398
40399 * normal/execute.c (grub_script_execute_cmd): No need to parse
40400 argument here.
40401
40402 * normal/main.c (grub_dyncmd_dispatcher): New function.
40403 (read_command_list): Register unload commands as dyncmd.
40404 (grub_cmd_normal): Use new command interface, register rescue,
40405 unregister normal at entry, register normal, unregister rescue at exit.
40406
40407 * include/grub/list.h (grub_list_test_t): New type.
40408 (grub_list_iterate): Return int instead of void.
40409 (grub_list_insert): New function.
40410 (GRUB_AS_NAMED_LIST_P): New macro.
40411 (GRUB_AS_PRIO_LIST): Likewise.
40412 (GRUB_AS_PRIO_LIST_P): Likewise.
40413 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40414 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40415 (grub_prio_list): New structure.
40416 (grub_prio_list_insert): New function.
40417 (grub_prio_list_remove): New inline function.
40418
40419 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40420 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40421 (GRUB_COMMAND_FLAG_MENU): Likewise.
40422 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40423 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40424 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40425 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40426 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40427 (grub_command): Likewise.
40428 (grub_register_command): Likewise.
40429 (grub_command_find): Likewise.
40430 (grub_iterate_commands): Likewise.
40431 (grub_command_init): Likewise.
40432 (grub_arg_parse): Likewise.
40433 (grub_arg_show_help): Likewise.
40434
40435 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40436 (grub_rescue_unregister_command): Likewise.
40437
40438 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40439 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40440 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40441
40442 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40443 grub_rescue_cmd_initrd.
40444 * include/grub/i386/loader.h: Likewise.
40445 * include/grub/x86_64/loader.h: Likewise.
40446
40447 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40448
40449 2009-03-21 Bean <bean123ch@gmail.com>
40450
40451 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40452 instead of stat in mingw environment.
40453
40454 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40455
40456 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40457
40458 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40459 AC_CONFIG_LINKS.
40460
40461 2009-03-21 Bean <bean123ch@gmail.com>
40462
40463 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40464 out of range error.
40465
40466 2009-03-18 Michel Dänzer <michel@daenzer.net>
40467
40468 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40469 checking inode flags for EXT4_EXTENTS_FLAG.
40470
40471 2009-03-18 Robert Millan <rmh@aybabtu.com>
40472
40473 * loader/i386/linux.c: Include `<grub/video.h>' and
40474 `<grub/i386/pc/vbe.h>'..
40475 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40476 (grub_linux32_boot): Attempt to configure video settings with
40477 grub_linux_setup_video().
40478 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40479 to avoid grub_console_fini() which would step out of graphical mode
40480 unconditionally.
40481
40482 2009-03-14 Robert Millan <rmh@aybabtu.com>
40483
40484 Fix build on powerpc.
40485 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40486
40487 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40488
40489 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40490 background image command.
40491
40492 2009-03-12 Colin D Bennett <colin@gibibit.com>
40493
40494 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40495 (grub_gfxterm_putchar): Extract pairs of identical calls to
40496 draw_cursor out of conditional blocks.
40497
40498 2009-03-11 Pavel Roskin <proski@gnu.org>
40499
40500 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40501 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40502
40503 2009-03-11 Robert Millan <rmh@aybabtu.com>
40504
40505 * loader/i386/multiboot_elfxx.c
40506 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40507
40508 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40509
40510 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40511 `kern/handler.c'.
40512
40513 2009-03-11 Robert Millan <rmh@aybabtu.com>
40514
40515 * loader/i386/multiboot.c (code_size): New variable.
40516 (grub_multiboot): Define offsets by adding to `code_size' rather
40517 than subtracting from `grub_multiboot_payload_size'. Provide
40518 4-byte alignment to MBI and others by increasing
40519 `boot_loader_name_length' appropriately.
40520
40521 * loader/i386/multiboot_elfxx.c
40522 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40523
40524 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40525
40526 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40527 `fs/ext2.c'.
40528
40529 2009-03-08 Robert Millan <rmh@aybabtu.com>
40530
40531 Make loader/i386/linux.c usable on i386-pc again.
40532
40533 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40534 memory to heap.
40535 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40536 `#error' stanza.
40537
40538 2009-03-07 Bean <bean123ch@gmail.com>
40539
40540 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40541 allocation.
40542
40543 2009-03-06 Robert Millan <rmh@aybabtu.com>
40544
40545 Fix display issue on terminals with screen size other than 80x25
40546 (e.g. gfxterm with resolution higher than 640x480).
40547
40548 * normal/main.c (grub_normal_init_page): Display title text in a
40549 position relative to the center of the terminal instead of relying
40550 on a hardcoded offset.
40551
40552 2009-03-04 Robert Millan <rmh@aybabtu.com>
40553
40554 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40555 installed.
40556
40557 * Makefile.in (host_kernel): New variable.
40558 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40559 scripts instead of just the windows one.
40560 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40561
40562 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40563
40564 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40565 `kern/handler.c'.
40566 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40567 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40568 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40570 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40571 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40572
40573 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40574
40575 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40576 or if there's no space for the disk label and print the partition number on a
40577 invalid magic.
40578
40579 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40580
40581 * util/misc.c: Include <time.h>.
40582 (grub_millisleep): New function.
40583
40584 2009-03-04 Bean <bean123ch@gmail.com>
40585
40586 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40587 another option -mno-red-zone.
40588
40589 * commands/handler.c: Change module description.
40590
40591 * kern/handler.c: Add missing space at the end of description line.
40592
40593 * kern/list.c: Likewise.
40594
40595 2009-03-03 Robert Millan <rmh@aybabtu.com>
40596
40597 Move more components to the relocation area, and fix mbi pointer
40598 handling to use the destination rather than the origin (thanks to
40599 Vladimir Serbinenko for spotting).
40600
40601 * loader/i386/multiboot.c (mbi_dest): New variable.
40602 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40603 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40604 relocation area.
40605
40606 2009-03-01 Bean <bean123ch@gmail.com>
40607
40608 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40609 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40610 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40611 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40612
40613 * loader/i386/efi/linux.c (acpi_guid): New variable.
40614 (acpi_guid): Likewise.
40615 (EBDA_SEG_ADDR): New constant.
40616 (LOW_MEM_ADDR): Likewise.
40617 (FAKE_EBDA_SEG): Likewise.
40618 (fake_bios_data): New function.
40619 (grub_linux_boot): Call fake_bios_data.
40620
40621 2009-03-01 Bean <bean123ch@gmail.com>
40622
40623 * commands/terminal.c: Removed.
40624
40625 * commands/handler.c: New file.
40626
40627 * include/grub/list.h: Likewise.
40628
40629 * include/grub/handler.h: Likewise.
40630
40631 * kern/list.c: Likewise.
40632
40633 * kern/handler.c: Likewise.
40634
40635 * kern/term.h: Include header file <grub/handler.h>.
40636 (grub_term_input): Move next field to the beginning.
40637 (grub_term_output): Likewise.
40638 (grub_term_input_class): New variable.
40639 (grub_term_output_class): Likewise.
40640 (grub_term_register_input): Changed to inline function.
40641 (grub_term_register_output): Likewise.
40642 (grub_term_unregister_input): Likewise.
40643 (grub_term_unregister_output): Likewise.
40644 (grub_term_set_current_input): Likewise.
40645 (grub_term_set_current_output): Likewise.
40646 (grub_term_get_current_input): Likewise.
40647 (grub_term_get_current_output): Likewise.
40648 (grub_term_iterate_input): Removed.
40649 (grub_term_iterate_output): Likewise.
40650
40651 * kern/term.c (grub_term_list_input): Removed.
40652 (grub_term_list_output): Likewise.
40653 (grub_term_input_class): New variable.
40654 (grub_term_output_class): Likewise.
40655 (grub_cur_term_input): Change variable as macro.
40656 (grub_cur_term_output): Likewise.
40657 (grub_term_register_input): Removed.
40658 (grub_term_register_output): Likewise.
40659 (grub_term_unregister_input): Likewise.
40660 (grub_term_unregister_output): Likewise.
40661 (grub_term_set_current_input): Likewise.
40662 (grub_term_set_current_output): Likewise.
40663 (grub_term_iterate_input): Likewise.
40664 (grub_term_iterate_output): Likewise.
40665 (grub_term_get_current_input): Likewise.
40666 (grub_term_get_current_output): Likewise.
40667
40668 * util/grub-editenv.c: Include header file <grub/handler.h>.
40669 (grub_term_get_current_input): Removed.
40670 (grub_term_get_current_output): Likewise.
40671 (grub_term_input_class): New variable.
40672 (grub_term_output_class): Likewise.
40673
40674 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40675 (grub_term_get_current_output): Likewise.
40676 (grub_term_input_class): New variable.
40677 (grub_term_output_class): Likewise.
40678
40679 * util/grub-probe.c (grub_term_get_current_input): Removed.
40680 (grub_term_get_current_output): Likewise.
40681 (grub_term_input_class): New variable.
40682 (grub_term_output_class): Likewise.
40683
40684 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40685 (grub_term_get_current_output): Likewise.
40686 (grub_term_input_class): New variable.
40687 (grub_term_output_class): Likewise.
40688
40689 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40690 (terminal_mod_SOURCES): Likewise.
40691 (terminal_mod_CFLAGS): Likewise.
40692 (terminal_mod_LDFLAGS): Likewise.
40693
40694 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40695 handler.c.
40696 (kernel_img_SOURCES): Add list.c and handler.c.
40697 (kernel_img_HEADERS): Add list.h and handler.h.
40698
40699 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40700 handler.c.
40701 (kernel_mod_SOURCES): Add list.c and handler.c.
40702 (kernel_mod_HEADERS): Add list.h and handler.h.
40703
40704 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40705 handler.c.
40706 (kernel_elf_SOURCES): Add list.c and handler.c.
40707 (kernel_elf_HEADERS): Add list.h and handler.h.
40708
40709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40710 handler.c.
40711 (kernel_elf_SOURCES): Add list.c and handler.c.
40712 (kernel_elf_HEADERS): Add list.h and handler.h.
40713
40714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40715 handler.c.
40716 (kernel_mod_SOURCES): Add list.c and handler.c.
40717 (kernel_mod_HEADERS): Add list.h and handler.h.
40718
40719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40720 handler.c.
40721 (kernel_elf_SOURCES): Add list.c and handler.c.
40722 (kernel_elf_HEADERS): Add list.h and handler.h.
40723
40724 2009-02-27 Robert Millan <rmh@aybabtu.com>
40725
40726 Factorize elf32 / elf64 code in Multiboot loader. This will
40727 prevent it from getting out of sync again.
40728
40729 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40730 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40731 grub_multiboot_load_elf64): Move from here ...
40732 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40733 grub_multiboot_load_elf): ... to here (new file).
40734
40735 2009-02-27 Robert Millan <rmh@aybabtu.com>
40736
40737 * util/grub.d/10_linux.in: Rename "single-user mode" to
40738 "recovery mode".
40739
40740 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40741
40742 Don't leak in SCSI code.
40743 * disk/scsi.c (grub_scsi_close): free `scsi'.
40744
40745 2009-02-27 Robert Millan <rmh@aybabtu.com>
40746
40747 * loader/i386/pc/multiboot.c: Move from here ...
40748 * loader/i386/multiboot.c: ... to here. Update all users.
40749
40750 2009-02-27 Robert Millan <rmh@aybabtu.com>
40751
40752 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40753 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40754
40755 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40756
40757 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40758 b-tree.
40759
40760 2009-02-27 Robert Millan <rmh@aybabtu.com>
40761
40762 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40763 `0x' qualifier as 0 when base is specified as parameter).
40764
40765 2009-02-24 Bean <bean123ch@gmail.com>
40766
40767 * configure.ac: Check for -mcmodel=large in x86_64 target.
40768
40769 * include/grub/efi/api.h (efi_call_10): New macro.
40770 (efi_wrap_10): New function.
40771
40772 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40773 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40774 (GRUB_PE32_REL_BASED_LOW): Likewise.
40775 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40776 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40777 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40778 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40779 (GRUB_PE32_REL_BASED_REL): Likewise.
40780 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40781 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40782 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40783
40784 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40785 issue.
40786
40787 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40788 (efi_wrap_10): New function.
40789
40790 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40791
40792 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40793 MB/MBP model (NV chipset).
40794 (devdata_devs): Add devpath_5 to the list.
40795
40796 * load/i386/efi/linux.c (video_base): Remove variable.
40797 (RGB_MASK): New macro.
40798 (RGB_MAGIC): Likewise.
40799 (LINE_MIN): Likewise.
40800 (LINE_MAX): Likewise.
40801 (FBTEST_STEP): Likewise.
40802 (FBTEST_COUNT): Likewise.
40803 (fb_list): New variable.
40804 (grub_find_video_card): Remove function.
40805 (find_framebuf): New function.
40806 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40807 line length.
40808
40809 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40810 problem for x86_64.
40811
40812 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40813
40814 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40815
40816 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40817 coding tool name.
40818
40819 2009-02-22 Robert Millan <rmh@aybabtu.com>
40820
40821 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40822 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40823 in our relocation, instead of using it directly from heap. Also
40824 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40825
40826 2009-02-21 Robert Millan <rmh@aybabtu.com>
40827
40828 Implement USB keyboard support (based on patch by Marco Gerards)
40829
40830 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40831 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40832 (usb_keyboard_mod_LDFLAGS): New variables.
40833
40834 * term/usb_keyboard.c: New file.
40835
40836 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40837
40838 Corrected wrong declaration
40839
40840 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40841
40842 2009-02-14 Christian Franke <franke@computer.org>
40843
40844 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40845 (grub_lspci_iter): Print class code and programming interface byte.
40846
40847 2009-02-14 Christian Franke <franke@computer.org>
40848
40849 * gendistlist.sh: Ignore `.svn' directories.
40850
40851 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40852
40853 * fs/fat.c: Add 2009 to Copyright line.
40854
40855 2009-02-14 Christian Franke <franke@computer.org>
40856
40857 * commands/hdparm.c: New file. Provides `hdparm' command
40858 which sends ATA commands via grub_disk_ata_pass_through ().
40859
40860 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40861
40862 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40863 and <grub/cpu/io.h> to include/grub/ata.h.
40864 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40865 (GRUB_CDROM_SECTOR_SIZE): Remove.
40866 (GRUB_ATA_*): Move to include/grub/ata.h.
40867 (GRUB_ATAPI_*): Likewise.
40868 (enum grub_ata_commands): Likewise.
40869 (enum grub_ata_timeout_milliseconds): Likewise.
40870 (struct grub_ata_device): Likewise.
40871 (grub_ata_regset): Likewise.
40872 (grub_ata_regget): Likewise.
40873 (grub_ata_regset2): Likewise.
40874 (grub_ata_regget2): Likewise.
40875 (grub_ata_check_ready): Likewise.
40876 (grub_ata_wait_not_busy): Remove static, exported in
40877 include/grub/ata.h.
40878 (grub_ata_wait_drq): Likewise.
40879 (grub_ata_pio_read): Likewise.
40880
40881 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40882 function for hdparm.mod.
40883
40884 * include/grub/ata.h: New file, contains declarations from
40885 disk/ata.c.
40886 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40887
40888 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40889 (grub_disk_ata_pass_through): New exported variable.
40890
40891 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40892
40893 2009-02-13 Colin D Bennett <colin@gibibit.com>
40894
40895 Support multiple fallback entries, and provide an API to support
40896 executing default+fallback menu entries. Renamed the `terminal' menu
40897 viewer to `text'.
40898
40899 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40900 variable declaration.
40901 (grub_menu_execute_callback): New structure declaration.
40902 (grub_menu_execute_callback_t): New typedef.
40903 (grub_menu_execute_with_fallback): New function declaration.
40904 (grub_menu_get_entry): Likewise.
40905 (grub_menu_get_timeout): Likewise.
40906 (grub_menu_set_timeout): Likewise.
40907
40908 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40909
40910 * normal/menu.c (grub_wait_after_message): Moved to
40911 `normal/menu_text.c'.
40912 (draw_border): Likewise.
40913 (print_message): Likewise.
40914 (print_entry): Likewise.
40915 (print_entries): Likewise.
40916 (grub_menu_init_page): Likewise.
40917 (get_entry_number): Likewise.
40918 (print_timeout): Likewise.
40919 (run_menu): Likewise.
40920 (grub_menu_execute_entry): Likewise.
40921 (show_text_menu): Likewise.
40922 (get_and_remove_first_entry_number): New function.
40923 (grub_menu_execute_with_fallback): Likewise.
40924 (get_entry): Renamed to ...
40925 (grub_menu_get_entry): .. this and made it global.
40926 (get_timeout): Renamed to ...
40927 (grub_menu_get_timeout): ... this and made it global.
40928 (set_timeout): Renamed to ...
40929 (grub_menu_set_timeout): ... this and made it global.
40930 (grub_normal_terminal_menu_viewer): Renamed to ...
40931 (grub_normal_text_menu_viewer): ... this.
40932
40933 * normal/menu_text.c: New file. Extracted text-menu-specific code
40934 from normal/menu.c.
40935
40936 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
40937 (normal_mod_SOURCES): Likewise.
40938
40939 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40940 (normal_mod_SOURCES): Likewise.
40941
40942 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40943 (normal_mod_SOURCES): Likewise.
40944
40945 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
40946 (normal_mod_SOURCES): Likewise.
40947
40948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40949 (normal_mod_SOURCES): Likewise.
40950
40951 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40952 (normal_mod_SOURCES): Likewise.
40953
40954 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40955 (normal_mod_SOURCES): Likewise.
40956
40957 2009-02-11 Robert Millan <rmh@aybabtu.com>
40958
40959 * util/grub.d/00_header.in: Update old reference to `font' command.
40960
40961 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
40962
40963 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
40964
40965 Based on patch from Javier Martín.
40966
40967 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40968
40969 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
40970 to avoid false positives with FAT.
40971 (grub_fstest_SOURCES): Likewise.
40972 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40973 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40975 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40976 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40977 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40978
40979 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
40980
40981 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
40982 bpb.version_specific.fat12_or_fat16.fstype and
40983 bpb.version_specific.fat32.fstype.
40984
40985 2009-02-08 Robert Millan <rmh@aybabtu.com>
40986
40987 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
40988
40989 2009-02-08 Robert Millan <rmh@aybabtu.com>
40990
40991 * Makefile.in (host_os, host_cpu): New variables.
40992 (target_os): Remove. Update all users.
40993
40994 2009-02-08 Marco Gerards <marco@gnu.org>
40995
40996 * Makefile.in (enable_grub_emu_usb): New variable.
40997 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
40998 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
40999 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41000 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41001 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41002 `usbtest.mod' and `usbms.mod'.
41003 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41004 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41005 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41006 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41007 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41008 variables.
41009
41010 * disk/usbms.c: New file.
41011
41012 * include/grub/usb.h: Likewise.
41013
41014 * include/grub/usbtrans.h: Likewise.
41015
41016 * include/grub/usbdesc.h: Likewise.
41017
41018 * bus/usb/usbtrans.c: Likewise.
41019
41020 * bus/usb/ohci.c: Likewise.
41021
41022 * bus/usb/uhci.c: Likewise.
41023
41024 * bus/usb/usbhub.c: Likewise.
41025
41026 * bus/usb/usb.c: Likewise.
41027
41028 * commands/usbtest.c: Likewise.
41029
41030 * util/usb.c: Likewise.
41031
41032 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41033
41034 * configure.ac: Test for libusb presence.
41035
41036 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41037
41038 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41039
41040 * kern/mm.c: Add more comments.
41041
41042 2009-02-08 Robert Millan <rmh@aybabtu.com>
41043
41044 Patch from Javier Martín.
41045 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41046 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41047
41048 2009-02-08 Robert Millan <rmh@aybabtu.com>
41049
41050 * fs/cpio.c: Split tar functionality to ...
41051 * fs/tar.c: ... here (new file). Update all users.
41052
41053 2009-02-07 Robert Millan <rmh@aybabtu.com>
41054
41055 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41056 backward-incompatible features.
41057
41058 Based on patch from Javier Martín, with some adjustments.
41059
41060 2009-02-07 Michael Scherer <misc@mandriva.org>
41061
41062 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41063
41064 2009-02-07 Robert Millan <rmh@aybabtu.com>
41065
41066 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41067 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41068 after the RAID stuff.
41069
41070 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41071
41072 Fixes problem when running vbetest command as reported by
41073 Vladimir Serbinenko <phcoder@gmail.com>.
41074
41075 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41076
41077 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41078
41079 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41080 /dev/md/NpN style mdraid devices.
41081
41082 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41083
41084 * util/unifont2pff.rb: Remove.
41085
41086 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41087
41088 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41089 `#'.
41090
41091 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41092
41093 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41094 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41095 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41096 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41099 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41100
41101 2009-02-02 Christian Franke <franke@computer.org>
41102
41103 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41104
41105 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41106
41107 * INSTALL: Note that we now require at least autoconf 2.59 and
41108 that LZO is optional.
41109
41110 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41111
41112 Base on patch on bug #24154 created by Tomas Tintera
41113 <trosos@seznam.cz>.
41114
41115 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41116
41117 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41118
41119 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41120 <bero@arklinux.org>.
41121
41122 * normal/parser.y (script_init): Add missing semicolon.
41123
41124 2009-01-31 Colin D Bennett <colin@gibibit.com>
41125
41126 * normal/main.c: Add include to grub/menu_viewer.h.
41127 (free_menu_entry_classes): Added.
41128 (grub_normal_menu_addentry): Added class property handling.
41129 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41130 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41131
41132 * normal/menu_viewer.c: New file.
41133
41134 * normal/menu.c (run_menu_entry): Renamed to ...
41135 (grub_menu_execute_entry): ... this and made it as global.
41136 (grub_menu_run): Renamed to ...
41137 (show_text_menu): ... this and made it local.
41138 (show_text_menu): Adapt to new function names.
41139 (grub_normal_terminal_menu_viewer): New global variable.
41140
41141 * include/grub/menu.h: New file.
41142
41143 * include/grub/menu_viewer.h: New file.
41144
41145 * include/grub/normal.h: Added include to grub/menu.h.
41146 (grub_menu_entry): Moved to include/grub/menu.h.
41147 (grub_menu_entry_t): Likewise.
41148 (grub_menu): Likewise.
41149 (grub_menu_t): Likewise.
41150 (grub_normal_terminal_menu_viewer): Added.
41151 (grub_menu_execute_entry): Likewise.
41152 (grub_menu_run): Removed.
41153
41154 * DISTLIST: Added include/grub/menu.h.
41155 Added include/grub/menu_viewer.h.
41156 Added normal/menu_viewer.c.
41157
41158 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41159
41160 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41161 arglist for menutitle arguments.
41162
41163 * normal/main.c (grub_normal_menu_addentry): Likewise.
41164
41165 * normal/parser.y (menuentry): Likewise.
41166
41167 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41168
41169 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41170 (grub_script_create_cmdmenu): Likewise.
41171
41172 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41173
41174 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41175 changes.
41176
41177 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41178
41179 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41180
41181 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41182
41183 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41184
41185 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41186
41187 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41188
41189 2009-01-30 Christian Franke <franke@computer.org>
41190
41191 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41192 in option help text.
41193
41194 2009-01-27 Pavel Roskin <proski@gnu.org>
41195
41196 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41197
41198 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41199
41200 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41201
41202 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41203
41204 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41205 unregister function.
41206
41207 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41208
41209 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41210
41211 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41212
41213 * util/grub-mkfont.c (usage): Fix typo.
41214
41215 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41216
41217 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41218
41219 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41220
41221 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41222
41223 * kern/misc.c (grub_strcasecmp): New function.
41224 (grub_strcasecmp): Use grub_size_t instead of int for length.
41225 Fix return value.
41226 * include/grub/misc.h: Update function prototypes.
41227
41228 2009-01-26 Robert Millan <rmh@aybabtu.com>
41229
41230 * configure.ac: Fix cross-compilation check.
41231
41232 2009-01-22 Christian Franke <franke@computer.org>
41233
41234 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41235 (precision) digit string. Allow `.format2' without `format1' (width).
41236 Limit input chars for `%s' output to `format2' if specified. This is
41237 compatible with standard printf ().
41238
41239 2009-01-22 Christian Franke <franke@computer.org>
41240
41241 * disk/ata.c (grub_ata_wait_status): Replace by ...
41242 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41243 other status bits may be invalid while BSY is asserted.
41244 (grub_ata_check_ready): New function.
41245 (grub_ata_cmd): Removed.
41246 (grub_ata_wait_drq): New function.
41247 (grub_ata_strncpy): Remove inline.
41248 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41249 and error check now done by grub_ata_wait_drq ().
41250 (grub_ata_pio_write): Likewise.
41251 (grub_atapi_identify): Set DEV before check for !BSY. Use
41252 grub_ata_wait_drq () to wait for data.
41253 (grub_ata_device_initialize): Add status register check to
41254 detect missing SATA slave devices. Add debug messages.
41255 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41256 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41257 transfer loop by grub_ata_pio_write ().
41258 (grub_ata_identify): Set DEV before check for !BSY. Use
41259 grub_ata_wait_drq () to wait for data.
41260 (grub_ata_setaddress): Set DEV before check for !BSY.
41261 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41262 read/write in one loop. Fix invalid command on write. Fix incomplete
41263 command on (size % batch) == 0. Add missing error check after write of
41264 last block. Add debug messages.
41265 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41266
41267 2009-01-19 Christian Franke <franke@computer.org>
41268
41269 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41270 (GRUB_ATAPI_IREASON_*): Likewise.
41271 (grub_ata_pio_write): Fix timeout error return.
41272 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41273 (grub_atapi_wait_drq): New function.
41274 (grub_atapi_packet): New parameter `size'.
41275 Use grub_atapi_wait_drq () and direct write instead of
41276 grub_ata_pio_write ().
41277 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41278 reads the number of bytes requested by the device for each DRQ
41279 assertion.
41280 (grub_atapi_write): Remove old implementation, return not
41281 implemented instead.
41282
41283 2009-01-19 Christian Franke <franke@computer.org>
41284
41285 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41286 of 512 to calculate data size.
41287 (grub_scsi_read12): Likewise.
41288 (grub_scsi_write10): Likewise.
41289 (grub_scsi_write12): Likewise.
41290 (grub_scsi_read): Adjust size according to blocksize.
41291 Add checks for invalid blocksize and unaligned transfer.
41292
41293 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41294
41295 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41296
41297 * term/gfxterm.c (write_char): Fix background rendering for wide
41298 width glyphs.
41299
41300 2009-01-19 Robert Millan <rmh@aybabtu.com>
41301
41302 * config.guess: Update to latest version from config git.
41303 * config.sub: Likewise.
41304
41305 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41306
41307 * Makefile.in: Change font compilation to use new grub-mkfont instead
41308 of java version.
41309
41310 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41311 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41312 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41313 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41314 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41315 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41316 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41317 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41318 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41319
41320 2009-01-16 Christian Franke <franke@computer.org>
41321
41322 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41323 (enum grub_ata_timeout_milliseconds): New enum.
41324 (grub_ata_wait_status): Add parameter milliseconds.
41325 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41326 recovery from timed-out commands.
41327 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41328 return grub_errno instead of REG_ERROR.
41329 (grub_ata_pio_write): Add parameter milliseconds.
41330 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41331 Pass milliseconds to grub_ata_wait_status () and
41332 grub_ata_pio_read ().
41333 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41334 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41335 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41336 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41337 It is not suitable for device detection, because DEV bit is ignored,
41338 the command may run too long, and not all devices set the signature
41339 properly.
41340 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41341 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41342 Fix device selection, DEV bit must be set first to address the registers
41343 of the correct device.
41344 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41345 grub_ata_pio_read/write ().
41346 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41347 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41348
41349 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41350
41351 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41352
41353 2009-01-13 Bean <bean123ch@gmail.com>
41354
41355 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41356
41357 2009-01-13 Bean <bean123ch@gmail.com>
41358
41359 * Makefile.in: (enable_grub_mkfont): New variable.
41360 (freetype_cflags): Likewise.
41361 (freetype_libs): Likewise.
41362
41363 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41364 (grub_mkfont_SOURCES): New variable.
41365 (grub_mkfont_CFLAGS): Likewise.
41366 (grub_mkfont_LDFLAGS): Likewise.
41367
41368 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41369 library if `--enable-grub-mkfont' is requested.
41370 (enable_grub_mkfont): New variable.
41371 (freetype_cflags): Likewise.
41372 (freetype_libs): Likewise.
41373
41374 * util/grub-mkfont.c: New file.
41375
41376 2009-01-12 Christian Franke <franke@computer.org>
41377
41378 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41379 mode check. Fix setting of compat_use[].
41380
41381 2009-01-10 Robert Millan <rmh@aybabtu.com>
41382
41383 Update a few copyright years which we forgot to do in 2008 (only for
41384 files whose changes made in 2008 were copyright-significant)
41385
41386 * Makefile.in: Add 2008 to Copyright line.
41387 * disk/ieee1275/ofdisk.c: Likewise.
41388 * disk/efi/efidisk.c: Likewise.
41389 * kern/dl.c: Likewise.
41390 * kern/sparc64/ieee1275/init.c: Likewise.
41391 * kern/mm.c: Likewise.
41392 * kern/efi/mm.c: Likewise.
41393 * boot/i386/pc/boot.S: Likewise.
41394 * genfslist.sh: Likewise.
41395 * fs/iso9660.c: Likewise.
41396 * fs/hfs.c: Likewise.
41397 * fs/jfs.c: Likewise.
41398 * fs/minix.c: Likewise.
41399 * fs/ufs.c: Likewise.
41400 * gensymlist.sh.in: Likewise.
41401 * genkernsyms.sh.in: Likewise.
41402 * include/grub/misc.h: Likewise.
41403 * include/grub/types.h: Likewise.
41404 * include/grub/symbol.h: Likewise.
41405 * include/grub/elf.h: Likewise.
41406 * include/grub/kernel.h: Likewise.
41407 * include/grub/disk.h: Likewise.
41408 * include/grub/dl.h: Likewise.
41409 * include/grub/i386/linux.h: Likewise.
41410 * include/grub/i386/pc/biosdisk.h: Likewise.
41411 * include/grub/efi/api.h: Likewise.
41412 * include/grub/efi/pe32.h: Likewise.
41413 * include/grub/util/misc.h: Likewise.
41414 * normal/execute.c: Likewise.
41415 * normal/arg.c: Likewise.
41416 * normal/completion.c: Likewise.
41417 * normal/lexer.c: Likewise.
41418 * normal/parser.y: Likewise.
41419 * normal/misc.c: Likewise.
41420 * commands/i386/pc/vbeinfo.c: Likewise.
41421 * commands/hexdump.c: Likewise.
41422 * commands/terminal.c: Likewise.
41423 * commands/ls.c: Likewise.
41424 * commands/help.c: Likewise.
41425 * partmap/pc.c: Likewise.
41426 * loader/efi/chainloader.c: Likewise.
41427 * loader/multiboot_loader.c: Likewise.
41428 * loader/i386/pc/multiboot2.c: Likewise.
41429 * term/efi/console.c: Likewise.
41430 * term/i386/pc/serial.c: Likewise.
41431 * util/lvm.c: Likewise.
41432 * util/console.c: Likewise.
41433 * util/i386/efi/grub-mkimage.c: Likewise.
41434 * util/raid.c: Likewise.
41435
41436 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41437
41438 * commands/videotest.c: Removed include to grub/machine/memory.h.
41439
41440 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41441 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41442 (video_mod_SOURCES): Removed.
41443 (video_mod_CFLAGS): Likewise.
41444 (video_mod_LDFLAGS): Likewise.
41445 (gfxterm_mod_SOURCES): Likewise.
41446 (gfxterm_mod_CFLAGS): Likewise.
41447 (gfxterm_mod_LDFLAGS): Likewise.
41448 (videotest_mod_SOURCES): Likewise.
41449 (videotest_mod_CFLAGS): Likewise.
41450 (videotest_mod_LDFLAGS): Likewise.
41451 (bitmap_mod_SOURCES): Likewise.
41452 (bitmap_mod_CFLAGS): Likewise.
41453 (bitmap_mod_LDFLAGS): Likewise.
41454 (tga_mod_SOURCES): Likewise.
41455 (tga_mod_CFLAGS): Likewise.
41456 (tga_mod_LDFLAGS): Likewise.
41457 (jpeg_mod_SOURCES): Likewise.
41458 (jpeg_mod_CFLAGS): Likewise.
41459 (jpeg_mod_LDFLAGS): Likewise.
41460 (png_mod_SOURCES): Likewise.
41461 (png_mod_CFLAGS): Likewise.
41462 (png_mod_LDFLAGS): Likewise.
41463
41464 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41465 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41466 (video_mod_SOURCES): Added.
41467 (video_mod_CFLAGS): Likewise.
41468 (video_mod_LDFLAGS): Likewise.
41469 (videotest_mod_SOURCES): Likewise.
41470 (videotest_mod_CFLAGS): Likewise.
41471 (videotest_mod_LDFLAGS): Likewise.
41472 (bitmap_mod_SOURCES): Likewise.
41473 (bitmap_mod_CFLAGS): Likewise.
41474 (bitmap_mod_LDFLAGS): Likewise.
41475 (tga_mod_SOURCES): Likewise.
41476 (tga_mod_CFLAGS): Likewise.
41477 (tga_mod_LDFLAGS): Likewise.
41478 (jpeg_mod_SOURCES): Likewise.
41479 (jpeg_mod_CFLAGS): Likewise.
41480 (jpeg_mod_LDFLAGS): Likewise.
41481 (png_mod_SOURCES): Likewise.
41482 (png_mod_CFLAGS): Likewise.
41483 (png_mod_LDFLAGS): Likewise.
41484 (gfxterm_mod_SOURCES): Likewise.
41485 (gfxterm_mod_CFLAGS): Likewise.
41486 (gfxterm_mod_LDFLAGS): Likewise.
41487
41488 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41489 grub/machine/console.h.
41490
41491 2009-01-04 Jerone Young <jerone@gmail.com>
41492
41493 Make on screen instructions clearer
41494
41495 Based on patch created by Jidanni <jidanni@jidanni.org>
41496
41497 * normal/menu.c: print clearer instructions on the screen
41498
41499 2009-01-02 Colin D Bennett <colin@gibibit.com>
41500
41501 New font engine.
41502
41503 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41504 build system and fixed gfxterm.c to work with different sized fonts.
41505
41506 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41507
41508 * configure: Re-generated.
41509
41510 * DISTLIST: Removed font/manager.c.
41511 Added font/font.c.
41512 Added font/font_cmd.c.
41513
41514 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41515 compilation.
41516
41517 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41518
41519 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41520
41521 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41522
41523 * normal/menu.c: Likewise.
41524
41525 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41526 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41527
41528 * include/grub/font.h: Replaced with new file.
41529
41530 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41531 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41532 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41533 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41534 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41535 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41536 fg_red, fg_green, fg_blue, fg_alpha.
41537 (grub_video_adapter): Removed blit_glyph.
41538 (grub_video_blit_glyph): Removed.
41539
41540 * font/manager.c: Removed file.
41541
41542 * font/font.c: New file.
41543
41544 * font/font_cmd.c: Likewise.
41545
41546 * video/video.c (grub_video_blit_glyph): Removed.
41547
41548 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41549 (grub_video_vbe_map_rgba): Likewise.
41550 (grub_video_vbe_unmap_color_int): Likewise.
41551 (grub_video_vbe_blit_glyph): Removed.
41552 (grub_video_vbe_adapter): Removed blit_glyph.
41553
41554 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41555 (get_pixel): Likewise.
41556 (set_pixel): Likewise.
41557
41558 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41559
41560 * term/gfxterm.c: Adapted to new font engine.
41561
41562 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41563
41564 * term/i386/pc/vga.c: Likewise.
41565
41566 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41567
41568 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41569
41570 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41571
41572 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41573
41574 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41575
41576 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41577
41578 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41579
41580 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41581
41582 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41583
41584 * util/grub.d/00_header.in: Changed to use new loadfont command.
41585
41586 * util/grub-mkconfig_lib.in: Changed font extension.
41587
41588 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41589
41590 * util/getroot.c (grub_util_get_grub_dev): Add support for
41591 /dev/md/dNNpNN style partitionable mdraid devices.
41592
41593 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41594
41595 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41596 at a time limit of the PXE TFTP API correctly.
41597 (grub_pxefs_close): Likewise.
41598
41599 2008-11-29 Robert Millan <rmh@aybabtu.com>
41600
41601 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41602 grub_ata_device_initialize() calls.
41603
41604 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41605
41606 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41607 iteration failed.
41608 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41609
41610 2008-11-28 Robert Millan <rmh@aybabtu.com>
41611
41612 Fix build on powerpc-ieee1275. Based on patch created by
41613 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41614 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41615 `kern/ieee1275/mmap.c'.
41616 * include/grub/powerpc/ieee1275/memory.h: New file.
41617
41618 Provide grub-install on coreboot.
41619 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41620 (grub_install_SOURCES): New variable.
41621 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41622 usable on coreboot.
41623
41624 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41625
41626 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41627 to `grub_term_input_t'.
41628 (grub_term_get_current_output): Change return type to
41629 `grub_term_output_t'.
41630
41631 2008-11-22 Robert Millan <rmh@aybabtu.com>
41632
41633 Fix breakage on coreboot due to declaration mismatch.
41634 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41635 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41636 grub_vga_text_cls().
41637
41638 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41639 comments. Avoid copying one more byte than necessary (just in case).
41640
41641 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41642 to 0x200000 (avoids trouble with some OFW implementations, and matches
41643 with the one in Yaboot).
41644 Reported by Manoel Abranches
41645
41646 2008-11-20 Robert Millan <rmh@aybabtu.com>
41647
41648 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41649 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41650
41651 * util/grub-mkconfig_lib.in (grub_warn): New function.
41652 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41653 warnings, to obtain consistent formatting.
41654 * util/grub.d/00_header.in: Likewise.
41655 * util/update-grub_lib.in: Likewise.
41656
41657 * loader/i386/linux.c (allocate_pages): Fix a warning.
41658 Move comment text to `#error' stanza.
41659
41660 Harmonize ieee1275's grub_available_iterate() with the generic
41661 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41662 build problem on i386-ieee1275):
41663 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41664 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41665 parameter `type'. Update all users of this function.
41666 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41667 `kern/ieee1275/mmap.c'.
41668 * kern/ieee1275/init.c
41669 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41670 with ...
41671 (grub_machine_mmap_iterate): ... this.
41672 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41673 return type to `grub_err_t'. Update all implementations of this
41674 function prototype.
41675 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41676 Likewise.
41677
41678 Add `lsmmap' command (lists firmware-provided memory map):
41679 * commands/lsmmap.c: New file.
41680 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41681 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41682 variables.
41683 * conf/powerpc-ieee1275.rmk: Likewise.
41684 * conf/i386-coreboot.rmk: Likewise.
41685 * conf/i386-ieee1275.rmk: Likewise.
41686
41687 2008-11-19 Robert Millan <rmh@aybabtu.com>
41688
41689 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41690 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41691 constraints to initrd allocation (based on code from
41692 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41693 for Linux to find it.
41694
41695 2008-11-14 Robert Millan <rmh@aybabtu.com>
41696
41697 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41698 order to cope with duplicate slashes.
41699
41700 2008-11-14 Robert Millan <rmh@aybabtu.com>
41701
41702 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41703 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41704 don't want to mess with lower memory, because it is used in the Linux
41705 loader.
41706
41707 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41708 an appropriate place in lower memory, between 0x10000 and 0x90000,
41709 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41710 is in our heap (probably as a result of it being corrupted during
41711 decompression). Add #error instance with comment to explain why this
41712 loader isn't currently usable on PC/BIOS.
41713
41714 2008-11-14 Robert Millan <rmh@aybabtu.com>
41715
41716 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41717 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41718
41719 2008-11-12 Robert Millan <rmh@aybabtu.com>
41720
41721 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41722
41723 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41724 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41725 from here ...
41726 * include/grub/i386/pc/memory.h: ... to here.
41727
41728 2008-11-12 Robert Millan <rmh@aybabtu.com>
41729
41730 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41731 split).
41732
41733 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41734 (grub_console_cur_color, grub_console_real_putchar)
41735 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41736 (grub_console_setcolorstate, grub_console_setcolor)
41737 (grub_console_getcolor): Move from here ...
41738 * include/grub/i386/vga_common.h: ... to here (new file).
41739
41740 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41741 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41742 `<grub/i386/io.h>'.
41743 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41744 `<grub/i386/vga_common.h>'.
41745
41746 2008-11-12 Robert Millan <rmh@aybabtu.com>
41747
41748 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41749 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41750 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41751 variables.
41752 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41753 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41754
41755 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41756 grub_console_init() with call to grub_vga_text_init().
41757 (grub_machine_fini): Replace call to
41758 grub_console_fini() with call to grub_vga_text_fini() and
41759 grub_at_keyboard_fini().
41760
41761 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41762 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41763 (grub_console_setcolorstate, grub_console_setcolor)
41764 (grub_console_getcolor): New function prototypes.
41765
41766 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41767 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41768 (grub_vga_text_setcursor): Static-ize.
41769 (grub_vga_text_term): New structure.
41770 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41771
41772 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41773 (grub_console_cur_color, grub_console_standard_color)
41774 (grub_console_normal_color, grub_console_highlight_color)
41775 (map_char, grub_console_putchar, grub_console_getcharwidth)
41776 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41777 (grub_console_getcolor): Move from here ...
41778 * term/i386/vga_common.c: ... to here (same function names).
41779
41780 2008-11-12 Robert Millan <rmh@aybabtu.com>
41781
41782 Use newly-added Multiboot support in coreboot.
41783
41784 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41785 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41786
41787 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41788 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41789 (codestart): Store the MBI in `startup_multiboot_info' when we're
41790 being loaded using Multiboot.
41791
41792 * kern/i386/coreboot/init.c (grub_machine_init): Move
41793 grub_at_keyboard_init() call to beginning of function (useful for
41794 debugging). Call grub_machine_mmap_init() before attempting to use
41795 grub_machine_mmap_iterate().
41796 (grub_lower_mem, grub_upper_mem): Move from here ...
41797 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41798 here (new file).
41799
41800 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41801 function prototype.
41802
41803 2008-11-12 Robert Millan <rmh@aybabtu.com>
41804
41805 Fix a regression introduced by the at_keyboard.mod split. Because
41806 some terminals are default on some platforms and non-default on
41807 others, the first terminal being registered determines which is
41808 going to be default.
41809
41810 * kern/term.c (grub_term_register_input): If this is the first
41811 terminal being registered, set it as the current one.
41812 (grub_term_register_output): Likewise.
41813
41814 * term/efi/console.c (grub_console_init): Do not call
41815 grub_term_set_current_output() or grub_term_set_current_input().
41816 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41817 * term/i386/pc/console.c (grub_console_init): Likewise.
41818 (grub_console_fini): Do not call grub_term_set_current_input()
41819 (but leave grub_term_set_current_output() to restore text mode).
41820
41821 2008-11-10 Robert Millan <rmh@aybabtu.com>
41822
41823 * util/grub.d/00_header.in: Add backward compatibility check for
41824 versions of terminal.mod that don't understand `terminal_input' or
41825 `terminal_output'.
41826
41827 2008-11-09 Robert Millan <rmh@aybabtu.com>
41828
41829 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41830 `terminal_input' / `terminal_output', not `terminal'.
41831
41832 2008-11-08 Robert Millan <rmh@aybabtu.com>
41833
41834 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41835 (DISTCLEANFILES): Add `build_env.mk'.
41836
41837 2008-11-08 Robert Millan <rmh@aybabtu.com>
41838
41839 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41840 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41841 members. Update all users.
41842 * util/console.c (grub_ncurses_term): Split in ...
41843 (grub_ncurses_term_input): ... this, and ...
41844 (grub_ncurses_term_output): ... this. Update all users.
41845 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41846
41847 2008-11-08 Robert Millan <rmh@aybabtu.com>
41848
41849 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41850 (PKGDATA): Add $(pkgdata_SRCDIR).
41851 (pkglib_BUILDDIR): New variable.
41852 (pkgdata_SRCDIR): New variable.
41853 (build_env.mk): New target.
41854 (include_DATA): New variable.
41855 (install-local): Install $(include_DATA) files in $(includedir).
41856
41857 2008-11-07 Pavel Roskin <proski@gnu.org>
41858
41859 * gendistlist.sh: Use C locale for sorting to ensure consistent
41860 output on all systems.
41861
41862 * util/grub.d/00_header.in: Remove incorrect space before
41863 "serial".
41864
41865 2008-11-07 Robert Millan <rmh@aybabtu.com>
41866
41867 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41868 per specification.
41869 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41870 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41871 (based on find_multi_boot1_header).
41872 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41873 using find_multi_boot2_header(), and abort if neither Multiboot or
41874 Multiboot headers were found.
41875
41876 2008-11-07 Robert Millan <rmh@aybabtu.com>
41877
41878 Modularize at_keyboard.mod:
41879
41880 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41881 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41882 (at_keyboard_mod_LDFLAGS): New variables.
41883
41884 Actual terminal split:
41885
41886 * include/grub/term.h (struct grub_term): Split in ...
41887 (struct grub_term_input): ... this, and ...
41888 (struct grub_term_output): ... this. Update all users.
41889 (grub_term_set_current): Split in ...
41890 (grub_term_set_current_input): ... this, and ...
41891 (grub_term_set_current_output): ... this.
41892 (grub_term_get_current): Split in ...
41893 (grub_term_get_current_input): ... this, and ...
41894 (grub_term_get_current_output): ... this.
41895 (grub_term_register): Split in ...
41896 (grub_term_register_input): ... this, and ...
41897 (grub_term_register_output): ... this.
41898 (grub_term_unregister): Split in ...
41899 (grub_term_unregister_input): ... this, and ...
41900 (grub_term_unregister_output): ... this.
41901 (grub_term_iterate): Split in ...
41902 (grub_term_iterate_input): ... this, and ...
41903 (grub_term_iterate_output): ... this.
41904
41905 * kern/term.c (grub_term_list): Split in ...
41906 (grub_term_list_input): ... this, and ...
41907 (grub_term_list_output): ... this. Update all users.
41908 (grub_cur_term): Split in ...
41909 (grub_cur_term_input): ... this, and ...
41910 (grub_cur_term_output): ... this. Update all users.
41911 (grub_term_set_current): Split in ...
41912 (grub_term_set_current_input): ... this, and ...
41913 (grub_term_set_current_output): ... this.
41914 (grub_term_get_current): Split in ...
41915 (grub_term_get_current_input): ... this, and ...
41916 (grub_term_get_current_output): ... this.
41917 (grub_term_register): Split in ...
41918 (grub_term_register_input): ... this, and ...
41919 (grub_term_register_output): ... this.
41920 (grub_term_unregister): Split in ...
41921 (grub_term_unregister_input): ... this, and ...
41922 (grub_term_unregister_output): ... this.
41923 (grub_term_iterate): Split in ...
41924 (grub_term_iterate_input): ... this, and ...
41925 (grub_term_iterate_output): ... this.
41926
41927 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41928 a check for input and one for output (and only attempt to get keys
41929 from user when input works).
41930
41931 * util/grub-probe.c (grub_term_get_current): Split in ...
41932 (grub_term_get_current_input): ... this, and ...
41933 (grub_term_get_current_output): ... this.
41934 * util/grub-fstest.c: Likewise.
41935 * util/i386/pc/grub-setup.c: Likewise.
41936 * util/grub-editenv.c: Likewise.
41937
41938 Portability adjustments:
41939
41940 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
41941 `term/i386/pc/at_keyboard.c'.
41942 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
41943 grub_keyboard_controller_init() (now handled by terminal .init).
41944 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
41945 grub_at_keyboard_init().
41946 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
41947 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
41948 at_keyboard.mod via input terminal interface).
41949 * include/grub/i386/coreboot/console.h: Convert into a stub for
41950 `<grub/i386/pc/console.h>'.
41951
41952 Migrate full terminals to new API:
41953
41954 * term/efi/console.c (grub_console_term): Split into ...
41955 (grub_console_term_input): ... this, and ...
41956 (grub_console_term_output): ... this. Update all users.
41957 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
41958 (grub_ofconsole_init): Split into ...
41959 (grub_ofconsole_init_input): ... this, and ...
41960 (grub_ofconsole_init_output): ... this.
41961 (grub_ofconsole_term): Split into ...
41962 (grub_ofconsole_term_input): ... this, and ...
41963 (grub_ofconsole_term_output): ... this. Update all users.
41964 * term/i386/pc/serial.c (grub_serial_term): Split into ...
41965 (grub_serial_term_input): ... this, and ...
41966 (grub_serial_term_output): ... this. Update all users.
41967 * term/i386/pc/console.c (grub_console_term): Split into ...
41968 (grub_console_term_input): ... this, and ...
41969 (grub_console_term_output): ... this. Update all users.
41970 (grub_console_term_input): Only enable it on PC/BIOS platform.
41971 (grub_console_init): Remove grub_keyboard_controller_init() call.
41972
41973 Migrate input terminals to new API:
41974
41975 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
41976 `i386' and `i386/pc' to enable build on x86_64 (this driver is
41977 i386-specific anyway).
41978 (grub_console_checkkey): Rename to ...
41979 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
41980 users.
41981 (grub_keyboard_controller_orig): New variable.
41982 (grub_console_getkey): Rename to ...
41983 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
41984 users.
41985 (grub_keyboard_controller_init): Static-ize. Save original
41986 controller value so that it can be restored ...
41987 (grub_keyboard_controller_fini): ... here (new function).
41988 (grub_at_keyboard_term): New structure.
41989 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
41990 functions.
41991
41992 Migrate output terminals to new API:
41993
41994 * term/i386/pc/vga.c (grub_vga_term): Change type to
41995 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41996 members. Update all users.
41997 * term/gfxterm.c (grub_video_term): Change type to
41998 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41999 members. Update all users.
42000 * include/grub/i386/pc/console.h (grub_console_checkkey)
42001 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42002 etc).
42003
42004 Migrate `terminal' command and userland tools to new API:
42005
42006 * commands/terminal.c (grub_cmd_terminal): Split into ...
42007 (grub_cmd_terminal_input): ... this, and ...
42008 (grub_cmd_terminal_output): ... this.
42009 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42010 `terminal_input' and `terminal_output'.
42011 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42012 `terminal_input' / `terminal_output' API.
42013 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42014 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42015 provided ${GRUB_TERMINAL}, convert it).
42016
42017 2008-11-04 Robert Millan <rmh@aybabtu.com>
42018
42019 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42020 for FreeBSD.
42021 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42022
42023 2008-11-03 Bean <bean123ch@gmail.com>
42024
42025 * kern/elf.c (grub_elf32_load): Revert to previous code.
42026 (grub_elf64_load): Likewise.
42027
42028 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42029
42030 2008-11-01 Robert Millan <rmh@aybabtu.com>
42031
42032 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42033 (TARGET_CPPFLAGS): Likewise.
42034 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42035
42036 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42037
42038 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42039
42040 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42041
42042 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42043 addition of objects until the code is not going to be able to fail.
42044
42045 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42046
42047 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42048 (add a missing NULL check, and correct them by moving the pointer
42049 operations after the actual check).
42050
42051 2008-10-29 Robert Millan <rmh@aybabtu.com>
42052
42053 * util/i386/pc/grub-install.in: Handle empty string as output from
42054 make_system_path_relative_to_its_root().
42055
42056 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42057
42058 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42059 circular metadata worst case scenario. If the metadata is circular
42060 then copy the wrap in place.
42061 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42062 project lib/format_text/layout.h
42063 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42064
42065 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42066
42067 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42068
42069 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42070
42071 * util/update-grub_lib.in: Mention filename in warning message.
42072
42073 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42074
42075 * NEWS: Update for rename of update-grub to grub-mkconfig.
42076
42077 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42078
42079 * util/update-grub_lib.in: Copy to ...
42080 * util/grub-mkconfig_lib.in: ... this. Update all users.
42081 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42082 * util/update-grub.in: Rename to ...
42083 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42084 option. Add `--output' option to allow users to specify the generated
42085 configuration file. Default to stdout.
42086 (update_grub_dir): Rename to ...
42087 (grub_mkconfig_dir): ... this.
42088 (grub_cfg): Default to an empty string.
42089 * conf/common.rmk (update-grub): Rename to ...
42090 (grub-mkconfig): ... this.
42091 (update-grub_lib): Copy to ...
42092 (grub-mkconfig_lib): ... this.
42093 (update-grub_SCRIPTS): Copy to ...
42094 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42095 (update-grub_DATA): Rename to ...
42096 (grub-mkconfig_DATA): ... this.
42097
42098 2008-09-28 Robert Millan <rmh@aybabtu.com>
42099
42100 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42101 to `modified'. Add the real `created' field.
42102 (grub_iso9660_uuid): Use `modified' rather than `created' for
42103 constructing the UUID.
42104
42105 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42106
42107 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42108 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42109
42110 2008-09-28 Bean <bean123ch@gmail.com>
42111
42112 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42113 Thanks to Christian Franke for finding this bug.
42114
42115 2008-09-25 Robert Millan <rmh@aybabtu.com>
42116
42117 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42118 instances of grub_util_get_disk_name() (see previous commit).
42119
42120 2008-09-25 Robert Millan <rmh@aybabtu.com>
42121
42122 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42123 `util/i386/get_disk_name.c'.
42124 * conf/i386-efi.rmk: Likewise.
42125 * conf/x86_64-efi.rmk: Likewise.
42126 * conf/i386-coreboot.rmk: Likewise.
42127 * conf/i386-ieee1275.rmk: Likewise.
42128 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42129 `util/ieee1275/get_disk_name.c'.
42130 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42131 * util/ieee1275/get_disk_name.c: Remove file.
42132 * util/i386/get_disk_name.c: Remove file.
42133 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42134 "hd%d" for device.map entries, rather than using
42135 grub_util_get_disk_name().
42136
42137 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42138
42139 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42140 warning.
42141 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42142
42143 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42144
42145 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42146 Changed to 0x5100.
42147 (GRUB_TERM_PPAGE): Changed to 0x4900.
42148
42149 2008-09-24 Robert Millan <rmh@aybabtu.com>
42150
42151 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42152 macros (they were i386-pc specific).
42153 * include/grub/sparc64/ieee1275/console.h: Likewise.
42154 * include/grub/efi/console.h: Likewise.
42155
42156 2008-09-22 Bean <bean123ch@gmail.com>
42157
42158 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42159 resident and in attribute list.
42160
42161 * include/grub/ntfs.h (BMP_LEN): Removed.
42162
42163 2008-09-22 Bean <bean123ch@gmail.com>
42164
42165 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42166 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42167
42168 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42169 error occurs, as grub_disk_open will call grub_disk_close, which will
42170 call p->close (scsi).
42171
42172 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42173
42174 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42175 (AC_PREREQ): Bumped to 2.59.
42176 (AC_TRY_COMPILE): Replace obsolete macro with ...
42177 (AC_COMPILE_IFELSE): ... this.
42178 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42179 (AC_LINK_IFELSE): ... this.
42180
42181 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42182
42183 * autogen.sh: Add a call to `gendistlist.sh'.
42184
42185 2008-09-19 Christian Franke <franke@computer.org>
42186
42187 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42188 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42189 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42190 Export __enable_execute_stack() to modules.
42191 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42192 New function.
42193
42194 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42195
42196 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42197 Sort the list.
42198
42199 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42200
42201 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42202 #include <grub/util/hostdisk.h>.
42203
42204 2008-09-08 Robert Millan <rmh@aybabtu.com>
42205
42206 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42207 segments when their filesz is zero (grub_file_read() interprets
42208 zero-size as "read until EOF", which results in memory corruption).
42209 Use `lowest_segment' rather than 0 for calculating the current
42210 segment load address.
42211
42212 2008-09-08 Robert Millan <rmh@aybabtu.com>
42213
42214 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42215 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42216 clobbered useful information.
42217
42218 2008-09-08 Robert Millan <rmh@aybabtu.com>
42219
42220 * include/grub/util/biosdisk.h: Move to ...
42221 * include/grub/util/hostdisk.h: ... here. Update all users.
42222 * util/biosdisk.c: Move to ...
42223 * util/hostdisk.c: ... here. Update all users.
42224
42225 2008-09-07 Robert Millan <rmh@aybabtu.com>
42226
42227 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42228 variables.
42229 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42230 and length can be stored directly in the `mbi->mmap_addr' and
42231 `mbi->mmap_length' struct fields.
42232
42233 2008-09-07 Robert Millan <rmh@aybabtu.com>
42234
42235 * conf/i386.rmk: New file. Provides declaration for building
42236 `cpuid.mod'.
42237 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42238 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42239 variables.
42240 Include `conf/i386.mk'.
42241 * conf/i386-efi.rmk: Likewise.
42242 * conf/x86_64-efi.rmk: Likewise.
42243 * conf/i386-coreboot.rmk: Likewise.
42244 * conf/i386-ieee1275.rmk: Likewise.
42245
42246 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42247
42248 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42249 Adds optimization support for BGR based modes.
42250
42251 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42252 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42253 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42254 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42255 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42256 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42257 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42258 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42259 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42260 (grub_video_i386_vbeblit_index_index): Likewise.
42261 (grub_video_i386_vbeblit_replace_directN): Added.
42262 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42263 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42264 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42265 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42266 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42267 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42268 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42269 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42270 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42271 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42272 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42273 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42274 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42275
42276 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42277 (grub_video_i386_vbefill_R8G8B8): Likewise.
42278 (grub_video_i386_vbefill_index): Likewise.
42279 (grub_video_i386_vbefill_direct32): Added.
42280 (grub_video_i386_vbefill_direct24): Likewise.
42281 (grub_video_i386_vbefill_direct16): Likewise.
42282 (grub_video_i386_vbefill_direct8): Likewise.
42283
42284 * include/grub/video.h (grub_video_blit_format): Removed
42285 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42286 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42287 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42288 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42289 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42290
42291 * video/video.c (grub_video_get_blit_format): Updated to use new
42292 blit formats. Added handling for 16 bit color modes.
42293
42294 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42295 fillers.
42296 (common_blitter): Updated to use new blitters.
42297
42298 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42299 Removed.
42300 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42301 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42302 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42303 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42304 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42305 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42306 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42307 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42308 (grub_video_i386_vbeblit_index_index): Likewise.
42309 (grub_video_i386_vbeblit_replace_directN): Added.
42310 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42311 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42312 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42313 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42314 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42315 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42316 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42317 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42318 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42319 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42320 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42321 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42322 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42323
42324 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42325 (grub_video_i386_vbefill_R8G8B8): Likewise.
42326 (grub_video_i386_vbefill_index): Likewise.
42327 (grub_video_i386_vbefill_direct32): Added.
42328 (grub_video_i386_vbefill_direct24): Likewise.
42329 (grub_video_i386_vbefill_direct16): Likewise.
42330 (grub_video_i386_vbefill_direct8): Likewise.
42331
42332 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42333 types.
42334
42335 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42336 types.
42337
42338 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42339 blitter types.
42340
42341 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42342 types.
42343
42344 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42345
42346 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42347 RAID level 1.
42348
42349 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42350
42351 * fs/iso9660.c (grub_iso9660_date): New structure.
42352 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42353 (grub_iso9660_uuid): New function.
42354
42355 2008-09-05 Bean <bean123ch@gmail.com>
42356
42357 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42358
42359 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42360 insensitive bit for names in Win32 and Win32 & DOS namespace.
42361
42362 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42363
42364 * include/grub/types.h (LONG_MAX): Likewise.
42365
42366 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42367
42368 * util/getroot.c: Include <config.h>.
42369 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42370 add support for /dev/md/N devices and handle LVM double dash escaping.
42371
42372 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42373
42374 * config.guess: Update to latest version from config git.
42375 * config.sub: Likewise.
42376
42377 2008-09-03 Robert Millan <rmh@aybabtu.com>
42378
42379 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42380 `disk->total_sectors'.
42381
42382 2008-09-01 Colin D Bennett <colin@gibibit.com>
42383
42384 * include/grub/normal.h: Fixed incorrect comment for
42385 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42386
42387 2008-09-01 Colin D Bennett <colin@gibibit.com>
42388
42389 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42390 values with defines.
42391
42392 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42393 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42394 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42395 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42396 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42397 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42398 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42399 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42400 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42401 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42402 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42403 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42404 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42405 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42406 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42407 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42408 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42409 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42410 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42411
42412 2008-08-31 Robert Millan <rmh@aybabtu.com>
42413
42414 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42415 declaration.
42416 (grub_multiboot): Fix a few warnings.
42417
42418 2008-08-31 Robert Millan <rmh@aybabtu.com>
42419
42420 * loader/i386/pc/multiboot.c: Update comment not to say that
42421 boot_device support is unimplemented.
42422
42423 2008-08-31 Robert Millan <rmh@aybabtu.com>
42424
42425 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42426 or memory map support are unimplemented.
42427
42428 2008-08-31 Colin D Bennett <colin@gibibit.com>
42429
42430 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42431
42432 2008-08-31 Colin D Bennett <colin@gibibit.com>
42433
42434 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42435 total video memory in 'vbeinfo' output; show color format details for
42436 each video mode.
42437
42438 2008-08-30 Pavel Roskin <proski@gnu.org>
42439
42440 * util/genmoddep.c: Remove for real this time.
42441 * DISTLIST: Remove util/genmoddep.c.
42442
42443 2008-08-30 Robert Millan <rmh@aybabtu.com>
42444
42445 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42446 as required by Multiboot spec (it was already 4-byte aligned, but
42447 only by chance).
42448
42449 2008-08-29 Pavel Roskin <proski@gnu.org>
42450
42451 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42452 * kern/powerpc/ieee1275/startup.S: ... this.
42453 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42454 * DISTLIST: Likewise.
42455
42456 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42457 grub/cpu/kernel.h. Add start label for consistency with other
42458 platforms. Add grub_prefix immediately after start. Add jump
42459 to the code after grub_prefix.
42460 * include/grub/powerpc/kernel.h: Provide valid values for
42461 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42462
42463 2008-08-29 Bean <bean123ch@gmail.com>
42464
42465 * configure.ac: Change host_os to cygwin for mingw.
42466 (asprintf): New check for function.
42467
42468 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42469 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42470
42471 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42472 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42473 sync, sleep and grub_util_get_disk_size for mingw.
42474
42475 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42476 to get size in mingw.
42477 (open_device): Use flag O_BINARY if it's defined.
42478 (find_root_device): Add dummy code for mingw.
42479
42480 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42481 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42482 (get_scsi_disk_name): Return 0 for mingw.
42483
42484 * util/hostfs.c: #include <grub/util/misc.h>.
42485 (grub_hostfs_open): Use "rb" flag to open file, use
42486 grub_util_get_disk_size to get disk size for mingw.
42487
42488 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42489 (asprintf): New function if HAVE_ASPRINTF is not set.
42490 (sync): New function for mingw.
42491 (sleep): Likewise.
42492 (grub_util_get_disk_size): Likewise.
42493
42494 2008-08-28 Pavel Roskin <proski@gnu.org>
42495
42496 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42497 kern/time.c.
42498
42499 2008-08-28 Robert Millan <rmh@aybabtu.com>
42500
42501 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42502
42503 2008-08-28 Robert Millan <rmh@aybabtu.com>
42504
42505 Change find_grub_drive() syntax so it doesn't prevent it from
42506 detecting NULL names as errors.
42507
42508 * util/biosdisk.c (find_grub_drive): Move free slot search code
42509 from here ...
42510 (find_free_slot): ... to here.
42511 (read_device_map): Use find_free_slot() to search for free slots.
42512
42513 2008-08-27 Marco Gerards <marco@gnu.org>
42514
42515 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42516 (scsi_mod_SOURCES): New variable.
42517 (scsi_mod_CFLAGS): Likewise
42518 (scsi_mod_LDFLAGS): Likewise.
42519
42520 * disk/scsi.c: New file.
42521
42522 * include/grub/scsi.h: Likewise.
42523
42524 * include/grub/scsicmd.h: Likewise.
42525
42526 * disk/ata.c: Include <grub/scsi.h>.
42527 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42528 instead.
42529 (grub_ata_iterate): Skip ATAPI devices.
42530 (grub_ata_open): Only handle ATAPI devices.
42531 (struct grub_atapi_read): Removed.
42532 (grub_atapi_readsector): Likewise.
42533 (grub_ata_read): No longer handle ATAPI devices.
42534 (grub_ata_write): Likewise.
42535 (grub_atapi_iterate): New function.
42536 (grub_atapi_read): Likewise.
42537 (grub_atapi_write): Likewise.
42538 (grub_atapi_open): Likewise.
42539 (grub_atapi_close): Likewise.
42540 (grub_atapi_dev): New variable.
42541 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42542 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42543
42544 * include/grub/disk.h (enum grub_disk_dev_id): Add
42545 `GRUB_DISK_DEVICE_SCSI_ID'.
42546
42547 2008-08-26 Robert Millan <rmh@aybabtu.com>
42548
42549 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42550 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42551 descriptive.
42552
42553 2008-08-23 Bean <bean123ch@gmail.com>
42554
42555 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42556 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42557 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42558 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42559 dm_nv.mod.
42560 (raid5rec_mod_SOURCES): New macro.
42561 (raid5rec_mod_CFLAGS): Likewise.
42562 (raid5rec_mod_LDFLAGS): Likewise.
42563 (raid6rec_mod_SOURCES): Likewise.
42564 (raid6rec_mod_CFLAGS): Likewise.
42565 (raid6rec_mod_LDFLAGS): Likewise.
42566 (mdraid_mod_SOURCES): Likewise.
42567 (mdraid_mod_CFLAGS): Likewise.
42568 (mdraid_mod_LDFLAGS): Likewise.
42569 (dm_nv_mod_SOURCES): Likewise.
42570 (dm_nv_mod_CFLAGS): Likewise.
42571 (dm_nv_mod_LDFLAGS): Likewise.
42572
42573 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42574 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42575 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42576
42577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42578 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42579
42580 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42581
42582 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42583
42584 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42585
42586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42587
42588 * disk/raid5_recover.c: New file.
42589
42590 * disk/raid6_recover.c: Likewise.
42591
42592 * disk/mdraid_linux.c: Likewise.
42593
42594 * disk/dmraid_nvidia.c: Likewise.
42595
42596 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42597 ULONG_MAX.
42598
42599 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42600 calculate the size of raid device.
42601 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42602 different layout of raid5.
42603 (grub_raid_scan_device): Remove code specific to mdraid.
42604 (grub_raid_list): New variable.
42605 (free_array): New function.
42606 (grub_raid_register): Likewise.
42607 (grub_raid_unregister): Likewise.
42608 (grub_raid_rescan): Likewise.
42609 (GRUB_MOD_INIT): Don't iterate device here.
42610 (GRUB_MOD_FINI): Use free_array to release resource.
42611
42612 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42613 (grub_raid5_recover_func_t): New function variable type.
42614 (grub_raid6_recover_func_t): Likewise.
42615 (grub_raid5_recover_func): New variable.
42616 (grub_raid6_recover_func): Likewise.
42617 (grub_raid_register): New function.
42618 (grub_raid_unregister): Likewise.
42619 (grub_raid_rescan): Likewise.
42620 (grub_raid_block_xor): Likewise.
42621
42622 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42623 (CMD_CRC): New macro.
42624 (part): Removed.
42625 (read_file): Handle device as well as file.
42626 (cmd_crc): New function.
42627 (fstest): Handle multiple disks.
42628 (options): Remove part, raw and long, add root and diskcount.
42629 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42630 (main): Find the first non option entry and ignore subsequent options,
42631 add handling for the new options, support multiple disks.
42632
42633 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42634
42635 2008-08-23 Bean <bean123ch@gmail.com>
42636
42637 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42638
42639 * genfslist.sh: Ignore kernel.mod.
42640
42641 * genpartmaplist.sh: Likewise.
42642
42643 2008-08-23 Robert Millan <rmh@aybabtu.com>
42644
42645 * util/getroot.c (find_root_device): Skip anything that starts with
42646 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42647
42648 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42649
42650 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42651 * util/grub.d/00_header.in: Allow the administrator to change default
42652 gfxmode via ${GRUB_GFXMODE}.
42653
42654 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42655
42656 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42657
42658 2008-08-21 Robert Millan <rmh@aybabtu.com>
42659
42660 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42661 loader.
42662 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42663 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42664
42665 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42666
42667 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42668 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42669
42670 2008-08-19 Robert Millan <rmh@aybabtu.com>
42671
42672 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42673 (struct grub_virtual_screen): Remove `cursor_color'.
42674 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42675 initialization.
42676 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42677
42678 2008-08-18 Robert Millan <rmh@aybabtu.com>
42679
42680 Unify (identical) linux_normal.c files.
42681 * loader/i386/efi/linux_normal.c: Move from here ...
42682 * loader/linux_normal.c: ... to here. Update all users.
42683 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42684 * loader/i386/ieee1275/linux_normal.c: Likewise.
42685
42686 2008-08-18 Robert Millan <rmh@aybabtu.com>
42687
42688 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42689 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42690 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42691 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42692 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42693 New macros.
42694 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42695 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42696 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42697 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42698 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42699 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42700 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42701 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42702 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42703 portably using grub_getxy().
42704 Replace `-EFI' with `-bzImage' in boot message.
42705
42706 2008-08-17 Robert Millan <rmh@aybabtu.com>
42707
42708 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42709
42710 2008-08-17 Robert Millan <rmh@aybabtu.com>
42711
42712 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42713
42714 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42715 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42716 (grub_machine_mmap_iterate): New function declaration.
42717 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42718 structure.
42719 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42720 macros.
42721
42722 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42723 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42724 Move e820 parsing from here ...
42725 * kern/i386/pc/mmap.c: New file.
42726 (grub_machine_mmap_iterate): ... to here.
42727
42728 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42729 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42730 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42731 (grub_available_iterate): Redeclare to return `void', and redeclare
42732 its hook to use grub_uint64_t as addr and size parameters, and rename
42733 to ...
42734 (grub_machine_mmap_iterate): ... this. Update all users.
42735
42736 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42737 to make it more readable. Rename to ...
42738 (grub_machine_mmap_iterate): ... this.
42739
42740 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42741 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42742 (grub_multiboot): Allocate an extra region after the payload, and fill
42743 it with a Multiboot memory map. Adjust a.out loader to calculate size
42744 with the extra space.
42745 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42746 with the extra space.
42747
42748 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42749
42750 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42751
42752 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42753
42754 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42755 mdate-sh to the list `find' searches for.
42756 * DISTLIST: Regenerated.
42757
42758 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42759
42760 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42761 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42762 genmoddep.awk, gensymlist.sh.in.
42763 (DISTDIRS): Add bus, docs, hook, lib.
42764 * DISTLIST: Regenerated.
42765 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42766
42767 2008-08-16 Robert Millan <rmh@aybabtu.com>
42768
42769 * disk/raid.c (grub_raid_init): Handle/report errors set by
42770 grub_device_iterate().
42771 * disk/lvm.c (grub_lvm_init): Likewise.
42772
42773 2008-08-15 Bean <bean123ch@gmail.com>
42774
42775 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42776 and datehook.mod.
42777 (datetime_mod_SOURCES): New macro.
42778 (datetime_mod_CFLAGS): Likewise.
42779 (datetime_mod_LDFLAGS): Likewise.
42780 (date_mod_SOURCES): Likewise.
42781 (date_mod_CFLAGS): Likewise.
42782 (date_mod_LDFLAGS): Likewise.
42783 (datehook_mod_SOURCES): Likewise.
42784 (datehook_mod_CFLAGS): Likewise.
42785 (datehook_mod_LDFLAGS): Likewise.
42786
42787 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42788 and datehook.mod.
42789 (datetime_mod_SOURCES): New macro.
42790 (datetime_mod_CFLAGS): Likewise.
42791 (datetime_mod_LDFLAGS): Likewise.
42792 (date_mod_SOURCES): Likewise.
42793 (date_mod_CFLAGS): Likewise.
42794 (date_mod_LDFLAGS): Likewise.
42795 (datehook_mod_SOURCES): Likewise.
42796 (datehook_mod_CFLAGS): Likewise.
42797 (datehook_mod_LDFLAGS): Likewise.
42798
42799 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42800 and datehook.mod.
42801 (datetime_mod_SOURCES): New macro.
42802 (datetime_mod_CFLAGS): Likewise.
42803 (datetime_mod_LDFLAGS): Likewise.
42804 (date_mod_SOURCES): Likewise.
42805 (date_mod_CFLAGS): Likewise.
42806 (date_mod_LDFLAGS): Likewise.
42807 (datehook_mod_SOURCES): Likewise.
42808 (datehook_mod_CFLAGS): Likewise.
42809 (datehook_mod_LDFLAGS): Likewise.
42810
42811 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42812 and datehook.mod.
42813 (datetime_mod_SOURCES): New macro.
42814 (datetime_mod_CFLAGS): Likewise.
42815 (datetime_mod_LDFLAGS): Likewise.
42816 (date_mod_SOURCES): Likewise.
42817 (date_mod_CFLAGS): Likewise.
42818 (date_mod_LDFLAGS): Likewise.
42819 (datehook_mod_SOURCES): Likewise.
42820 (datehook_mod_CFLAGS): Likewise.
42821 (datehook_mod_LDFLAGS): Likewise.
42822
42823 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42824 and datehook.mod.
42825 (datetime_mod_SOURCES): New macro.
42826 (datetime_mod_CFLAGS): Likewise.
42827 (datetime_mod_LDFLAGS): Likewise.
42828 (date_mod_SOURCES): Likewise.
42829 (date_mod_CFLAGS): Likewise.
42830 (date_mod_LDFLAGS): Likewise.
42831 (datehook_mod_SOURCES): Likewise.
42832 (datehook_mod_CFLAGS): Likewise.
42833 (datehook_mod_LDFLAGS): Likewise.
42834
42835 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42836
42837 * commands/date.c: New file.
42838
42839 * hook/datehook.c: Likewise.
42840
42841 * include/grub/lib/datetime.h: Likewise.
42842
42843 * include/grub/i386/cmos.h: Likewise.
42844
42845 * lib/datetime.c: Likewise.
42846
42847 * lib/i386/datetime.c: Likewise.
42848
42849 * lib/efi/datetime.c: Likewise.
42850
42851 2008-08-14 Robert Millan <rmh@aybabtu.com>
42852
42853 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42854 (grub_mkelfimage_SOURCES): New variable.
42855 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42856
42857 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42858 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42859 * conf/powerpc-ieee1275.rmk: Likewise.
42860 * conf/i386-ieee1275.rmk: Likewise.
42861
42862 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42863 * kern/i386/coreboot/init.c: Likewise.
42864
42865 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42866 with `<grub/cpu/kernel.h>'.
42867 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42868 to ...
42869 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42870 * kern/i386/coreboot/startup.S: Likewise.
42871
42872 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42873 (GRUB_MOD_GAP): Remove.
42874 * include/grub/powerpc/kernel.h: New file.
42875 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42876 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42877 * include/grub/i386/kernel.h: New file.
42878 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42879 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42880 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42881
42882 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42883 `grub-mkelfimage'.
42884 Use --directory when invoking grub_mkimage.
42885
42886 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42887 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42888 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42889 and GRUB_KERNEL_CPU_PREFIX.
42890
42891 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42892
42893 * include/grub/err.h (grub_err_printf): New function prototype.
42894 * util/misc.c (grub_err_printf): New function.
42895 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42896 grub_printf.
42897 * kern/err.c (grub_print_error): Use grub_err_printf.
42898
42899 2008-08-13 Robert Millan <rmh@aybabtu.com>
42900
42901 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42902
42903 2008-08-13 Robert Millan <rmh@aybabtu.com>
42904
42905 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42906 boot entry.
42907
42908 2008-08-12 Robert Millan <rmh@aybabtu.com>
42909
42910 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42911 of the relocation code from here ...
42912 (grub_multiboot): ... to here.
42913 (forward_relocator, backward_relocator): Move from here ...
42914 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42915 (grub_multiboot_backward_relocator): ... to here.
42916 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42917 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42918 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42919 (grub_multiboot_forward_relocator_end)
42920 (grub_multiboot_backward_relocator)
42921 (grub_multiboot_backward_relocator_end): New variables.
42922
42923 2008-08-12 Bean <bean123ch@gmail.com>
42924
42925 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42926
42927 2008-08-11 Robert Millan <rmh@aybabtu.com>
42928
42929 * kern/i386/linuxbios/startup.S: Move from here ...
42930 * kern/i386/coreboot/startup.S: ... to here.
42931
42932 * kern/i386/linuxbios/init.c: Move from here ...
42933 * kern/i386/coreboot/init.c: ... to here.
42934
42935 * kern/i386/linuxbios/table.c: Move from here ...
42936 * kern/i386/coreboot/mmap.c: ... to here.
42937
42938 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
42939
42940 2008-08-11 Robert Millan <rmh@aybabtu.com>
42941
42942 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
42943 errors. Leave it to the upper layer to handle them.
42944
42945 2008-08-09 Christian Franke <franke@computer.org>
42946
42947 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
42948 * conf/common.rmk: Install `grub-pe2elf' only if requested.
42949 Install `grub.d/10_windows' only on Cygwin.
42950 * configure.ac: Add subst of `target_os'.
42951 Check `target_os' also before setting TARGET_OBJ2ELF.
42952 Add `--enable-grub-pe2elf'.
42953
42954 2008-08-08 Robert Millan <rmh@aybabtu.com>
42955
42956 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42957 (grub_last_time): Change type to grub_uint64_t.
42958 (grub_disk_open): Migrate code from to using grub_get_time_ms().
42959 (grub_disk_close): Likewise.
42960
42961 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
42962 (run_menu): Migrate code from to using grub_get_time_ms().
42963
42964 * util/misc.c (grub_get_time_ms): New function.
42965
42966 2008-08-08 Marco Gerards <marco@gnu.org>
42967
42968 * disk/ata.c (grub_ata_regget): Change return type to
42969 `grub_uint8_t'.
42970 (grub_ata_regget2): Likewise.
42971 (grub_ata_wait_status): New function.
42972 (grub_ata_wait_busy): Removed function, updated all users to use
42973 `grub_ata_wait_status'.
42974 (grub_ata_wait_drq): Likewise.
42975 (grub_ata_cmd): New function.
42976 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
42977 error handling.
42978 (grub_ata_pio_write): Add error handling.
42979 (grub_atapi_identify): Likewise.
42980 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
42981 handling.
42982 (grub_ata_identify): Use `grub_ata_cmd' and improve error
42983 handling. Actually use the detected registers. Reorder the
42984 detection logic such that it is easier to read.
42985 (grub_ata_pciinit): Do not assign the same ID to each controller.
42986 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
42987 handling.
42988 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
42989
42990 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
42991
42992 2008-08-08 Marco Gerards <marco@gnu.org>
42993
42994 * NEWS: Update.
42995
42996 2008-08-07 Bean <bean123ch@gmail.com>
42997
42998 * include/grub/x86_64/pci.h: New file.
42999
43000 2008-08-07 Christian Franke <franke@computer.org>
43001
43002 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43003 (TIMER2_GATE): Likewise.
43004 (grub_pit_wait): Add enable/disable of the timer2 gate
43005 bit of port 0x61. This fixes a possible infinite loop.
43006
43007 2008-08-07 Bean <bean123ch@gmail.com>
43008
43009 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43010 kern/i386/tsc.c and kern/i386/pit.c.
43011
43012 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43013 x86_64 platform.
43014
43015 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43016 <grub/i386/tsc.h>.
43017
43018 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43019
43020 2008-08-07 Bean <bean123ch@gmail.com>
43021
43022 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43023
43024 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43025
43026 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43027 multiple inclusion. Add #include <grub/types.h>.
43028
43029 2008-08-06 Christian Franke <franke@computer.org>
43030
43031 * conf/common.rmk: Build and install `10_windows'.
43032 * util/grub.d/10_windows.in: New script.
43033
43034 2008-08-06 Pavel Roskin <proski@gnu.org>
43035
43036 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43037
43038 2008-08-06 Robert Millan <rmh@aybabtu.com>
43039
43040 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43041 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43042
43043 2008-08-06 Bean <bean123ch@gmail.com>
43044
43045 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43046 (grub_pxefs_fs_int): Remove dummy definition.
43047 (grub_pxefs_open): Use data->block_size to store the current block
43048 size setting.
43049 (grub_pxefs_read): Use block size stored in data->block_size. As the
43050 value of grub_pxe_blksize can be changed after the file is opened.
43051
43052 2008-08-06 Bean <bean123ch@gmail.com>
43053
43054 * fs/i386/pc/pxe.c (curr_file): new variable.
43055 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43056 require the dummy internal file system anymore.
43057 (grub_pxefs_read): Removed.
43058 (grub_pxefs_close): Likewise.
43059 (grub_pxefs_fs_int): Likewise.
43060 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43061 connection when we switch file.
43062 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43063
43064 2008-08-06 Robert Millan <rmh@aybabtu.com>
43065
43066 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43067 `halt.mod'.
43068 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43069 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43070
43071 * kern/i386/halt.c: New file.
43072 * kern/i386/reboot.c: Likewise.
43073 * include/grub/i386/reboot.h: Likewise.
43074 * include/grub/i386/halt.h: Likewise.
43075
43076 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43077 Include `<grub/cpu/halt.h>'.
43078 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43079 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43080
43081 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43082 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43083 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43084 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43085 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43086 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43087 from here ...
43088 * include/grub/i386/at_keyboard.h: ... to here.
43089
43090 2008-08-05 Robert Millan <rmh@aybabtu.com>
43091
43092 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43093 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43094 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43095 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43096 `kern/generic/millisleep.c'.
43097
43098 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43099 instead of grub_get_rtc().
43100 (grub_tsc_init): Initialize `tsc_boot_time'.
43101
43102 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43103 (grub_machine_init): Use grub_tsc_init() rather than
43104 installing an RTC-based handler via grub_install_get_time_ms().
43105
43106 * kern/i386/pit.c: New file.
43107 * include/grub/i386/pit.h: Likewise.
43108
43109 2008-08-05 Bean <bean123ch@gmail.com>
43110
43111 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43112
43113 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43114 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43115 (pxe_mod_SOURCES): New macro.
43116 (pxe_mod_CFLAGS): Likewise.
43117 (pxe_mod_LDFLAGS): Likewise.
43118 (pxecmd_mod_SOURCES): Likewise.
43119 (pxecmd_mod_CFLAGS): Likewise.
43120 (pxecmd_mod_LDFLAGS): Likewise.
43121
43122 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43123 (grub_pxe_call): Likewise.
43124
43125 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43126
43127 * commands/i386/pc/pxecmd.c: New file.
43128
43129 * fs/i386/pc/pxe.c: Likewise.
43130
43131 * include/grub/i386/pc/pxe.h: Likewise.
43132
43133 2008-08-05 Bean <bean123ch@gmail.com>
43134
43135 * util/console.c (grub_console_cur_color): New variable.
43136 (grub_console_standard_color): Likewise.
43137 (grub_console_normal_color): Likewise.
43138 (grub_console_highlight_color): Likewise.
43139 (color_map): Likewise.
43140 (use_color): Likewise.
43141 (NUM_COLORS): New macro.
43142 (grub_ncurses_setcolorstate): Handle color properly.
43143 (grub_ncurses_setcolor): Don't change color here, just remember the
43144 settings, color will be set in grub_ncurses_setcolorstate.
43145 (grub_ncurses_getcolor): New function.
43146 (grub_ncurses_init): Initialize color pairs.
43147 (grub_ncurses_term): New member grub_ncurses_getcolor.
43148
43149 2008-08-05 Colin D Bennett <colin@gibibit.com>
43150
43151 High resolution timer support. Implemented for x86 CPUs using TSC.
43152 Extracted generic grub_millisleep() so it's linked in only as needed.
43153 This requires a Pentium compatible CPU; if the RDTSC instruction is
43154 not supported, then it falls back on the generic grub_get_time_ms()
43155 implementation that uses the machine's RTC.
43156
43157 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43158 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43159 `kern/generic/millisleep.c'.
43160
43161 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43162 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43163
43164 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43165 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43166
43167 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43168
43169 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43170 `kern/generic/millisleep.c'.
43171
43172 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43173
43174 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43175
43176 * kern/generic/rtc_get_time_ms.c: New file.
43177
43178 * kern/generic/millisleep.c: New file.
43179
43180 * kern/misc.c: Don't include
43181 <kern/time.h> anymore.
43182 (grub_millisleep_generic): Removed.
43183
43184 * commands/sleep.c (grub_interruptible_millisleep): Uses
43185 grub_get_time_ms() instead of grub_get_rtc().
43186
43187 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43188 function.
43189 (grub_cpu_is_cpuid_supported): New inline function.
43190 (grub_cpu_is_tsc_supported): New inline function.
43191 (grub_tsc_init): New function prototype.
43192 (grub_tsc_get_time_ms): New function prototype.
43193
43194 * kern/i386/tsc.c (grub_get_time_ms): New file.
43195
43196 * include/grub/time.h: Include <grub/types.h.
43197 (grub_millisleep_generic): Removed.
43198 (grub_get_time_ms): New prototype.
43199 (grub_install_get_time_ms): New prototype.
43200 (grub_rtc_get_time_ms): New prototype.
43201
43202 * kern/time.c (grub_get_time_ms): New function.
43203 (grub_install_get_time_ms): New function.
43204
43205 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43206 <grub/time.h> anymore.
43207 (grub_millisleep): Removed.
43208 (grub_machine_init): Call grub_tsc_init.
43209
43210 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43211 get_time_ms() implementation.
43212
43213 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43214 (ieee1275_get_time_ms): New function.
43215 (grub_machine_init): Install get_time_ms() implementation.
43216
43217 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43218 (grub_machine_init): Call grub_tsc_init().
43219 (grub_millisleep): Removed.
43220
43221 * kern/ieee1275/init.c (grub_millisleep): Removed.
43222 (grub_machine_init): Install ieee1275_get_time_ms()
43223 implementation.
43224 (ieee1275_get_time_ms): New function.
43225 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43226 real work.
43227
43228 2008-08-05 Marco Gerards <marco@gnu.org>
43229
43230 * disk/ata.c: Include <grub/pci.h>.
43231 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43232 (grub_ata_initialize): Rewritten.
43233 (grub_ata_device_initialize): New function.
43234
43235 2008-08-04 Pavel Roskin <proski@gnu.org>
43236
43237 * kern/main.c: Include grub/mm.h.
43238
43239 2008-08-04 Robert Millan <rmh@aybabtu.com>
43240
43241 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43242 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43243 corruption problem).
43244
43245 2008-08-04 Robert Millan <rmh@aybabtu.com>
43246
43247 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43248 warnings introduced in my last commit.
43249
43250 2008-08-03 Robert Millan <rmh@aybabtu.com>
43251
43252 Make PCI available on all i386 architectures.
43253
43254 * include/grub/i386/pc/pci.h: Move from here ...
43255 * include/grub/i386/pci.h: ... to here.
43256
43257 * include/grub/i386/pc/pci.h: Remove.
43258 * include/grub/i386/efi/pci.h: Remove.
43259 * include/grub/x86_64/efi/pci.h: Remove.
43260
43261 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43262 `<grub/cpu/pci.h>'.
43263
43264 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43265 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43266 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43267
43268 * conf/i386-ieee1275.rmk: Likewise.
43269
43270 2008-08-03 Robert Millan <rmh@aybabtu.com>
43271
43272 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43273 (grub_console_setcursor): Make it possible to set cursor off.
43274
43275 2008-08-03 Robert Millan <rmh@aybabtu.com>
43276
43277 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43278 of modules instead of assuming which platform provides what.
43279 * util/update-grub.in: Likewise.
43280
43281 2008-08-03 Robert Millan <rmh@aybabtu.com>
43282
43283 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43284 instead of `grub_install_dos_part' to determine whether a drive needs
43285 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43286 because it can be overridden when loading GRUB via Multiboot).
43287
43288 2008-08-02 Robert Millan <rmh@aybabtu.com>
43289
43290 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43291
43292 2008-08-02 Robert Millan <rmh@aybabtu.com>
43293
43294 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43295 of informational grub_dprintf() calls.
43296
43297 2008-08-02 Robert Millan <rmh@aybabtu.com>
43298
43299 * disk/memdisk.c (memdisk_size): Don't initialize.
43300 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43301
43302 * include/grub/i386/pc/kernel.h
43303 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43304 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43305 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43306 (grub_arch_memdisk_size): Remove.
43307
43308 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43309 field (was only used to transfer a constant). Add `type' field to
43310 support multiple module types.
43311 (grub_module_iterate): New function.
43312
43313 * kern/device.c (grub_device_open): Do not hide error messages
43314 when grub_disk_open() fails. Use grub_print_error() instead.
43315
43316 * kern/i386/pc/init.c (grub_arch_modules_addr)
43317 (grub_arch_memdisk_size): Remove functions.
43318 (grub_arch_modules_addr): Return the module address in high memory
43319 (now that it isn't copied anymore).
43320
43321 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43322 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43323 decompression routine (grub_total_module_size already includes that
43324 now). Don't copy modules back to low memory.
43325
43326 * kern/main.c: Include `<grub/mm.h>'.
43327 (grub_load_modules): Split out (and use) ...
43328 (grub_module_iterate): ... this function, which iterates through
43329 module objects and runs a hook.
43330 Comment out grub_mm_init_region() call, as it would cause non-ELF
43331 modules to be overwritten.
43332
43333 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43334 the memdisk image in its own region, make it part of the module list.
43335 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43336 (main): Parse --memdisk|-m option, and pass user-provided path as
43337 parameter to generate_image().
43338 (add_segments): Pass `memdisk_path' down to load_modules().
43339 (load_modules): Embed memdisk image in module section when requested.
43340 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43341 `header.type' instead of `header.offset'.
43342
43343 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43344 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43345 (memdisk_mod_LDFLAGS): New variables.
43346 * conf/i386-coreboot.rmk: Likewise.
43347 * conf/i386-ieee1275.rmk: Likewise.
43348
43349 2008-08-02 Robert Millan <rmh@aybabtu.com>
43350
43351 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43352 (backward_relocator): New variables. Used to allocate and relocate
43353 the payload, respectively.
43354 (grub_multiboot_load_elf32): Load into heap instead of requested
43355 address, install the appropriate relocator code in each bound of
43356 the payload, and set the entry point such that
43357 grub_multiboot_real_boot() will jump to one of them.
43358
43359 * kern/i386/loader.S (grub_multiboot_payload_size)
43360 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43361 (grub_multiboot_payload_entry_offset): New variables.
43362 (grub_multiboot_real_boot): Set cpu context to what the relocator
43363 expects, and jump to the relocator instead of the payload.
43364
43365 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43366 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43367 (grub_multiboot_payload_entry_offset): Export.
43368
43369 2008-08-01 Bean <bean123ch@gmail.com>
43370
43371 * normal/menu_entry.c (editor_getline): Don't return the original
43372 string as result, as it will be released by lexer once it has done
43373 using it.
43374
43375 2008-08-01 Robert Millan <rmh@aybabtu.com>
43376
43377 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43378 within menuentries, not before them.
43379 util/grub.d/10_hurd.in: Likewise.
43380
43381 2008-08-01 Bean <bean123ch@gmail.com>
43382
43383 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43384 (bufio_mod_SOURCES): New macro.
43385 (bufio_mod_CFLAGS): Likewise.
43386 (bufio_mod_LDFLAGS): Likewise.
43387
43388 * include/grub/bufio.h: New file.
43389
43390 * io/bufio.c: Likewise.
43391
43392 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43393 (grub_video_reader_png): Use grub_buffile_open to open file.
43394
43395 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43396 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43397
43398 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43399 (grub_video_reader_tga): Use grub_buffile_open to open file.
43400
43401 * font/manager.c: Include <grub/bufio.h>.
43402 (add_font): Use grub_buffile_open to open file.
43403
43404 2008-07-31 Robert Millan <rmh@aybabtu.com>
43405
43406 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43407 ELF segments, use a macro for arbitrarily accessing any of them instead
43408 of preparing a pointer that allows access to one at a time.
43409 (grub_multiboot_load_elf64): Likewise.
43410
43411 2008-07-31 Bean <bean123ch@gmail.com>
43412
43413 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43414 GRUB_KERNEL_MACHINE_DATA_END.
43415
43416 2008-07-30 Robert Millan <rmh@aybabtu.com>
43417
43418 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43419 Increase from 0x50 to 0x60.
43420 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43421 use UUIDs to identify the root drive for them. If that's not
43422 possible, abort.
43423 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43424 check, for cross-disk installs.
43425
43426 2008-07-30 Robert Millan <rmh@aybabtu.com>
43427
43428 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43429 is non-empty, use it to set the `prefix' environment variable instead
43430 of the usual approach.
43431 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43432 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43433 environment variable instead of dummy make_install_device().
43434
43435 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43436 (start): Insert a data section, with `grub_prefix' variable.
43437 * kern/i386/linuxbios/startup.S: Likewise.
43438
43439 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43440 New variable reference.
43441 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43442 New macro. Defines offset of `grub_prefix' within startup.S (relative
43443 to `start').
43444 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43445 section within startup.S (relative to `start').
43446 * include/grub/i386/coreboot/kernel.h: Likewise.
43447
43448 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43449 Overwrite grub_prefix with its contents, at the beginning of the
43450 first segment.
43451 (main): Understand -p|--prefix.
43452
43453 2008-07-30 Robert Millan <rmh@aybabtu.com>
43454
43455 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43456
43457 2008-07-30 Robert Millan <rmh@aybabtu.com>
43458
43459 * term/i386/pc/vga_text.c (grub_console_cls): Use
43460 grub_console_gotoxy() to go back to beginning of the screen.
43461 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43462
43463 2008-07-29 Christian Franke <franke@computer.org>
43464
43465 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43466 Add conversion of emulated mount points on Cygwin.
43467
43468 2008-07-29 Christian Franke <franke@computer.org>
43469
43470 * util/update-grub.in: Add a check for admin
43471 group on Cygwin.
43472 Remove old `grub.cfg.new' before creation.
43473 Add `-f' to `mv' to handle the different filesystem
43474 semantics of Windows.
43475
43476 2008-07-29 Bean <bean123ch@gmail.com>
43477
43478 * normal/main.c (get_line): Fix buffer overflow bug.
43479
43480 2008-07-28 Robert Millan <rmh@aybabtu.com>
43481
43482 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43483 (struct grub_apple_header): New struct. Describes the layout of
43484 the partmap header.
43485 (apple_partition_map_iterate): Check the header magic as well as the
43486 partition magic (which was already being checked).
43487
43488 2008-07-28 Pavel Roskin <proski@gnu.org>
43489
43490 * genmk.rb: Add a warning to the beginning of the output that
43491 it's a generated file and should not be edited.
43492
43493 2008-07-28 Robert Millan <rmh@aybabtu.com>
43494
43495 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43496 with the same number are found, just use issue a warning with
43497 grub_dprintf(), as this error has been reported to be non-fatal.
43498
43499 2008-07-27 Robert Millan <rmh@aybabtu.com>
43500
43501 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43502 information.
43503
43504 2008-07-27 Bean <bean123ch@gmail.com>
43505
43506 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43507 (grub_fat_find_dir): Ignore case when comparing filename.
43508
43509 2008-07-27 Bean <bean123ch@gmail.com>
43510
43511 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43512 smallino, as it's more descriptive, and i8count can be confused with
43513 the other field count.
43514 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43515 inode type.
43516
43517 2008-07-27 Bean <bean123ch@gmail.com>
43518
43519 * commands/crc.c: New file.
43520
43521 * lib/crc.c: Likewise.
43522
43523 * include/grub/lib/crc.h: Likewise.
43524
43525 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43526
43527 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43528 (hexdump): Move this function to ...
43529
43530 * lib/hexdump.c: ... here.
43531
43532 * include/grub/hexdump.h: Renamed to ...
43533
43534 * include/grub/lib/hexdump.h: ... this.
43535
43536 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43537
43538 * util/grub-editenv.c: Likewise.
43539
43540 * include/envblk.h: Renamed to ...
43541
43542 * include/lib/envblk.h: ... this.
43543
43544 * util/envblk.c: Renamed to ...
43545
43546 * lib/envblk.c: ... this.
43547
43548 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43549 lib/hexdump.c.
43550 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43551 (pkglib_MODULES): Add crc.mod.
43552 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43553 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43554 (crc_mod_SOURCES): New macro.
43555 (crc_mod_CFLAGS): Likewise.
43556 (crc_mod_LDFLAGS): Likewise.
43557
43558 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43559
43560 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43561
43562 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43563
43564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43565
43566 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43567
43568 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43569
43570 * commands/help.c: Include <grub/term.h>.
43571 (TERM_WIDTH): Removed. Updated all users.
43572
43573 2008-07-27 Pavel Roskin <proski@gnu.org>
43574
43575 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43576 spurious warnings about a comment within a comment.
43577
43578 2008-07-25 Robert Millan <rmh@aybabtu.com>
43579
43580 * util/getroot.c (find_root_device): Skip devices that match
43581 /dev/dm-[0-9]. This lets the real device be found for any type of
43582 abstraction (LVM, EVMS, RAID..).
43583 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43584 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43585 device is found first, find_root_device() will now skip it.
43586
43587 2008-07-24 Pavel Roskin <proski@gnu.org>
43588
43589 * include/grub/types.h: Use __builtin_bswap32() and
43590 __builtin_bswap64() with gcc 4.3 and newer.
43591
43592 2008-07-24 Christian Franke <franke@computer.org>
43593
43594 * util/i386/pc/grub-install.in: If `--debug' is specified,
43595 pass `--verbose' to grub-setup.
43596 Abort script if make_system_path_relative_to_its_root() fails.
43597
43598 2008-07-24 Bean <bean123ch@gmail.com>
43599
43600 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43601 variable `target_platform' should be `platform'.
43602
43603 2008-07-24 Bean <bean123ch@gmail.com>
43604
43605 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43606 (grub_png_init_fixed_block): New function.
43607 (grub_png_decode_image_data): Handle fixed huffman code compression.
43608
43609 2008-07-24 Bean <bean123ch@gmail.com>
43610
43611 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43612 (grub_pe2elf_SOURCES): New macro.
43613 (CLEANFILES): Add grub-pe2elf.
43614
43615 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43616 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43617 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43618 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43619 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43620 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43621 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43622 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43623 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43624 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43625 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43626 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43627 (GRUB_PE32_DT_FUNCTION): Likewise.
43628 (GRUB_PE32_REL_I386_DIR32): Likewise.
43629 (GRUB_PE32_REL_I386_REL32): Likewise.
43630 (grub_pe32_symbol): New structure.
43631 (grub_pe32_reloc): Likewise.
43632
43633 * util/grub-pe2elf.c: New file.
43634
43635 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43636 start symbol in non pc platform.
43637
43638 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43639
43640 The following patches are from Christian Franke.
43641
43642 * include/grub/dl.h: Remove .previous, gas supports this only
43643 for ELF format.
43644
43645 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43646 Remove .type, gas supports this only for ELF format.
43647
43648 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43649 nullbytes in symbol table. This fixes an infinite loop if table is
43650 zero filled.
43651
43652 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43653 TARGET_IMG_LDFLAGS and EXEEXT.
43654
43655 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43656 TARGET_IMG_LDFLAGS_AC.
43657 (grub_CHECK_STACK_ARG_PROBE): New function.
43658
43659 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43660
43661 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43662
43663 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43664 to set TARGET_IMG_LD* accordingly.
43665 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43666 Add call to grub_CHECK_STACK_ARG_PROBE.
43667 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43668
43669 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43670
43671 * genmk.rb: Add EXEEXT to CLEANFILES.
43672
43673 2008-07-23 Robert Millan <rmh@aybabtu.com>
43674
43675 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43676 define the codes for arrows and lines used for the menu).
43677 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43678 as well.
43679
43680 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43681 fonts, because the latter are too slow.
43682
43683 2008-07-21 Bean <bean123ch@gmail.com>
43684
43685 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43686 a20. Run keyboard test last, as it will cause macbook to halt.
43687
43688 2008-07-18 Pavel Roskin <proski@gnu.org>
43689
43690 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43691 load foreign architecture modules correctly anyway. Keep
43692 support for loading host architecture modules, whether we
43693 compile them or not.
43694
43695 2008-07-17 Pavel Roskin <proski@gnu.org>
43696
43697 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43698 change target_cpu. The compiler default can mismatch target_cpu
43699 in any case.
43700
43701 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43702 * kern/efi/efi.c: Likewise.
43703
43704 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43705 target compiler is functional.
43706 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43707 are set up.
43708
43709 * configure.ac: Default to efi platform for x86_64-apple. Allow
43710 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43711 adjustments from the rest, only do them if target is not
43712 explicitly given. Merge other adjustments with the final sanity
43713 check. Remove an extraneous check for supported CPU. Be
43714 specific which CPU and which platform is not supported.
43715
43716 * configure.ac: Default to pc platform for x86_64.
43717
43718 2008-07-17 Robert Millan <rmh@aybabtu.com>
43719
43720 Partial LinuxBIOS -> Coreboot rename.
43721
43722 * conf/i386-linuxbios.rmk: Renamed to ...
43723 * conf/i386-coreboot.rmk: ... this.
43724 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43725 * configure.ac: Accept "coreboot" as input platform (but maintain
43726 compatibility with "linuxbios").
43727 * include/grub/i386/linuxbios: Renamed to ...
43728 * include/grub/i386/coreboot: ... this.
43729
43730 2008-07-17 Bean <bean123ch@gmail.com>
43731
43732 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43733 (appleldr_mod_SOURCE): New variable.
43734 (appleldr_mod_CFLAGS): Likewise.
43735 (appleldr_mod_LDFLAGS): Likewise.
43736 (pci_mod_SOURCES): Likewise.
43737 (pci_mod_CFLAGS): Likewise.
43738 (pci_mod_LDFLAGS): Likewise.
43739 (lspci_mod_SOURCES): Likewise.
43740 (lspci_mod_CFLAGS): Likewise.
43741 (lspci_mod_LDFLAGS): Likewise.
43742
43743 * conf/x86_64-efi.rmk: New file.
43744
43745 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43746 macro.
43747 (grub_efidisk_write): Likewise.
43748
43749 * include/efi/api.h (efi_call_0): New macro.
43750 (efi_call_1): Likewise.
43751 (efi_call_2): Likewise.
43752 (efi_call_3): Likewise.
43753 (efi_call_4): Likewise.
43754 (efi_call_5): Likewise.
43755 (efi_call_6): Likewise.
43756
43757 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43758 grub_rescue_cmd_chainloader.
43759
43760 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43761 (grub_pe32_optional_header): Change some fields based on i386 or
43762 x86_64 platform.
43763 (GRUB_PE32_PE32_MAGIC): Likewise.
43764
43765 * include/grub/efi/uga_draw.h: New file.
43766
43767 * include/grub/elf.h (STN_ABS): New constant.
43768 (R_X86_64_NONE): Relocation constant for x86_64.
43769 (R_X86_64_64): Likewise.
43770 (R_X86_64_PC32): Likewise.
43771 (R_X86_64_GOT32): Likewise.
43772 (R_X86_64_PLT32): Likewise.
43773 (R_X86_64_COPY): Likewise.
43774 (R_X86_64_GLOB_DAT): Likewise.
43775 (R_X86_64_JUMP_SLOT): Likewise.
43776 (R_X86_64_RELATIVE): Likewise.
43777 (R_X86_64_GOTPCREL): Likewise.
43778 (R_X86_64_32): Likewise.
43779 (R_X86_64_32S): Likewise.
43780 (R_X86_64_16): Likewise.
43781 (R_X86_64_PC16): Likewise.
43782 (R_X86_64_8): Likewise.
43783 (R_X86_64_PC8): Likewise.
43784
43785 * include/grub/i386/efi/pci.h: New file.
43786
43787 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43788 Change it value based on platform.
43789 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43790 (GRUB_E820_RAM): Likewise.
43791 (GRUB_E820_RESERVED): Likewise.
43792 (GRUB_E820_ACPI): Likewise.
43793 (GRUB_E820_NVS): Likewise.
43794 (GRUB_E820_EXEC_CODE): Likewise.
43795 (GRUB_E820_MAX_ENTRY): Likewise.
43796 (grub_e820_mmap): New structure.
43797 (linux_kernel_header): Change the efi field according to different
43798 kernel version, also field from linux_kernel_header.
43799
43800 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43801
43802 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43803 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43804 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43805 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43806 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43807 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43808 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43809 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43810 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43811 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43812
43813 * include/grub/x86_64/efi/kernel.h: New file.
43814
43815 * include/grub/x86_64/efi/loader.h: Likewise.
43816
43817 * include/grub/x86_64/efi/machine.h: Likewise.
43818
43819 * include/grub/x86_64/efi/pci.h: Likewise.
43820
43821 * include/grub/x86_64/efi/time.h: Likewise.
43822
43823 * include/grub/x86_64/linux.h: Likewise.
43824
43825 * include/grub/x86_64/setjmp.h: Likewise.
43826
43827 * include/grub/x86_64/time.h: Likewise.
43828
43829 * include/grub/x86_64/types.h: Likewise.
43830
43831 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43832 GRUB_TARGET_SIZEOF_VOID_P.
43833
43834 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43835 (grub_efi_locate_handle): Likewise.
43836 (grub_efi_open_protocol): Likewise.
43837 (grub_efi_set_text_mode): Likewise.
43838 (grub_efi_stall): Likewise.
43839 (grub_exit): Likewise.
43840 (grub_reboot): Likewise.
43841 (grub_halt): Likewise.
43842 (grub_efi_exit_boot_services): Likewise.
43843 (grub_get_rtc): Likewise.
43844
43845 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43846 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43847 (grub_efi_allocate_pages): Wrap efi calls.
43848 (grub_efi_free_pages): Wrap efi calls.
43849 (grub_efi_get_memory_map): Wrap efi calls.
43850
43851 * kern/x86_64/dl.c: New file.
43852
43853 * kern/x86_64/efi/callwrap.S: Likewise.
43854
43855 * kern/x86_64/efi/startup.S: Likewise.
43856
43857 * loader/efi/appleloader.c: Likewise.
43858
43859 * loader/efi/chainloader.c (cmdline): New variable.
43860 (grub_chainloader_unload): Wrap efi calls.
43861 (grub_chainloader_boot): Likewise.
43862 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43863 command line.
43864
43865 * loader/efi/chainloader_normal.c (chainloader_command):
43866 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43867 command line.
43868
43869 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43870 method.
43871 (grub_e820_add_region): New function.
43872 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43873 booting.
43874 (grub_find_video_card): New function.
43875 (grub_linux_setup_video): New function.
43876 (grub_rescue_cmd_linux): Probe for video information.
43877
43878 * normal/x86_64/setjmp.S: New file.
43879
43880 * term/efi/console.c (map_char): New function.
43881 (grub_console_putchar): Map unicode char.
43882 (grub_console_checkkey): Wrap efi calls.
43883 (grub_console_getkey): Likewise.
43884 (grub_console_getwh): Likewise.
43885 (grub_console_gotoxy): Likewise.
43886 (grub_console_cls): Likewise.
43887 (grub_console_setcolorstate): Likewise.
43888 (grub_console_setcursor): Likewise.
43889
43890 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43891
43892 2008-07-16 Pavel Roskin <proski@gnu.org>
43893
43894 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43895 format strings.
43896
43897 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43898 pointer, not an integer. This fixes a warning and prevents
43899 precision loss on 64-bit systems.
43900 (relocate_addresses): Remove unneeded cast.
43901
43902 2008-07-15 Pavel Roskin <proski@gnu.org>
43903
43904 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43905
43906 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43907
43908 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43909 Fix comparison between signed and unsigned.
43910
43911 * include/grub/i386/ieee1275/console.h: Declare
43912 grub_console_init() and grub_console_fini().
43913
43914 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43915 It's empty and unused.
43916
43917 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43918 beginning to avoid warnings with some compilers.
43919
43920 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43921 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43922
43923 2008-07-14 Pavel Roskin <proski@gnu.org>
43924
43925 * kern/env.c (grub_register_variable_hook): Don't copy empty
43926 string, it leaks memory. Pass "" to grub_env_set(), it should
43927 handle constant strings.
43928
43929 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
43930 * commands/cmp.c (grub_cmd_cmp): Likewise.
43931 * kern/dl.c (grub_dl_flush_cache): Likewise.
43932 (grub_dl_load_core): Likewise.
43933 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
43934 (grub_elf64_load_phdrs): Likewise.
43935
43936 2008-07-13 Pavel Roskin <proski@gnu.org>
43937
43938 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
43939 between signed and unsigned.
43940 (LzmaEnc_Finish): Fix warning about an unused parameter.
43941
43942 2008-07-13 Bean <bean123ch@gmail.com>
43943
43944 * Makefile.in (enable_lzo): New rule.
43945
43946 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
43947
43948 * configure.ac (ENABLE_LZO): New option --enable-lzo.
43949
43950 * boot/i386/pc/lnxboot.S: #include <config.h>.
43951
43952 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
43953 its value according to the compression algorithm used, lzo or lzma.
43954
43955 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
43956 compression algorithm according to configure macro.
43957
43958 * kern/i386/pc/startup.S (codestart): Likewise.
43959
43960 * kern/i386/pc/lzma_decode.S: New file.
43961
43962 * include/grub/lib/LzFind.h: Likewise.
43963
43964 * include/grub/lib/LzHash.h: Likewise.
43965
43966 * include/grub/lib/LzmaDec.h: Likewise.
43967
43968 * include/grub/lib/LzmaEnc.h: Likewise.
43969
43970 * include/grub/lib/LzmaTypes.h: Likewise.
43971
43972 * lib/LzFind.c: Likewise.
43973
43974 * lib/LzmaDec.c: Likewise.
43975
43976 * lib/LzmaEnc.c: Likewise.
43977
43978 2008-07-13 Bean <bean123ch@gmail.com>
43979
43980 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
43981 (grub_ext4_extent_header): New structure.
43982 (grub_ext4_extent): Likewise.
43983 (grub_ext4_extent_idx): Likewise.
43984 (grub_ext4_find_leaf): New function.
43985 (grub_ext2_read_block): Handle extents.
43986
43987 2008-07-12 Robert Millan <rmh@aybabtu.com>
43988
43989 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
43990
43991 2008-07-11 Robert Millan <rmh@aybabtu.com>
43992
43993 * util/grub.d/40_custom.in: New file. Example on how to add custom
43994 entries to /etc/grub.d.
43995 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
43996 40_custom (implicitly, by merging all the grub.d rules).
43997
43998 2008-07-11 Pavel Roskin <proski@gnu.org>
43999
44000 * commands/read.c (grub_getline): Fix invalid memory access.
44001 Don't add newline to the variable value.
44002
44003 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44004 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44005 (serial_hw_get_port): Check validity of the port number.
44006 (grub_cmd_serial): Check return value of serial_hw_get_port().
44007
44008 2008-07-07 Pavel Roskin <proski@gnu.org>
44009
44010 * boot/i386/pc/diskboot.S (notification_string): Replace
44011 "Loading kernel" with just "loading". This is shorter, less
44012 confusing and saves a few bytes for possible future changes.
44013
44014 2008-07-05 Pavel Roskin <proski@gnu.org>
44015
44016 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44017 size for ATAPI devices, they are undefined. Output sector
44018 number in decimal form.
44019
44020 * disk/ata.c: Use named constants for status bits.
44021
44022 2008-07-04 Pavel Roskin <proski@gnu.org>
44023
44024 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44025 grub_addr_t before casting it to the void pointer to fix a
44026 warning. Non-addressable regions are discarded earlier.
44027 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44028 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44029 (check_signature): Don't shadow table_header.
44030 (grub_linuxbios_table_iterate): Cast numeric constants to
44031 grub_linuxbios_table_header_t.
44032 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44033 grub_stop().
44034
44035 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44036 prevent warnings.
44037
44038 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44039 pointer, which can cause warnings. Support 64-bit addresses.
44040
44041 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44042 of sizeof(long). This fixes PowerPC image generation on x86_64.
44043
44044 2008-07-04 Robert Millan <rmh@aybabtu.com>
44045
44046 This fixes a performance issue when pc & gpt partmap iterators
44047 didn't abort iteration even after our hook found what it was
44048 looking for (often causing expensive probes of non-existent drives).
44049
44050 Some callers relied on previous buggy behaviour, since they would
44051 raise an error when their own hooks caused early abortion of its
44052 iteration.
44053
44054 * kern/device.c (grub_device_open): Improve error message.
44055 * disk/lvm.c (grub_lvm_open): Likewise.
44056 * disk/raid.c (grub_raid_open): Likewise.
44057
44058 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44059 when hook requests it, independently of grub_errno.
44060 (pc_partition_map_probe): Do not fail when find_func() caused
44061 early abortion of pc_partition_map_iterate().
44062
44063 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44064 when hook requests it, independently of grub_errno.
44065 (gpt_partition_map_probe): Do not fail when find_func() caused
44066 early abortion of gpt_partition_map_iterate().
44067
44068 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44069 when hook requests it, independently of grub_errno. Do not fail when
44070 part_map_iterate_hook() caused early abortion of p->iterate().
44071
44072 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44073 when grub_partition_iterate() returned with non-zero.
44074
44075 2008-07-03 Pavel Roskin <proski@gnu.org>
44076
44077 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44078 like we do in grub_ata_pio_read().
44079 (grub_ata_readwrite): Always write individual sectors. Fix the
44080 sector count for the remainder.
44081 (grub_ata_write): Enable writing to ATA devices. Correctly
44082 report error for ATAPI devices.
44083
44084 2008-07-02 Pavel Roskin <proski@gnu.org>
44085
44086 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44087 warning.
44088
44089 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44090 for every read sector, we already increment it for the whole
44091 batch. This fixes reading more than 256 sectors at once.
44092
44093 * util/grub-editenv.c (cmd_info): Cast argument to long
44094 explicitly. ptrdiff_t reduces to int on i386.
44095
44096 * util/grub-editenv.c (main): Be specific which parameter is
44097 missing.
44098
44099 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44100 (memdisk): Make memdisk_orig_addr a pointer.
44101
44102 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44103 for file offsets, use grub_off_t instead. Fix printf format
44104 warnings.
44105
44106 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44107 there. Real unexpected warnings should not drown in the noise
44108 about known problems.
44109
44110 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44111 grub_disk_addr_t for memory addresses.
44112
44113 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44114 explicitly to fix a warning.
44115
44116 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44117
44118 * Makefile.in (MODULE_LDFLAGS): New variable.
44119 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44120 the linker accepts --build-id=none.
44121 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44122 MODULE_LDFLAGS.
44123 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44124
44125 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44126 those in Linux XFS code. Provide a way to access 64-bit parent
44127 inode.
44128 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44129 the end of struct grub_xfs_dir_header.
44130
44131 2008-07-02 Bean <bean123ch@gmail.com>
44132
44133 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44134 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44135 and GRUB_IEEE1275_FLAG_NO_ANSI.
44136
44137 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44138 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44139 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44140
44141 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44142 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44143
44144 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44145 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44146
44147 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44148 esc sequence on non ANSI terminal.
44149 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44150
44151 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44152 beginning of file.
44153
44154 2008-07-02 Bean <bean123ch@gmail.com>
44155
44156 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44157 (grub_editenv_SOURCES): New variable.
44158 (pkglib_MODULES): Add loadenv.mod.
44159 (loadenv_mod_SOURCES): New variable.
44160 (loadenv_mod_CFLAGS): Likewise.
44161 (loadenv_mod_LDFLAGS): Likewise.
44162
44163 * include/grub/envblk.h: New file.
44164
44165 * util/envblk.c: New file.
44166
44167 * util/grub-editenv.c: New file.
44168
44169 * commands/loadenv.c: New file.
44170
44171 2008-07-01 Pavel Roskin <proski@gnu.org>
44172
44173 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44174 not unsigned char. This fixes warnings and is consistent with
44175 other tags.
44176
44177 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44178
44179 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44180
44181 * term/tparm.c (analyze): Always set *popcount.
44182
44183 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44184 cast to fix a warning.
44185
44186 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44187 cast to suppress a warning.
44188
44189 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44190 grub_fshelp_read_file() expects.
44191
44192 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44193 write uuid as a 32-bit value in CPU byte order, so declare and
44194 use it as such.
44195
44196 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44197 long if the format specifier expects it.
44198 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44199 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44200 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44201 long to fix a warning.
44202 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44203 grub_dprintf() arguments to fix warnings.
44204
44205 2008-06-30 Pavel Roskin <proski@gnu.org>
44206
44207 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44208 install_bsd_part immediately before core.img is embedded or
44209 modified on disk. This fixes core.img verification if core.img
44210 cannot be embedded.
44211
44212 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44213 core_path to calculate the blocklist.
44214 Patch from Javier Martín <lordhabbit@gmail.com>
44215
44216 2008-06-29 Robert Millan <rmh@aybabtu.com>
44217
44218 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44219 block to disk block.
44220 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44221 Patch from Niels Böhm <bitbucket@arcor.de>
44222
44223 2008-06-29 Robert Millan <rmh@aybabtu.com>
44224
44225 * util/update-grub_lib.in (font_path): Search for fonts in
44226 /boot/grub first, which is more likely to be readable (we aren't
44227 deciding where fonts live, just looking for them).
44228
44229 2008-06-26 Pavel Roskin <proski@gnu.org>
44230
44231 * util/biosdisk.c (read_device_map): Don't leave dead map
44232 entries for devices failing stat() check.
44233
44234 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44235 core_path_dev for the core.img path on the target device.
44236
44237 2008-06-26 Robert Millan <rmh@aybabtu.com>
44238
44239 * disk/fs_uuid.c: New file.
44240 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44241 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44242 (fs_uuid_mod_LDFLAGS): New variables.
44243 * include/grub/disk.h (grub_disk_dev_id): Add
44244 `GRUB_DISK_DEVICE_UUID_ID'.
44245 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44246 implement iterate().
44247
44248 2008-06-26 Robert Millan <rmh@aybabtu.com>
44249
44250 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44251 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44252 Linux image includes no initrd.
44253
44254 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44255
44256 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44257 call to resolve the core image location that effectively appended the
44258 name twice.
44259
44260 2008-06-21 Robert Millan <rmh@aybabtu.com>
44261
44262 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44263 call from here ...
44264
44265 * util/grub.d/10_hurd.in: ... to here ...
44266 * util/grub.d/10_linux.in: ... and here.
44267
44268 2008-06-19 Robert Millan <rmh@aybabtu.com>
44269
44270 * kern/main.c (grub_main): Export `prefix' variable immediately
44271 after it has been set by grub_machine_set_prefix().
44272
44273 2008-06-19 Robert Millan <rmh@aybabtu.com>
44274
44275 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44276 search result when not saving to variable, not the other way around.
44277 When saving to variable, abort iteration as soon as a match is found.
44278
44279 2008-06-19 Robert Millan <rmh@aybabtu.com>
44280
44281 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44282 check for partition that provides /boot/grub. Its logic is flawed,
44283 as it prevents prepare_grub_to_access_device() from being called
44284 multiple times.
44285
44286 2008-06-19 Robert Millan <rmh@aybabtu.com>
44287
44288 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44289 "insmod" command directly when abstraction modules are needed,
44290 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44291 since it had already been processed).
44292
44293 2008-06-19 Pavel Roskin <proski@gnu.org>
44294
44295 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44296 changed. This is needed in case GRUB_LIBDIR changes.
44297 * conf/i386-ieee1275.rmk: Likewise.
44298 * conf/i386-linuxbios.rmk: Likewise.
44299 * conf/i386-pc.rmk: Likewise.
44300 * conf/powerpc-ieee1275.rmk: Likewise.
44301
44302 2008-06-18 Pavel Roskin <proski@gnu.org>
44303
44304 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44305 kernel_elf_symlist.c to symlist.c for consistency with other
44306 architectures. Update all users.
44307 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44308
44309 2008-06-18 Robert Millan <rmh@aybabtu.com>
44310
44311 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44312 it in prefix.
44313
44314 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44315 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44316 a RAID device, run setup() for all members independently on whether
44317 LVM abstraction is being used.
44318 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44319 If grub-mkimage has set `*install_dos_part == -2', don't override this
44320 value.
44321 Perform *install_dos_part adjustments independently on whether
44322 we're embedding or not.
44323 Clarify error message when image is too big for embedding.
44324 Remove duplicate *install_dos_part stanza.
44325
44326 2008-06-17 Robert Millan <rmh@aybabtu.com>
44327
44328 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44329 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44330 variables.
44331 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44332 values in grub_ofconsole_normal_color and
44333 grub_ofconsole_highlight_color (they're not directly related to
44334 background and foreground).
44335 (grub_ofconsole_setcolorstate): Extract background and foreground
44336 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44337
44338 2008-06-17 Robert Millan <rmh@aybabtu.com>
44339
44340 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44341 /boot/grub for the check in last commit, not /boot (they could be
44342 different partitions).
44343
44344 2008-06-16 Robert Millan <rmh@aybabtu.com>
44345
44346 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44347 asked to setup access for the same partition that provides /boot,
44348 don't bother using UUIDs since our root already has the value we
44349 want.
44350
44351 2008-06-16 Robert Millan <rmh@aybabtu.com>
44352
44353 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44354 I2O devices.
44355 Patch from Sven Mueller <sven@debian.org>.
44356
44357 2008-06-16 Robert Millan <rmh@aybabtu.com>
44358
44359 * util/update-grub.in: Check for $EUID instead of $UID.
44360 Reported by Vincent Zweije.
44361
44362 2008-06-16 Bean <bean123ch@gmail.com>
44363
44364 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44365 (grub_ext2_read_block): Likewise.
44366 (grub_ext2_read_inode): Likewise.
44367 (grub_ext2_mount): Likewise.
44368 (grub_ext2_close): Likewise.
44369 (grub_ext3_get_journal): Removed.
44370
44371 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44372 (grub_reiserfs_read_symlink): Likewise.
44373 (grub_reiserfs_mount): Likewise.
44374 (grub_reiserfs_open): Likewise.
44375 (grub_reiserfs_read): Likewise.
44376 (grub_reiserfs_close): Likewise.
44377 (grub_reiserfs_get_journal): Removed.
44378
44379 * fs/fshelp.c (grub_fshelp_read): Removed.
44380 (grub_fshelp_map_block): Likewise.
44381
44382 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44383 (grub_fshelp_journal): Likewise.
44384 (grub_fshelp_read): Likewise.
44385 (grub_fshelp_map_block): Likewise.
44386
44387 2008-06-16 Pavel Roskin <proski@gnu.org>
44388
44389 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44390 floating point anymore.
44391 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44392
44393 2008-06-15 Pavel Roskin <proski@gnu.org>
44394
44395 * commands/ls.c (grub_ls_list_files): Use integer calculations
44396 for human readable format, avoid floating point use.
44397 * kern/misc.c (grub_ftoa): Remove.
44398 (grub_vsprintf): Remove floating point support.
44399
44400 2008-06-15 Robert Millan <rmh@aybabtu.com>
44401
44402 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44403 devices.
44404 Reported by Max Vozeler.
44405
44406 2008-06-15 Robert Millan <rmh@aybabtu.com>
44407
44408 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44409 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44410 skipped later.
44411 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44412 the beginning of the prefix.
44413
44414 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44415 It is assumed that if we have a memdisk, grub-mkimage has set
44416 grub_prefix to include the "(memdisk)" drive in it.
44417
44418 2008-06-15 Robert Millan <rmh@aybabtu.com>
44419
44420 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44421 Initialize keyboard controller after registering the terminal, so that
44422 grub_printf() can be called from grub_keyboard_controller_init().
44423
44424 2008-06-15 Robert Millan <rmh@aybabtu.com>
44425
44426 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44427 extent-btree which is written as big endian on disk.
44428 Reported by Alain Greppin <al@chilibi.org>.
44429
44430 2008-06-14 Robert Millan <rmh@aybabtu.com>
44431
44432 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44433 * util/i386/pc/grub-install.in (modules): Likewise.
44434
44435 2008-06-13 Pavel Roskin <proski@gnu.org>
44436
44437 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44438
44439 2008-06-13 Bean <bean123ch@gmail.com>
44440
44441 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44442
44443 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44444
44445 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44446 to indicate sparse block.
44447
44448 2008-06-12 Pavel Roskin <proski@gnu.org>
44449
44450 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44451 number, grub_fshelp_read() does it for us.
44452
44453 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44454 linear disk read with journal translation.
44455 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44456 * include/grub/fshelp.h: Declare grub_fshelp_read().
44457
44458 2008-06-09 Pavel Roskin <proski@gnu.org>
44459
44460 * fs/minix.c (grub_minix_mount): Handle error reading
44461 superblock.
44462
44463 2008-06-08 Robert Millan <rmh@aybabtu.com>
44464
44465 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44466 don't append the RAID prefix afterwards.
44467 Reported by Clint Adams.
44468
44469 2008-06-08 Robert Millan <rmh@aybabtu.com>
44470
44471 Based on description from Pavel:
44472 * kern/disk.c (grub_disk_check_range): Rename to ...
44473 (grub_disk_adjust_range): ... this. Add a comment explaining the
44474 tasks performed by this function.
44475
44476 2008-06-08 Robert Millan <rmh@aybabtu.com>
44477
44478 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44479 `num_serial' (for consistency with other variables).
44480 (struct grub_ntfs_data): Add `uuid' member.
44481 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44482 (grub_ntfs_uuid): New function.
44483 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44484
44485 2008-06-07 Pavel Roskin <proski@gnu.org>
44486
44487 * util/biosdisk.c (open_device): Revert last change to the
44488 function, it broke installation. The sector needs to be
44489 different dependent on which device is opened.
44490
44491 2008-06-06 Robert Millan <rmh@aybabtu.com>
44492
44493 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44494 rest of GRUB, and breakage doesn't happen if its value were modified.
44495
44496 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44497 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44498 a constant (same value).
44499 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44500 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44501
44502 2008-06-06 Robert Millan <rmh@aybabtu.com>
44503
44504 * util/biosdisk.c (open_device): Do not modify sector offset when
44505 accessing a partition. kern/disk.c already handles this for us.
44506
44507 2008-06-06 Robert Millan <rmh@aybabtu.com>
44508
44509 * util/grub-emu.c (grub_machine_init): Move code in this function from
44510 here ...
44511 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44512 segfault in case grub_printf() is called).
44513
44514 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44515 grub_probe. Update all users not to explicitly add it again.
44516 (grub_device): New variable; contains corresponding device for grubdir.
44517 (fs_module, partmap_module, devabstraction_module): Pass
44518 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44519 every time.
44520
44521 2008-06-05 Robert Millan <rmh@aybabtu.com>
44522
44523 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44524 is found, print it (same layout as with labels).
44525
44526 2008-06-04 Robert Millan <rmh@aybabtu.com>
44527
44528 * util/biosdisk.c (get_drive): Rename to ...
44529 (find_grub_drive): ... this. Update all users.
44530
44531 (get_os_disk): Rename to ...
44532 (convert_system_partition_to_system_disk): ... this. Update all users.
44533
44534 (find_drive): Rename to ...
44535 (find_system_device): ... this. Update all users.
44536
44537 2008-06-04 Robert Millan <rmh@aybabtu.com>
44538
44539 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44540 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44541 (make_device_map): Likewise.
44542
44543 2008-06-01 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44546 before dereferencing it.
44547
44548 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44549 union with fat12/fat16-specific ones. Add some new fields, including
44550 `num_serial' for both versions.
44551 (struct grub_fat_data): Add `uuid' member.
44552 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44553 names. Initialize `data->uuid' using `num_serial'.
44554 (grub_fat_uuid): New function.
44555 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44556
44557 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44558 (grub_reiserfs_uuid): New function.
44559 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44560 member.
44561
44562 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44563 (grub_xfs_uuid): New function.
44564 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44565
44566 2008-06-01 Robert Millan <rmh@aybabtu.com>
44567
44568 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44569 code that is backward compatible with pre-uuid search command.
44570
44571 2008-05-31 Robert Millan <rmh@aybabtu.com>
44572
44573 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44574 floppies after everything else, to ensure floppy drive isn't accessed
44575 unnecessarily (patch from Bean).
44576
44577 2008-05-31 Robert Millan <rmh@aybabtu.com>
44578
44579 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44580 not print device names when we were asked to set a variable.
44581
44582 2008-05-31 Robert Millan <rmh@aybabtu.com>
44583
44584 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44585 using "cursor-on" and "cursor-off" commands (understood at least by
44586 the Open Firmware flavour on OLPC).
44587
44588 2008-05-31 Michael Gorven <michael@gorven.za.net>
44589
44590 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44591 on and off sequences.
44592
44593 2008-05-31 Robert Millan <rmh@aybabtu.com>
44594
44595 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44596 * util/update-grub.in: Likewise.
44597
44598 2008-05-30 Pavel Roskin <proski@gnu.org>
44599
44600 * util/biosdisk.c (linux_find_partition): Simplify logic and
44601 make the code more universal. Keep special processing for
44602 devfs, but use a simple rule for all other devices. If the
44603 device ends with a number, append 'p' and the partition number.
44604 Otherwise, append only the partition number.
44605
44606 2008-05-30 Robert Millan <rmh@aybabtu.com>
44607
44608 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44609 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44610 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44611 the `root' parameter to Linux.
44612
44613 2008-05-30 Robert Millan <rmh@aybabtu.com>
44614
44615 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44616 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44617 --fs_uuid with --fs-uuid.
44618 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44619 all filesystems support them).
44620
44621 2008-05-30 Robert Millan <rmh@aybabtu.com>
44622
44623 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44624 grub_printf() flags, since we're printing in units of 2 bytes.
44625
44626 2008-05-30 Robert Millan <rmh@aybabtu.com>
44627
44628 * util/grub.d/00_header.in: Remove obsolete comment referencing
44629 convert_system_path_to_grub_path().
44630 * util/update-grub.in: Likewise.
44631 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44632 (convert_system_path_to_grub_path): Add a warning message explaining
44633 that this function is deprecated. Rely on is_path_readable_by_grub()
44634 for the readability checks.
44635 (font_path): Use is_path_readable_by_grub() for the readability
44636 check rather than convert_system_path_to_grub_path().
44637
44638 2008-05-30 Robert Millan <rmh@aybabtu.com>
44639
44640 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44641 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44642 converting it first.
44643 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44644 grub.cfg for access to font file, and afterwards call it again to set
44645 the root device.
44646
44647 2008-05-30 Robert Millan <rmh@aybabtu.com>
44648
44649 * commands/search.c (options): Add --fs_uuid option.
44650 (search_fs_uuid): New function.
44651 (grub_cmd_search): Fix --set argument passing.
44652 Use search_fs_uuid() when requested via --fs_uuid.
44653 (grub_search_init): Update help message.
44654 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44655 and redeclare it as an array of 16-bit words.
44656 (grub_ext2_uuid): New function.
44657 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44658 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44659 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44660 (GRUB_DEVICE_BOOT_UUID): New variables.
44661 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44662 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44663 whenever possible.
44664 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44665 just assume `root' variable has the right value.
44666 * util/grub.d/10_linux.in: Likewise.
44667 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44668 via PRINT_FS_UUID.
44669 (main): Recognise `-t fs_uuid' argument.
44670
44671 2008-05-30 Robert Millan <rmh@aybabtu.com>
44672
44673 * util/biosdisk.c (map): Redefine structure to hold information
44674 about GRUB drive name.
44675 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44676 drive names.
44677 (call_hook): Remove.
44678 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44679 member. Assume drive has partitions.
44680 (grub_util_biosdisk_open): Access device names via `.device' struct
44681 member.
44682 (open_device): Likewise.
44683 (find_drive): Likewise.
44684 (read_device_map): Adjust map[] usage to match the new struct
44685 definition. Don't check for duplicates (still possible, but not cheap
44686 anymore).
44687 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44688 (make_device_name): Remove assumption of BIOS-like drive names.
44689
44690 2008-05-30 Pavel Roskin <proski@gnu.org>
44691
44692 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44693 compiling execute.c doesn't need grub_script.tab.h anymore.
44694 (normal/command.c_DEPENDENCIES): Likewise.
44695 (normal/function.c_DEPENDENCIES): Likewise.
44696 * conf/i386-ieee1275.rmk: Likewise.
44697 * conf/i386-linuxbios.rmk: Likewise.
44698 * conf/i386-pc.rmk: Likewise.
44699 * conf/powerpc-ieee1275.rmk: Likewise.
44700 * conf/sparc64-ieee1275.rmk: Likewise.
44701
44702 2008-05-29 Pavel Roskin <proski@gnu.org>
44703
44704 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44705 when scanning metadata for volume group name.
44706
44707 * include/grub/script.h: Don't include grub_script.tab.h. It's
44708 a generated file, which may only be included from the files with
44709 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44710 use union YYSTYPE, as the later allows forward declaration.
44711 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44712
44713 2008-05-29 Robert Millan <rmh@aybabtu.com>
44714
44715 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44716 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44717 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44718 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44719 scan codes.
44720
44721 2008-05-29 Robert Millan <rmh@aybabtu.com>
44722
44723 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44724 control key combinations.
44725
44726 2008-05-29 Robert Millan <rmh@aybabtu.com>
44727
44728 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44729 * util/ieee1275/grub-install.in: ... to here.
44730 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44731 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44732 (grub_install_SOURCES): Likewise.
44733
44734 2008-05-29 Robert Millan <rmh@aybabtu.com>
44735
44736 * fs/affs.c: Update copyright year.
44737 * fs/ext2.c: Likewise.
44738 * fs/fshelp.c: Likewise.
44739 * fs/hfsplus.c: Likewise.
44740 * fs/ntfs.c: Likewise.
44741 * fs/xfs.c: Likewise.
44742 * include/grub/fshelp.h: Likewise.
44743 * util/grub-mkdevicemap.c: Likewise.
44744
44745 2008-05-28 Robert Millan <rmh@aybabtu.com>
44746
44747 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44748 might need to be fatfs to support some firmware implementations
44749 (e.g. OFW or EFI).
44750
44751 2008-05-28 Robert Millan <rmh@aybabtu.com>
44752
44753 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44754 devices.
44755 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44756 (make_device_map): Likewise.
44757
44758 2008-05-20 Bean <bean123ch@gmail.com>
44759
44760 * fs/fshelp.c (grub_fshelp_map_block): New function.
44761 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44762 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44763
44764 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44765 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44766 (grub_fshelp_journal): New structure.
44767 (grub_fshelp_map_block): New function prototype.
44768 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44769 (grub_fshelp_map_block): Likewise.
44770
44771 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44772 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44773 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44774 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44775 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44776 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44777 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44778 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44779 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44780 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44781 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44782 (grub_ext2_sblock): New members for journal support.
44783 (grub_ext3_journal_header): New structure.
44784 (grub_ext3_journal_revoke_header): Likewise.
44785 (grub_ext3_journal_block_tag): Likewise.
44786 (grub_ext3_journal_sblock): Likewise.
44787 (grub_fshelp_node): New members logfile and journal.
44788 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44789 grub_fshelp_map_block to get real block number.
44790 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44791 number.
44792 (grub_ext2_read_inode): Likewise.
44793 (grub_ext3_get_journal): New function.
44794 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44795 (grub_ext2_close): Release memory used by journal.
44796
44797 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44798 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44799 (grub_reiserfs_transaction_header): Renamed to
44800 grub_reiserfs_description_block, replace field data with real_blocks.
44801 (grub_reiserfs_commit_block): New structure.
44802 (grub_reiserfs_data): New member journal.
44803 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44804 number.
44805 (grub_reiserfs_read_symlink): Likewise.
44806 (grub_reiserfs_iterate_dir): Likewise.
44807 (grub_reiserfs_open): Likewise.
44808 (grub_reiserfs_read): Likewise.
44809 (grub_reiserfs_get_journal): New function.
44810 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44811 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44812 using grub_reiserfs_get_journal.
44813 (grub_reiserfs_close): Release memory used by journal.
44814
44815 * fs/affs.c (grub_affs_read_block): Change block type to
44816 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44817
44818 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44819
44820 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44821
44822 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44823
44824 * fs/udf.c (grub_udf_read_block): Change block type to
44825 grub_disk_addr_t. Use type cast to avoid warning.
44826
44827 * fs/xfs.c (grub_xfs_read_block): Likewise.
44828
44829 2008-05-16 Christian Franke <franke@computer.org>
44830
44831 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44832 to ensure that break with ESC will always work.
44833 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44834 Remove ESC from keyboard queue.
44835
44836 2008-05-16 Christian Franke <franke@computer.org>
44837
44838 * util/biosdisk.c: [__CYGWIN__] Add includes.
44839 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44840 (get_os_disk): Move variable declarations to OS specific
44841 parts to avoid warning.
44842 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44843 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44844 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44845 Cygwin.
44846 * util/getroot.c: [__CYGWIN__] Add includes.
44847 (strip_extra_slashes): Fix "/" case.
44848 [__CYGWIN__] (get_win32_path): New function.
44849 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44850 [__CYGWIN__] (find_root_device): Disable.
44851 [__CYGWIN__] (get_bootsec_serial): New function.
44852 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44853 [__linux__] (grub_guess_root_device): Add early returns to simplify
44854 structure.
44855 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44856 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44857 check for Linux only.
44858
44859 2008-05-15 Bean <bean123ch@gmail.com>
44860
44861 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44862 keyboard hang problem in apple's intel mac.
44863
44864 2008-05-09 Robert Millan <rmh@aybabtu.com>
44865
44866 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44867 devices.
44868 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44869 (make_device_map): Likewise.
44870 Reported by Aurelien Jarno <aurel32@debian.org>
44871
44872 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44873
44874 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44875 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44876 (make_device_map): Output entries for xvd type disks.
44877
44878 2008-05-07 Robert Millan <rmh@aybabtu.com>
44879
44880 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44881 devices.
44882 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44883 (make_device_map): Likewise.
44884 Reported by Roland Dreier <rdreier@cisco.com>
44885
44886 2008-05-07 Robert Millan <rmh@aybabtu.com>
44887
44888 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44889 grub_strstr() call. Correct a few mistakes in failure path handling.
44890
44891 2008-05-06 Robert Millan <rmh@aybabtu.com>
44892
44893 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44894 Do not print a trailing slash (therefore, the root directory is an
44895 empty string).
44896 (convert_system_path_to_grub_path): Do not remove trailing slash
44897 from make_system_path_relative_to_its_root() output.
44898
44899 * util/i386/pc/grub-install.in: Add trailing slash to output from
44900 make_system_path_relative_to_its_root().
44901
44902 2008-05-06 Robert Millan <rmh@aybabtu.com>
44903
44904 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44905 ensures that output lines aren't intermangled with those sent to
44906 stderr (via grub_util_info()).
44907 * util/grub-probe.c (grub_refresh): Likewise.
44908 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44909
44910 2008-05-05 Christian Franke <franke@computer.org>
44911
44912 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44913 Add Cygwin device names.
44914 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44915 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44916 (check_device): Return error instead of success on empty name.
44917 (make_device_map): Move label inside linux specific code to
44918 prevent compiler warning.
44919
44920 2008-04-30 Robert Millan <rmh@aybabtu.com>
44921
44922 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44923 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44924 first boot option.
44925 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44926
44927 2008-04-29 Robert Millan <rmh@aybabtu.com>
44928
44929 * docs/grub.cfg: New file (example GRUB configuration).
44930
44931 2008-04-26 Robert Millan <rmh@aybabtu.com>
44932
44933 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
44934 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
44935 and `disk/ieee1275/nand.c'.
44936
44937 2008-04-25 Bean <bean123ch@gmail.com>
44938
44939 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
44940 i386-linuxbios.
44941
44942 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
44943 change the buffer size to 4096 for cdrom device.
44944
44945 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
44946 and nand.mod.
44947 (_linux_mod_SOURCES): New variable.
44948 (_linux_mod_CFLAGS): Likewise.
44949 (_linux_mod_LDFLAGS): Likewise.
44950 (linux_mod_SOURCES): Likewise.
44951 (linux_mod_CFLAGS): Likewise.
44952 (linux_mod_LDFLAGS): Likewise.
44953 (nand_mod_SOURCES): Likewise.
44954 (nand_mod_CFLAGS): Likewise.
44955 (nand_mod_LDFLAGS): Likewise.
44956
44957 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
44958 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
44959 type property. (nand device in olpc don't have this property)
44960
44961 * include/grub/disk.h (grub_disk_dev_id): New macro
44962 GRUB_DISK_DEVICE_NAND_ID.
44963
44964 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
44965 function prototype.
44966 (grub_rescue_cmd_initrd): Likewise.
44967
44968 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
44969 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
44970 ofw_cif_handler and ofw_idt, adjust padding number.
44971
44972 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
44973 GRUB_MACHINE_IEEE1275 is defined.
44974
44975 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
44976 Use NESTED_FUNC_ATTR attribute on the hook parameter.
44977
44978 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
44979 on nested function heap_init.
44980 (grub_upper_mem): New variable for i386-ieee1275.
44981 (grub_get_extended_memory): New function for i386-ieee1275.
44982 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
44983
44984 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
44985 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
44986 property.
44987
44988 * loader/i386/ieee1275/linux.c: New file.
44989
44990 * loader/i386/ieee1275/linux_normal.c: New file.
44991
44992 * disk/ieee1275/nand.c: New file.
44993
44994 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
44995
44996 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
44997 value.
44998 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
44999
45000 2008-04-18 Robert Millan <rmh@aybabtu.com>
45001
45002 Restructures early code path on ieee1275 to unify grub_main() as
45003 the first C function that is executed in every platform.
45004
45005 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45006 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45007 cmain().
45008 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45009 * kern/ieee1275/cmain.c (cmain): Rename to ...
45010 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45011 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45012 at the beginning.
45013
45014 2008-04-18 Robert Millan <rmh@aybabtu.com>
45015
45016 * util/update-grub.in: Fix syntax error when setting
45017 `GRUB_PRELOAD_MODULES'.
45018 Reported by Stephane Chazelas <stephane@artesyncp.com>
45019
45020 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45021
45022 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45023 section into account, newer toolchains generate unique build ids
45024 * configure.ac: remove the test for --build-id=none acceptance,
45025 we want build ids to be preserved
45026 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45027 far from other sections don't cause the raw binary images grow
45028 size
45029
45030 2008-04-15 Robert Millan <rmh@aybabtu.com>
45031
45032 * disk/lvm.c: Update copyright year.
45033 * kern/misc.c: Likewise.
45034
45035 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45036
45037 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45038 there is no memory left for physical volume name.
45039
45040 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45041
45042 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45043 volume name mapping to support bigger than 9 character names properly.
45044
45045 2008-04-13 Robert Millan <rmh@aybabtu.com>
45046
45047 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45048 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45049
45050 2008-04-13 Christian Franke <franke@computer.org>
45051
45052 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45053 to create a floppy emulation boot CD when non emulation mode
45054 does not work.
45055 Enable Joliet CD filesystem extension.
45056
45057 2008-04-13 Robert Millan <rmh@aybabtu.com>
45058
45059 * kern/misc.c (grub_strncat): Fix off-by-one error.
45060 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45061
45062 * kern/env.c (grub_env_context_close): Clear current context, not
45063 previous one.
45064 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45065
45066 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45067
45068 2008-04-13 Robert Millan <rmh@aybabtu.com>
45069
45070 Improve robustness when handling LVM.
45071
45072 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45073 (and leave `*p' unmodified).
45074 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45075 through it.
45076 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45077 iterating through it.
45078 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45079 through it.
45080 (grub_lvm_scan_device): Check the return value (and fail gracefully
45081 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45082 Don't assume `vg->pvs != NULL' when iterating through it.
45083
45084 2008-04-13 Robert Millan <rmh@aybabtu.com>
45085
45086 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45087 * genmk.rb (partmap): New variable.
45088 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45089 (#{partmap}): New target rule.
45090 * genpartmaplist.sh: New file.
45091 * Makefile.in (pkglib_DATA): Add partmap.lst.
45092 (partmap.lst): New target rule.
45093 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45094 modules (including all partition maps), instead of preloading them.
45095
45096 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45097
45098 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45099 `linux-boot-prober' (if installed) to detect other operating
45100 systems which are installed on the computer and add them to
45101 the boot menu.
45102 * conf/common.rmk: Build and install 30_os-prober.
45103
45104 2008-04-12 Robert Millan <rmh@aybabtu.com>
45105
45106 * kern/powerpc/ieee1275/init.c: Move from here ...
45107 * kern/ieee1275/init.c: ... to here. Update all users.
45108
45109 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45110 * kern/ieee1275/cmain.c: ... to here. Update all users.
45111
45112 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45113 * kern/ieee1275/openfw.c: ... to here. Update all users.
45114
45115 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45116 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45117
45118 2008-04-10 Pavel Roskin <proski@gnu.org>
45119
45120 * configure.ac: Always use "_cv_" in cache variables for
45121 compatibility with Autoconf 2.62.
45122
45123 2008-04-07 Robert Millan <rmh@aybabtu.com>
45124
45125 Revert grub/machine/init.h addition by Pavel (since it breaks on
45126 i386-ieee1275 and others):
45127 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45128 * util/powerpc/ieee1275/misc.c: Likewise.
45129
45130 2008-04-07 Robert Millan <rmh@aybabtu.com>
45131
45132 * util/grub-probe.c (probe): Improve error message.
45133
45134 2008-04-07 Robert Millan <rmh@aybabtu.com>
45135
45136 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45137 (this prevents the presence of a bogus entry from ruining the whole
45138 thing).
45139
45140 2008-04-06 Pavel Roskin <proski@gnu.org>
45141
45142 * util/biosdisk.c: Include grub/util/biosdisk.h.
45143 * util/grub-fstest.c (execute_command): Make static.
45144 * util/grub-mkdevicemap.c (check_device): Likewise.
45145 * util/i386/pc/misc.c: Include grub/machine/init.h.
45146 * util/powerpc/ieee1275/misc.c: Likewise.
45147 * util/lvm.c: Include grub/util/lvm.h.
45148 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45149 grub/cache.h.
45150 * util/raid.c: Include grub/util/raid.h.
45151 (grub_util_getdiskname): Make static.
45152
45153 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45154 grub_hostfs_fini(), as they are called from grub_init_all() and
45155 grub_fini_all() respectively. This fixes an infinite loop in
45156 grub-fstest due to double registration of hostfs.
45157 Reported by Christian Franke <Christian.Franke@t-online.de>
45158
45159 2008-04-05 Pavel Roskin <proski@gnu.org>
45160
45161 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45162 all 8 functions. Otherwise, probe function 0 only.
45163
45164 2008-04-04 Pavel Roskin <proski@gnu.org>
45165
45166 * commands/lspci.c (grub_lspci_iter): Print the bus number
45167 correctly.
45168
45169 * commands/lspci.c (grub_pci_classes): Fix typos.
45170 (grub_lspci_iter): Don't print func twice. Print vendor ID
45171 before device ID, as it's normally done.
45172
45173 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45174 Fix signedness warnings.
45175 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45176 Likewise.
45177 * util/ieee1275/get_disk_name.c: Include config.h so that
45178 _GNU_SOURCE is defined and getline() is declared. Mark an
45179 unused argument as such. Fix a signedness warning.
45180
45181 2008-04-02 Pavel Roskin <proski@gnu.org>
45182
45183 * genkernsyms.sh.in: Use more robust assignments for CC and
45184 srcdir. Quote srcdir.
45185 * gensymlist.sh.in: Likewise. Assert at the compile time that
45186 the symbol table is not empty.
45187
45188 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45189 * fs/cpio.c (grub_cpio_read): Likewise.
45190
45191 2008-04-01 Pavel Roskin <proski@gnu.org>
45192
45193 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45194 * disk/host.c (grub_host_open): Likewise.
45195 * disk/loopback.c (grub_loopback_open): Likewise.
45196 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45197 disk->id as in disk/host.c, not a multi-character constant.
45198
45199 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45200 later is obsolete, potentially dangerous and sets a bad example.
45201 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45202 * util/misc.c (grub_util_get_image_size): Likewise.
45203
45204 * disk/loopback.c (options): Improve help for "--partitions".
45205
45206 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45207 options to align them with the short options, e.g. "echo -e".
45208
45209 2008-03-31 Bean <bean123ch@gmail.com>
45210
45211 * video/reader/png.c (grub_png_data): New member is_16bit and
45212 image_data.
45213 (grub_png_decode_image_header): Detect 16 bit png image.
45214 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45215 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45216 (grub_video_reader_png): Release memory occupied by image_data.
45217
45218 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45219 4096 bytes.
45220 (grub_nfs_mount): Skip the test for sector per cluster.
45221
45222 * include/grub/ntfs.h (MAX_SPC): Removed.
45223
45224 2008-03-31 Bean <bean123ch@gmail.com>
45225
45226 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45227 (grub_probe_SOURCES): Add fs/afs.c.
45228 (grub_fstest_SOURCES): Likewise.
45229 (afs_mod_SOURCES): New variable.
45230 (afs_mod_CFLAGS): Likewise.
45231 (afs_mod_LDFLAGS): Likewise.
45232
45233 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45234 (grub_emu_SOURCES): Likewise.
45235
45236 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45237
45238 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45239
45240 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45241
45242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45243
45244 * fs/afs.c: New file.
45245
45246 2008-03-30 Pavel Roskin <proski@gnu.org>
45247
45248 * disk/host.c: Include grub/misc.h to fix a warning.
45249 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45250 warnings about implicit declarations.
45251
45252 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45253 variable.
45254 * include/grub/i386/loader.h: Change declaration of
45255 grub_linux_boot() to match what grub_loader_set() expects.
45256 * util/getroot.c (grub_guess_root_device): Return const char* to
45257 fix a warning.
45258 * util/grub-probe.c (probe): Fix a warning about uninitialized
45259 abstraction_name variable.
45260 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45261 second argument as unused to fix a warning.
45262
45263 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45264 missing grub_error() call.
45265
45266 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45267 2.60 and newer uses it to define datadir.
45268
45269 * commands/sleep.c: Fix warning about implicit declaration.
45270 * disk/memdisk.c: Likewise.
45271 * loader/aout.c: Likewise.
45272 * loader/i386/bsd_normal.c: Likewise.
45273 * util/grub-probe.c: Likewise.
45274
45275 * commands/i386/cpuid.c (has_longmode): Make static.
45276 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45277 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45278
45279 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45280 GDT. This is more robust, as %ds can change.
45281 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45282 calling real_to_prot().
45283 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45284
45285 2008-03-28 Pavel Roskin <proski@gnu.org>
45286
45287 * kern/i386/pc/startup.S: Assert that uncompressed functions
45288 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45289 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45290 code, as they push parts of the code (error handlers) beyond
45291 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45292 code as correctness and size.
45293
45294 2008-03-28 Pavel Roskin <proski@gnu.org>
45295
45296 * kern/i386/pc/startup.S
45297 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45298 data block address to the real mode, keep offset minimal. This
45299 works around a bug in AWARD BIOS on old Athlon systems, which
45300 makes CD detection hang.
45301
45302 2008-03-26 Pavel Roskin <proski@gnu.org>
45303
45304 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45305 const.
45306 * include/grub/normal.h: Add grub_parse_color_name_pair()
45307 declaration.
45308
45309 2008-03-24 Bean <bean123ch@gmail.com>
45310
45311 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45312 (cd_count): Removed.
45313 (cd_drive): New variable.
45314 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45315 (grub_biosdisk_call_hook): Likewise.
45316 (grub_biosdisk_iterate): Change cdrom detection method.
45317 (grub_biosdisk_open): Replace cd_start with cd_drive.
45318 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45319 detect cdrom device.
45320
45321 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45322 Removed.
45323 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45324 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45325 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45326 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45327 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45328 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45329 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45330 (grub_biosdisk_cdrp): New structure.
45331 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45332
45333 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45334
45335 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45336 device.
45337
45338 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45339 New function.
45340
45341 2008-03-20 Robert Millan <rmh@aybabtu.com>
45342
45343 Remove 2 TiB limit in ata.mod.
45344 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45345 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45346 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45347 grub_uint64_t instead of grub_uint32_t.
45348
45349 2008-03-05 Bean <bean123ch@gmail.com>
45350
45351 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45352 (grub_multiboot): Set boot device.
45353
45354 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45355
45356 2008-03-02 Bean <bean123ch@gmail.com>
45357
45358 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45359 symlink_buffer.
45360
45361 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45362
45363 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45364 texinfo.tex.
45365
45366 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45367 modified.
45368
45369 * docs/fdl.texi: New file.
45370
45371 * docs/mdate-sh: New file. Copied from gnulib.
45372 * docs/texinfo.tex: Likewise.
45373
45374 * config.guess: Updated from gnulib.
45375 * install-sh: Likewise.
45376
45377 2008-02-28 Robert Millan <rmh@aybabtu.com>
45378
45379 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45380 (aout_mod_SOURCES): New variable.
45381 (aout_mod_CFLAGS): Likewise.
45382 (aout_mod_LDFLAGS): Likewise.
45383
45384 * conf/i386-ieee1275.rmk: Likewise.
45385
45386 2008-02-28 Robert Millan <rmh@aybabtu.com>
45387
45388 * util/update-grub.in: Reorganise terminal validity check. Accept
45389 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45390 Based on suggestion by Franklin PIAT.
45391
45392 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45393
45394 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45395 function.
45396 * util/getroot.c (grub_util_check_block_device): New function that
45397 returns the given argument if it is a block device and returns NULL else.
45398 * util/grub-probe.c (argument_is_device): New variable.
45399 (probe): Promote device_name from a variable to an argument. Receive
45400 device_name from grub_util_check_block_device() if path is NULL and from
45401 grub_guess_root_device() else. Do not free() device_name anymore.
45402 (options): Introduce new parameter '-d, --device'.
45403 (main): Add description of the new parameter to the help screen.
45404 Rename path variable to argument. Set argument_is_device if the '-d'
45405 option is given. Pass argument to probe() depending on
45406 argument_is_device.
45407
45408 2008-02-24 Bean <bean123ch@gmail.com>
45409
45410 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45411 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45412 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45413 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45414 (GRUB_ISO9660_VOLDESC_END): Likewise.
45415 (grub_iso9660_primary_voldesc): New member escape.
45416 (grub_iso9660_data): New member joliet.
45417 (grub_iso9660_convert_string): New function.
45418 (grub_iso9660_mount): Detect joliet extension.
45419 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45420 (grub_iso9660_iso9660_label): Likewise.
45421
45422 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45423 (grub_setup_SOURCES): Add fs/udf.c.
45424 (grub_fstest_SOURCES): Likewise.
45425 (udf_mod_SOURCES): New variable.
45426 (udf_mod_CFLAGS): Likewise.
45427 (udf_mod_LDFLAGS): Likewise.
45428
45429 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45430 (grub_emu_SOURCES): Likewise.
45431
45432 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45433
45434 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45435
45436 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45437
45438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45439
45440 * fs/udf.c: New file.
45441
45442 2008-02-24 Robert Millan <rmh@aybabtu.com>
45443
45444 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45445 (normal/lexer.c_DEPENDENCIES): New variables.
45446 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45447 (normal/lexer.c_DEPENDENCIES): Likewise.
45448 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45449 (normal/lexer.c_DEPENDENCIES): Likewise.
45450 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45451 (normal/lexer.c_DEPENDENCIES): Likewise.
45452 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45453 (normal/lexer.c_DEPENDENCIES): Likewise.
45454 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45455 (normal/lexer.c_DEPENDENCIES): Likewise.
45456
45457 2008-02-23 Robert Millan <rmh@aybabtu.com>
45458
45459 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45460 since they were intended to be in hex. This didn't break previously
45461 because of a bug in gpt_partition_map_iterate() (see below).
45462
45463 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45464 when checking the validity of GPT header.
45465 Remove `partno', since it always provides the same information as `i'.
45466
45467 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45468
45469 * include/grub/efi/time.h: Fix a wrong comment.
45470
45471 2008-02-19 Pavel Roskin <proski@gnu.org>
45472
45473 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45474 message.
45475
45476 2008-02-19 Bean <bean123ch@gmail.com>
45477
45478 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45479 (aout_mod_SOURCES): New variable.
45480 (aout_mod_CFLAGS): Likewise.
45481 (aout_mod_LDFLAGS): Likewise.
45482 (_bsd_mod_SOURCES): New variable.
45483 (_bsd_mod_CFLAGS): Likewise.
45484 (_bsd_mod_LDFLAGS): Likewise.
45485 (bsd_mod_SOURCES): New variable.
45486 (bsd_mod_CFLAGS): Likewise.
45487 (bsd_mod_LDFLAGS): Likewise.
45488
45489 * include/grub/aout.h: New file.
45490
45491 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45492
45493 * include/grub/i386/bsd.h: New file.
45494
45495 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45496 to make it public.
45497
45498 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45499 function is called, so that it's possible to change it inside the hook.
45500 (grub_elf64_load): Likewise.
45501 (grub_elf_file): Don't close the file if elf header is not found.
45502 (grub_elf_close): Close the file if grub_elf_file fails (The new
45503 grub_elf_file won't close it).
45504 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45505 (grub_elf64_size): Likewise.
45506
45507 * kern/i386/loader.S (grub_unix_real_boot): New function.
45508
45509 * loader/aout.c: New file.
45510
45511 * loader/i386/bsd.c: New file.
45512
45513 * loader/i386/bsd_normal.c: New file.
45514
45515 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45516
45517 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45518 can test other formats.
45519
45520 2008-02-19 Robert Millan <rmh@aybabtu.com>
45521
45522 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45523 (grub_gpt_partition_type_empty): Redefine with macro from
45524 `<grub/gpt_partition.h>'.
45525 (gpt_partition_map_iterate): Adjust partition type comparison.
45526
45527 Export `entry' as partmap-specific `part.data' struct.
45528 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45529
45530 * include/grub/gpt_partition.h (grub_gpt_header)
45531 (grub_gpt_partentry): ... to here (new file).
45532
45533 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45534
45535 (grub_gpt_partition_type_bios_boot): New const variable, defined
45536 with macro from `<grub/gpt_partition.h>'.
45537
45538 (setup): Replace `first_start' with `embed_region', which keeps
45539 track of the embed region (and is partmap-agnostic).
45540
45541 Replace find_first_partition_start() with find_usable_region(),
45542 which finds a usable region for embedding using partmap-specific
45543 knowledge (supports PC/MSDOS and GPT).
45544
45545 Fix all assumptions that the embed region start at sector 1, using
45546 `embed_region.start' from now on. Similarly, use `embed_region.end'
45547 rather than `first_start' to calculate available size.
45548
45549 In grub_util_info() message, replace "into after the MBR" with an
45550 indication of the specific sector our embed region starts at.
45551
45552 2008-02-19 Robert Millan <rmh@aybabtu.com>
45553
45554 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45555 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45556 `commands/reboot.c'.
45557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45558 (halt_mod_SOURCES): Likewise.
45559 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45560 (halt_mod_SOURCES): Likewise.
45561
45562 2008-02-17 Christian Franke <franke@computer.org>
45563
45564 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45565
45566 2008-02-17 Robert Millan <rmh@aybabtu.com>
45567
45568 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45569 set `first_start' to 0 for non-PC/MSDOS partition maps.
45570
45571 2008-02-16 Robert Millan <rmh@aybabtu.com>
45572
45573 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45574 do not assume partition map is PC/MSDOS before performing checks that
45575 are specific to that layout.
45576
45577 2008-02-13 Robert Millan <rmh@aybabtu.com>
45578
45579 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45580 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45581 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45582
45583 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45584
45585 * configure.ac: Only a cosmetic change on the handling of
45586 -fno-stack-protector.
45587
45588 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45589
45590 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45591 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45592 reboot.c.
45593 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45594 (halt_mod_SOURCES): New variable.
45595 (halt_mod_CFLAGS): Likewise.
45596 (halt_mod_LDFLAGS): Likewise.
45597 (reboot_mod_SOURCES): Likewise.
45598 (reboot_mod_CFLAGS): Likewise.
45599 (reboot_mod_LDFLAGS): Likewise.
45600
45601 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45602 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45603 reboot.c.
45604 (halt_mod_SOURCES): Likewise.
45605 (reboot_mod_SOURCES): Likewise.
45606
45607 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45608 commands/i386/pc/reboot.c by commands/reboot.c.
45609 (reboot_mod_SOURCES): Likewise.
45610
45611 * commands/i386/pc/reboot.c: merge this file ...
45612
45613 * commands/ieee1275/reboot.c: ... and this file ...
45614
45615 * commands/reboot.c: ... to this file.
45616 Add some precompiler directive to include the correct header for
45617 each machine.
45618
45619 * commands/ieee1275/halt.c: move this file ...
45620
45621 * commands/halt.c: ... to here.
45622 Add some precompiler directive to include the correct header for
45623 each machine.
45624
45625 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45626 (grub_halt): Likewise.
45627
45628 * kern/efi/efi.c (grub_reboot): New function.
45629 (grub_halt): Likewise.
45630
45631 2008-02-12 Robert Millan <rmh@aybabtu.com>
45632
45633 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45634 /dev (like it is done for /dev/mapper). This doesn't provide support
45635 for EVMS, but at least it is now easy to identify the problem when it
45636 arises.
45637
45638 2008-02-11 Robert Millan <rmh@aybabtu.com>
45639
45640 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45641 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45642 comparing it with -1, not 0.
45643
45644 2008-02-10 Robert Millan <rmh@aybabtu.com>
45645
45646 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45647 `disk/lvm.c'.
45648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45649 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45650
45651 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45652 `disk/lvm.c' to the end of the list.
45653 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45654 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45655
45656 2008-02-10 Robert Millan <rmh@aybabtu.com>
45657
45658 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45659 grub_print_error() instead. This will let user know why we're entering
45660 rescue mode.
45661 Based on suggestions from Sam Morris.
45662
45663 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45664
45665 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45666 on remaining N args, instead of "--" arg N times.
45667
45668 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45669
45670 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45671 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45672 pattern for unknown glyphs.
45673
45674 2008-02-09 Robert Millan <rmh@aybabtu.com>
45675
45676 * configure.ac: Probe for `help2man'.
45677 * Makefile.in (builddir): New variable.
45678 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45679 or otherwise add a few flags/options to it.
45680 (install-local): For every executable utility or script that is
45681 installed, invoke $(HELP2MAN) to install a manpage based on --help
45682 output.
45683
45684 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45685 that it doesn't prevent --help from working in build tree.
45686
45687 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45688 with `bug-grub@gnu.org'.
45689 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45690 * util/update-grub.in (usage): New function.
45691 Implement proper argument check, with support for --help and --version
45692 (as well as existing -y).
45693
45694 2008-02-09 Christian Franke <franke@computer.org>
45695
45696 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45697 avoid overwriting previous output.
45698 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45699
45700 2008-02-09 Robert Millan <rmh@aybabtu.com>
45701
45702 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45703 drawing the menu.
45704
45705 2008-02-09 Robert Millan <rmh@aybabtu.com>
45706
45707 * commands/sleep.c: New file.
45708 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45709 (sleep_mod_SOURCES): New variable.
45710 (sleep_mod_CFLAGS): Likewise.
45711 (sleep_mod_LDFLAGS): Likewise.
45712
45713 2008-02-09 Robert Millan <rmh@aybabtu.com>
45714
45715 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45716 situations in which we can deduce the RAID size and the superblock
45717 doesn't match it.
45718
45719 2008-02-09 Robert Millan <rmh@aybabtu.com>
45720
45721 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45722 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45723 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45724
45725 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45726 and return a grub_diskmemberlist_t composed of physical array members.
45727 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45728
45729 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45730 prototype.
45731 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45732 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45733 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45734
45735 * util/grub-probe.c (probe): Move partmap probing code from here ...
45736 (probe_partmap): ... to here.
45737 (probe): Use probe_partmap() once for the disk we're probing, and
45738 additionally, when such disk contains a memberlist() struct member,
45739 once for each disk that is contained in the structure returned by
45740 memberlist().
45741
45742 2008-02-09 Robert Millan <rmh@aybabtu.com>
45743
45744 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45745 environment variable to 'all' in order to obtain debug output from
45746 non-util/ code.
45747 * util/i386/pc/grub-setup.c (main): Likewise.
45748
45749 2008-02-08 Robert Millan <rmh@aybabtu.com>
45750
45751 * disk/raid.c (grub_raid_scan_device): Check for
45752 `array->device[sb.this_disk.number]' rather than for
45753 `array->device[sb.this_disk.number]->name', since the latter is not
45754 guaranteed to be accessible.
45755
45756 2008-02-08 Robert Millan <rmh@aybabtu.com>
45757
45758 * disk/raid.c: Update copyright.
45759 * fs/cpio.c: Likewise.
45760 * include/grub/raid.h: Likewise.
45761 * loader/i386/pc/multiboot.c: Likewise.
45762 * util/hostfs.c: Likewise.
45763
45764 2008-02-08 Robert Millan <rmh@aybabtu.com>
45765
45766 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45767 to a grub_disk_t array.
45768 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45769 `device[x]'.
45770 (grub_raid_scan_device): Replace `device[x].name' accesses with
45771 `device[x]->name'. Simplify initialization of `array->device[x]'.
45772
45773 2008-02-08 Robert Millan <rmh@aybabtu.com>
45774
45775 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45776 grub_dprintf() calls.
45777 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45778 error message.
45779
45780 2008-02-07 Christian Franke <franke@computer.org>
45781
45782 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45783 instead of fseek and ftell to support large files.
45784 (grub_hostfs_read): Likewise.
45785
45786 2008-02-07 Robert Millan <rmh@aybabtu.com>
45787
45788 Patch from Jeroen Dekkers.
45789 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45790 failure, since successfully reading all array members might not be
45791 required.
45792
45793 2008-02-06 Robert Millan <rmh@aybabtu.com>
45794
45795 * util/grub-probe.c (probe): Simplify partmap probing (with the
45796 assumption that the first word up to the underscore equals to
45797 the module name).
45798
45799 2008-02-06 Christian Franke <franke@computer.org>
45800
45801 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45802 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45803 last block of a cpio or tar stream.
45804 Check for "TRAILER!!!" instead of any empty data
45805 block to detect last block of a cpio stream.
45806 (grub_cpio_dir): Fix constness of variable np.
45807 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45808 cpio or tar trailer is detected. This fixes a crash
45809 on open of a non existing file.
45810
45811 2008-02-05 Bean <bean123ch@gmail.com>
45812
45813 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45814 address of entry.
45815 (grub_multiboot_load_elf64): Likewise.
45816 (grub_multiboot): Initialize mbi structure.
45817
45818 * util/grub-fstest.c: Don't include unused header file script.h.
45819
45820 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45821 of file.
45822 (grub_fstest_SOURCES): Likewise.
45823
45824 2008-02-05 Robert Millan <rmh@aybabtu.com>
45825
45826 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45827 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45828 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45829 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45830
45831 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45832 (translation_table): Replace hardcoded values with macros
45833 provided by `<grub/term.h>'.
45834
45835 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45836 (keyboard_map): Correct/add a few values, with macros provided
45837 by `<grub/term.h>'.
45838 (keyboard_map_shift): Zero values that don't differ from their
45839 `keyboard_map' equivalents.
45840 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45841 Discard the second scan code that is always sent by Caps lock.
45842 Only use `keyboard_map_shift' when it provides a non-zero value,
45843 otherwise fallback to `keyboard_map'.
45844
45845 2008-02-04 Bean <bean123ch@gmail.com>
45846
45847 * Makefile.in (enable_grub_fstest): New variable.
45848
45849 * conf/common.rmk (grub_fstest_init.lst): New rule.
45850 (grub_fstest_init.h): Likewise.
45851 (grub_fstest_init.c): Likewise.
45852 (util/grub-fstest.c_DEPENDENCIES): New variable.
45853 (grub_fstest_SOURCES): Likewise.
45854
45855 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45856
45857 * util/grub-fstest.c: New file.
45858
45859 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45860
45861 Make grub-setup handle a separate root device.
45862
45863 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45864 so that the root device can be compared with the destination
45865 device.
45866 When embedding the core image, if the root and destination devices
45867 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45868 0xFF.
45869 When not embedding, set ROOT_DRIVE to 0xFF.
45870
45871 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45872
45873 Add support for having a grub directory in a different drive. This
45874 is still only the data handling part.
45875
45876 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45877 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45878 (grub_root_drive): New variable.
45879
45880 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45881 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45882 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45883 as it was.
45884
45885 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45886
45887 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45888 macro.
45889 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45890
45891 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45892 is bogus, because PXE booting does not specify any drive
45893 correctly.
45894
45895 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45896 am not sure if this is really correct.
45897
45898 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45899 is always identical to the boot drive when booting from a CD.
45900
45901 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45902 longer.
45903 (root_drive): New variable.
45904 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45905 (setup_sectors): Push %dx right after popping it, because %dh will
45906 be modified later.
45907 (copy_buffer): Restore %dx.
45908
45909 2008-02-03 Robert Millan <rmh@aybabtu.com>
45910
45911 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45912 use `cdboot.img' for cdrom images.
45913
45914 2008-02-03 Robert Millan <rmh@aybabtu.com>
45915
45916 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45917 only setup gfxterm when `font' command has succeeded.
45918
45919 2008-02-03 Robert Millan <rmh@aybabtu.com>
45920
45921 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45922 (grub_rescue_cmd_multiboot_loader)
45923 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45924
45925 2008-02-03 Pavel Roskin <proski@gnu.org>
45926
45927 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45928 %edx and %esi from stack only after grub_gate_a20() is called.
45929 grub_gate_a20() clobbers %edx.
45930
45931 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45932
45933 * configure.ac (AC_INIT): Bumped to 1.96.
45934
45935 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
45936 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
45937 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
45938 video/readers/png.c.
45939
45940 2008-02-03 Bean <bean123ch@gmail.com>
45941
45942 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
45943 (cdboot_img_SOURCES): New variable.
45944 (cdboot_img_ASFLAGS): New variable.
45945 (cdboot_img_LDFLAGS): New variable.
45946
45947 * boot/i386/pc/cdboot.S: New file.
45948
45949 * disk/i386/pc/biosdisk.c (cd_start): New variable.
45950 (cd_count): Likewise.
45951 (grub_biosdisk_get_drive): Add support for cd device.
45952 (grub_biosdisk_call_hook): Likewise.
45953 (grub_biosdisk_iterate): Likewise.
45954 (grub_biosdisk_open): Likewise.
45955 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
45956 (grub_biosdisk_rw): Support reading from cd device.
45957 (GRUB_MOD_INIT): Iterate cd devices.
45958
45959 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
45960 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
45961 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
45962
45963 * kern/i386/pc/init.c (make_install_device): Check for cd device.
45964
45965 2008-02-02 Robert Millan <rmh@aybabtu.com>
45966
45967 * commands/read.c: New file.
45968 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
45969 (read_mod_SOURCES): New variable.
45970 (read_mod_CFLAGS): Likewise.
45971 (read_mod_LDFLAGS): Likewise.
45972
45973 2008-02-02 Robert Millan <rmh@aybabtu.com>
45974
45975 * normal/main.c (grub_normal_execute): Check for `menu->size' when
45976 determining whether menu has to be displayed.
45977
45978 2008-02-02 Marco Gerards <marco@gnu.org>
45979
45980 * bus/pci.c: New file.
45981
45982 * include/grub/pci.h: Likewise.
45983
45984 * include/grub/i386/pc/pci.h: Likewise.
45985
45986 * commands/lspci.c: Likewise.
45987
45988 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
45989 `lspci.mod'.
45990 (pci_mod_SOURCES): New variable.
45991 (pci_mod_CFLAGS): Likewise.
45992 (pci_mod_LDFLAGS): Likewise.
45993 (lspci_mod_SOURCES): Likewise.
45994 (lspci_mod_CFLAGS): Likewise.
45995 (lspci_mod_LDFLAGS): Likewise.
45996
45997 2008-02-02 Bean <bean123ch@gmail.com>
45998
45999 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46000 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46001
46002 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46003 (grub_xfs_btree_node): New structure.
46004 (grub_xfs_btree_root): New structure.
46005 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46006 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46007 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46008 (GRUB_XFS_EXTENT_SIZE): Likewise.
46009 (grub_xfs_read_block): Support btree format type.
46010 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46011 Use directory block as basic unit.
46012
46013 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46014
46015 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46016 __attribute__ ((__regparm__ (1))).
46017
46018 2008-02-01 Robert Millan <rmh@aybabtu.com>
46019
46020 Correct a mistake in previous commit.
46021
46022 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46023 top.
46024 (normal/command.c_DEPENDENCIES): New variable.
46025
46026 2008-02-01 Robert Millan <rmh@aybabtu.com>
46027
46028 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46029 top.
46030 (normal/command.c_DEPENDENCIES): New variable.
46031 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46032 * conf/i386-ieee1275.rmk: Likewise.
46033 * conf/i386-linuxbios.rmk: Likewise.
46034 * conf/i386-pc.rmk: Likewise.
46035 * conf/sparc64-ieee1275.rmk: Likewise.
46036 * conf/powerpc-ieee1275.rmk: Likewise.
46037 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46038
46039 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46040
46041 2008-02-01 Robert Millan <rmh@aybabtu.com>
46042
46043 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46044 call at beginning of function.
46045
46046 2008-01-31 Pavel Roskin <proski@gnu.org>
46047
46048 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46049 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46050 (grub_mkrescue_SOURCES): Likewise.
46051 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46052
46053 2008-01-30 Robert Millan <rmh@aybabtu.com>
46054
46055 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46056 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46057 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46058 (grub_probe_SOURCES): ... to here.
46059
46060 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46061 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46062 * conf/i386-ieee1275.rmk: Likewise.
46063 * conf/i386-linuxbios.rmk: Likewise.
46064 * conf/powerpc-ieee1275.rmk: Likewise.
46065
46066 2008-01-30 Tristan Gingold <gingold@free.fr>
46067
46068 * kern/rescue.c: Silently accept empty lines.
46069
46070 2008-01-29 Bean <bean123ch@gmail.com>
46071
46072 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46073 (real_code_2): Code cleanup and change comment style.
46074 (move_memory): Avoid using 32-bit address mode.
46075
46076 2008-01-29 Bean <bean123ch@gmail.com>
46077
46078 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46079 (png_mod_SOURCES): New variable.
46080 (png_mod_CFLAGS): Likewise.
46081 (png_mod_LDFLAGS): Likewise.
46082
46083 * video/readers/png.c: New file.
46084
46085 2008-01-28 Robert Millan <rmh@aybabtu.com>
46086
46087 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46088 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46089 `ifndef GRUB_MOD_GAP' hack.
46090 * util/elf/grub-mkimage.c (add_segments): Likewise.
46091
46092 2008-01-27 Robert Millan <rmh@aybabtu.com>
46093
46094 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46095 `GRUB_MOD_GAP' for platforms in which it's not defined.
46096 * util/elf/grub-mkimage.c (add_segments): Likewise.
46097
46098 2008-01-27 Robert Millan <rmh@aybabtu.com>
46099
46100 Get grub-emu to build again (including parallel builds).
46101
46102 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46103 Split into ...
46104 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46105 (normal/execute.c_DEPENDENCIES): ... this, ...
46106 (grub-emu_DEPENDENCIES): ... and this.
46107
46108 * conf/i386-efi.rmk: Likewise.
46109 * conf/i386-linuxbios.rmk: Likewise.
46110 * conf/i386-ieee1275.rmk: Likewise.
46111 * conf/powerpc-ieee1275.rmk: Likewise.
46112 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46113
46114 2008-01-27 Robert Millan <rmh@aybabtu.com>
46115
46116 * NEWS: Add a few items.
46117
46118 2008-01-27 Robert Millan <rmh@aybabtu.com>
46119
46120 Fix parallel builds with grub-emu. Based on earlier commit for
46121 grub-probe and grub-setup.
46122
46123 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46124 (util/grub-emu.c_DEPENDENCIES): ... this.
46125 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46126 (util/grub-emu.c_DEPENDENCIES): ... this.
46127 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46128 (util/grub-emu.c_DEPENDENCIES): ... this.
46129 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46130 (util/grub-emu.c_DEPENDENCIES): ... this.
46131 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46132 (util/grub-emu.c_DEPENDENCIES): ... this.
46133
46134 2008-01-27 Pavel Roskin <proski@gnu.org>
46135
46136 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46137 to create a gap between _end and the modules added to the image
46138 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46139 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46140 * util/elf/grub-mkimage.c (add_segments): Likewise.
46141
46142 2008-01-26 Pavel Roskin <proski@gnu.org>
46143
46144 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46145 just return an error.
46146
46147 2008-01-26 Bean <bean123ch@gmail.com>
46148
46149 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46150 (grub_reiserfs_get_item): Save offset of the next item.
46151 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46152
46153 2008-01-25 Robert Millan <rmh@aybabtu.com>
46154
46155 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46156 make all filesystem sources appear together (possibly fixing omissions
46157 while at it).
46158 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46159 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46160 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46162
46163 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46164 add `kern/file.c'.
46165 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46166 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46167 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46168 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46169
46170 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46171 (probe): Add a sanity check to make sure of our ability to read
46172 requested files when probing for filesystem type.
46173
46174 * genmk.rb: Update copyright year (2007).
46175
46176 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46177 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46178 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46179 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46180 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46181 : Remove function prototypes.
46182
46183 2008-01-25 Robert Millan <rmh@aybabtu.com>
46184
46185 Revert my previous commits (based on wrong assumption of how grub_errno
46186 works).
46187
46188 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46189 * kern/file.c (grub_file_open): Likewise.
46190
46191 2008-01-24 Pavel Roskin <proski@gnu.org>
46192
46193 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46194 that hang if GRUB tries to setup colors.
46195 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46196 colors for firmwares that don't support it.
46197 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46198 Recognize Open Hack'Ware, set flags to work around its
46199 limitations.
46200
46201 2008-01-24 Robert Millan <rmh@aybabtu.com>
46202
46203 * kern/file.c (grub_file_open): Do not account previous failures of
46204 unrelated functions when grub_errno is checked for.
46205 Reported by Oleg Strikov.
46206
46207 2008-01-24 Bean <bean123ch@gmail.com>
46208
46209 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46210 (grub_ufs_sblock): New member volume name.
46211 (grub_ufs_find_file): Fix string copy bug.
46212 (grub_ufs_label): Implement this function properly.
46213
46214 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46215 (grub_hfs_iterate_records): Use the correct file number for extents
46216 and catalog file. Fix problem in next index calculation.
46217 (grub_hfs_find_node): Replace recursive function call with loop.
46218 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46219
46220 2008-01-23 Robert Millan <rmh@aybabtu.com>
46221
46222 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46223 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46224 (grub_multiboot2_real_boot): New function prototype.
46225
46226 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46227 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46228
46229 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46230 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46231
46232 2008-01-23 Robert Millan <rmh@aybabtu.com>
46233
46234 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46235 #ifdef'ed out grub_printf().
46236
46237 2008-01-23 Robert Millan <rmh@aybabtu.com>
46238
46239 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46240 grub_dprintf calls, since they make "debug=all" mode unusable.
46241 (grub_console_checkkey): Likewise.
46242
46243 2008-01-23 Robert Millan <rmh@aybabtu.com>
46244
46245 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46246 `term/i386/pc/at_keyboard.c'.
46247 (pkglib_MODULES): Add `serial.mod'.
46248 (serial_mod_SOURCES): New variable.
46249 (serial_mod_CFLAGS): Likewise.
46250 (serial_mod_LDFLAGS): Likewise.
46251
46252 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46253 `<grub/powerpc/ieee1275/console.h>'.
46254 (grub_keyboard_controller_init): New function prototype.
46255 (grub_console_checkkey): Likewise.
46256 (grub_console_getkey): Likewise.
46257
46258 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46259 keyboard on i386.
46260
46261 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46262 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46263
46264 2008-01-23 Robert Millan <rmh@aybabtu.com>
46265
46266 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46267 present, "(memdisk)/boot/grub" becomes the default prefix.
46268
46269 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46270 a memdisk tarball with all the modules. Add --overlay=DIR option that
46271 allows users to overlay additional files into the image.
46272
46273 2008-01-23 Robert Millan <rmh@aybabtu.com>
46274
46275 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46276 and `machine/memory.h'.
46277 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46278 (_multiboot_mod_SOURCES): New variable.
46279 (_multiboot_mod_CFLAGS): Likewise.
46280 (_multiboot_mod_LDFLAGS): Likewise.
46281 (multiboot_mod_SOURCES): Likewise.
46282 (multiboot_mod_CFLAGS): Likewise.
46283 (multiboot_mod_LDFLAGS): Likewise.
46284
46285 * include/grub/i386/ieee1275/loader.h: New file.
46286
46287 * include/grub/i386/ieee1275/machine.h: Likewise.
46288
46289 * include/grub/i386/ieee1275/memory.h: Likewise.
46290
46291 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46292 variable declaration.
46293 (grub_os_area_size): Likewise.
46294
46295 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46296 (grub_lower_mem, grub_upper_mem): New variables.
46297 (grub_stop_floppy): New function (just to make
46298 grub_multiboot2_real_boot() happy).
46299
46300 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46301 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46302 (grub_stop): New function.
46303 Include `"../realmode.S"' and `"../loader.S"'.
46304
46305 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46306 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46307
46308 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46309 rely on grub_multiboot2_real_boot() for final boot.
46310
46311 2008-01-22 Robert Millan <rmh@aybabtu.com>
46312
46313 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46314 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46315 device that doesn't look like an SD card.
46316 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46317 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46318 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46319 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46320 found.
46321
46322 2008-01-22 Robert Millan <rmh@aybabtu.com>
46323
46324 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46325 avoid claiming over our own code.
46326
46327 2008-01-22 Bean <bean123ch@gmail.com>
46328
46329 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46330 (jpeg_mod_SOURCES): New variable.
46331 (jpeg_mod_CFLAGS): Likewise.
46332 (jpeg_mod_LDFLAGS): Likewise.
46333
46334 * video/readers/jpeg.c : New file.
46335
46336 2008-01-22 Bean <bean123ch@gmail.com>
46337
46338 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46339 there are no more items.
46340
46341 2008-01-21 Robert Millan <rmh@aybabtu.com>
46342
46343 * kern/mm.c (grub_mm_init_region): Improve debug message.
46344
46345 2008-01-21 Robert Millan <rmh@aybabtu.com>
46346
46347 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46348 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46349 address.
46350 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46351 a C macro.
46352 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46353 Indicates start of upper memory.
46354 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46355 (generate_image): Abort when image size is big enough to corrupt
46356 upper memory.
46357
46358 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46359 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46360 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46361 instead of hardcoding 0xA0000.
46362 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46363 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46364 instead of hardcoding 0xA0000.
46365
46366 2008-01-21 Robert Millan <rmh@aybabtu.com>
46367
46368 * disk/memdisk.c (memdisk_size): New variable.
46369 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46370 `memdisk_size'.
46371 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46372 image to dynamic memory.
46373 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46374 `memdisk_size'. Free memdisk block.
46375
46376 2008-01-21 Robert Millan <rmh@aybabtu.com>
46377
46378 Fix detection of very small filesystems (like tar).
46379
46380 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46381 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46382 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46383 a problem with this disk).
46384
46385 2008-01-21 Robert Millan <rmh@aybabtu.com>
46386
46387 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46388 on grub_biosdisk_rw_standard() error.
46389
46390 2008-01-21 Robert Millan <rmh@aybabtu.com>
46391
46392 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46393 recent changes.
46394 * kern/elf.c: Likewise.
46395 * kern/ieee1275/ieee1275.c: Likewise.
46396 * kern/powerpc/ieee1275/openfw.c: Likewise.
46397 * term/ieee1275/ofconsole.c: Likewise.
46398
46399 2008-01-21 Robert Millan <rmh@aybabtu.com>
46400
46401 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46402
46403 * include/grub/kernel.h (grub_arch_memdisk_addr)
46404 (grub_arch_memdisk_size): Moved from here ...
46405
46406 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46407 (grub_arch_memdisk_size): ... to here.
46408
46409 2008-01-21 Robert Millan <rmh@aybabtu.com>
46410
46411 Mostly based on bugfix from Bean.
46412
46413 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46414 attribute with hook() parameter.
46415 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46416 declaration.
46417 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46418 attribute with hook() parameter.
46419 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46420 declaration.
46421
46422 2008-01-21 Robert Millan <rmh@aybabtu.com>
46423
46424 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46425 (pkglib_MODULES): Add `memdisk.mod'.
46426 (memdisk_mod_SOURCES): New variable.
46427 (memdisk_mod_CFLAGS): Likewise.
46428 (memdisk_mod_LDFLAGS): Likewise.
46429
46430 * disk/memdisk.c: New file.
46431
46432 * include/grub/disk.h (grub_disk_dev_id): Add
46433 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46434
46435 * include/grub/i386/pc/kernel.h
46436 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46437 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46438 (grub_kernel_image_size): New variable declaration.
46439 (grub_total_module_size): Likewise.
46440 (grub_memdisk_image_size): Likewise.
46441
46442 * include/grub/i386/pc/memory.h
46443 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46444
46445 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46446 (grub_arch_memdisk_addr): New variable declaration.
46447 (grub_arch_memdisk_size): Likewise.
46448
46449 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46450 (grub_arch_memdisk_size): Likewise.
46451
46452 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46453 (codestart): Replace hardcoded `0x100000' with
46454 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46455
46456 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46457 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46458 not NULL, append the contents of the file it refers to, at the end of
46459 the compressed kernel image. Initialize `grub_memdisk_image_size'
46460 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46461 (options): Add "memdisk"|'m' option.
46462 (main): Parse --memdisk|-m option, and pass user-provided path as
46463 parameter to generate_image().
46464
46465 2008-01-20 Robert Millan <rmh@aybabtu.com>
46466
46467 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46468 grub_dprintf() calls from here ...
46469 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46470
46471 2008-01-20 Robert Millan <rmh@aybabtu.com>
46472
46473 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46474
46475 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46476 declaration.
46477 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46478 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46479 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46480 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46481 property).
46482 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46483 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46484
46485 2008-01-19 Robert Millan <rmh@aybabtu.com>
46486
46487 Get rid of confusing function (superseded by
46488 `grub_ieee1275_get_integer_property')
46489 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46490 prototype.
46491 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46492 function.
46493 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46494 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46495 in native endianness from grub_ieee1275_get_integer_property().
46496
46497 2008-01-19 Robert Millan <rmh@aybabtu.com>
46498
46499 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46500 command after "shut-down", since implementations differ on which
46501 the command for halt is.
46502
46503 2008-01-19 Robert Millan <rmh@aybabtu.com>
46504
46505 * include/grub/i386/linuxbios/console.h: Add header protection.
46506 (grub_keyboard_controller_init): New function prototype.
46507 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46508 (KEYBOARD_COMMAND_READ): Likewise.
46509 (KEYBOARD_COMMAND_WRITE): Likewise.
46510 (KEYBOARD_SCANCODE_SET1): Likewise.
46511 (grub_keyboard_controller_write): New function.
46512 (grub_keyboard_controller_read): Likewise.
46513 (grub_keyboard_controller_init): Likewise.
46514
46515 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46516 (grub_console_init): On coreboot/LinuxBIOS, call
46517 grub_keyboard_controller_init().
46518
46519 2008-01-19 Robert Millan <rmh@aybabtu.com>
46520
46521 PowerPC changes provided by Pavel Roskin.
46522
46523 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46524 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46525 don't rely on cmain() doing it.
46526 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46527 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46528
46529 2008-01-16 Robert Millan <rmh@aybabtu.com>
46530
46531 * include/grub/i386/linuxbios/memory.h
46532 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46533 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46534 receive `table_header' as argument. Instead, probe for it in the
46535 known memory ranges where it can be present.
46536 (grub_available_iterate): Do not pass a fixed `table_header' address
46537 to grub_linuxbios_table_iterate().
46538
46539 2008-01-15 Robert Millan <rmh@aybabtu.com>
46540
46541 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46542 * conf/i386-ieee1275.rmk: New file.
46543 * include/grub/i386/ieee1275/console.h: Likewise.
46544 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46545 * include/grub/i386/ieee1275/kernel.h: Likewise.
46546 * include/grub/i386/ieee1275/time.h: Likewise.
46547 * kern/i386/ieee1275/init.c: Likewise.
46548 * kern/i386/ieee1275/startup.S: Likewise.
46549
46550 2008-01-15 Robert Millan <rmh@aybabtu.com>
46551
46552 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46553 when pointers are 32-bit (but still do set it to one when they are
46554 64-bit).
46555
46556 2008-01-15 Robert Millan <rmh@aybabtu.com>
46557
46558 * include/grub/ieee1275/ieee1275.h
46559 (grub_ieee1275_get_integer_property): New function prototype.
46560
46561 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46562 (grub_ieee1275_get_integer_property): New function. Wraps around
46563 grub_ieee1275_get_property() to handle endianness.
46564
46565 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46566 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46567 where appropriate.
46568 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46569 (grub_map): Likewise.
46570 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46571
46572 2008-01-15 Bean <bean123ch@gmail.com>
46573
46574 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46575 (grub_script_execute_cmdline): Reset grub_errno.
46576
46577 * normal/main.c (read_config_file): Reset grub_errno.
46578
46579 * normal/parse.y (script_init): New.
46580 (script): Move function and menuentry here.
46581 (delimiter): New.
46582 (command): Add delimiter at the end of command.
46583 (commands): Adjust to match the new command.
46584 (commandblock): Remove grub_script_lexer_record_start.
46585 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46586 (if): Use the new commands.
46587
46588 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46589
46590 2008-01-15 Robert Millan <rmh@aybabtu.com>
46591
46592 * normal/menu.c (run_menu): Move timeout message from here ...
46593 (print_timeout): ... to here.
46594 (run_menu): Use print_timeout() once during initial draw to print
46595 the whole message, and again in every clock tick to update only
46596 the number of seconds.
46597
46598 2008-01-15 Robert Millan <rmh@aybabtu.com>
46599
46600 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46601 actual size of `available' from grub_ieee1275_get_property(), and
46602 restrict parsing to that bound.
46603
46604 2008-01-15 Christian Franke <franke@computer.org>
46605
46606 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46607 (argp_program_version): Remove variable.
46608 (argp_program_bug_address): Likewise.
46609 (options): Convert from struct argp_option to struct option.
46610 (struct arguments): Remove.
46611 (parse_opt): Remove.
46612 (usage): New function.
46613 (main): Replace struct args members by simple variables.
46614 Replace argp_parse() by getopt_long().
46615 Add switch to evaluate options.
46616 Add missing "(...)" around root_dev in prefix string.
46617
46618 2008-01-14 Robert Millan <rmh@aybabtu.com>
46619
46620 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46621 for grub_ieee1275_exit(), in order to improve portability.
46622
46623 2008-01-14 Robert Millan <rmh@aybabtu.com>
46624
46625 * util/grub.d/10_linux.in (prefix): Define.
46626 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46627
46628 2008-01-13 Pavel Roskin <proski@gnu.org>
46629
46630 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46631 grub_errno if no errors have been detected.
46632
46633 2008-01-12 Robert Millan <rmh@aybabtu.com>
46634
46635 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46636 (grub_util_get_dev_abstraction): New function prototype.
46637
46638 * util/getroot.c: Include `<grub/util/getroot.h>'
46639 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46640 (grub_util_get_dev_abstraction): ... here (new function).
46641
46642 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46643 `PRINT_ABSTRACTION'.
46644 (probe): Probe for abstraction type when requested.
46645 (main): Understand `--target=abstraction'.
46646
46647 * util/i386/efi/grub-install.in: Add abstraction module to core
46648 image when it is found to be necessary.
46649 * util/i386/pc/grub-install.in: Likewise.
46650 * util/powerpc/ieee1275/grub-install.in: Likewise.
46651
46652 * util/update-grub_lib.in (font_path): Return system path without
46653 converting to GRUB path.
46654 * util/update-grub.in: Convert system path returned by font_path()
46655 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46656 abstraction module is needed for loading fonts (if any). Export
46657 that as `GRUB_PRELOAD_MODULES'.
46658 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46659 insmod commands).
46660
46661 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46662
46663 Remove some unused code from reiserfs.
46664
46665 * fs/reiserfs.c (struct grub_reiserfs_key)
46666 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46667 (struct grub_reiserfs_node_body): Removed.
46668 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46669 Likewise.
46670 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46671 Likewise.
46672 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46673 Likewise.
46674 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46675 Likewise.
46676 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46677 Likewise.
46678 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46679 Likewise.
46680 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46681 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46682 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46683
46684 2008-01-10 Robert Millan <rmh@aybabtu.com>
46685
46686 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46687 Determines if a file is garbage left by packaging systems, etc.
46688 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46689 for processing /etc/grub.d scripts.
46690 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46691 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46692 as a condition for processing Linux images.
46693
46694 2008-01-10 Pavel Roskin <proski@gnu.org>
46695
46696 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46697 to compile reiserfs.c on PowerPC.
46698
46699 2008-01-10 Robert Millan <rmh@aybabtu.com>
46700
46701 * kern/device.c (grub_device_iterate): Do not abort device iteration
46702 when one of the devices cannot be opened.
46703 * kern/disk.c (grub_disk_open): Do not account previous failures of
46704 unrelated functions when grub_errno is checked for.
46705
46706 2008-01-08 Robert Millan <rmh@aybabtu.com>
46707
46708 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46709 `! grub_linux_is_bzimage', change order of address comparison to make
46710 it more intuitive, and improve "too big zImage" error message.
46711
46712 2008-01-08 Robert Millan <rmh@aybabtu.com>
46713
46714 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46715 `$(update-grub_DATA)'.
46716 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46717 targets.
46718
46719 2008-01-07 Robert Millan <rmh@aybabtu.com>
46720
46721 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46722 which instruction is modified by grub-setup during installation
46723 (since it wasn't obvious by only looking at this file).
46724
46725 2008-01-07 Robert Millan <rmh@aybabtu.com>
46726
46727 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46728 listing actual TODO items.
46729
46730 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46731
46732 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46733 correctly.
46734 (grub_reiserfs_get_key_offset): Likewise.
46735 (grub_reiserfs_set_key_offset): Likewise.
46736 (grub_reiserfs_set_key_type): Likewise.
46737 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46738
46739 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46740 better to remove the bitfield version completely.
46741
46742 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46743
46744 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46745 allocated from the heap, due to the fshelp implementation.
46746 (grub_reiserfs_dir): Free NODE, due to the same reason.
46747
46748 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46749
46750 Mostly from Vincent Pelletier:
46751
46752 * fs/reiserfs.c: New file.
46753
46754 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46755 (reiserfs_mod_SOURCES): New variable.
46756 (reiserfs_mod_CFLAGS): Likewise.
46757 (reiserfs_mod_LDFLAGS): Likewise.
46758
46759 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46760 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46761 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46762 normal/color.c.
46763
46764 2008-01-06 Robert Millan <rmh@aybabtu.com>
46765
46766 * normal/color.c: Remove `<grub/env.h>'.
46767
46768 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46769
46770 * include/grub/normal.h: Include <grub/env.h>.
46771
46772 2008-01-05 Robert Millan <rmh@aybabtu.com>
46773
46774 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46775 usage example with `(hd0,1)'.
46776 Reported by Samuel Thibault.
46777
46778 2008-01-05 Robert Millan <rmh@aybabtu.com>
46779
46780 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46781 (grub_linux_boot_zimage): Rename to ...
46782 (grub_linux_boot): ... this.
46783 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46784 (grub_linux_boot_zimage): Conditionalize zImage copy.
46785
46786 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46787 (grub_linux_boot_bzimage): Remove prototype.
46788 (grub_linux_boot_zimage): Rename to ...
46789 (grub_linux_boot): ... this.
46790
46791 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46792 (grub_linux_boot): Remove function.
46793
46794 2008-01-05 Robert Millan <rmh@aybabtu.com>
46795
46796 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46797 (grub_env_write_color_highlight): Likewise.
46798 (grub_wait_after_message): Likewise.
46799
46800 * normal/color.c: New file.
46801
46802 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46803 (normal_mod_DEPENDENCIES): Likewise.
46804
46805 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46806 (normal_mod_DEPENDENCIES): Likewise.
46807
46808 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46809 (normal_mod_DEPENDENCIES): Likewise.
46810
46811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46812 (normal_mod_DEPENDENCIES): Likewise.
46813
46814 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46815 for waiting after a message is printed.
46816 * normal/main.c (read_config_file): Likewise.
46817 (grub_normal_init): Register grub_env_write_color_normal() and
46818 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46819 `color_highlight' variables as global.
46820
46821 * normal/menu.c (grub_wait_after_message): New function.
46822 (grub_color_menu_normal): New variable. Replaces ...
46823 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46824 (grub_color_menu_highlight): New variable. Replaces ...
46825 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46826 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46827 `GRUB_TERM_COLOR_STANDARD'.
46828 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46829 `normal_code' and `highlight_code' to `old_color_normal' and
46830 `old_color_highlight', respectively.
46831 (grub_menu_init_page): Update colors when drawing the menu, based on
46832 `menu_color_normal' and `menu_color_highlight' variables.
46833 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46834 a message is printed.
46835
46836 2008-01-05 Robert Millan <rmh@aybabtu.com>
46837
46838 * kern/env.c (grub_env_context_open): Propagate hooks for global
46839 variables to new context.
46840
46841 * kern/main.c (grub_set_root_dev): Export `root' variable.
46842
46843 2008-01-05 Robert Millan <rmh@aybabtu.com>
46844
46845 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46846 discs unconditionally, since udev and others have options to provide
46847 them.
46848
46849 2008-01-05 Robert Millan <rmh@aybabtu.com>
46850
46851 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46852
46853 2008-01-04 Christian Franke <franke@computer.org>
46854
46855 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46856 of eisa_mmap.
46857
46858 2008-01-03 Pavel Roskin <proski@gnu.org>
46859
46860 * kern/i386/linuxbios/init.c: Put "void" to all function
46861 declarations with no arguments.
46862 * kern/powerpc/ieee1275/init.c: Likewise.
46863 * term/i386/pc/at_keyboard.c: Likewise.
46864 * term/i386/pc/vga_text.c: Likewise.
46865 * util/grub-mkdevicemap.c: Likewise.
46866
46867 2008-01-02 Robert Millan <rmh@aybabtu.com>
46868
46869 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46870 message when loaded image is out of bounds.
46871 (grub_multiboot_load_elf64): Likewise.
46872
46873 2008-01-02 Pavel Roskin <proski@gnu.org>
46874
46875 * util/grub.d/10_linux.in: Try version without ".old" when
46876 looking for initrd. It's better to use initrd from the newer
46877 kernel of the same version than no initrd at all.
46878
46879 2008-01-01 Robert Millan <rmh@aybabtu.com>
46880
46881 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46882
46883 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46884
46885 * include/grub/video.h: Added grub_video_unmap_color and
46886 grub_video_get_active_render_target.
46887 (grub_video_adapter): Added unmap_color and get_active_render_target.
46888
46889 * video/video.c: Added grub_video_unmap_color and
46890 grub_video_get_active_render_target.
46891 (grub_video_get_info): Changed method to accept NULL pointer as an
46892 argument to allow detection of active video adapter.
46893
46894 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46895 grub_video_vbe_unmap_color_int.
46896 Added grub_video_vbe_unmap_color and
46897 grub_video_vbe_get_active_render_target.
46898 (grub_video_vbe_adapter): Added unmap_color and
46899 get_active_render_target.
46900
46901 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46902 with grub_video_vbe_unmap_color_int.
46903
46904 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46905 (DEFAULT_NORMAL_COLOR): Likewise.
46906 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46907 (DEFAULT_FG_COLOR): Removed.
46908 (DEFAULT_BG_COLOR): Likewise.
46909 (DEFAULT_CURSOR_COLOR): Changed value.
46910 (grub_virtual_screen): Added standard_color_setting,
46911 normal_color_setting, highlight_color_setting and term_color.
46912 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46913 (bitmap_width): Added.
46914 (bitmap_height): Likewise.
46915 (bitmap): Likewise.
46916 (set_term_color): Likewise.
46917 (grub_virtual_screen_setup): Changed to use new terminal coloring
46918 settings.
46919 (grub_gfxterm_init): Added init for bitmap.
46920 (grub_gfxterm_fini): Added destroy for bitmap.
46921 (redraw_screen_rect): Updated to use background bitmap and new
46922 terminal coloring.
46923 (scroll_up): Added optimization for case when there is no bitmap.
46924 (grub_gfxterm_cls): Fixed to use correct background color.
46925 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46926 coloring.
46927 (grub_virtual_screen_setcolor): Likewise.
46928 (grub_virtual_screen_getcolor): Added.
46929 (grub_gfxterm_background_image_cmd): Likewise.
46930 (grub_video_term): Added setcolor and getcolor.
46931 (MOD_INIT): Added registration of background_image command.
46932 (MOD_TERM): Added unregistration for background_image command.
46933
46934 2007-12-30 Pavel Roskin <proski@gnu.org>
46935
46936 * loader/multiboot_loader.c: Fix multiboot command
46937 unregistration. Fix all typos in the word "multiboot".
46938
46939 2007-12-29 Pavel Roskin <proski@gnu.org>
46940
46941 * util/grub.d/10_linux.in: Refactor search for initrd. Add
46942 support for initrd names used in Fedora.
46943
46944 2007-12-26 Bean <bean123ch@gmail.com>
46945
46946 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
46947 (cpio_mod_SOURCES): New variable.
46948 (cpio_mod_CFLAGS): Likewise.
46949 (cpio_mod_LDFLAGS): Likewise.
46950
46951 * fs/cpio.c: New file.
46952
46953 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
46954
46955 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46956
46957 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46958
46959 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46960
46961 2007-12-25 Robert Millan <rmh@aybabtu.com>
46962
46963 * include/grub/term.h (struct grub_term): Add `getcolor' function.
46964 (grub_getcolor): New function.
46965
46966 * kern/term.c (grub_getcolor): New function.
46967 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
46968 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
46969 (print_entry): Set normal and highlight colors to
46970 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
46971 respectively, before printing and restore them to old
46972 values afterwards.
46973 (grub_menu_init_page): Likewise. Fill an additional colored space
46974 that would otherwise be left blank.
46975
46976 * term/efi/console.c (grub_console_getcolor): New function.
46977 (struct grub_console_term.getcolor): New variable.
46978 * term/i386/pc/console.c (grub_console_getcolor): New function.
46979 (struct grub_console_term.getcolor): New variable.
46980 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
46981 (struct grub_console_term.getcolor): New variable.
46982
46983 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
46984 (struct grub_console_term.setcolor): Remove variable.
46985 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
46986 (struct grub_console_term.setcolor): Remove variable.
46987 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
46988 (struct grub_console_term.setcolor): Remove variable.
46989 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
46990 (struct grub_console_term.setcolor): Remove variable.
46991
46992 2007-12-25 Robert Millan <rmh@aybabtu.com>
46993
46994 * configure.ac: Search for possible unifont.hex locations, and
46995 define UNIFONT_HEX if found.
46996
46997 * Makefile.in (UNIFONT_HEX): Define variable.
46998 (DATA): Rename to ...
46999 (PKGLIB): ... this. Update all users.
47000 (PKGDATA): New variable.
47001 (pkgdata_IMAGES): Rename to ...
47002 (pkglib_IMAGES): ... this. Update all users.
47003 (pkgdata_MODULES): Rename to ...
47004 (pkglib_MODULES): ... this. Update all users.
47005 (pkgdata_PROGRAMS): Rename to ...
47006 (pkglib_PROGRAMS): ... this. Update all users.
47007 (pkgdata_DATA): Rename to ...
47008 (pkglib_DATA): ... this. Update all users.
47009 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47010 (unicode.pff, ascii.pff): New rules.
47011 (all-local): Add `$(PKGDATA)' dependency.
47012 (install-local): Process `$(PKGDATA)'.
47013
47014 * util/update-grub_lib.in (font_path): Search for *.pff files in
47015 a few more locations, including `${pkgdata}'.
47016
47017 2007-12-23 Robert Millan <rmh@aybabtu.com>
47018
47019 Patch from Bean <bean123ch@gmail.com>:
47020 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47021 `size'.
47022
47023 2007-12-21 Bean <bean123ch@gmail.com>
47024
47025 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47026 (ntfscomp_mod_SOURCES): New variable.
47027 (ntfscomp_mod_CFLAGS): Likewise.
47028 (ntfscomp_mod_LDFLAGS): Likewise.
47029
47030 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47031 (grub_probe_SOURCES): Likewise.
47032 (grub_emu_SOURCES): Likewise.
47033
47034 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47035 (grub_emu_SOURCES): Likewise.
47036
47037 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47038 (grub_emu_SOURCES): Likewise.
47039
47040 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47041 (grub_emu_SOURCES): Likewise.
47042
47043 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47044 (read_run_list): Renamed to grub_ntfs_read_run_list.
47045 (decomp_nextvcn): Moved to ntfscomp.c.
47046 (decomp_getch): Likewise.
47047 (decomp_get16): Likewise.
47048 (decomp_block): Likewise.
47049 (read_block): Likewise.
47050 (read_data): Partially moved to ntfscomp.c.
47051 (fixup): Change unsigned to grub_uint16_t.
47052 (read_mft): Change unsigned long to grub_uint32_t.
47053 (read_attr): Likewise.
47054 (read_data): Likewise.
47055 (read_run_data): Likewise.
47056 (read_run_list): Likewise.
47057 (read_mft): Likewise.
47058
47059 * fs/ntfscomp.c: New file.
47060
47061 * include/grub/ntfs.h: New file.
47062
47063 2007-12-16 Robert Millan <rmh@aybabtu.com>
47064
47065 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47066 IDE disk check, since Linux is known to support 20 IDE disks.
47067 Reported by Colin Watson.
47068
47069 2007-12-15 Bean <bean123ch@gmail.com>
47070
47071 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47072 (lnxboot_img_SOURCES): New variable.
47073 (lnxboot_img_ASFLAGS): Likewise.
47074 (lnxboot_img_LDFLAGS): Likewise.
47075
47076 * boot/i386/pc/lnxboot.S: New file.
47077
47078 2007-11-24 Pavel Roskin <proski@gnu.org>
47079
47080 * configure.ac: Test if '--build-id=none' is supported by the
47081 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47082 objcopy to generate incorrect binary files (binutils
47083 2.17.50.0.18-1 as shipped by Fedora 8).
47084 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47085 linking, so that build ID doesn't break the test.
47086
47087 2007-11-24 Pavel Roskin <proski@gnu.org>
47088
47089 * include/grub/i386/time.h: use "void" in the argument list
47090 of grub_cpu_idle().
47091 * include/grub/powerpc/time.h: Likewise.
47092 * include/grub/sparc64/time.h: Likewise.
47093
47094 2007-11-18 Christian Franke <franke@computer.org>
47095
47096 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47097 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47098 This fixes the problem that function keys did not work in grub-emu.
47099
47100 2007-11-18 Christian Franke <franke@computer.org>
47101
47102 * disk/host.c (grub_host_open): Remove attribute unused from
47103 name parameter. Add check for "host". This fixes the problem
47104 that grub-emu does not find partitions.
47105
47106 2007-11-18 Christian Franke <franke@computer.org>
47107
47108 * util/hostfs.c (is_dir): New function.
47109 (grub_hostfs_dir): Handle missing dirent.d_type case.
47110 (grub_hostfs_read): Add missing fseek().
47111 (grub_hostfs_label): Clear label pointer. This fixes a crash
47112 of grub-emu on "ls (host)".
47113
47114 2007-11-18 Christian Franke <franke@computer.org>
47115
47116 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47117 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47118 to 64 bit boundary by default.
47119
47120 2007-11-18 Bean <bean123ch@gmail.com>
47121
47122 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47123 (hexdump_mod_SOURCES): New variable.
47124 (hexdump_mod_CFLAGS): Likewise.
47125 (hexdump_mod_LDFLAGS): Likewise.
47126
47127 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47128
47129 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47130
47131 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47132
47133 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47134
47135 * include/grub/hexdump.h: New file.
47136
47137 * commands/hexdump.c: New file.
47138
47139 2007-11-10 Robert Millan <rmh@aybabtu.com>
47140
47141 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47142 in grub_outb() calls.
47143 (beep_on): Likewise.
47144
47145 2007-11-10 Christian Franke <franke@computer.org>
47146
47147 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47148 (grub_menu_run): Likewise.
47149
47150 2007-11-10 Robert Millan <rmh@aybabtu.com>
47151
47152 * include/grub/i386/efi/machine.h: New file.
47153 * include/grub/i386/linuxbios/machine.h: Likewise.
47154 * include/grub/i386/pc/machine.h: Likewise.
47155 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47156 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47157
47158 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47159 (serial_hw_io_addr): New variable.
47160 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47161 instead of `(unsigned short *) 0x400'.
47162
47163 2007-11-10 Bean <bean123ch@gmail.com>
47164
47165 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47166
47167 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47168
47169 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47170 (vga_mod_SOURCES): Added.
47171 (vga_mod_CFLAGS): Likewise.
47172 (vga_mod_LDFLAGS): Likewise.
47173
47174 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47175 grub_outb() calls.
47176 (set_map_mask): Likewise.
47177 (set_read_map): Likewise.
47178 (set_read_address): Likewise.
47179 (vga_font): Removed variable.
47180 (get_vga_glyph): Removed function.
47181 (invalidate_char): Likewise.
47182 (write_char): Changed to use grub_font_get_glyph() for font
47183 information.
47184 (grub_vga_putchar): Likewise.
47185 (grub_vga_getcharwidth): Likewise.
47186
47187 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47188
47189 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47190 flags.
47191 (pxeboot_img_LDFLAGS): Likewise.
47192 (diskboot_img_LDFLAGS): Likewise.
47193 (kernel_img_LDFLAGS): Likewise.
47194
47195 2007-11-06 Robert Millan <rmh@aybabtu.com>
47196
47197 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47198 in grub_outb() calls.
47199 (serial_hw_init): Likewise.
47200
47201 2007-11-05 Robert Millan <rmh@aybabtu.com>
47202
47203 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47204 spaces. Skip non-regular files.
47205
47206 2007-11-05 Robert Millan <rmh@aybabtu.com>
47207
47208 * kern/disk.c (grub_disk_firmware_fini)
47209 (grub_disk_firmware_is_tainted): New variables.
47210
47211 * include/grub/disk.h (grub_disk_firmware_fini)
47212 (grub_disk_firmware_is_tainted): Likewise.
47213
47214 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47215 (grub_disk_biosdisk_fini): ... to here.
47216 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47217 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47218 is set. Register grub_disk_biosdisk_fini() in
47219 `grub_disk_firmware_fini'.
47220
47221 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47222 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47223 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47224 to finish existing firmware disk interface.
47225
47226 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47227 (ata_mod_SOURCES): New variable.
47228 (ata_mod_CFLAGS): Likewise.
47229 (ata_mod_LDFLAGS): Likewise.
47230
47231 2007-11-05 Robert Millan <rmh@aybabtu.com>
47232
47233 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47234 (grub_ata_wait): Reimplement using grub_millisleep().
47235
47236 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47237 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47238
47239 2007-11-03 Marco Gerards <marco@gnu.org>
47240
47241 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47242 (CRTC_ADDR_PORT): New macro.
47243 (CRTC_DATA_PORT): Likewise.
47244 (CRTC_CURSOR): Likewise.
47245 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47246 (CRTC_CURSOR_ADDR_LOW): Likewise.
47247 (update_cursor): New function.
47248 (grub_console_real_putchar): Call `update_cursor'.
47249 (grub_console_gotoxy): Likewise.
47250 (grub_console_cls): Set the default color when clearing the
47251 screen.
47252 (grub_console_setcursor): Implemented.
47253
47254 2007-11-03 Marco Gerards <marco@gnu.org>
47255
47256 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47257 become activate.
47258 (grub_ata_pio_write): Likewise.
47259
47260 (grub_atapi_identify): Wait after issuing an ATA command.
47261 (grub_atapi_packet): Likewise.
47262 (grub_ata_identify): Likewise.
47263 (grub_ata_readwrite): Likewise.
47264
47265 2007-11-03 Marco Gerards <marco@gnu.org>
47266
47267 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47268 (grub_ata_pio_write): Likewise.
47269 (grub_ata_readwrite): Use `grub_error', instead of
47270 returning `grub_errno'.
47271
47272 2007-11-03 Marco Gerards <marco@gnu.org>
47273
47274 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47275 grub_ata_pio_write once for every single sector, instead of for
47276 multiple sectors.
47277
47278 2007-10-31 Robert Millan <rmh@aybabtu.com>
47279
47280 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47281
47282 * conf/i386-linuxbios.rmk: New file.
47283
47284 * kern/i386/pc/hardware.c: Likewise.
47285 * term/i386/pc/at_keyboard.c: Likewise.
47286 * term/i386/pc/vga_text.c: Likewise.
47287
47288 * include/grub/i386/linuxbios/boot.h: Likewise.
47289 * include/grub/i386/linuxbios/console.h: Likewise.
47290 * include/grub/i386/linuxbios/init.h: Likewise.
47291 * include/grub/i386/linuxbios/kernel.h: Likewise.
47292 * include/grub/i386/linuxbios/loader.h: Likewise.
47293 * include/grub/i386/linuxbios/memory.h: Likewise.
47294 * include/grub/i386/linuxbios/serial.h: Likewise.
47295 * include/grub/i386/linuxbios/time.h: Likewise.
47296
47297 * kern/i386/linuxbios/init.c: Likewise.
47298 * kern/i386/linuxbios/startup.S: Likewise.
47299 * kern/i386/linuxbios/table.c: Likewise.
47300
47301 2007-10-31 Marco Gerards <marco@gnu.org>
47302
47303 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47304 (ata_mod_SOURCES): New variable.
47305 (ata_mod_CFLAGS): Likewise.
47306 (ata_mod_LDFLAGS): Likewise.
47307
47308 * disk/ata.c: New file.
47309
47310 * include/grub/disk.h (grub_disk_dev_id): Add
47311 `GRUB_DISK_DEV_ATA_ID'.
47312
47313 2007-10-31 Robert Millan <rmh@aybabtu.com>
47314
47315 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47316 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47317
47318 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47319 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47320
47321 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47322 `<grub/types.h>'.
47323
47324 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47325
47326 2007-10-27 Robert Millan <rmh@aybabtu.com>
47327
47328 * include/grub/types.h (ULONG_MAX): Define macro.
47329
47330 2007-10-22 Robert Millan <rmh@aybabtu.com>
47331
47332 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47333 `"../realmode.S"'.
47334 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47335
47336 2007-10-22 Robert Millan <rmh@aybabtu.com>
47337
47338 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47339 (pkgdata_MODULES): Add `biosdisk.mod'.
47340 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47341 variables.
47342
47343 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47344 (grub_biosdisk_init): Replace with ...
47345 (GRUB_MOD_INIT(biosdisk)): ... this.
47346 (grub_biosdisk_fini): Replace with ...
47347 (GRUB_MOD_FINI(biosdisk)): ... this.
47348
47349 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47350 (grub_machine_init): Remove call to grub_biosdisk_init().
47351 (grub_machine_fini): Remove call to grub_machine_fini().
47352
47353 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47354
47355 2007-10-22 Robert Millan <rmh@aybabtu.com>
47356
47357 * include/grub/time.h: New file.
47358 * include/grub/i386/time.h: Likewise.
47359 * include/grub/powerpc/time.h: Likewise.
47360 * include/grub/sparc64/time.h: Likewise.
47361
47362 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47363 instances to ...
47364 (KERNEL_MACHINE_TIME_HEADER): ... this.
47365 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47366 instances to ...
47367 (KERNEL_MACHINE_TIME_HEADER): ... this.
47368 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47369 instances to ...
47370 (KERNEL_MACHINE_TIME_HEADER): ... this.
47371
47372 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47373 (grub_millisleep): New function.
47374 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47375 (grub_millisleep): New function.
47376 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47377 Remove `grub/machine/time.h' include.
47378 (grub_millisleep): New function.
47379 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47380 Remove `grub/machine/time.h' include.
47381 (grub_millisleep): New function.
47382
47383 * include/grub/misc.h (grub_div_roundup): New function.
47384
47385 * kern/misc.c: Include `<grub/time.h>'.
47386 (grub_millisleep_generic): New function.
47387
47388 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47389 Add `time.h'.
47390 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47391 Add `time.h'.
47392 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47393 `machine/time.h'. Add `time.h'.
47394 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47395
47396 2007-10-21 Robert Millan <rmh@aybabtu.com>
47397
47398 * include/grub/misc.h (grub_max): New function.
47399
47400 2007-10-21 Robert Millan <rmh@aybabtu.com>
47401
47402 * util/misc.c (grub_util_info): Call fflush() before returning.
47403
47404 2007-10-20 Robert Millan <rmh@aybabtu.com>
47405
47406 * genmk.rb (Image): Copy `extra_flags' from here ...
47407 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47408
47409 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47410 to `argc' and `args' arguments.
47411
47412 2007-10-17 Robert Millan <rmh@aybabtu.com>
47413
47414 * kern/i386/loader.S: New file.
47415
47416 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47417 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47418 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47419 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47420 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47421 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47422 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47423 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47424 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47425 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47426 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47427 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47428 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47429 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47430
47431 * kern/i386/realmode.S: New file.
47432
47433 * kern/i386/pc/startup.S (protstack): Moved from here ...
47434 * kern/i386/realmode.S (protstack)... to here.
47435 * kern/i386/pc/startup.S (gdt): Moved from here ...
47436 * kern/i386/realmode.S (gdt)... to here.
47437 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47438 * kern/i386/realmode.S (prot_to_real)... to here.
47439
47440 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47441 `kern/i386/realmode.S'.
47442
47443 2007-10-17 Robert Millan <rmh@aybabtu.com>
47444
47445 * include/grub/i386/loader.h: New file.
47446
47447 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47448 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47449 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47450 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47451 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47452 * include/grub/i386/loader.h (grub_linux_prot_size)
47453 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47454 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47455 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47456 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47457
47458 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47459
47460 2007-10-15 Robert Millan <rmh@aybabtu.com>
47461
47462 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47463 filesystem when dev->disk is unset.
47464 Do probe for filesystem even when dev->disk->has_partitions is set.
47465 In case a filesystem is found, always report it.
47466 In case it isn't, if dev->disk->has_partitions is set, report that
47467 a partition table was found instead of reporting that no filesystem
47468 could be identified.
47469
47470 2007-10-12 Robert Millan <rmh@aybabtu.com>
47471
47472 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47473 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47474
47475 * include/grub/types.h (grub_host_to_target16): New macro.
47476 (grub_host_to_target32): Likewise.
47477 (grub_host_to_target64): Likewise.
47478 (grub_target_to_host16): Likewise.
47479 (grub_target_to_host32): Likewise.
47480 (grub_target_to_host64): Likewise.
47481
47482 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47483 Renamed from to ...
47484 (GRUB_MOD_ALIGN): ...this. Update all users.
47485
47486 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47487 grub_host_to_target32.
47488 Replace grub_be_to_cpu32 with grub_target_to_host32.
47489 (load_modules): Likewise.
47490 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47491 Replace grub_be_to_cpu32 with grub_target_to_host32.
47492 Replace grub_cpu_to_be16 with grub_host_to_target16.
47493 Replace grub_cpu_to_be32 grub_host_to_target32.
47494
47495 2007-10-12 Robert Millan <rmh@aybabtu.com>
47496
47497 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47498 * util/elf/grub-mkimage.c: ... here.
47499
47500 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47501 `util/powerpc/ieee1275/grub-mkimage.c'.
47502
47503 2007-10-07 Robert Millan <rmh@aybabtu.com>
47504
47505 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47506 and make it easier to figure out.
47507 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47508 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47509 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47510 leave us with less than HEAP_MIN_SIZE total heap.
47511 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47512
47513 2007-10-03 Robert Millan <rmh@aybabtu.com>
47514
47515 * include/grub/i386/io.h: New file.
47516 * commands/i386/pc/play.c (inb): Removed.
47517 (outb): Removed.
47518 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47519 with grub_outb().
47520 * term/i386/pc/serial.c (inb): Removed.
47521 (outb): Removed.
47522 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47523 with grub_outb().
47524 * term/i386/pc/vga.c (inb): Removed.
47525 (outb): Removed.
47526 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47527 with grub_outb().
47528
47529 2007-10-02 Robert Millan <rmh@aybabtu.com>
47530
47531 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47532 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47533 Reported by Marcin Kurek.
47534
47535 2007-09-07 Robert Millan <rmh@aybabtu.com>
47536
47537 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47538 SmartFirmware version updates (as released by Sven Luther), and avoid
47539 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47540 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47541 known broken.
47542
47543 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47544
47545 From Hitoshi Ozeki:
47546 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47547 when merging two regions.
47548
47549 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47550
47551 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47552 * normal/completion.c (grub_normal_do_completion): Likewise.
47553 Reported by Hitoshi Ozeki.
47554
47555 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47556
47557 Do not use devices at boot in chainloading.
47558
47559 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47560 (boot_part_addr): Likewise.
47561 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47562 with BOOT_DRIVE and BOOT_PART_ADDR.
47563 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47564 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47565
47566 2007-08-29 Robert Millan <rmh@aybabtu.com>
47567
47568 Patch from Simon Peter <dn.tlp@gmx.net>:
47569 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47570 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47571 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47572 util/i386/pc/grub-setup.c_DEPENDENCIES.
47573 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47574 util/grub-probe.c_DEPENDENCIES.
47575 * conf/powerpc-ieee1275.rmk: Likewise.
47576
47577 2007-08-28 Robert Millan <rmh@aybabtu.com>
47578
47579 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47580 to tell grub-mkdevicemap how to name devices.
47581 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47582 feature).
47583
47584 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47585 util/i386/get_disk_name.c.
47586 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47587 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47588 util/ieee1275/get_disk_name.c.
47589
47590 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47591
47592 * DISTLIST: Add util/i386/get_disk_name.c and
47593 util/ieee1275/get_disk_name.c.
47594
47595 * util/grub-mkdevicemap.c: Replace device naming logic with
47596 grub_util_get_disk_name() calls.
47597
47598 2007-08-20 Robert Millan <rmh@aybabtu.com>
47599
47600 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47601 (so that it works for both plural and singular quantities).
47602
47603 2007-08-05 Robert Millan <rmh@aybabtu.com>
47604
47605 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47606 so that [xz] isn't taken into account when determining order.
47607
47608 2007-08-02 Marco Gerards <marco@gnu.org>
47609
47610 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47611 `include/multiboot2.h', `include/grub/elfload.h',
47612 `include/multiboot.h', `include/grub/multiboot.h',
47613 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47614 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47615 `kern/elf.c', `loader/multiboot_loader.c',
47616 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47617 `loader/i386/pc/multiboot2.c',
47618 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47619 `util/i386/pc/grub-mkrescue.in'. Remove
47620 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47621 `include/grub/i386/pc/util/biosdisk.h' and
47622 `include/grub/powerpc/ieee1275/multiboot.h'.
47623
47624 2007-08-02 Bean <bean123ch@gmail.com>
47625
47626 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47627 (ntfs_mod_SOURCES): New variable.
47628 (ntfs_mod_CFLAGS): Likewise.
47629 (ntfs_mod_LDFLAGS): Likewise.
47630
47631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47632 (grub_probe_SOURCES): Likewise.
47633 (grub_emu_SOURCES): Likewise.
47634
47635 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47636 (grub_emu_SOURCES): Likewise.
47637
47638 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47639 (grub_emu_SOURCES): Likewise.
47640
47641 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47642
47643 * fs/ntfs.c: New file.
47644
47645 2007-08-02 Bean <bean123ch@gmail.com>
47646
47647 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47648
47649 * file.h (grub_file): Likewise.
47650
47651 * fshelp.h (grub_fshelp_read_file): Likewise.
47652
47653 * util/i386/pc/grub-setup.c (setup): Likewise.
47654 (save_first_sector): Likewise.
47655 (save_blocklists): Likewise.
47656
47657 * fs/affs.c (grub_affs_read_file): Likewise.
47658
47659 * fs/ext2.c (grub_ext2_read_file): Likewise.
47660
47661 * fs/fat.c (grub_fat_read_data): Likewise.
47662
47663 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47664
47665 * fs/hfs.c (grub_hfs_read_file): Likewise.
47666
47667 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47668
47669 * fs/jfs.c (grub_jfs_read_file): Likewise.
47670
47671 * fs/minix.c (grub_minix_read_file): Likewise.
47672
47673 * fs/sfs.c (grub_sfs_read_file): Likewise.
47674
47675 * fs/ufs.c (grub_ufs_read_file): Likewise.
47676
47677 * fs/xfs.c (grub_xfs_read_file): Likewise.
47678
47679 * command/blocklist.c (read_blocklist): Likewise.
47680 (print_blocklist): Likewise.
47681
47682 2007-08-02 Marco Gerards <marco@gnu.org>
47683
47684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47685 `util/hostfs.c'.
47686
47687 * disk/host.c: New file.
47688
47689 * util/hostfs.c: Likewise.
47690
47691 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47692 return `GRUB_ERR_BAD_FS'.
47693 * fs/sfs.c (grub_sfs_mount): Likewise.
47694 * fs/xfs.c (grub_xfs_mount): Likewise.
47695
47696 * include/grub/disk.h (enum grub_disk_dev_id): Add
47697 `GRUB_DISK_DEVICE_HOST_ID'.
47698
47699 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47700
47701 2007-07-24 Jerone Young <jerone@gmail.com>
47702
47703 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47704 modules for compilation.
47705 * conf/powerpc-ieee1275.rmk: Likewise.
47706
47707 * include/multiboot.h: Move multiboot definitions to one file. Rename
47708 many definitions to not get grub specific.
47709 * include/multiboot2.h: Create header with multiboot 2 definitions.
47710 * include/grub/multiboot.h: Header for grub specific function
47711 prototypes and definitions.
47712 * include/grub/multiboot2.h: Likewise.
47713 * include/grub/multiboot_loader.h: Likewise.
47714 * include/grub/i386/pc/multiboot.h: Removed.
47715 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47716
47717 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47718 and 2 to allow for one multiboot and module commands.
47719 * loader/multiboot2.c: Add multiboot2 functionality.
47720 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47721 and definition names.
47722 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47723 2 functions.
47724 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47725 ieee1275 specific multiboot2 code.
47726
47727 * kern/i386/pc/startup.S: Change headers and definition names for
47728 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47729
47730 2007-07-22 Robert Millan <rmh@aybabtu.com>
47731
47732 * geninitheader.sh: Process file specified in first parameter rather
47733 than hardcoding grub_modules_init.lst.
47734 * geninit.sh: Likewise. Also, construct header name dynamically rather
47735 than hardcoding grub_modules_init.h.
47736
47737 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47738 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47739 grub_probe_init.[ch] and grub_setup_init.[ch].
47740
47741 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47742 grub_modules_init.h with grub_emu_init.h.
47743 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47744 grub_probe_init.[ch] files.
47745 * conf/i386-efi.rmk: Likewise.
47746 * conf/i386-pc.rmk: Likewise.
47747 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47748 grub_setup_init.[ch] files.
47749
47750 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47751 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47752 to initialize modules rather than a list of hardcoded functions.
47753 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47754 grub_init_all() to initialize modules rather than a list of hardcoded
47755 functions.
47756
47757 2007-07-22 Robert Millan <rmh@aybabtu.com>
47758
47759 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47760 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47761
47762 2007-07-22 Robert Millan <rmh@aybabtu.com>
47763
47764 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47765 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47766 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47767 flag when running on SmartFirmware.
47768 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47769 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47770 was set.
47771
47772 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47773 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47774 rather than decreasing it.
47775
47776 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47777 there's not enough space to do it, fail in the same way as when it
47778 can't be done because there are no partitions.
47779
47780 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47781 when nvsetenv failed.
47782
47783 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47784
47785 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47786 because this rule is automatically generated.
47787 (grub-mkrescue): Removed for the same reason as above.
47788
47789 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47790
47791 Migrate to GNU General Public License Version 3.
47792
47793 * COPYING: Replaced with the plain text version of GPLv3.
47794
47795 * config.guess: Updated from gnulib.
47796 * config.sub: Likewise.
47797
47798 * geninit.sh: Output a GPLv3 copyright notice.
47799 * geninitheader.sh: Likewise.
47800 * genmodsrc.sh: Likewise.
47801 * gensymlist.sh.in: Likewise.
47802
47803 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47804 * boot/i386/pc/diskboot.S: Likewise.
47805 * boot/i386/pc/pxeboot.S: Likewise.
47806 * commands/blocklist.c: Likewise.
47807 * commands/boot.c: Likewise.
47808 * commands/cat.c: Likewise.
47809 * commands/cmp.c: Likewise.
47810 * commands/configfile.c: Likewise.
47811 * commands/echo.c: Likewise.
47812 * commands/help.c: Likewise.
47813 * commands/ls.c: Likewise.
47814 * commands/search.c: Likewise.
47815 * commands/terminal.c: Likewise.
47816 * commands/test.c: Likewise.
47817 * commands/videotest.c: Likewise.
47818 * commands/i386/cpuid.c: Likewise.
47819 * commands/i386/pc/halt.c: Likewise.
47820 * commands/i386/pc/play.c: Likewise.
47821 * commands/i386/pc/reboot.c: Likewise.
47822 * commands/i386/pc/vbeinfo.c: Likewise.
47823 * commands/i386/pc/vbetest.c: Likewise.
47824 * commands/ieee1275/halt.c: Likewise.
47825 * commands/ieee1275/reboot.c: Likewise.
47826 * commands/ieee1275/suspend.c: Likewise.
47827 * disk/loopback.c: Likewise.
47828 * disk/lvm.c: Likewise.
47829 * disk/raid.c: Likewise.
47830 * disk/efi/efidisk.c: Likewise.
47831 * disk/i386/pc/biosdisk.c: Likewise.
47832 * disk/ieee1275/ofdisk.c: Likewise.
47833 * font/manager.c: Likewise.
47834 * fs/affs.c: Likewise.
47835 * fs/ext2.c: Likewise.
47836 * fs/fat.c: Likewise.
47837 * fs/fshelp.c: Likewise.
47838 * fs/hfs.c: Likewise.
47839 * fs/hfsplus.c: Likewise.
47840 * fs/iso9660.c: Likewise.
47841 * fs/jfs.c: Likewise.
47842 * fs/minix.c: Likewise.
47843 * fs/sfs.c: Likewise.
47844 * fs/ufs.c: Likewise.
47845 * fs/xfs.c: Likewise.
47846 * hello/hello.c: Likewise.
47847 * include/grub/acorn_filecore.h: Likewise.
47848 * include/grub/arg.h: Likewise.
47849 * include/grub/bitmap.h: Likewise.
47850 * include/grub/boot.h: Likewise.
47851 * include/grub/cache.h: Likewise.
47852 * include/grub/device.h: Likewise.
47853 * include/grub/disk.h: Likewise.
47854 * include/grub/dl.h: Likewise.
47855 * include/grub/elfload.h: Likewise.
47856 * include/grub/env.h: Likewise.
47857 * include/grub/err.h: Likewise.
47858 * include/grub/file.h: Likewise.
47859 * include/grub/font.h: Likewise.
47860 * include/grub/fs.h: Likewise.
47861 * include/grub/fshelp.h: Likewise.
47862 * include/grub/gzio.h: Likewise.
47863 * include/grub/hfs.h: Likewise.
47864 * include/grub/kernel.h: Likewise.
47865 * include/grub/loader.h: Likewise.
47866 * include/grub/lvm.h: Likewise.
47867 * include/grub/misc.h: Likewise.
47868 * include/grub/mm.h: Likewise.
47869 * include/grub/net.h: Likewise.
47870 * include/grub/normal.h: Likewise.
47871 * include/grub/parser.h: Likewise.
47872 * include/grub/partition.h: Likewise.
47873 * include/grub/pc_partition.h: Likewise.
47874 * include/grub/raid.h: Likewise.
47875 * include/grub/rescue.h: Likewise.
47876 * include/grub/script.h: Likewise.
47877 * include/grub/setjmp.h: Likewise.
47878 * include/grub/symbol.h: Likewise.
47879 * include/grub/term.h: Likewise.
47880 * include/grub/terminfo.h: Likewise.
47881 * include/grub/tparm.h: Likewise.
47882 * include/grub/types.h: Likewise.
47883 * include/grub/video.h: Likewise.
47884 * include/grub/efi/api.h: Likewise.
47885 * include/grub/efi/chainloader.h: Likewise.
47886 * include/grub/efi/console.h: Likewise.
47887 * include/grub/efi/console_control.h: Likewise.
47888 * include/grub/efi/disk.h: Likewise.
47889 * include/grub/efi/efi.h: Likewise.
47890 * include/grub/efi/pe32.h: Likewise.
47891 * include/grub/efi/time.h: Likewise.
47892 * include/grub/i386/linux.h: Likewise.
47893 * include/grub/i386/setjmp.h: Likewise.
47894 * include/grub/i386/types.h: Likewise.
47895 * include/grub/i386/efi/kernel.h: Likewise.
47896 * include/grub/i386/efi/loader.h: Likewise.
47897 * include/grub/i386/efi/time.h: Likewise.
47898 * include/grub/i386/pc/biosdisk.h: Likewise.
47899 * include/grub/i386/pc/boot.h: Likewise.
47900 * include/grub/i386/pc/chainloader.h: Likewise.
47901 * include/grub/i386/pc/console.h: Likewise.
47902 * include/grub/i386/pc/init.h: Likewise.
47903 * include/grub/i386/pc/kernel.h: Likewise.
47904 * include/grub/i386/pc/loader.h: Likewise.
47905 * include/grub/i386/pc/memory.h: Likewise.
47906 * include/grub/i386/pc/multiboot.h: Likewise.
47907 * include/grub/i386/pc/serial.h: Likewise.
47908 * include/grub/i386/pc/time.h: Likewise.
47909 * include/grub/i386/pc/vbe.h: Likewise.
47910 * include/grub/i386/pc/vbeblit.h: Likewise.
47911 * include/grub/i386/pc/vbefill.h: Likewise.
47912 * include/grub/i386/pc/vbeutil.h: Likewise.
47913 * include/grub/i386/pc/vga.h: Likewise.
47914 * include/grub/ieee1275/ieee1275.h: Likewise.
47915 * include/grub/ieee1275/ofdisk.h: Likewise.
47916 * include/grub/powerpc/libgcc.h: Likewise.
47917 * include/grub/powerpc/setjmp.h: Likewise.
47918 * include/grub/powerpc/types.h: Likewise.
47919 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47920 * include/grub/powerpc/ieee1275/console.h: Likewise.
47921 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47922 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47923 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47924 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47925 * include/grub/powerpc/ieee1275/time.h: Likewise.
47926 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47927 * include/grub/sparc64/libgcc.h: Likewise.
47928 * include/grub/sparc64/setjmp.h: Likewise.
47929 * include/grub/sparc64/types.h: Likewise.
47930 * include/grub/sparc64/ieee1275/console.h: Likewise.
47931 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47932 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47933 * include/grub/sparc64/ieee1275/time.h: Likewise.
47934 * include/grub/util/biosdisk.h: Likewise.
47935 * include/grub/util/getroot.h: Likewise.
47936 * include/grub/util/lvm.h: Likewise.
47937 * include/grub/util/misc.h: Likewise.
47938 * include/grub/util/raid.h: Likewise.
47939 * include/grub/util/resolve.h: Likewise.
47940 * io/gzio.c: Likewise.
47941 * kern/device.c: Likewise.
47942 * kern/disk.c: Likewise.
47943 * kern/dl.c: Likewise.
47944 * kern/elf.c: Likewise.
47945 * kern/env.c: Likewise.
47946 * kern/err.c: Likewise.
47947 * kern/file.c: Likewise.
47948 * kern/fs.c: Likewise.
47949 * kern/loader.c: Likewise.
47950 * kern/main.c: Likewise.
47951 * kern/misc.c: Likewise.
47952 * kern/mm.c: Likewise.
47953 * kern/parser.c: Likewise.
47954 * kern/partition.c: Likewise.
47955 * kern/rescue.c: Likewise.
47956 * kern/term.c: Likewise.
47957 * kern/efi/efi.c: Likewise.
47958 * kern/efi/init.c: Likewise.
47959 * kern/efi/mm.c: Likewise.
47960 * kern/i386/dl.c: Likewise.
47961 * kern/i386/efi/init.c: Likewise.
47962 * kern/i386/efi/startup.S: Likewise.
47963 * kern/i386/pc/init.c: Likewise.
47964 * kern/i386/pc/lzo1x.S: Likewise.
47965 * kern/i386/pc/startup.S: Likewise.
47966 * kern/ieee1275/ieee1275.c: Likewise.
47967 * kern/powerpc/cache.S: Likewise.
47968 * kern/powerpc/dl.c: Likewise.
47969 * kern/powerpc/ieee1275/cmain.c: Likewise.
47970 * kern/powerpc/ieee1275/crt0.S: Likewise.
47971 * kern/powerpc/ieee1275/init.c: Likewise.
47972 * kern/powerpc/ieee1275/openfw.c: Likewise.
47973 * kern/sparc64/cache.S: Likewise.
47974 * kern/sparc64/dl.c: Likewise.
47975 * kern/sparc64/ieee1275/init.c: Likewise.
47976 * kern/sparc64/ieee1275/openfw.c: Likewise.
47977 * loader/efi/chainloader.c: Likewise.
47978 * loader/efi/chainloader_normal.c: Likewise.
47979 * loader/i386/efi/linux.c: Likewise.
47980 * loader/i386/efi/linux_normal.c: Likewise.
47981 * loader/i386/pc/chainloader.c: Likewise.
47982 * loader/i386/pc/chainloader_normal.c: Likewise.
47983 * loader/i386/pc/linux.c: Likewise.
47984 * loader/i386/pc/linux_normal.c: Likewise.
47985 * loader/i386/pc/multiboot.c: Likewise.
47986 * loader/i386/pc/multiboot_normal.c: Likewise.
47987 * loader/powerpc/ieee1275/linux.c: Likewise.
47988 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47989 * normal/arg.c: Likewise.
47990 * normal/cmdline.c: Likewise.
47991 * normal/command.c: Likewise.
47992 * normal/completion.c: Likewise.
47993 * normal/execute.c: Likewise.
47994 * normal/function.c: Likewise.
47995 * normal/lexer.c: Likewise.
47996 * normal/main.c: Likewise.
47997 * normal/menu.c: Likewise.
47998 * normal/menu_entry.c: Likewise.
47999 * normal/misc.c: Likewise.
48000 * normal/parser.y: Likewise.
48001 * normal/script.c: Likewise.
48002 * normal/i386/setjmp.S: Likewise.
48003 * normal/powerpc/setjmp.S: Likewise.
48004 * normal/sparc64/setjmp.S: Likewise.
48005 * partmap/acorn.c: Likewise.
48006 * partmap/amiga.c: Likewise.
48007 * partmap/apple.c: Likewise.
48008 * partmap/gpt.c: Likewise.
48009 * partmap/pc.c: Likewise.
48010 * partmap/sun.c: Likewise.
48011 * term/gfxterm.c: Likewise.
48012 * term/terminfo.c: Likewise.
48013 * term/efi/console.c: Likewise.
48014 * term/i386/pc/console.c: Likewise.
48015 * term/i386/pc/serial.c: Likewise.
48016 * term/i386/pc/vesafb.c: Likewise.
48017 * term/i386/pc/vga.c: Likewise.
48018 * term/ieee1275/ofconsole.c: Likewise.
48019 * util/biosdisk.c: Likewise.
48020 * util/console.c: Likewise.
48021 * util/genmoddep.c: Likewise.
48022 * util/getroot.c: Likewise.
48023 * util/grub-emu.c: Likewise.
48024 * util/grub-mkdevicemap.c: Likewise.
48025 * util/grub-probe.c: Likewise.
48026 * util/lvm.c: Likewise.
48027 * util/misc.c: Likewise.
48028 * util/raid.c: Likewise.
48029 * util/resolve.c: Likewise.
48030 * util/update-grub.in: Likewise.
48031 * util/update-grub_lib.in: Likewise.
48032 * util/grub.d/00_header.in: Likewise.
48033 * util/grub.d/10_hurd.in: Likewise.
48034 * util/grub.d/10_linux.in: Likewise.
48035 * util/i386/efi/grub-install.in: Likewise.
48036 * util/i386/efi/grub-mkimage.c: Likewise.
48037 * util/i386/pc/grub-install.in: Likewise.
48038 * util/i386/pc/grub-mkimage.c: Likewise.
48039 * util/i386/pc/grub-mkrescue.in: Likewise.
48040 * util/i386/pc/grub-setup.c: Likewise.
48041 * util/i386/pc/misc.c: Likewise.
48042 * util/powerpc/ieee1275/grub-install.in: Likewise.
48043 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48044 * util/powerpc/ieee1275/misc.c: Likewise.
48045 * video/bitmap.c: Likewise.
48046 * video/video.c: Likewise.
48047 * video/i386/pc/vbe.c: Likewise.
48048 * video/i386/pc/vbeblit.c: Likewise.
48049 * video/i386/pc/vbefill.c: Likewise.
48050 * video/i386/pc/vbeutil.c: Likewise.
48051 * video/readers/tga.c: Likewise.
48052
48053 2007-07-02 Robert Millan <rmh@aybabtu.com>
48054
48055 * conf/i386-efi.rmk: Replace obsolete reference to
48056 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48057 with util/getroot.c.
48058 * conf/powerpc-ieee1275.rmk: Likewise.
48059 * conf/sparc64-ieee1275.rmk: Likewise.
48060
48061 * util/grub-emu.c (main): Fix unchecked pointer handling.
48062
48063 2007-07-02 Robert Millan <rmh@aybabtu.com>
48064
48065 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48066 invocation to fail, in order to support partition-less media.
48067
48068 * util/i386/pc/grub-install.in: Likewise.
48069
48070 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48071 which fs or partmap modules are needed (akin to its sister scripts).
48072
48073 Also use grub-probe to get rid of unportable /proc/mounts check.
48074
48075 Print the same informational message that the other scripts do, before
48076 exiting.
48077
48078 2007-06-23 Robert Millan <rmh@aybabtu.com>
48079
48080 * util/update-grub_lib.in (font_path): New function. Determine whether
48081 a font file can be found and, if so, echo the GRUB path to it.
48082
48083 * util/update-grub.in: Handle multiple terminals depending on user
48084 input, platform availability and font file presence. Propagate
48085 variables of our findings to /etc/grub.d/ children.
48086
48087 * util/grub.d/00_header.in: Handle multiple terminals, based on
48088 environment setup by update-grub.
48089
48090 2007-06-23 Robert Millan <rmh@aybabtu.com>
48091
48092 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48093
48094 2007-06-21 Robert Millan <rmh@aybabtu.com>
48095
48096 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48097 indicate end of data section in kernel image.
48098 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48099 GRUB_KERNEL_MACHINE_DATA_END.
48100
48101 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48102 space for it.
48103 * kern/i386/efi/startup.S: Likewise.
48104
48105 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48106 during image generation. Implement --prefix option to override this
48107 patch.
48108 * util/i386/efi/grub-mkimage.c: Likewise.
48109
48110 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48111 code to make path relative to its root into a separate function.
48112
48113 * util/i386/pc/grub-install.in: Use newly provided
48114 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48115 pass the result to grub-install --prefix.
48116
48117 2007-06-13 Robert Millan <rmh@aybabtu.com>
48118
48119 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48120 DEFAULT_DEVICE_MAP.
48121 * util/grub-emu.c: Use above definitions from misc.h instead of
48122 defining them.
48123 * util/grub-mkdevicemap.c: Likewise.
48124 * util/i386/pc/grub-setup.c: Likewise.
48125 * util/grub-probe.c: Likewise.
48126 (probe): Abort with grub_util_error() when either
48127 grub_guess_root_device or grub_util_get_grub_dev fails.
48128
48129 2007-06-12 Robert Millan <rmh@aybabtu.com>
48130
48131 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48132 "pager" assignment.
48133 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48134 "pcdata".
48135 * util/grub-probe.c (probe): Likewise for "drive_name".
48136
48137 2007-06-11 Robert Millan <rmh@aybabtu.com>
48138
48139 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48140 not just the cdrom one.
48141
48142 2007-06-11 Robert Millan <rmh@aybabtu.com>
48143
48144 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48145 Add --pkglibdir=DIR option to override pkglibdir.
48146 Mention --image-type=TYPE in help output.
48147 Fix --grub-mkimage (it was a no-op).
48148 Abort gracefully when no parameter is given.
48149
48150 2007-06-11 Robert Millan <rmh@aybabtu.com>
48151
48152 * util/i386/pc/grub-mkrescue.in: New file.
48153 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48154 * Makefile.in: Handle bin_SCRIPTS.
48155
48156 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48157
48158 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48159 list of video modes.
48160
48161 2007-06-06 Robert Millan <rmh@aybabtu.com>
48162
48163 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48164 file doesn't exist, or if it is in a filesystem grub can't read.
48165
48166 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48167 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48168 header comment to fit in 80 columns when the variables are resolved.
48169
48170 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48171 could be identified by update-grub. Remove redundant check for
48172 unifont.pff existence (since convert_system_path_to_grub_path now
48173 handles that).
48174
48175 2007-06-04 Robert Millan <rmh@aybabtu.com>
48176
48177 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48178
48179 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48180
48181 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48182
48183 2007-06-04 Robert Millan <rmh@aybabtu.com>
48184
48185 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48186
48187 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48188 grub_apple_partition_map_fini.
48189
48190 * util/biosdisk.c
48191 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48192 to access >2 TiB disks).
48193
48194 Print disk->total_sectors with %llu instead of %lu, since this
48195 variable is always 64-bit (prevents wrong disk size from being displayed
48196 on either >2 TiB disk or big-endian CPU).
48197
48198 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48199 into a generic case that supports all (sane) partition maps.
48200
48201 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48202 breaks big-endian.
48203
48204 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48205 and grub_apple_partition_map_fini() after that.
48206
48207 2007-06-01 Robert Millan <rmh@aybabtu.com>
48208
48209 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48210
48211 * util/grub.d/00_header.in: Only enable gfxterm when
48212 convert_system_path_to_grub_path() succeeds.
48213
48214 2007-05-20 Robert Millan <rmh@aybabtu.com>
48215
48216 * util/update-grub_lib.in: New file.
48217 * DISTLIST: Add update-grub_lib.in.
48218 * conf/common.rmk: Generate update-grub_lib and install it in
48219 $(lib_DATA).
48220 * Makefile.in: Add install routine for $(lib_DATA).
48221
48222 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48223 function provided by update-grub_lib to support arbitrary paths of
48224 unifont.pff.
48225 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48226 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48227
48228 2007-05-19 Robert Millan <rmh@aybabtu.com>
48229
48230 * commands/i386/cpuid.c: New module.
48231 * DISTLIST: Add it.
48232 * conf/i386-efi.rmk: Enable cpuid.mod.
48233 * conf/i386-pc.rmk: Likewise.
48234
48235 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48236
48237 * kern/disk.c (grub_disk_read): Check return value of
48238 grub_realloc().
48239
48240 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48241
48242 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48243 arrays.
48244 * disk/raid.c (grub_raid_open): Likewise.
48245
48246 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48247
48248 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48249 stack instead of on the heap.
48250
48251 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48252 before doing a read on it.
48253
48254 * configure.ac: Only use -fno-stack-protector for the target
48255 environment.
48256
48257 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48258
48259 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48260 __attribute_ ((unused)) to mode_type argument.
48261
48262 * util/getroot.c (grub_guess_root_device): Fix #endif.
48263
48264 * kern/misc.c (memcmp): Fix prototype.
48265
48266 * include/grub/partition.h [GRUB_UTIL]
48267 (grub_gpt_partition_map_init): Add prototype.
48268 (grub_gpt_partition_map_fini): Likewise.
48269
48270 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48271 at the right place.
48272
48273 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48274 (grub_fat_read_data): Likewise.
48275 (grub_fat_find_dir): Likewise.
48276
48277 * font/manager.c (find_glyph): Make table a const.
48278 (grub_font_get_glyph): Remove bitmap from if statement.
48279
48280 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48281
48282 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48283 code, first search for device in /dev/mapper, then in /dev.
48284 (grub_util_get_grub_dev): New function.
48285 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48286 prototype.
48287 * util/grub-probe.c (probe): Remove check for RAID, call
48288 grub_util_get_grub_dev() instead of
48289 grub_util_biosdisk_get_grub_dev().
48290 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48291 grub_util_biosdisk_get_grub_dev().
48292 * util/i386/pc/grub-setup.c (main): Likewise.
48293
48294 2007-05-16 Robert Millan <rmh@aybabtu.com>
48295
48296 * DISTLIST: Update for the latest changes.
48297 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48298 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48299 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48300 grub/util/biosdisk.h.
48301 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48302 grub/util/biosdisk.h.
48303
48304 2007-05-16 Robert Millan <rmh@aybabtu.com>
48305
48306 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48307
48308 2007-05-16 Robert Millan <rmh@aybabtu.com>
48309
48310 * util/i386/efi/grub-install.in: New.
48311 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48312 newly added grub-install.
48313 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48314 include.
48315 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48316 grub/util/biosdisk.h.
48317 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48318 grub/util/biosdisk.h.
48319
48320 2007-05-16 Robert Millan <rmh@aybabtu.com>
48321
48322 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48323 * include/grub/util/biosdisk.h: ... here.
48324 * util/i386/pc/biosdisk.c: Moved to ...
48325 * util/biosdisk.c: ... here.
48326 * util/i386/pc/getroot.c: Moved to ...
48327 * util/getroot.c: ... here.
48328 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48329 * util/grub-mkdevicemap.c: ... here.
48330 * util/i386/pc/grub-probe.c: Moved to ...
48331 * util/grub-probe.c: ... here.
48332
48333 2007-05-15 Robert Millan <rmh@aybabtu.com>
48334
48335 * util/update-grub.in: Remove duplicated line in grub.cfg header
48336 message.
48337
48338 2007-05-13 Robert Millan <rmh@aybabtu.com>
48339
48340 * util/update-grub.in: Fix a few assumptions about the devices holding
48341 /, /boot and /boot/grub being the same.
48342 * util/grub.d/00_header.in: Likewise.
48343 * util/grub.d/10_hurd.in: Likewise.
48344 * util/grub.d/10_linux.in: Likewise.
48345
48346 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48347 patterns. Use that to define the `.old' suffix as older than `'.
48348
48349 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48350
48351 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48352 the grub.cfg header message.
48353
48354 2007-05-11 Robert Millan <rmh@aybabtu.com>
48355
48356 * util/update-grub.in: Create device.map if it doesn't already exist,
48357 before attempting to run grub-probe.
48358 Check for grub-probe and grub-mkdevicemap with the same code
48359 grub-install is using.
48360 Remove test mode.
48361
48362 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48363
48364 * Makefile.in: Add the datarootdir autoconf variable.
48365
48366 2007-05-09 Robert Millan <rmh@aybabtu.com>
48367
48368 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48369 fail gracefully if dev->disk->partition == NULL.
48370
48371 2007-05-07 Robert Millan <rmh@aybabtu.com>
48372
48373 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48374 determine partition map module.
48375 * util/i386/pc/grub-install.in: Use this feature to decide which
48376 partition module to load, instead of hardcoding pc and gpt.
48377
48378 2007-05-07 Robert Millan <rmh@aybabtu.com>
48379
48380 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48381 source directory differs from build directory.
48382
48383 2007-05-05 Robert Millan <rmh@aybabtu.com>
48384
48385 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48386 initialisation.
48387
48388 2007-05-05 Robert Millan <rmh@aybabtu.com>
48389
48390 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48391
48392 2007-05-05 Robert Millan <rmh@aybabtu.com>
48393
48394 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48395 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48396
48397 2007-05-05 Robert Millan <rmh@aybabtu.com>
48398
48399 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48400 (grub_probe_SOURCES): Likewise.
48401 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48402 GPT and initialize dos_part and bsd_part accordingly.
48403 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48404 install_bsd_part.
48405 (main): Activate gpt module for use during partition identification,
48406 and deactivate it afterwards.
48407 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48408 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48409 partition identification, and deactivate it afterwards.
48410
48411 2007-05-05 Robert Millan <rmh@aybabtu.com>
48412
48413 * term/i386/pc/console.c (grub_console_fini): Call
48414 grub_term_set_current() before grub_term_unregister().
48415
48416 2007-05-04 Robert Millan <rmh@aybabtu.com>
48417
48418 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48419 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48420 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48421 and update-grub_DATA.
48422 * conf/common.rmk: Build and install update-grub components.
48423 * conf/common.mk: Regenerate.
48424 * util/update-grub.in: New. Core of update-grub.
48425 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48426 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48427 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48428 * util/grub.d/README: New. Document grub.d directory layout.
48429
48430 2007-05-01 Robert Millan <rmh@aybabtu.com>
48431
48432 * util/grub-emu.c: Move initialization functions
48433 grub_util_biosdisk_init() and grub_init_all() before
48434 grub_util_biosdisk_get_grub_dev(), which relies on them.
48435
48436 2007-04-19 Robert Millan <rmh@aybabtu.com>
48437
48438 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48439 it is used later.
48440
48441 2007-04-18 Jerone Young <jerone@gmail.com>
48442
48443 * kernel/elf.c: Add missing parenthesis for conditional statement
48444 stanza.
48445
48446 2007-04-10 Jerone Young <jerone@gmail.com>
48447
48448 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48449 continue on and look for device node with real device name.
48450
48451 2007-04-10 Jerone Young <jerone@gmail.com>
48452
48453 * configure.ac: Add argument for autoconf to use transformation
48454 ability.
48455 * Makefile.in: Add autoconf package transformation code.
48456 * util/i386/pc/grub-install.in: Likewise.
48457 * util/powerpc/ieee1275/grub-install.in: Likewise.
48458
48459 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48460
48461 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48462 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48463 (EXT2_REVISION): Likewise.
48464 (EXT2_INODE_SIZE): Likewise.
48465 (struct grub_ext2_block_group): Added a missing member
48466 "used_dirs".
48467 (grub_ext2_read_inode): Divide by the inode size in a superblock
48468 instead of 128 to obtain INODES_PER_BLOCK.
48469 Use the macro EXT2_INODE_SIZE instead of directly using
48470 SBLOCK->INODE_SIZE.
48471
48472 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48473
48474 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48475 superblock instead of the structure size to compute an
48476 offset. This fixes the problem that GRUB could not read a
48477 filesystem when inode size is different from 128-byte.
48478
48479 2007-03-05 Marco Gerards <marco@gnu.org>
48480
48481 * normal/main.c (read_config_file): When "menu" is not set, create
48482 an initial context.
48483
48484 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48485
48486 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48487 (HEAP_LIMIT): New macro.
48488 (grub_claim_heap): Claim memory up to `heaplimit'.
48489
48490 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48491
48492 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48493 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48494 (_start): Likewise.
48495 (grub_arch_modules_addr): Return address after `_end'.
48496 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48497 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48498 (add_segments): Calculate `_end' from phdr size and location.
48499 (ALIGN_UP): Moved to ...
48500 * include/grub/misc.h: here.
48501 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48502 New macro.
48503 (GRUB_IEEE1275_MODULE_BASE): Removed.
48504
48505 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48506
48507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48508 loop boundary.
48509
48510 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48511
48512 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48513 All users updated.
48514 (grub_elf64_load_hook_t): Likewise.
48515 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48516 debug output.
48517
48518 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48519
48520 * kern/mm.c: Update copyright.
48521 (grub_mm_debug): Correct syntax error.
48522 (grub_mm_dump_free): New function.
48523 (grub_debug_free): Call `grub_free'.
48524 * include/grub/mm.h: Update copyright.
48525 (grub_mm_dump_free): Add declaration.
48526
48527 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48528
48529 * include/grub/ieee1275/ieee1275.h: Update copyright.
48530 * kern/powerpc/ieee1275/init.c: Likewise.
48531 * kern/powerpc/ieee1275/openfw.c: Likewise.
48532
48533 * loader/powerpc/ieee1275/linux.c: Likewise.
48534 * include/grub/elfload.h: Likewise.
48535 * kern/elf.c: Likewise.
48536 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48537 callers.
48538 (grub_elf64_load): Likewise.
48539 (grub_elf32_load_segment): Move to a nested function.
48540 (grub_elf64_load_segment): Likewise.
48541
48542 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48543
48544 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48545 prototype.
48546 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48547 (grub_heap_len): Likewise.
48548 (HEAP_SIZE): New macro.
48549 (grub_claim_heap): New function.
48550 (grub_machine_init): Don't claim heap directly. Call
48551 `grub_claim_heap'.
48552 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48553 (grub_available_iterate): New function.
48554
48555 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48556
48557 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48558 * configure.ac: Use it for testing the HOST and TARGET compilers.
48559
48560 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48561
48562 * Makefile.in (enable_grub_emu): New variable.
48563 * configure.ac (--enable-grub-emu): New option.
48564 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48565 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48566 * conf/i386-pc.rmk: Likewise.
48567 * conf/powerpc-ieee1275.rmk: Likewise.
48568 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48569
48570 2006-12-12 Marco Gerards <marco@gnu.org>
48571
48572 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48573
48574 * kern/env.c (grub_env_unset): Don't free the member `value' when
48575 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48576 pointer.
48577
48578 * normal/main.c (current_menu): Removed.
48579 (free_menu): Unset the `menu' environment variable.
48580 (grub_normal_menu_addentry): Make use of the environment variable
48581 `menu', instead of using the global `current_menu'. Allocate
48582 memory for the sourcecode of this entry.
48583 (read_config_file): New argument `nested', changed all callers.
48584 Only in the case of a new context, initialize a new menu. Set the
48585 `menu' environment variable.
48586 (grub_normal_execute): Don't set and unset the environment
48587 variable `menu' here anymore. Only free the menu when leaving the
48588 context.
48589
48590 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48591 leak.
48592
48593 2006-12-11 Marco Gerards <marco@gnu.org>
48594
48595 * normal/menu_entry.c (run): Fix off by one bug so the last line
48596 is executed. Move the loader check to outside the loop.
48597
48598 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48599
48600 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48601
48602 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48603
48604 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48605 the number of sectors. Reported by Andrey Shuvikov
48606 <mr_hyro@yahoo.com>.
48607
48608 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48609
48610 * kern/disk.c (grub_disk_read): When there is a read error, always
48611 try to read only the necessary data.
48612
48613 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48614 disk/raid.c.
48615 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48616 prototype.
48617 [GRUB_UTIL] (grub_raid_fini): Likewise.
48618 [GRUB_UTIL] (grub_lvm_init): Likewise.
48619 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48620 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48621 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48622 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48623 and grub_raid_fini().
48624
48625 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48626
48627 * include/grub/types.h (__unused): Rename to UNUSED.
48628 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48629 (grub_elf64_size): Likewise.
48630
48631 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48632
48633 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48634 grub_error_push and grub_error_pop in the error-handling path.
48635 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48636 length.
48637
48638 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48639
48640 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48641 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48642 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48643 (kernel_elf_SOURCES): Likewise.
48644 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48645 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48646 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48647 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48648 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48649 (elf_mod_SOURCES): New variable.
48650 (elf_mod_CFLAGS): Likewise.
48651 (elf_mod_LDFLAGS): Likewise.
48652 * include/grub/types.h (__unused): New macro.
48653 * include/grub/elfload.h: New file.
48654 * kern/elf.c: Likewise.
48655 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48656 (ELF32_LOADMASK): New macro.
48657 (ELF64_LOADMASK): Likewise.
48658 (vmlinux): Removed.
48659 (grub_linux_load32): New function.
48660 (grub_linux_load64): Likewise.
48661 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48662 Use grub_elf_t instead of grub_file_t.
48663
48664 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48665
48666 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48667 `catch_result' to struct set_color_args.
48668
48669 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48670
48671 * normal/menu.c: Include grub/script.h.
48672 * normal/menu_entry.c: Likewise.
48673 * include/grub/normal.h: Do not include grub/script.h.
48674
48675 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48676
48677 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48678
48679 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48680
48681 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48682 disk.
48683 (grub_disk_close): Print debug messages when closing a disk.
48684 (grub_disk_read): Print debug messages when disk read fails.
48685 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48686 filesystem type.
48687 * kern/partition.c: Include misc.h.
48688 (grub_partition_iterate): Print debug messages when detecting
48689 partition type.
48690
48691 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48692
48693 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48694 is negative.
48695 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48696
48697 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48698
48699 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48700 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48701
48702 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48703
48704 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48705 instead of sizeof(lv). Patch by Michael Guntsche.
48706
48707 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48708
48709 * disk/lvm.c: Rename VGS to VG_LIST.
48710 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48711 (grub_lvm_open): Likewise.
48712 Thanks to Michael Guntsche for finding this bug.
48713
48714 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48715
48716 * configure.ac (AC_INIT): Bumped to 1.95.
48717
48718 2006-10-14 Robert Millan <rmh@aybabtu.com>
48719
48720 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48721 with "/dev/.static/dev/md".
48722
48723 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48724
48725 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48726 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48727 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48728 DRIVE_NAME are always freed.
48729
48730 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48731 DOS_PART, as a DOS partition is counted from one instead of zero
48732 now. Reported by Robert Millan.
48733
48734 2006-10-14 Robert Millan <rmh@aybabtu.com>
48735
48736 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48737 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48738 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48739 string returned by grub_guess_root_device.
48740 * util/i386/pc/grub-setup.c: Likewise.
48741 * util/i386/pc/grub-probefs.c: Likewise.
48742
48743 * util/i386/pc/grub-probefs.c: Rename to ...
48744 * util/i386/pc/grub-probe.c: ... this.
48745 * DISTLIST: Remove grub-probefs, add grub-probe.
48746 * conf/i386-efi.rmk: Likewise.
48747 * conf/i386-pc.rmk: Likewise.
48748 * util/i386/pc/grub-install.in: Likewise.
48749
48750 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48751 choose which information we want to print.
48752
48753 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48754
48755 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48756 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48757 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48758 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48759 video/readers/tga.c and video/i386/pc/vbeutil.c.
48760
48761 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48762
48763 Added support for RAID and LVM.
48764
48765 * disk/lvm.c: New file.
48766 * disk/raid.c: Likewise.
48767 * include/grub/lvm.h: Likewise.
48768 * include/grub/raid.h: Likewise.
48769 * include/grub/util/lvm.h: Likewise.
48770 * include/grub/util/raid.h: Likewise.
48771 * util/lvm.c: Likewise.
48772 * util/raid.c: Likewise.
48773
48774 * include/grub/disk.h (grub_disk_dev_id): Add
48775 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48776 (grub_disk_get_size): New prototype.
48777 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48778 returns a partition.
48779 (grub_disk_get_size): New function.
48780
48781 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48782 verbatim if grub_install_dos_part is -2.
48783
48784 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48785 and LVM devices.
48786
48787 * util/i386/pc/grub-setup.c (setup): New argument
48788 MUST_EMBED. Force embedding of GRUB when the argument is
48789 true. Close FILE before returning.
48790 (main): Add support for RAID and LVM.
48791
48792 * conf/common.rmk: Add RAID and LVM modules.
48793 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48794 util/lvm.c.
48795 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48796
48797 * kern/misc.c (grub_strstr): New function.
48798 * include/grub/misc.h (grub_strstr): New prototype.
48799
48800 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48801
48802 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48803
48804 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48805
48806 * kern/misc.c (grub_strtoull): Guess the base only if not
48807 specified.
48808
48809 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48810
48811 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48812 PowerMac support.
48813
48814 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48815
48816 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48817
48818 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48819 Remove `flags' argument. All callers changed.
48820 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48821 (IEEE1275_IHANDLE_INVALID): New variable.
48822 (IEEE1275_CELL_INVALID): New variable.
48823 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48824 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48825 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48826 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48827 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48828 codes from Open Firmware. All callers updated.
48829 (grub_ieee1275_next_property): Directly return Open Firmware return
48830 code.
48831 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48832 Standardize error checking from `grub_ieee1275_get_property'.
48833 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48834 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48835
48836 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48837
48838 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48839 `instance_to_package_args' to `instance_to_path_args'.
48840
48841 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48842 `grub_ieee1275_chosen'.
48843
48844 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48845 `grub_ieee1275_interpret'.
48846
48847 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48848
48849 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48850
48851 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48852
48853 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48854 (__cmpdi): Likewise.
48855
48856 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48857 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48858 `grub_ssize_t'.
48859
48860 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48861
48862 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48863 to type `grub_ssize_t'.
48864 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48865
48866 2006-09-22 Marco Gerards <marco@gnu.org>
48867
48868 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48869 newlines.
48870
48871 2006-09-22 Marco Gerards <marco@gnu.org>
48872
48873 * commands/echo.c: New file.
48874
48875 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48876
48877 * conf/common.rmk (echo_mod_SOURCES): New variable.
48878 (echo_mod_CFLAGS): Likewise.
48879 (echo_mod_LDFLAGS): Likewise.
48880
48881 2006-09-22 Marco Gerards <marco@gnu.org>
48882
48883 * normal/main.c (get_line): Malloc memory instead of using
48884 preallocated memory. Removed the arguments `cmdline' and
48885 `max_len'. Updated all callers.
48886
48887 2006-09-22 Marco Gerards <marco@gnu.org>
48888
48889 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48890 (normal_mod_DEPENDENCIES): Likewise.
48891
48892 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48893 (normal_mod_DEPENDENCIES): Likewise.
48894
48895 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48896
48897 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48898
48899 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48900 programs.
48901 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48902 (normal_mod_DEPENDENCIES): Likewise.
48903 * conf/i386-pc.mk: Regenerate.
48904 * conf/i386-efi.mk: Likewise
48905 * conf/common.mk: Likewise.
48906 * conf/powerpc-ieee1275.mk: Likewise.
48907 * conf/sparc64-ieee1275.mk: Likewise.
48908
48909 2006-09-22 Robert Millan <rmh@aybabtu.com>
48910
48911 Sync with i386 version.
48912 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48913 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48914
48915 2006-09-21 Robert Millan <rmh@aybabtu.com>
48916
48917 Import from GRUB Legacy (lib/device.c):
48918 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48919 (init_device_map) [__linux__]: Add support for I2O devices.
48920
48921 2006-09-14 Marco Gerards <marco@gnu.org>
48922
48923 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48924 `-melf_i386'.
48925
48926 2006-09-14 Robert Millan <rmh@aybabtu.com>
48927
48928 * util/i386/pc/grub-install.in: Skip menu.lst when removing
48929 /boot/grub/*.lst.
48930
48931 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
48932
48933 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
48934 before adding it to device.map.
48935
48936 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
48937
48938 * genmk.rb: Let GCC generate dependencies the first time it
48939 compiles a file; using the -MD option.
48940 * conf/common.mk: Regenerate.
48941 * conf/i386-pc.mk: Likewise.
48942 * conf/i386-efi.mk: Likewise.
48943 * conf/powerpc-ieee1275.mk: Likewise.
48944 * conf/sparc64-ieee1275.mk: Likewise.
48945
48946 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
48947
48948 Move the prototypes of grub_setjmp and grub_longjmp to
48949 cpu/setjmp.h, so that each architecture may specify different
48950 attributes.
48951
48952 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
48953 (grub_longjmp): Likewise.
48954 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
48955 (grub_longjmp): Likewise.
48956 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
48957 (grub_longjmp): Likewise.
48958
48959 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
48960 [!GRUB_UTIL] (grub_longjmp): Removed.
48961
48962 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
48963
48964 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
48965 "color!" method does not return any value.
48966
48967 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
48968
48969 * include/grub/bitmap.h: New file.
48970
48971 * include/grub/i386/pc/vbeutil.h: Likewise.
48972
48973 * video/bitmap.c: Likewise.
48974
48975 * video/readers/tga.c: Likewise.
48976
48977 * video/i386/pc/vbeutil.c: Likewise.
48978
48979 * commands/videotest.c: Code cleanup and updated to reflect to new
48980 video API.
48981
48982 * term/gfxterm.c: Likewise.
48983
48984 * video/video.c: Likewise.
48985
48986 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
48987 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
48988 (bitmap_mod_SOURCES): New entry.
48989 (bitmap_mod_CFLAGS): Likewise.
48990 (bitmap_mod_LDFLAGS): Likewise.
48991 (tga_mod_SOURCES): Likewise.
48992 (tga_mod_CFLAGS): Likewise.
48993 (tga_mod_LDFLAGS): Likewise.
48994
48995 * include/grub/video.h (grub_video_blit_operators): New enum type.
48996 (grub_video_render_target): Changed as forward declaration and moved
48997 actual definition to be video driver specific.
48998 (grub_video_adapter.blit_bitmap): Added blitting operator.
48999 (grub_video_adapter.blit_render_target): Likewise.
49000 (grub_video_blit_bitmap): Likewise.
49001 (grub_video_blit_render_target): Likewise.
49002
49003 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49004 driver specific render target definition.
49005 (grub_video_vbe_map_rgba): Added driver internal helper.
49006 (grub_video_vbe_unmap_color): Updated to use
49007 grub_video_i386_vbeblit_info.
49008 (grub_video_vbe_get_video_ptr): Likewise.
49009
49010 * include/grub/i386/pc/vbeblit.h
49011 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49012 grub_video_i386_vbeblit_info.
49013 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49014 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49015 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49016 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49017 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49018 (grub_video_i386_vbeblit_index_index): Likewise.
49019 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49020 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49021 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49022 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49023 operator.
49024 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49025 operator.
49026
49027 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49028 include/grub/i386/pc/vbeblit.h.
49029
49030 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49031 Updated to use grub_video_i386_vbeblit_info.
49032 (grub_video_i386_vbefill_R8G8B8): Likewise.
49033 (grub_video_i386_vbefill_index): Likewise.
49034 (grub_video_i386_vbefill): Added generic filler.
49035
49036 * video/i386/pc/vbefill.c: Updated to reflect changes on
49037 include/grub/i386/pc/vbefill.h.
49038
49039 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49040 grub_video_i386_vbeblit_info.
49041 (grub_video_vbe_unmap_color): Likewise.
49042 (grub_video_vbe_blit_glyph): Likewise.
49043 (grub_video_vbe_scroll): Likewise.
49044 (grub_video_vbe_draw_pixel): Removed function.
49045 (grub_video_vbe_get_pixel): Likewise.
49046 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49047 updated code to use it.
49048 (common_blitter): Added common blitter for render target and bitmap.
49049 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49050 (grub_video_vbe_blit_render_target): Likewise.
49051
49052 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49053
49054 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49055 is in text mode if there is no console control protocol instance
49056 available.
49057
49058 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49059
49060 * include/grub/video.h: Code cleanup.
49061
49062 * include/grub/i386/pc/vbe.h: Likewise.
49063
49064 * video/i386/pc/vbe.c: Likewise.
49065
49066 * video/i386/pc/vbeblit.c: Likewise.
49067
49068 * video/i386/pc/vbefill.c: Likewise.
49069
49070 * video/video.c: Likewise. Also added more comments.
49071
49072 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49073
49074 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49075 (struct grub_biosdisk_dap): Likewise.
49076
49077 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49078 linkage settings for all functions.
49079
49080 2006-07-12 Marco Gerards <marco@gnu.org>
49081
49082 * configure.ac (--enable-mm-debug): Fix typo.
49083
49084 * genkernsyms.sh.in: Use proper quoting for `CC'.
49085
49086 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49087
49088 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49089 (normal_mod_ASFLAGS): Remove "-m32".
49090
49091 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49092
49093 * util/misc.c: Include config.h.
49094 [!HAVE_MEMALIGN]: Do not include malloc.h.
49095 (grub_memalign): Use posix_memalign, if present. Then, use
49096 memalign, if present. Otherwise, emit an error.
49097
49098 * util/grub-emu.c: Do not include malloc.h.
49099
49100 * include/grub/util/misc.h: Include unistd.h. This is required for
49101 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49102 D. Eades III <hde@foobar-qux.org>.
49103
49104 * configure.ac (AC_GNU_SOURCE): Added.
49105 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49106 type.
49107
49108 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49109
49110 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49111 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49112
49113 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49114
49115 * include/grub/types.h (grub_host_addr_t): Rename to
49116 grub_target_addr_t.
49117 (grub_host_off_t): Rename to grub_target_off_t.
49118 (grub_host_size_t): Rename to grub_target_size_t.
49119 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49120 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49121
49122 * include/grub/kernel.h (struct grub_module_header): Change type
49123 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49124 (grub_module_info): Likewise.
49125
49126 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49127
49128 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49129 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49130 Velazquez <jesus.velazquez@gmail.com>.
49131
49132 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49133
49134 Count partitions from 1 instead of 0 in the string representation
49135 of partitions. Still use 0-based internally.
49136
49137 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49138 (sun_partition_map_iterate): Use grub_partition_t instead of
49139 struct grub_partition *. Cast DESC->START_CYLINDER to
49140 grub_uint64_t after converting the endian.
49141 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49142 (sun_partition_map_get_name): Add 1 to P->INDEX.
49143
49144 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49145 PCDATA->DOS_PART.
49146 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49147
49148 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49149 zero instead of one.
49150 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49151 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49152
49153 * partmap/apple.c (apple_partition_map_iterate): Change the type
49154 of POS to unsigned.
49155 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49156 (apple_partition_map_get_name): Add 1 into P->INDEX.
49157
49158 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49159 of POS to unsigned.
49160 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49161 calculate the offset of a partition.
49162 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49163 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49164
49165 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49166 SECTOR to grub_disk_addr_t.
49167 (acorn_partition_map_iterate): Likewise.
49168 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49169 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49170 top.
49171 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49172
49173 * kern/i386/pc/init.c (make_install_device): Add 1 into
49174 GRUB_INSTALL_DOS_PART.
49175
49176 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49177 conditional.
49178
49179 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49180
49181 Clean up the code to support 64-bit addressing in disks and
49182 files. This change is not enough for filesystems yet.
49183
49184 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49185 type of "start" to grub_uint64_t.
49186 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49187 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49188 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49189 convert addresses.
49190
49191 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49192 to grub_disk_addr_t.
49193
49194 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49195 string.
49196
49197 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49198
49199 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49200 to char *.
49201
49202 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49203
49204 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49205
49206 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49207
49208 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49209 to grub_off_t, to detect an error from grub_file_seek.
49210 (grub_multiboot_load_elf32): Likewise.
49211
49212 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49213 maximum unsigned long value when an overflow is detected.
49214 (grub_strtoull): New function.
49215 (grub_divmod64): Likewise.
49216 (grub_lltoa): use grub_divmod64.
49217
49218 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49219 grub_disk_addr_t.
49220 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49221 the pointer to next character. Use grub_strtoull instead of
49222 grub_strtoul.
49223 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49224 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49225 respectively.
49226
49227 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49228 return value is signed.
49229 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49230 test if OFFSET is less than zero, as OFFSET is unsigned now.
49231
49232 * kern/disk.c (struct grub_disk_cache): Change the type of
49233 "sector" to grub_disk_addr_t.
49234 (grub_disk_cache_get_index): Change the type of SECTOR to
49235 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49236 unsigned after shifting.
49237 (grub_disk_cache_invalidate): Change the type of SECTOR to
49238 grub_disk_addr_t.
49239 (grub_disk_cache_unlock): Likewise.
49240 (grub_disk_cache_store): Likewise.
49241 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49242 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49243 grub_disk_addr_t and grub_uint64_t, respectively.
49244 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49245 body, as the value of OFFSET is tweaked by
49246 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49247 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49248 respectively.
49249 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49250 body, as the value of OFFSET is tweaked by
49251 grub_disk_check_range. Change the types of LEN and N to
49252 grub_size_t.
49253
49254 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49255 and "saved_offset" to grub_off_t.
49256 (test_header): Cast BUF to char *.
49257 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49258 to char *.
49259 (grub_gzio_read): Change the types of OFFSET and SIZE to
49260 grub_off_t and grub_size_t, respectively.
49261
49262 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49263 Removed.
49264 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49265 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49266 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49267 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49268 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49269
49270 * include/grub/types.h (grub_off_t): Unconditionally set to
49271 grub_uint64_t.
49272 (grub_disk_addr_t): Changed to grub_uint64_t.
49273
49274 * include/grub/partition.h (struct grub_partition): Change the
49275 types of "start", "len" and "offset" to grub_disk_addr_t,
49276 grub_uint64_t and grub_disk_addr_t, respectively.
49277 (grub_partition_get_start): Return grub_disk_addr_t.
49278 (grub_partition_get_len): Return grub_uint64_t.
49279
49280 * include/grub/misc.h (grub_strtoull): New prototype.
49281 (grub_divmod64): Likewise.
49282
49283 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49284 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49285 grub_off_t, respectively.
49286 All callers and references changed.
49287
49288 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49289 grub_size_t in "read".
49290 All callers and references changed.
49291
49292 * include/grub/file.h (struct grub_file): Change the types of
49293 "offset" and "size" to grub_off_t and grub_off_t,
49294 respectively. Change the type of SECTOR to grub_disk_addr_t in
49295 "read_hook".
49296 (grub_file_read): Change the type of LEN to grub_size_t.
49297 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49298 grub_off_t.
49299 (grub_file_size): Return grub_off_t.
49300 (grub_file_tell): Likewise.
49301 All callers and references changed.
49302
49303 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49304 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49305 "write".
49306 (struct grub_disk): Change the type of "total_sectors" to
49307 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49308 "read_hook".
49309 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49310 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49311 (grub_disk_write): Likewise.
49312 All callers and references changed.
49313
49314 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49315 char * for grub_strncmp to silence gcc.
49316 (grub_iso9660_mount): Likewise.
49317 (grub_iso9660_mount): Likewise.
49318 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49319 return statement.
49320 (grub_iso9660_iterate_dir): Likewise.
49321 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49322
49323 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49324 LEN to grub_disk_addr_t and grub_size_t, respectively.
49325
49326 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49327
49328 * fs/jfs.c (grub_jfs_read_file): Likewise.
49329
49330 * fs/minix.c (grub_jfs_read_file): Likewise.
49331
49332 * fs/sfs.c (grub_jfs_read_file): Likewise.
49333
49334 * fs/ufs.c (grub_jfs_read_file): Likewise.
49335
49336 * fs/xfs.c (grub_jfs_read_file): Likewise.
49337
49338 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49339 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49340 respectively.
49341
49342 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49343 BLKNR to -1 instead of returning GRUB_ERRNO.
49344 (grub_ext2_read_file): Change the types of SECTOR and
49345 LEN to grub_disk_addr_t and grub_size_t, respectively.
49346
49347 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49348 LEN to grub_disk_addr_t and grub_size_t, respectively.
49349
49350 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49351 grub_file_read.
49352
49353 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49354 string. Do not cast SECTOR explicitly.
49355
49356 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49357 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49358 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49359 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49360 over 2TB and LBA mode is not supported, raise an error.
49361 (get_safe_sectors): New function.
49362 (grub_biosdisk_read): Use get_safe_sectors.
49363 (grub_biosdisk_write): Likewise.
49364
49365 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49366 (grub_efidisk_write): Likewise.
49367
49368 * disk/loopback.c (delete_loopback): Cosmetic changes.
49369 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49370 correctly.
49371 (grub_loopback_open): Likewise.
49372 (grub_loopback_read): Likewise. Also, change the type of POS to
49373 grub_off_t, and fix the usage of grub_memset.
49374
49375 * commands/i386/pc/play.c: Include grub/machine/time.h.
49376
49377 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49378 print FILE->SIZE.
49379
49380 * commands/configfile.c: Include grub/env.h.
49381
49382 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49383 GRUB_ERRNO directly instead. Change the type of POS to
49384 grub_off_t. Follow the coding standard.
49385
49386 * commands/blocklist.c: Include grub/partition.h.
49387 (grub_cmd_blocklist): Return an error if the underlying device is
49388 not a disk. Take the starting sector of a partition into account,
49389 if a partition is used.
49390
49391 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49392 a length field.
49393 (lba_mode): Support 64-bit addresses.
49394 (chs_mode): Likewise.
49395 (copy_buffer): Adapted to the new offsets of a length field and a
49396 segment field.
49397 (blocklist_default_start): Allocate 64-bit space.
49398
49399 * boot/i386/pc/boot.S (force_lba): Removed.
49400 (boot_drive): Moved to under KERNEL_SECTOR.
49401 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49402 space.
49403 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49404 is useless.
49405 (lba_mode): Refactored to support a 64-bit address. More size
49406 optimization.
49407 (setup_sectors): Likewise.
49408
49409 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49410
49411 * DISTLIST: Added include/grub/i386/linux.h. Removed
49412 include/grub/i386/pc/linux.h
49413
49414 * configure.ac (AC_INIT): Bumped to 1.94.
49415
49416 * config.guess: Updated from gnulib.
49417 * config.sub: Likewise.
49418 * install-sh: Likewise.
49419 * mkinstalldirs: Likewise.
49420
49421 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49422
49423 * conf/common.rmk (grub_modules_init.lst): Depended on
49424 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49425 MODSRCFILES.
49426
49427 * genmk.rb (PModule::rule): Reverted the previous change.
49428
49429 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49430
49431 * conf/common.rmk (grub_modules_init.lst): Depends on
49432 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49433 that the target does not exist before producing.
49434 (grub_modules_init.h): Remove the target before generating.
49435 (grub_emu_init.c): Likewise.
49436
49437 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49438
49439 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49440
49441 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49442 for the target-specific tests. Make sure that we also have the
49443 up-to-date target variables for those tests.
49444
49445 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49446
49447 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49448 (PModule::rule): Likewise.
49449
49450 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49451
49452 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49453 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49454 target-specific flags should be prefixed.
49455 (PModule::rule): Likewise.
49456
49457 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49458
49459 * configure.ac (CMP): Check if cmp is available explicitly.
49460
49461 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49462
49463 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49464 (target_cpu): New variable.
49465 (pkglibdir): Use target_cpu instead of host_cpu.
49466
49467 * util/i386/pc/grub-install.in (host_cpu): Removed.
49468 (target_cpu): New variable.
49469 (pkglibdir): Use target_cpu instead of host_cpu.
49470
49471 * util/genmoddep.c: Removed.
49472
49473 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49474 instead of GRUB_HOST_SIZEOF_VOID_P.
49475 * kern/dl.c: Likewise.
49476
49477 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49478 ...
49479 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49480 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49481 (GRUB_TARGET_SIZEOF_LONG): ... this.
49482 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49483 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49484 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49485 to ...
49486 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49487 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49488 (GRUB_TARGET_SIZEOF_LONG): ... this.
49489 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49490 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49491 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49492 to ...
49493 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49494 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49495 (GRUB_TARGET_SIZEOF_LONG): ... this.
49496 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49497 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49498
49499 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49500 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49501 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49502 instead of GRUB_HOST_SIZEOF_LONG.
49503 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49504 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49505 GRUB_CPU_WORDS_BIGENDIAN.
49506 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49507 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49508 grub_host_ssize_t.
49509
49510 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49511 (genmoddep_SOURCES): Likewise.
49512 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49513 (genmoddep_SOURCES): Likewise.
49514 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49515 (genmoddep_SOURCES): Likewise.
49516 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49517 Likewise.
49518 (genmoddep_SOURCES): Likewise.
49519
49520 * genmoddep.awk: New file.
49521
49522 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49523 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49524 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49525 (PModule::rule): Likewise.
49526 (Program::rule): Likewise.
49527 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49528 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49529 respectively.
49530
49531 * configure.ac: Rewritten intensively to use host and target
49532 instead of build and host, respectively.
49533
49534 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49535 (host_cpu): Removed.
49536 (target_cpu): New variable.
49537 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49538 (BUILD_CC): Removed.
49539 (BUILD_CFLAGS): Likewise.
49540 (BUILD_CPPFLAGS): Likewise.
49541 (TARGET_CC): New variable.
49542 (TARGET_CFLAGS): Likewise.
49543 (TARGET_CPPFLAGS): Likewise.
49544 (TARGET_LDFLAGS): Likewise.
49545 (AWK): Likewise.
49546 (include): Use target_cpu instead of host_cpu.
49547 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49548
49549 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49550
49551 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49552
49553 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49554 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49555 field 'false' to 'exec_on_false'.
49556 (grub_script_create_cmdif): Renamed argument names to reflect above
49557 changes.
49558
49559 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49560
49561 * normal/script.c (grub_script_create_cmdif): Likewise.
49562
49563 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49564
49565 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49566 top.
49567 (grub_hfsplus_btree_recptr): Likewise.
49568 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49569 FILEBLOCK both to pass a block number and store next block
49570 number.
49571 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49572 overflow file correctly. Specify errors appropriately, because
49573 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49574 grub_hfsplus_btree_recptr to get the pointer to a found key.
49575 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49576 is found.
49577
49578 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49579 linux.mod.
49580 (_linux_mod_SOURCES): New variable.
49581 (_linux_mod_CFLAGS): Likewise.
49582 (_linux_mod_LDFLAGS): Likewise.
49583 (linux_mod_SOURCES): Likewise.
49584 (linux_mod_CFLAGS): Likewise.
49585 (linux_mod_LDFLAGS): Likewise.
49586
49587 * DISTLIST: Added loader/i386/efi/linux.c,
49588 loader/i386/efi/linux_normal.c and
49589 include/grub/i386/efi/loader.h.
49590
49591 * loader/i386/efi/linux.c: New file.
49592 * loader/i386/efi/linux_normal.c: Likewise.
49593 * include/grub/i386/efi/loader.h: Likewise.
49594
49595 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49596
49597 * commands/blocklist.c: New file.
49598
49599 * DISTLIST: Added commands/blocklist.c.
49600
49601 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49602 color for the background, and a darker color for the foreground.
49603 (grub_console_checkkey): Return READ_KEY.
49604 (grub_console_cls): Set the background to
49605 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49606
49607 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49608
49609 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49610 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49611
49612 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49613 prototype.
49614
49615 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49616 BG. The spec is wrong again.
49617
49618 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49619 prototype.
49620 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49621
49622 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49623 commands/blocklist.c.
49624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49625
49626 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49627 (blocklist_mod_SOURCES): New variable.
49628 (blocklist_mod_CFLAGS): Likewise.
49629 (blocklist_mod_LDFLAGS): Likewise.
49630
49631 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49632
49633 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49634 duplication.
49635 (lba_mode): Use %eax more intensively to reduce the code size.
49636
49637 2006-05-20 Marco Gerards <marco@gnu.org>
49638
49639 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49640
49641 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49642 for `menuentry'.
49643 (script): Accept leading newlines.
49644 (newlines): New rule to describe 0 or more newlines.
49645 (commands): Accept `command' with trailing newline. Fixed the
49646 order in which arguments were passed to `grub_script_add_cmd'.
49647 Accept commands separated by newlines.
49648 (function): Changed to accept newlines.
49649 (menuentry) Rewritten.
49650
49651 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49652 front of the list, instead of to the end.
49653
49654 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49655
49656 * util/i386/pc/grub-install.in (bindir): New variable.
49657 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49658 Shaver <lbgwjl@gmail.com>.
49659
49660 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49661
49662 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49663 grub/machine/linux.h
49664 * loader/i386/pc/linux.c: Likewise.
49665
49666 * include/grub/i386/pc/linux.h: Moved to ...
49667 * include/grub/i386/linux.h: ... here.
49668
49669 * include/grub/i386/linux.h (struct linux_kernel_params): New
49670 struct.
49671
49672 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49673
49674 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49675 checking.
49676 (grub_video_vbe_blit_glyph): Likewise.
49677 (grub_video_vbe_blit_bitmap): Likewise.
49678 (grub_video_vbe_blit_render_target): Likewise.
49679
49680 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49681
49682 * configure.ac (--with-platform): Properly quote the square
49683 brackets.
49684
49685 2006-05-08 Marco Gerards <marco@gnu.org>
49686
49687 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49688 this...
49689 (kernel_elf_HEADERS): ...to this. Updated all users.
49690 (grubof_symlist.c): Renamed from this...
49691 (kernel_elf_symlist.c): ...to this. Updated all users.
49692 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49693 (grubof_SOURCES): Renamed from this...
49694 (kernel_elf_SOURCES): ...to this.
49695 (grubof_HEADERS): Renamed from this...
49696 (kernel_elf_HEADERS): ...to this.
49697 (grubof_CFLAGS): Renamed from this...
49698 (kernel_elf_CFLAGS): ...to this.
49699 (grubof_ASFLAGS): Renamed from this...
49700 (kernel_elf_ASFLAGS): ...to this.
49701 (grubof_LDFLAGS): Renamed from this...
49702 (kernel_elf_LDFLAGS): ...to this.
49703
49704 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49705 this...
49706 (kernel_elf_HEADERS): ...to this. Updated all users.
49707 (grubof_symlist.c): Renamed from this...
49708 (kernel_elf_symlist.c): ...to this. Updated all users.
49709 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49710 (grubof_SOURCES): Renamed from this...
49711 (kernel_elf_SOURCES): ...to this.
49712 (grubof_HEADERS): Renamed from this...
49713 (kernel_elf_HEADERS): ...to this.
49714 (grubof_CFLAGS): Renamed from this...
49715 (kernel_elf_CFLAGS): ...to this.
49716 (grubof_ASFLAGS): Renamed from this...
49717 (kernel_elf_ASFLAGS): ...to this.
49718 (grubof_LDFLAGS): Renamed from this...
49719 (kernel_elf_LDFLAGS): ...to this.
49720
49721 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49722 `kernel.elf' instead of `grubof'.
49723
49724 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49725
49726 Add --with-platform to configure. Use pkglibdir instead of
49727 pkgdatadir. This is reported by Roger Leigh.
49728
49729 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49730 (host_vendor): Likewise.
49731 (host_os): Likewise.
49732 (pkgdatadir): Likewise.
49733 (platform): New variable.
49734 (pkglibdir): Likewise.
49735 Use PKGLIBDIR instead of PKGDATADIR.
49736
49737 * util/i386/pc/grub-install.in (datadir): Removed.
49738 (host_vendor): Likewise.
49739 (host_os): Likewise.
49740 (pkgdatadir): Likewise.
49741 (platform): New variable.
49742 (pkglibdir): Likewise.
49743 Use PKGLIBDIR instead of PKGDATADIR.
49744
49745 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49746 instead of GRUB_DATADIR.
49747 (main): Likewise.
49748 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49749 (main): Likewise.
49750 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49751 (main): Likewise.
49752
49753 * configure.ac (--with-platform): New option.
49754 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49755
49756 * Makefile.in: Include a makefile based on PLATFORM instead of
49757 HOST_VENDOR.
49758 (pkgdatadir): Not appended by the machine type.
49759 (pkglibdir): Appended by the machine type.
49760 (host_vendor): Removed.
49761 (platform): New variable.
49762 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49763 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49764 (uninstall): Likewise.
49765
49766 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49767
49768 Use the environment context in the menu. Remove the commands
49769 "default" and "timeout", and use variables instead.
49770
49771 * normal/menu.c: Include grub/env.h.
49772 (print_entry): Cast TITLE to silence gcc.
49773 (get_timeout): New function.
49774 (set_timeout): Likewise.
49775 (get_entry_number): Likewise.
49776 (run_menu): Use a default entry, a fallback entry and a timeout
49777 in the environment variables "default", "fallback" and
49778 "timeout". Also, tweak the default entry if it is not within the
49779 current menu entries.
49780 (grub_menu_run): Use a fallback entry in the environment variable
49781 "fallback".
49782
49783 * normal/main.c (read_config_file): Do not initialize
49784 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49785 NEWMENU->TIMEOUT.
49786 (grub_normal_execute): Use a data slot to store the menu.
49787
49788 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49789 fallback_entry and timeout.
49790 (struct grub_menu_list): Removed.
49791 (grub_menu_list_t): Likewise.
49792 (struct grub_context): Likewise.
49793 (grub_context_t): Likewise.
49794 (grub_context_get): Likewise.
49795 (grub_context_get_current_menu): Likewise.
49796 (grub_context_push_menu): Likewise.
49797 (grub_context_pop_menu): Likewise.
49798 (grub_default_init): Likewise.
49799 (grub_default_fini): Likewise.
49800 (grub_timeout_init): Likewise.
49801 (grub_timeout_fini): Likewise.
49802
49803 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49804 and timeout.mod.
49805 (normal_mod_SOURCES): Removed normal/context.c.
49806
49807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49808 commands/default.c, commands/timeout.c and normal/context.c.
49809 (normal_mod_SOURCES): Removed normal/context.c.
49810
49811 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49812 commands/timeout.c and normal/context.c.
49813 (normal_mod_SOURCES): Removed normal/context.c.
49814
49815 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49816 commands/default.c, commands/timeout.c and normal/context.c.
49817 (normal_mod_SOURCES): Removed normal/context.c.
49818
49819 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49820 timeout.mod.
49821 (default_mod_SOURCES): Removed.
49822 (default_mod_CFLAGS): Likewise.
49823 (default_mod_LDFLAGS): Likewise.
49824 (timeout_mod_SOURCES): Removed.
49825 (timeout_mod_CFLAGS): Likewise.
49826 (timeout_mod_LDFLAGS): Likewise.
49827
49828 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49829 normal/context.c.
49830
49831 * commands/default.c: Removed.
49832 * commands/timeout.c: Likewise.
49833 * normal/context.c: Likewise.
49834
49835 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49836
49837 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49838
49839 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49840
49841 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49842 "next" to "prev" for readability.
49843 (struct grub_env_sorted_var): New struct.
49844 (grub_env_context): Renamed to ...
49845 (initial_context): ... this.
49846 (grub_env_var_context): Renamed to ...
49847 (current_context): ... this.
49848 (grub_env_find): Look only at CURRENT_CONTEXT.
49849 (grub_env_context_open): Rewritten to copy exported variables from
49850 previous context.
49851 (grub_env_context_close): Rewritten according to the new
49852 scheme. Also, add an assertion to prevent the initial context from
49853 removed.
49854 (grub_env_insert): Removed the code for the sorted list.
49855 (grub_env_remove): Likewise.
49856 (grub_env_export): Simply mark the variable with
49857 GRUB_ENV_VAR_GLOBAL.
49858 (grub_env_set): A cosmetic change for naming consistency.
49859 (grub_env_get): Likewise.
49860 (grub_env_unset): Likewise.
49861 (grub_env_iterate): Rewritten to sort variables within this
49862 function.
49863 (grub_register_variable_hook): Fixed for naming consistency. Call
49864 grub_env_find again, only if NAME is not found at the first time.
49865 (mangle_data_slot_name): New function.
49866 (grub_env_set_data_slot): Likewise.
49867 (grub_env_get_data_slot): Likewise.
49868 (grub_env_unset_data_slot): Likewise.
49869
49870 * include/grub/env.h (grub_env_var_type): New enum.
49871 (GRUB_ENV_VAR_LOCAL): New constant.
49872 (GRUB_ENV_VAR_GLOBAL): Likewise.
49873 (GRUB_ENV_VAR_DATA): Likewise.
49874 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49875 "type".
49876 (grub_env_set): Replace VAR with NAME for consistency.
49877 (grub_register_variable_hook): Likewise.
49878 (grub_env_export): Specify the name of the argument.
49879 (grub_env_set_data_slot): New prototype.
49880 (grub_env_get_data_slot): Likewise.
49881 (grub_env_unset_data_slot): Likewise.
49882
49883 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49884
49885 Extend the loader so that GRUB can accept a loader which comes
49886 back to GRUB when a loaded image exits. Also, this change adds
49887 support for a chainloader on EFI.
49888
49889 * term/efi/console.c: Include grub/misc.h.
49890 (grub_console_checkkey): Display a scan code on the top for
49891 debugging. This will be removed once the EFI port gets stable.
49892 Correct the scan code mapping.
49893
49894 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49895 allocate memory from larger regions, in order to reduce the number
49896 of allocated regions. Otherwise, the MacOSX loader panics.
49897 (filter_memory_map): Avoid less than 1MB for compatibility with
49898 other loaders.
49899 (add_memory_regions): Allocate from the tail of a region, if
49900 possible, to avoid allocating a region near to 1MB, for the MacOSX
49901 loader.
49902
49903 * kern/efi/init.c (grub_efi_set_prefix): Specify
49904 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49905
49906 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49907 argument IMAGE_HANDLE and specify it to get a loaded image.
49908 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49909 grub_efi_get_loaded_image.
49910 (grub_efi_get_filename): Divide the length by the size of
49911 grub_efi_char16_t.
49912 (grub_efi_get_device_path): New function.
49913 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49914 the length by the size of grub_efi_char16_t for a file path device
49915 path node.
49916
49917 * kern/loader.c (grub_loader_noreturn): New variable.
49918 (grub_loader_set): Accept a new argument NORETURN. Set
49919 GRUB_LOADER_NORETURN to NORETURN.
49920 All callers changed.
49921 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49922 grub_machine_fini.
49923
49924 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49925 prototype.
49926 (grub_efi_get_loaded_image): Take an argument to specify an image
49927 handle.
49928
49929 * include/grub/loader.h (grub_loader_set): Added one more argument
49930 NORETURN.
49931
49932 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
49933 instead of grub_efi_open_protocol.
49934 (grub_efidisk_get_device_name): Likewise.
49935 (grub_efidisk_close): Print a newline.
49936 (grub_efidisk_get_device_handle): Fixed to use
49937 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
49938 GRUB_EFI_DEVICE_PATH_TYPE.
49939
49940 * disk/efi/efidisk.c (device_path_guid): Moved to ...
49941 * kern/efi/efi.c (device_path_guid): ... here.
49942
49943 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
49944 chain.mod.
49945 (kernel_mod_HEADERS): Added efi/disk.h.
49946 (_chain_mod_SOURCES): New variable.
49947 (_chain_mod_CFLAGS): Likewise.
49948 (_chain_mod_LDFLAGS): Likewise.
49949 (chain_mod_SOURCES): Likewise.
49950 (chain_mod_CFLAGS): Likewise.
49951 (chain_mod_LDFLAGS): Likewise.
49952
49953 * DISTLIST: Added include/grub/efi/chainloader.h,
49954 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
49955
49956 * include/grub/efi/chainloader.h: New file.
49957 * loader/efi/chainloader.c: Likewise.
49958 * loader/efi/chainloader_normal.c: Likewise.
49959
49960 2006-04-30 Marco Gerards <marco@gnu.org>
49961
49962 * commands/configfile.c (grub_cmd_source): New function.
49963 (GRUB_MOD_INIT): Register the commands `source' and `.'.
49964 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
49965
49966 2006-04-30 Marco Gerards <marco@gnu.org>
49967
49968 * normal/execute.c (grub_script_execute_cmd): Change the return
49969 type to `grub_err_t'. Correctly return the error.
49970 (grub_script_execute_cmdline): In case a command line is not a
49971 command or a function, try to interpret it as an assignment.
49972
49973 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49974
49975 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
49976 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
49977 skip a node whose name is obviously invalid as UTF-16,
49978 i.e. contains a NUL character. Stop the iteration when the last
49979 directory entry is found. Instead of using the return value of
49980 grub_hfsplus_btree_iterate_node, store the value in RET and use
49981 it, because the iterator can be stopped by the last directory
49982 entry.
49983
49984 2006-04-30 Marco Gerards <marco@gnu.org>
49985
49986 * include/grub/env.h (grub_env_export): New prototype. Reported
49987 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
49988
49989 2006-04-30 Marco Gerards <marco@gnu.org>
49990
49991 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
49992 size of the extents in a catalog file record.
49993
49994 2006-04-29 Marco Gerards <marco@gnu.org>
49995
49996 * commands/configfile.c (grub_cmd_configfile): Execute the
49997 configfile within its own context.
49998
49999 * include/grub/env.h (grub_env_context_open): New prototype.
50000 (grub_env_context_close): Likewise.
50001
50002 * kern/env.c (grub_env): Removed.
50003 (grub_env_sorted): Likewise.
50004 (grub_env_context): New variable.
50005 (grub_env_var_context): Likewise.
50006 (grub_env_find): Search both the active context and the global
50007 context.
50008 (grub_env_context_open): New function.
50009 (grub_env_context_close): Likewise.
50010 (grub_env_insert): Likewise.
50011 (grub_env_remove): Likewise.
50012 (grub_env_export): Likewise.
50013 (grub_env_set): Changed to use helper functions to avoid code
50014 duplication.
50015 (grub_env_iterate): Rewritten so both the current context and the
50016 global context are being used.
50017
50018 * normal/command.c (export_command): New function.
50019 (grub_command_init): Register the `export' function.
50020
50021 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50022
50023 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50024 explicitly to suppress gcc's warnings.
50025 * fs/fat.c (grub_fat_find_dir): Likewise.
50026 (grub_fat_label): Likewise.
50027 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50028 (grub_xfs_mount): Likewise.
50029 (grub_xfs_label): Likewise.
50030 * fs/affs.c (grub_affs_mount): Likewise.
50031 (grub_affs_label): Likewise.
50032 (grub_affs_iterate_dir): Likewise.
50033 * fs/sfs.c (grub_sfs_mount): Likewise.
50034 (grub_sfs_iterate_dir): Likewise.
50035 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50036 * fs/hfs.c (grub_hfs_mount): Likewise.
50037 (grub_hfs_cmp_catkeys): Likewise.
50038 (grub_hfs_find_dir): Likewise.
50039 (grub_hfs_dir): Likewise.
50040 (grub_hfs_label): Likewise.
50041 * fs/jfs.c (grub_jfs_mount): Likewise.
50042 (grub_jfs_opendir): Likewise.
50043 (grub_jfs_getent): Likewise.
50044 (grub_jfs_lookup_symlink): Likewise.
50045 (grub_jfs_label): Likewise.
50046 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50047 (grub_hfsplus_iterate_dir): Likewise.
50048 (grub_hfsplus_btree_iterate_node): Made static.
50049
50050 * util/grub-emu.c (prefix): New variable.
50051 (grub_machine_set_prefix): New function.
50052 (main): Do not set the environment variable "prefix" here. Only
50053 set PREFIX, which is used later by grub_machine_set_prefix.
50054
50055 * include/grub/video.h: Do not include grub/symbol.h.
50056 (grub_video_register): Not exported. This symbol is not defined in
50057 the kernel.
50058 (grub_video_unregister): Likewise.
50059 (grub_video_iterate): Likewise.
50060 (grub_video_setup): Likewise.
50061 (grub_video_restore): Likewise.
50062 (grub_video_get_info): Likewise.
50063 (grub_video_get_blit_format): Likewise.
50064 (grub_video_set_palette): Likewise.
50065 (grub_video_get_palette): Likewise.
50066 (grub_video_set_viewport): Likewise.
50067 (grub_video_get_viewport): Likewise.
50068 (grub_video_map_color): Likewise.
50069 (grub_video_map_rgb): Likewise.
50070 (grub_video_map_rgba): Likewise.
50071 (grub_video_fill_rect): Likewise.
50072 (grub_video_blit_glyph): Likewise.
50073 (grub_video_blit_bitmap): Likewise.
50074 (grub_video_blit_render_target): Likewise.
50075 (grub_video_scroll): Likewise.
50076 (grub_video_swap_buffers): Likewise.
50077 (grub_video_create_render_target): Likewise.
50078 (grub_video_delete_render_target): Likewise.
50079 (grub_video_set_active_render_target): Likewise.
50080
50081 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50082 Undefined.
50083 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50084
50085 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50086 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50087 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50088 instead of $(srcdir)/genkernsyms.sh.
50089
50090 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50091 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50092 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50093 instead of $(srcdir)/genkernsyms.sh.
50094
50095 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50096 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50097 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50098 instead of $(srcdir)/genkernsyms.sh.
50099
50100 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50101 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50102 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50103 instead of $(srcdir)/genkernsyms.sh.
50104
50105 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50106 genkernsyms.sh.
50107
50108 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50109 genkernsyms.sh.
50110 (gensymlist.sh): New target.
50111 (genkernsyms.sh): Likewise.
50112
50113 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50114 genkernsyms.sh.in and gensymlist.sh.in.
50115
50116 * genkernsyms.sh: Removed.
50117 * gensymlist.sh: Likewise.
50118
50119 * genkernsyms.sh.in: New file.
50120 * gensymlist.sh.in: Likewise.
50121
50122 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50123
50124 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50125 clobber "prefix", since we may have already set it manually.
50126
50127 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50128
50129 * kern/misc.c (abort): New alias for grub_abort.
50130
50131 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50132
50133 A new machine-specific function "grub_machine_set_prefix" is
50134 defined. This is called after loading modules, so that a prefix
50135 initialization can use modules. Also, this change adds an
50136 intensive debugging feature for the memory manager via the
50137 configure option "--enable-mm-debug".
50138
50139 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50140 PART.LEN.
50141
50142 * kern/sparc64/ieee1275/init.c (abort): Removed.
50143 (grub_stop): Likewise.
50144 (grub_exit): New function.
50145 (grub_set_prefix): Renamed to ...
50146 (grub_machine_set_prefix): ... this.
50147 (grub_machine_init): Do not call grub_set_prefix.
50148
50149 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50150 (grub_machine_set_prefix): ... this.
50151 (grub_machine_init): Do not call grub_set_prefix.
50152
50153 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50154 (grub_machine_init): Do not set the prefix here.
50155
50156 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50157
50158 * kern/efi/init.c: Include grub/mm.h.
50159 (grub_efi_set_prefix): New function.
50160
50161 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50162 (grub_efi_get_filename): New function.
50163 (grub_print_device_path): Renamed to ...
50164 (grub_efi_print_device_path): ... this.
50165
50166 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50167 [MM_DEBUG] (grub_realloc): Likewise.
50168 [MM_DEBUG] (grub_free): Likewise.
50169 [MM_DEBUG] (grub_memalign): Likewise.
50170 [MM_DEBUG] (grub_mm_debug): New variable.
50171 [MM_DEBUG] (grub_debug_malloc): New function.
50172 [MM_DEBUG] (grub_debug_free): New function.
50173 [MM_DEBUG] (grub_debug_realloc): New function.
50174 [MM_DEBUG] (grub_debug_memalign): New function.
50175
50176 * kern/misc.c (grub_abort): Print a newline to distinguish
50177 the message.
50178
50179 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50180 grub_set_root_dev after loading modules. This is necessary when
50181 setting a prefix depends on modules.
50182
50183 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50184 (grub_efi_print_device_path): ... this.
50185 (grub_efi_get_filename): New prototype.
50186 (grub_efi_set_prefix): Likewise.
50187
50188 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50189 and grub/disk.h.
50190 (grub_efidisk_get_device_handle): New prototype.
50191 (grub_efidisk_get_device_name): Likewise.
50192
50193 * include/grub/mm.h: Include config.h.
50194 (MM_DEBUG): Removed.
50195 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50196 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50197 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50198 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50199 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50200 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50201 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50202 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50203 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50204
50205 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50206
50207 * disk/efi/efidisk.c: Include grub/partition.h.
50208 (iterate_child_devices): New function.
50209 (add_device): First, compare only last device path nodes, so that
50210 devices are sorted by the types.
50211 (grub_efidisk_get_device_handle): New function.
50212 (grub_efidisk_get_device_name): Likewise.
50213
50214 * configure.ac (--enable-mm-debug): New option to enable the
50215 memory manager debugging feature. This makes the binary much
50216 bigger, so is disabled by default.
50217
50218 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50219
50220 Use grub_abort instead of grub_stop, and grub_exit must be
50221 define in each architecture now. Also, this change adds support
50222 for EFI disks.
50223
50224 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50225 (grub_getkey): New function.
50226 (grub_term_get_current): Likewise.
50227
50228 * util/i386/pc/grub-setup.c: Include grub/term.h.
50229 (grub_getkey): New function.
50230 (grub_term_get_current): Likewise.
50231
50232 * util/misc.c (grub_stop): Renamed to ...
50233 (grub_exit): ... this.
50234
50235 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50236 (grub_exit): ... this.
50237 (grub_machine_init): Use grub_abort instead of abort.
50238 (grub_stop): Removed.
50239
50240 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50241 abort.
50242
50243 * kern/i386/pc/startup.S (grub_exit): New function.
50244 (cold_reboot): New label.
50245
50246 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50247 (grub_efi_init): Call grub_efidisk_init.
50248 (grub_efi_fini): Call grub_efidisk_fini.
50249
50250 * kern/efi/efi.c: Include grub/mm.h.
50251 (grub_efi_console_control_guid): Renamed to ...
50252 (console_control_guid): ... this.
50253 (grub_efi_loaded_image_guid): Renamed to ...
50254 (loaded_image_guid): ... this.
50255 (grub_efi_locate_handle): New function.
50256 (grub_efi_open_protocol): Likewise.
50257 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50258 GRUB_EFI_CONSOLE_CONTROL_GUID.
50259 (grub_efi_exit): Removed.
50260 (grub_stop): Likewise.
50261 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50262 (grub_exit): New function.
50263 (grub_print_device_path): Likewise.
50264
50265 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50266 (grub_enter_rescue_mode): Register "exit".
50267
50268 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50269 (grub_abort): New function.
50270
50271 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50272
50273 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50274
50275 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50276
50277 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50278 (grub_print_device_path): New prototype.
50279 (grub_efi_locate_handle): Likewise.
50280 (grub_efi_open_protocol): Likewise.
50281
50282 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50283 * disk/efi/efidisk.c: Likewise.
50284
50285 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50286
50287 * include/grub/efi/console_control.h
50288 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50289
50290 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50291 last 8 bytes as an array.
50292 (GRUB_EFI_DISK_IO_GUID): New macro.
50293 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50294 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50295 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50296 grub_uint8_t.
50297 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50298 (struct grub_efi_device_path): Rename the member "sub_type" to
50299 "subtype".
50300 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50301 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50302 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50303 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50304 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50305 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50306 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50307 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50308 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50309 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50310 (struct grub_efi_pci_device_path): New structure.
50311 (grub_efi_pci_device_path_t): New type.
50312 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50313 (struct grub_efi_pccard_device_path): New structure.
50314 (grub_efi_pccard_device_path_t): New type.
50315 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50316 (struct grub_efi_memory_mapped_device_path): New structure.
50317 (grub_efi_memory_mapped_device_path_t): New type.
50318 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50319 (struct grub_efi_vendor_device_path): New structure.
50320 (grub_efi_vendor_device_path_t): New type.
50321 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50322 (struct grub_efi_controller_device_path): New structure.
50323 (grub_efi_controller_device_path_t): New type.
50324 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50325 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50326 (struct grub_efi_acpi_device_path): New structure.
50327 (grub_efi_acpi_device_path_t): New type.
50328 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50329 (struct grub_efi_expanded_acpi_device_path): New structure.
50330 (grub_efi_expanded_acpi_device_path_t): New type.
50331 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50332 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50333 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50334 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50335 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50336 (struct grub_efi_atapi_device_path): New structure.
50337 (grub_efi_atapi_device_path_t): New type.
50338 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50339 (struct grub_efi_fibre_channel_device_path): New structure.
50340 (grub_efi_fibre_channel_device_path_t): New type.
50341 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50342 (struct grub_efi_1394_device_path): New structure.
50343 (grub_efi_1394_device_path_t): New type.
50344 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50345 (struct grub_efi_usb_device_path): New structure.
50346 (grub_efi_usb_device_path_t): New type.
50347 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50348 (struct grub_efi_usb_class_device_path): New structure.
50349 (grub_efi_usb_class_device_path_t): New type.
50350 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50351 (struct grub_efi_i2o_device_path): New structure.
50352 (grub_efi_i2o_device_path_t): New type.
50353 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50354 (struct grub_efi_mac_address_device_path): New structure.
50355 (grub_efi_mac_address_device_path_t): New type.
50356 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50357 (struct grub_efi_ipv4_device_path): New structure.
50358 (grub_efi_ipv4_device_path_t): New type.
50359 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50360 (struct grub_efi_ipv6_device_path): New structure.
50361 (grub_efi_ipv6_device_path_t): New type.
50362 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50363 (struct grub_efi_infiniband_device_path): New structure.
50364 (grub_efi_infiniband_device_path_t): New type.
50365 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50366 (struct grub_efi_uart_device_path): New structure.
50367 (grub_efi_uart_device_path_t): New type.
50368 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50369 (struct grub_efi_vendor_messaging_device_path): New structure.
50370 (grub_efi_vendor_messaging_device_path_t): New type.
50371 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50372 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50373 (struct grub_efi_hard_drive_device_path): New structure.
50374 (grub_efi_hard_drive_device_path_t): New type.
50375 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50376 (struct grub_efi_cdrom_device_path): New structure.
50377 (grub_efi_cdrom_device_path_t): New type.
50378 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50379 (struct grub_efi_vendor_media_device_path): New structure.
50380 (grub_efi_vendor_media_device_path_t): New type.
50381 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50382 (struct grub_efi_file_path_device_path): New structure.
50383 (grub_efi_file_path_device_path_t): New type.
50384 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50385 (struct grub_efi_protocol_device_path): New structure.
50386 (grub_efi_protocol_device_path_t): New type.
50387 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50388 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50389 (struct grub_efi_bios_device_path): New structure.
50390 (grub_efi_bios_device_path_t): New type.
50391 (struct grub_efi_disk_io): New structure.
50392 (grub_efi_disk_io_t): New type.
50393 (struct grub_efi_block_io_media): New structure.
50394 (grub_efi_block_io_media_t): New type.
50395 (struct grub_efi_block_io): New structure.
50396 (grub_efi_block_io_t): New type.
50397
50398 * include/grub/misc.h (grub_stop): Removed.
50399 (grub_exit): New prototype.
50400 (grub_abort): Likewise.
50401
50402 * include/grub/disk.h (enum grub_disk_dev_id): Added
50403 GRUB_DISK_DEVICE_EFIDISK_ID.
50404
50405 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50406 disk/efi/efidisk.c.
50407 (kernel_syms.lst): Remove the target if an error occurs.
50408
50409 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50410
50411 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50412 as it was simply too buggy.
50413
50414 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50415
50416 * kern/misc.c (grub_lltoa): New function.
50417 (grub_vsprintf): Added support for the long long suffix,
50418 i.e. "ll".
50419
50420 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50421
50422 * Makefile.in (LDFLAGS): Add variable.
50423 (LD): Remove variable.
50424 * configure.ac: Add -m32 to LDFLAGS.
50425 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50426 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50427 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50428 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50429 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50430 variables.
50431 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50432 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50433 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50434
50435 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50436
50437 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50438 length for unknown glyph.
50439
50440 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50441
50442 Add support for pre-loaded modules into the EFI port.
50443
50444 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50445 completely. Accept one more argument DIR. The caller has changed.
50446
50447 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50448
50449 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50450 (grub_efi_loaded_image_guid): New variable.
50451 (grub_efi_get_loaded_image): New function.
50452 (grub_arch_modules_addr): Likewise.
50453
50454 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50455 prototype.
50456
50457 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50458 (struct grub_efi_loaded_image): New structure.
50459 (grub_efi_loaded_image_t): New type.
50460
50461 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50462
50463 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50464 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50465 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50466
50467 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50468
50469 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50470
50471 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50472
50473 * DISTLIST: Added include/grub/efi/console.h,
50474 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50475 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50476
50477 * include/grub/efi/console.h: New file.
50478 * include/grub/efi/time.h: Likewise.
50479 * include/grub/i386/efi/kernel.h: Likewise.
50480 * kern/efi/init.c: Likewise.
50481 * kern/efi/mm.c: Likewise.
50482 * term/efi/console.c: Likewise.
50483
50484 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50485 (grub_stop): Removed.
50486 (grub_get_rtc): Likewise.
50487 (grub_machine_init): Simply call grub_efi_init.
50488 (grub_machine_fini): Call grub_efi_fini.
50489
50490 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50491 (grub_efi_output_string): Removed.
50492 (grub_efi_stall): New function.
50493 (grub_stop): Likewise.
50494 (grub_get_rtc): Likewise.
50495
50496 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50497 (grub_efi_stall): New prototype.
50498 (grub_efi_allocate_pages): Likewise.
50499 (grub_efi_free_pages): Likewise.
50500 (grub_efi_get_memory_map): Likewise.
50501 (grub_efi_mm_init): Likewise.
50502 (grub_efi_mm_fini): Likewise.
50503 (grub_efi_init): Likewise.
50504 (grub_efi_fini): Likewise.
50505
50506 * include/grub/i386/efi/time.h: Do not include
50507 grub/symbol.h. Include grub/efi/time.h.
50508 (GRUB_TICKS_PER_SECOND): Removed.
50509 (grub_get_rtc): Likewise.
50510
50511 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50512 Added padding. The EFI spec is buggy.
50513 (GRUB_EFI_BLACK): New macro.
50514 (GRUB_EFI_BLUE): Likewise.
50515 (GRUB_EFI_GREEN): Likewise.
50516 (GRUB_EFI_CYAN): Likewise.
50517 (GRUB_EFI_RED): Likewise.
50518 (GRUB_EFI_MAGENTA): Likewise.
50519 (GRUB_EFI_BROWN): Likewise.
50520 (GRUB_EFI_LIGHTGRAY): Likewise.
50521 (GRUB_EFI_BRIGHT): Likewise.
50522 (GRUB_EFI_DARKGRAY): Likewise.
50523 (GRUB_EFI_LIGHTBLUE): Likewise.
50524 (GRUB_EFI_LIGHTGREEN): Likewise.
50525 (GRUB_EFI_LIGHTCYAN): Likewise.
50526 (GRUB_EFI_LIGHTRED): Likewise.
50527 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50528 (GRUB_EFI_YELLOW): Likewise.
50529 (GRUB_EFI_WHITE): Likewise.
50530 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50531 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50532 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50533 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50534 (GRUB_EFI_BACKGROUND_RED): Likewise.
50535 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50536 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50537 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50538 (GRUB_EFI_TEXT_ATTR): Likewise.
50539
50540 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50541 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50542 (kernel_mod_HEADERS): Added efi/time.h.
50543
50544 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50545
50546 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50547 include/grub/efi/api.h, include/grub/efi/console_control.h,
50548 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50549 include/grub/i386/efi/time.h, kern/efi/efi.c,
50550 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50551 and util/i386/efi/grub-mkimage.c.
50552
50553 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50554
50555 * genmk.rb (PModule#rule): Do not export symbols if
50556 #{prefix}_EXPORTS is set to "no".
50557
50558 * conf/i386-efi.mk: New file.
50559 * conf/i386-efi.rmk: Likewise.
50560 * include/grub/efi/api.h: Likewise.
50561 * include/grub/efi/console_control.h: Likewise.
50562 * include/grub/efi/efi.h: Likewise.
50563 * include/grub/efi/pe32.h: Likewise.
50564 * include/grub/i386/efi/time.h: Likewise.
50565 * kern/efi/efi.c: Likewise.
50566 * kern/i386/efi/init.c: Likewise.
50567 * kern/i386/efi/startup.S: Likewise.
50568 * util/i386/efi/grub-mkimage.c: Likewise.
50569
50570 2006-04-17 Marco Gerards <marco@gnu.org>
50571
50572 * include/grub/script.h: Include <grub/parser.h> and
50573 "grub_script.tab.h".
50574 (struct grub_lexer_param): New struct.
50575 (struct grub_parser_param): Likewise.
50576 (grub_script_create_arglist): Pass the state in an argument.
50577 (grub_script_add_arglist): Likewise.
50578 (grub_script_create_cmdline): Likewise.
50579 (grub_script_create_cmdblock): Likewise.
50580 (grub_script_create_cmdif): Likewise.
50581 (grub_script_create_cmdmenu): Likewise.
50582 (grub_script_add_cmd): Likewise.
50583 (grub_script_arg_add): Likewise.
50584 (grub_script_lexer_ref): Likewise.
50585 (grub_script_lexer_deref): Likewise.
50586 (grub_script_lexer_record_start): Likewise.
50587 (grub_script_lexer_record_stop): Likewise.
50588 (grub_script_mem_record): Likewise.
50589 (grub_script_mem_record_stop): Likewise.
50590 (grub_script_malloc): Likewise.
50591 (grub_script_yylex): Likewise.
50592 (grub_script_yyparse): Likewise.
50593 (grub_script_yyerror): Likewise.
50594 (grub_script_yylex): Likewise.
50595 (grub_script_lexer_init): Return the state.
50596
50597 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50598 (grub_script_lexer_done): Likewise.
50599 (grub_script_lexer_getline): Likewise.
50600 (grub_script_lexer_refs): Likewise.
50601 (script): Likewise.
50602 (newscript): Likewise.
50603 (record): Likewise.
50604 (recording): Likewise.
50605 (recordpos): Likewise.
50606 (recordlen): Likewise.
50607 (grub_script_lexer_init): Return the state instead of setting
50608 global variables.
50609 (grub_script_lexer_ref): Use the newly added argument for state
50610 instead of globals.
50611 (grub_script_lexer_deref): Likewise.
50612 (grub_script_lexer_record_start): Likewise.
50613 (grub_script_lexer_record_stop): Likewise.
50614 (recordchar): Likewise.
50615 (nextchar): Likewise.
50616 (grub_script_yylex2): Likewise.
50617 (grub_script_yylex): Likewise.
50618 (grub_script_yyerror): Likewise.
50619
50620 * normal/parser.y (func_mem): Removed variable.
50621 (menu_entry): Likewise.
50622 (err): Likewise.
50623 (%lex-param): New parser option.
50624 (%parse-param): Likewise.
50625 (script): Always return the AST.
50626 (argument): Pass the state around.
50627 (arguments): Likewise.
50628 (grubcmd): Likewise.
50629 (commands): Likewise.
50630 (function): Likewise.
50631 (menuentry): Likewise.
50632 (if_statement): Likewise.
50633 (if): Likewise.
50634
50635 * normal/script.c (grub_script_memused): Removed variable.
50636 (grub_script_parsed): Likewise.
50637 (grub_script_malloc): Added a state argument. Use that instead of
50638 global variables.
50639 (grub_script_mem_record): Likewise.
50640 (grub_script_mem_record_stop): Likewise.
50641 (grub_script_arg_add): Likewise.
50642 (grub_script_add_arglist): Likewise.
50643 (grub_script_create_cmdline): Likewise.
50644 (grub_script_create_cmdif): Likewise.
50645 (grub_script_create_cmdmenu): Likewise.
50646 (grub_script_add_cmd): Likewise.
50647 (grub_script_parse): Setup the state before calling the parser.
50648
50649 2006-04-16 Marco Gerards <marco@gnu.org>
50650
50651 * normal/command.c (grub_command_init): Remove the title command.
50652
50653 * normal/lexer.c (grub_script_yylex): Renamed from this...
50654 (grub_script_yylex2): ... to this.
50655 (grub_script_yylex): New function. Temporary
50656 introduced to filter some tokens.
50657 (grub_script_yyerror): Print a newline.
50658
50659 * normal/main.c (read_config_file): Output information about the
50660 lines that contain errors. Wait for a key after all lines have
50661 been processed. Don't return an empty menu.
50662
50663 * normal/parser.y (func_mem): Don't initialize.
50664 (menu_entry): Likewise.
50665 (err): New variable.
50666 (script): Don't return anything when an error was encountered.
50667 (ws, returns): Removed rules.
50668 (argument): Disabled concatenated variable support.
50669 (arguments): Remove explicit separators.
50670 (grubcmd): Likewise.
50671 (function): Likewise.
50672 (menuentry): Likewise.
50673 (if): Likewise.
50674 (commands): Likewise. Add error handling.
50675
50676 * normal/script.c (grub_script_create_cmdline): If
50677 `grub_script_parsed' is 0, assume the parser encountered an error.
50678
50679 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50680
50681 * configure.ac: Add support for EFI. Fix the typo
50682 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50683
50684 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50685
50686 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50687 foreign multibyte characters should be shown correctly.
50688
50689 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50690
50691 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50692 calculation.
50693 (read_config_file): Made it to close file before returning.
50694
50695 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50696
50697 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50698 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50699 video/i386/pc/vbefill.c.
50700
50701 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50702 video/i386/pc/vbefill.c.
50703
50704 * include/grub/video.h (grub_video_blit_format): New enum.
50705 (grub_video_mode_info): Added new member blit_format.
50706 (grub_video_get_blit_format): New function prototype.
50707
50708 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50709 function prototype.
50710 (grub_video_vbe_map_rgb): Likewise.
50711 (grub_video_vbe_unmap_color): Likewise.
50712
50713 * include/grub/i386/pc/vbeblit.h: New file.
50714
50715 * include/grub/i386/pc/vbefill.h: New file.
50716
50717 * video/video.c (grub_video_get_blit_format): New function.
50718 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50719 (grub_video_vbe_map_rgb): Likewise.
50720 (grub_video_vbe_unmap_color): Likewise.
50721
50722 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50723 optimized fills.
50724 (grub_video_vbe_blit_render_target): Changed to use more optimized
50725 blits.
50726 (grub_video_vbe_setup): Added detection for optimized settings.
50727 (grub_video_vbe_create_render_target): Likewise.
50728
50729 * video/i386/pc/vbeblit.c: New file.
50730
50731 * video/i386/pc/vbefill.c: New file.
50732
50733 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50734
50735 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50736 here...
50737
50738 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50739 parsing to support both hex and dec ranges. If filename was missing
50740 show usage information.
50741
50742 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50743
50744 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50745 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50746
50747 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50748 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50749 (video_mod_SOURCES): Added.
50750 (video_mod_CFLAGS): Likewise.
50751 (video_mod_LDFLAGS): Likewise.
50752 (gfxterm_mod_SOURCES): Likewise.
50753 (gfxterm_mod_CFLAGS): Likewise.
50754 (gfxterm_mod_LDFLAGS): Likewise.
50755 (videotest_mod_SOURCES): Likewise.
50756 (videotest_mod_CFLAGS): Likewise.
50757 (videotest_mod_LDFLAGS): Likewise.
50758 (vesafb_mod_SOURCES): Removed.
50759 (vesafb_mod_CFLAGS): Likewise.
50760 (vesafb_mod_LDFLAGS): Likewise.
50761 (vga_mod_SOURCES): Likewise.
50762 (vga_mod_CFLAGS): Likewise.
50763 (vga_mod_LDFLAGS): Likewise.
50764
50765 * commands/videotest.c: New file.
50766
50767 * font/manager.c (fill_with_default_glyph): Modified to use
50768 grub_font_glyph.
50769 (grub_font_get_glyph): Likewise.
50770 (fontmanager): Renamed from this...
50771 (font_manager): ... to this.
50772
50773 * include/grub/font.h (grub_font_glyph): Added new structure.
50774 (grub_font_get_glyph): Modified to use grub_font_glyph.
50775
50776 * include/grub/misc.h (grub_abs): Added as inline function.
50777
50778 * include/grub/video.h: New file.
50779
50780 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50781 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50782 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50783 (grub_vbe_get_controller_info): Renamed from this...
50784 (grub_vbe_bios_get_controller_info): ... to this.
50785 (grub_vbe_get_mode_info): Renamed from this...
50786 (grub_vbe_bios_get_mode_info): ... to this.
50787 (grub_vbe_set_mode): Renamed from this...
50788 (grub_vbe_bios_set_mode): ... to this.
50789 (grub_vbe_get_mode): Renamed from this...
50790 (grub_vbe_bios_get_mode): ... to this.
50791 (grub_vbe_set_memory_window): Renamed from this...
50792 (grub_vbe_bios_set_memory_window): ... to this.
50793 (grub_vbe_get_memory_window): Renamed from this...
50794 (grub_vbe_bios_get_memory_window): ... to this.
50795 (grub_vbe_set_scanline_length): Renamed from this...
50796 (grub_vbe_set_scanline_length): ... to this.
50797 (grub_vbe_get_scanline_length): Renamed from this...
50798 (grub_vbe_bios_get_scanline_length): ... to this.
50799 (grub_vbe_set_display_start): Renamed from this...
50800 (grub_vbe_bios_set_display_start): ... to this.
50801 (grub_vbe_get_display_start): Renamed from this...
50802 (grub_vbe_bios_get_display_start): ... to this.
50803 (grub_vbe_set_palette_data): Renamed from this...
50804 (grub_vbe_bios_set_palette_data): ... to this.
50805 (grub_vbe_set_pixel_rgb): Removed.
50806 (grub_vbe_set_pixel_index): Likewise.
50807
50808 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50809 from this...
50810 (grub_vbe_bios_get_controller_info): ... to this.
50811 (grub_vbe_get_mode_info): Renamed from this...
50812 (grub_vbe_bios_get_mode_info): ... to this.
50813 (grub_vbe_set_mode): Renamed from this...
50814 (grub_vbe_bios_set_mode): ... to this.
50815 (grub_vbe_get_mode): Renamed from this...
50816 (grub_vbe_bios_get_mode): ... to this.
50817 (grub_vbe_set_memory_window): Renamed from this...
50818 (grub_vbe_bios_set_memory_window): ... to this.
50819 (grub_vbe_get_memory_window): Renamed from this...
50820 (grub_vbe_bios_get_memory_window): ... to this.
50821 (grub_vbe_set_scanline_length): Renamed from this...
50822 (grub_vbe_set_scanline_length): ... to this.
50823 (grub_vbe_get_scanline_length): Renamed from this...
50824 (grub_vbe_bios_get_scanline_length): ... to this.
50825 (grub_vbe_set_display_start): Renamed from this...
50826 (grub_vbe_bios_set_display_start): ... to this.
50827 (grub_vbe_get_display_start): Renamed from this...
50828 (grub_vbe_bios_get_display_start): ... to this.
50829 (grub_vbe_set_palette_data): Renamed from this...
50830 (grub_vbe_bios_set_palette_data): ... to this.
50831 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50832 getting corrupted after calling it. Added more pushes and pops.
50833 (grub_vbe_bios_set_mode): Likewise.
50834 (grub_vbe_bios_get_mode): Likewise.
50835 (grub_vbe_bios_get_memory_window): Likewise.
50836 (grub_vbe_bios_set_scanline_length): Likewise.
50837 (grub_vbe_bios_get_scanline_length): Likewise.
50838 (grub_vbe_bios_get_display_start): Likewise.
50839 (grub_vbe_bios_set_palette_data): Likewise.
50840
50841 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50842 (cl_insert): Likewise.
50843 (cl_delete): Likewise.
50844
50845 * term/gfxterm.c: New file.
50846
50847 * term/i386/pc/vesafb.c: Removed file.
50848
50849 * video/video.c: New file.
50850
50851 * video/i386/pc/vbe.c (real2pm): Added new function.
50852 (grub_video_vbe_draw_pixel): Likewise.
50853 (grub_video_vbe_get_video_ptr): Likewise.
50854 (grub_video_vbe_get_pixel): Likewise
50855 (grub_video_vbe_init): Likewise.
50856 (grub_video_vbe_fini): Likewise.
50857 (grub_video_vbe_setup): Likewise.
50858 (grub_video_vbe_get_info): Likewise.
50859 (grub_video_vbe_set_palette): Likewise.
50860 (grub_video_vbe_get_palette): Likewise.
50861 (grub_video_vbe_set_viewport): Likewise.
50862 (grub_video_vbe_get_viewport): Likewise.
50863 (grub_video_vbe_map_color): Likewise.
50864 (grub_video_vbe_map_rgb): Likewise.
50865 (grub_video_vbe_map_rgba): Likewise.
50866 (grub_video_vbe_unmap_color): Likewise.
50867 (grub_video_vbe_fill_rect): Likewise.
50868 (grub_video_vbe_blit_glyph): Likewise.
50869 (grub_video_vbe_blit_bitmap): Likewise.
50870 (grub_video_vbe_blit_render_target): Likewise.
50871 (grub_video_vbe_scroll): Likewise.
50872 (grub_video_vbe_swap_buffers): Likewise.
50873 (grub_video_vbe_create_render_target): Likewise.
50874 (grub_video_vbe_delete_render_target): Likewise.
50875 (grub_video_vbe_set_active_render_target): Likewise.
50876 (grub_vbe_set_pixel_rgb): Remove function.
50877 (grub_vbe_set_pixel_index): Likewise.
50878 (index_color_mode): Remove static variable.
50879 (active_mode): Likewise.
50880 (framebuffer): Likewise.
50881 (bytes_per_scan_line): Likewise.
50882 (grub_video_vbe_adapter): Added new static variable.
50883 (framebuffer): Likewise.
50884 (render_target): Likewise.
50885 (initial_mode): Likewise.
50886 (mode_in_use): Likewise.
50887 (mode_list): Likewise.
50888
50889 2006-03-10 Marco Gerards <marco@gnu.org>
50890
50891 * configure.ac (AC_INIT): Bumped to 1.93.
50892
50893 * DISTLIST: Added `include/grub/hfs.h'.
50894
50895 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50896
50897 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50898 18H, which might help the BIOS falling back to next boot media.
50899
50900 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50901
50902 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50903 Poe Chen <poe.poechen@gmail.com>.
50904
50905 2006-01-17 Marco Gerards <marco@gnu.org>
50906
50907 * include/grub/normal.h: Include <grub/script.h>.
50908 (grub_command_list): Removed struct.
50909 (grub_command_list_t): Removed type.
50910 (grub_menu_entry): Remove members `num' and `command_list'. Add
50911 members `commands' and `sourcecode'.
50912 * include/grub/script.h: Add inclusion guards.
50913 (grub_script_cmd_menuentry): New struct.
50914 (grub_script_execute_menuentry): New prototype.
50915 (grub_script_lexer_record_start): Likewise.
50916 (grub_script_lexer_record_stop): Likewise.
50917 * normal/execute.c (grub_script_execute_menuentry): New function.
50918 * normal/lexer.c (record, recording, recordpos, recordlen): New
50919 variables.
50920 (grub_script_lexer_record_start): New function.
50921 (grub_script_lexer_record_stop): Likewise.
50922 (recordchar): Likewise.
50923 (nextchar): Likewise.
50924 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50925 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50926 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50927 (current_menu): New variable.
50928 (free_menu): Mainly rewritten.
50929 (grub_normal_menu_addentry): New function.
50930 (read_config_file): Rewritten.
50931 * normal/menu.c (run_menu_entry): Mainly rewritten.
50932 * normal/menu_entry.c (make_screen): Rewritten the code to insert
50933 the menu entry.
50934 (run): Mainly rewritten.
50935 * normal/parser.y (menu_entry): New variable.
50936 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
50937 (menuentry): New rule.
50938 (command): Add `menuentry'.
50939 (if_statement): Allow additional returns before `fi'.
50940 * normal/script.c (grub_script_create_cmdmenu): New function.
50941
50942 2006-01-03 Marco Gerards <marco@gnu.org>
50943
50944 * INSTALL: GNU Bison is required.
50945 * configure.ac: Rewritten the test to detect Bison.
50946 * Makefile.in (YACC): New variable. Reported by Xun Sun
50947 <xun.sun.cn@gmail.com>.
50948
50949 2006-01-03 Marco Gerards <marco@gnu.org>
50950
50951 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
50952 the HFS+ filesystem to filesystem blocks.
50953 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
50954 GCC warning is silenced.
50955
50956 2006-01-03 Marco Gerards <marco@gnu.org>
50957
50958 * partmap/apple.c (apple_partition_map_iterate): Convert the data
50959 read from disk from big endian to host byte order.
50960
50961 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
50962
50963 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
50964 documentation.
50965 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
50966 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
50967 embedded HFS+ filesystem.
50968 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
50969 (grub_hfs_sblock): Move from here...
50970 * include/grub/hfs.h: To here... New file.
50971 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
50972 documentation.
50973 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
50974 New macros.
50975 (grub_hfsplus_volheader): Change type of member `magic' to
50976 `grub_uint16_t'.
50977 (grub_hfsplus_data): Add new member `embedded_offset'.
50978 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
50979 returned block.
50980 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
50981 Calculate the offset.
50982
50983 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50984
50985 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
50986 Removed.
50987 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
50988
50989 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50990
50991 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
50992 ENV->NAME is NULL after allocating ENV->VALUE.
50993
50994 2005-12-25 Marco Gerards <marco@gnu.org>
50995
50996 * kern/env.c (grub_env_set): Rewritten the error handling code.
50997
50998 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
50999
51000 * geninit.sh: Made more robust, and more portable.
51001
51002 2005-12-25 Marco Gerards <marco@gnu.org>
51003
51004 Add support for Apple HFS+ filesystems.
51005
51006 * fs/hfsplus.c: New file.
51007
51008 * DISTLIST: Added `fs/hfsplus.c'.
51009
51010 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51011 (hfsplus_mod_SOURCES): New variable.
51012 (hfsplus_mod_CFLAGS): Likewise.
51013 (hfsplus_mod_LDFLAGS): Likewise.
51014 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51015 (grub_setup_SOURCES): Likewise.
51016 (grub_mkdevicemap_SOURCES): Likewise.
51017 (grub_emu_SOURCES): Likewise.
51018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51019
51020 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51021
51022 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51023
51024 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51025
51026 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51027 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51028 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51029 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51030 normal/lexer.c, normal/parser.y, normal/script.c, and
51031 partmap/gpt.c.
51032 Removed kern/sparc64/cache.c.
51033
51034 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51035 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51036 grub_emu_init.c.
51037
51038 * configure.ac (AC_INIT): Bumped to 1.92.
51039
51040 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51041
51042 * kern/err.c (grub_error_push): Added new function to support error
51043 stacks.
51044 (grub_error_pop): Likewise.
51045 (grub_error_stack_items): New local variable to support error stacks.
51046 (grub_error_stack_pos): Likewise.
51047 (grub_error_stack_assert): Likewise.
51048 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51049 stack depth.
51050 (grub_print_error): Added support to print errors from error stack.
51051
51052 * include/grub/err.h (grub_error_push): Added function prototype.
51053 (grub_error_pop): Likewise.
51054
51055 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51056
51057 * configure.ac: Accept `powerpc64' as host_cpu.
51058 (amd64): Rename to `biarch32'.
51059
51060 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51061 non-cacheline-aligned addresses.
51062
51063 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51064 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51065 if `size' is non-zero.
51066
51067 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51068
51069 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51070 and `cd' to make sure the filename is not prefixed with a
51071 directory name.
51072 (pkgdata_MODULES): Add `gpt.mod'.
51073 (gpt_mod_SOURCES): New variable.
51074 (gpt_mod_CFLAGS): Likewise.
51075 (gpt_mod_LDFLAGS): Likewise.
51076
51077 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51078
51079 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51080 New macro.
51081
51082 * partmap/gpt.c: New file.
51083
51084 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51085 GPT partition map is detected.
51086
51087 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51088
51089 * commands/i386/pc/play.c: New file.
51090 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51091 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51092 macros.
51093
51094 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51095
51096 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51097 ((unused))' to silence gcc warning.
51098
51099 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51100
51101 * configure.ac: Correct `AC_PROG_YACC' test.
51102
51103 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51104
51105 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51106 check before installing files.
51107
51108 2005-11-22 Mike Small <smallm@panix.com>
51109
51110 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51111 number regex so multidigit numbers are recognized correctly.
51112
51113 2005-11-22 Mike Small <smallm@panix.com>
51114
51115 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51116 debugging message before attempting to claim memory.
51117 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51118 multiple addresses in case of failure.
51119
51120 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51121
51122 * term/tparm.c (get_space): Remove empty `if' statement.
51123
51124 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51125
51126 * kern/parser.c (check_varstate): Rename `state' to 's'.
51127
51128 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51129
51130 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51131 variable definitions to the beginning of each function. Sort stack
51132 variables by size.
51133 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51134 `buf' argument to `char *'.
51135
51136 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51137
51138 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51139 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51140 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51141 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51142 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51143 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51144 configfile.mod, search.mod, gzio.mod and test.mod.
51145 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51146 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51147 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51148 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51149 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51150 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51151 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51152 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51153 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51154 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51155 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51156 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51157 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51158 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51159 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51160 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51161 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51162 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51163 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51164 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51165 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51166 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51167 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51168
51169 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51170 `grep --include'.
51171 (pkgdata_MODULES): Add test.mod.
51172
51173 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51174
51175 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51176 appending to variables with "+=".
51177 (PModule): Use full pathname to generate *.lst filenames.
51178
51179 * Makefile.in: Fixed list rules moved from genmk.rb.
51180 (.DELETE_ON_ERROR): New special target.
51181 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51182
51183 * conf/i386-pc.rmk: Include conf/common.mk.
51184 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51185 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51186 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51187 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51188 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51189 configfile.mod, search.mod, gzio.mod and test.mod.
51190 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51191 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51192 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51193 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51194 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51195 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51196 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51197 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51198 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51199 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51200 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51201 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51202 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51203 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51204 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51205 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51206 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51207 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51208 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51209 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51210 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51211 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51212 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51213 here...
51214 * conf/common.rmk: ... to here. New file.
51215
51216 * conf/common.mk: New file.
51217
51218 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51219
51220 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51221 (grub_script.tab.c): ... here.
51222
51223 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51224 (grub_script.tab.c): ... here.
51225
51226 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51227 (grub_script.tab.c): ... here.
51228
51229 * normal/command.c (grub_command_find): Fixed a memory leak of
51230 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51231
51232 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51233
51234 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51235 "@" which marks the start of a comment on ARM.
51236 (VARIABLE): Likewise.
51237
51238 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51239
51240 Add support for Linux/ADFS partition tables.
51241
51242 * partmap/acorn.c: New file.
51243
51244 * include/grub/acorn_filecore.h: Likewise.
51245
51246 * DISTLIST: Added `partmap/acorn.c' and
51247 `include/grub/acorn_filecore.h'.
51248
51249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51250 `partmap/acorn.c'.
51251 (pkgdata_MODULES): Add `acorn.mod'.
51252 (acorn_mod_SOURCES): New variable.
51253 (acorn_mod_CFLAGS): Likewise.
51254
51255 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51256 `partmap/acorn.c'.
51257 (pkgdata_MODULES): Add `acorn.mod'.
51258 (acorn_mod_SOURCES): New variable.
51259 (acorn_mod_CFLAGS): Likewise.
51260
51261 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51262 (pkgdata_MODULES): Add `acorn.mod'.
51263 (acorn_mod_SOURCES): New variable.
51264 (acorn_mod_CFLAGS): Likewise.
51265 (acorn_mod_LDFLAGS): Likewise.
51266
51267 * include/types.h (grub_disk_addr_t): New typedef.
51268
51269 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51270
51271 * geninit.sh: New file.
51272
51273 * geninitheader.sh: Likewise.
51274
51275 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51276 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51277 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51278 * commands/configfile.c (grub_configfile_init)
51279 (grub_configfile_fini): Likewise.
51280 * commands/default.c (grub_default_init, grub_default_fini):
51281 Likewise.
51282 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51283 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51284 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51285 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51286 Likewise.
51287 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51288 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51289 Likewise.
51290 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51291 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51292 Likewise.
51293 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51294 Likewise.
51295 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51296 Likewise.
51297 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51298 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51299 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51300 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51301 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51302 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51303 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51304 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51305 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51306 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51307 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51308 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51309 * partmap/amiga.c (grub_amiga_partition_map_init)
51310 (grub_amiga_partition_map_fini): Likewise.
51311 * partmap/apple.c (grub_apple_partition_map_init)
51312 (grub_apple_partition_map_fini): Likewise.
51313 * partmap/pc.c (grub_pc_partition_map_init)
51314 (grub_pc_partition_map_fini): Likewise.
51315 * partmap/sun.c (grub_sun_partition_map_init,
51316 grub_sun_partition_map_fini): Likewise.
51317 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51318 Likewise.
51319
51320 * util/grub-emu.c: Include <grub_modules_init.h>.
51321 (main): Don't initialize and de-initialize any modules directly,
51322 use `grub_init_all' and `grub_fini_all' instead.
51323
51324 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51325 `grub_vesafb_mod_init'.
51326 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51327 all users.
51328 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51329 `grub_vga_mod_init'. Updated all users.
51330 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51331
51332 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51333 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51334 rules.
51335
51336 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51337 Generate a function to initialize the module in utilities.
51338 Updated all callers.
51339 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51340 initialize the module in utilities. Updated all callers.
51341
51342 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51343
51344 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51345 escape sequence and a literal ^L to clear the screen.
51346
51347 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51348 when returning from Open Firmware.
51349
51350 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51351
51352 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51353 (grub_ofconsole_height): Likewise.
51354 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51355 manually insert a '\n'.
51356 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51357 `grub_ofconsole_height'. Return early if these are already set.
51358
51359 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51360
51361 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51362 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51363 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51364 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51365 and `normal/script.c'.
51366 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51367 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51368 (test_mod_SOURCES): New variable.
51369 (test_mod_CFLAGS): Likewise.
51370 (test_mod_LDFLAGS): Likewise.
51371 (pkgdata_MODULES): Add `test.mod'.
51372 (grub_script.tab.c): New rule.
51373 (grub_script.tab.h): Likewise.
51374
51375 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51376
51377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51378 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51379 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51380 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51381 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51382 (test_mod_SOURCES): New variable.
51383 (test_mod_CFLAGS): Likewise.
51384 (pkgdata_MODULES): Add `test.mod'.
51385 (grub_script.tab.c): New rule.
51386 (grub_script.tab.h): Likewise.
51387
51388 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51389
51390 Add initial scripting support.
51391
51392 * commands/test.c: New file.
51393 * include/grub/script.h: Likewise.
51394 * normal/execute.c: Likewise.
51395 * normal/function.c: Likewise.
51396 * normal/lexer.c: Likewise.
51397 * normal/parser.y: Likewise.
51398 * normal/script.c: Likewise.
51399
51400 * configure.ac: Add `AC_PROG_YACC' test.
51401
51402 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51403 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51404 `normal/function.c' and `normal/script.c'.
51405 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51406 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51407 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51408 variables.
51409 (pkgdata_MODULES): Add `test.mod'.
51410 (grub_script.tab.c): New rule.
51411 (grub_script.tab.h): Likewise.
51412
51413 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51414
51415 * include/grub/normal.h (grub_test_init): New prototype.
51416 (grub_test_fini): Likewise.
51417
51418 * normal/command.c: Include <grub/script.h>.
51419 (grub_command_execute): Rewritten.
51420
51421 * util/grub-emu.c (main): Call `grub_test_init' and
51422 `grub_test_fini'.
51423
51424 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51425
51426 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51427 to 0.
51428 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51429 there are no pending characters.
51430
51431 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51432
51433 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51434 `grub_strndup' to drop device arguments. Replace unnecessary
51435 `grub_strndup' with `grub_strdup'.
51436
51437 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51438
51439 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51440 `debug' environment variable has been set.
51441
51442 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51443
51444 * Makefile.in (install-local): Use $(DATA).
51445 (uninstall): Likewise.
51446 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51447 (sbin_UTILITIES): ... to here.
51448 (sbin_SCRIPTS): New variable.
51449 (grub_install_SOURCES): New variable.
51450 * util/powerpc/ieee1275/grub-install.in: New file.
51451 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51452 variable.
51453 (add_segments): Call `grub_util_get_path'.
51454
51455 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51456
51457 From Timothy Baldwin:
51458 * commands/ls.c (grub_ls_list_files): Close FILE with
51459 grub_file_close.
51460 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51461
51462 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51463
51464 * include/grub/parser.h: New file.
51465
51466 * kern/parser.c: Likewise.
51467
51468 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51469 (grub_setup_SOURCES): Likewise.
51470 (grub_probefs_SOURCES): Likewise.
51471 (grub_emu_SOURCES): Likewise.
51472 (kernel_img_HEADERS): Add `parser.h'.
51473
51474 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51475 (grub_emu_SOURCES): Add `kern/parser.c'.
51476 (grubof_SOURCES): Likewise.
51477
51478 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51479 (grubof_SOURCES): Add `kern/parser.c'.
51480
51481 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51482
51483 * kern/misc.c (grub_split_cmdline): Removed function.
51484
51485 * kern/rescue.c: Include <grub/parser.h>.
51486 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51487 of `grub_split_cmdline'.
51488
51489 * normal/command.c: Include <grub/parser.h>.
51490 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51491 of `grub_split_cmdline'.
51492
51493 * normal/completion.c: Include <grub/parser.h>.
51494 (cmdline_state): New variable.
51495 (iterate_dir): End the filename with a quote depending on the
51496 command line state.
51497 (get_state): new function.
51498 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51499 split the arguments and determine the current argument. When the
51500 argument string is not quoted, escape all spaces.
51501
51502 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51503
51504 * normal/sparc64/setjmp.S: New file.
51505
51506 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51507
51508 * include/grub/sparc64/libgcc.h: New file.
51509 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51510 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51511 normal/sparc64/setjmp.c.
51512
51513 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51514
51515 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51516 * kern/sparc64/cache.S: New file.
51517 * kern/sparc64/cache.c: Removed.
51518 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51519 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51520 -mtune=ultrasparc.
51521 (COMMON_LDFLAGS): Add -melf64_sparc.
51522 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51523 (grubof_SOURCES): Use cache.S instead of cache.c.
51524 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51525 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51526 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51527 commented though.
51528 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51529 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51530 (linux_mod_CFLAGS): Commented out.
51531 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51532 out because module isn't built.
51533 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51534 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51535 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51536 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51537 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51538 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51539 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51540 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51541 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51542 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51543 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51544 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51545 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51546 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51547
51548 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51549
51550 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51551 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51552 longer, because HFS should not be used on PC.
51553
51554 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51555
51556 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51557 consistently within the loop.
51558
51559 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51560
51561 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51562 directory can not be read.
51563
51564 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51565
51566 * configure.ac (AC_INIT): Increase the version number to 1.91.
51567
51568 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51569 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51570 term/i386/pc/serial.c.
51571
51572 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51573
51574 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51575 file size must be permitted.
51576
51577 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51578 between %ah and %al.
51579
51580 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51581
51582 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51583 grub_uint64_t.
51584 Call the hook with a NUL-terminated filename.
51585 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51586 grub_cpu_to_be32.
51587
51588 * kern/term.c (cursor_state): New variable.
51589 (grub_term_set_current): Reset the cursor state on a new
51590 terminal.
51591 (grub_setcursor): Rewritten to use CURSOR_STATE.
51592 (grub_getcursor): New function.
51593
51594 * include/grub/term.h (grub_getcursor): New prototype.
51595
51596 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51597 integers on ARM. Reported by Timothy Baldwin
51598 <T.E.Baldwin99@members.leeds.ac.uk>.
51599
51600 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51601
51602 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51603 allocated.
51604 (grub_sfs_dir): Likewise.
51605
51606 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51607
51608 Add support for the SFS filesystem.
51609
51610 * fs/sfs.c: New file.
51611
51612 * DISTLIST: Added `fs/sfs.c'.
51613
51614 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51615 (grub_probefs_SOURCES): Likewise.
51616 (grub_emu_SOURCES): Likewise.
51617 (pkgdata_MODULES): Add `sfs.mod'.
51618 (sfs_mod_SOURCES): New variable.
51619 (sfs_mod_CFLAGS): Likewise.
51620 (sfs_mod_LDFLAGS): Likewise.
51621
51622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51623 (pkgdata_MODULES): Add `sfs.mod'.
51624 (sfs_mod_SOURCES): New variable.
51625 (sfs_mod_CFLAGS): Likewise.
51626
51627 * util/grub-emu.c (main): Call `grub_sfs_init' and
51628 `grub_sfs_fini'.
51629
51630 * include/grub/fs.h (grub_sfs_init): New prototype.
51631 (grub_sfs_fini): Likewise.
51632
51633 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51634
51635 Add support for the AFFS filesystem.
51636
51637 * fs/affs.c: New file.
51638
51639 * DISTLIST: Added `fs/affs.c'.
51640
51641 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51642 (grub_probefs_SOURCES): Likewise.
51643 (grub_emu_SOURCES): Likewise.
51644 (pkgdata_MODULES): Add `affs.mod'.
51645 (affs_mod_SOURCES): New variable.
51646 (affs_mod_CFLAGS): Likewise.
51647 (affs_mod_LDFLAGS): Likewise.
51648
51649 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51650 (pkgdata_MODULES): Add `affs.mod'.
51651 (affs_mod_SOURCES): New variable.
51652 (affs_mod_CFLAGS): Likewise.
51653
51654 * util/grub-emu.c (main): Call `grub_affs_init' and
51655 `grub_affs_fini'.
51656
51657 * include/grub/fs.h (grub_affs_init): New prototype.
51658 (grub_affs_fini): Likewise.
51659
51660 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51661
51662 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51663
51664 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51665
51666 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51667 `-m32' to CFLAGS.
51668
51669 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51670 linking.
51671
51672 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51673 (COMMON_LDFLAGS): New variable.
51674 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51675 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51676 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51677 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51678 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51679 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51680 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51681 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51682 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51683 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51684 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51685 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51686 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51687 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51688 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51689 variables.
51690 (normal_mod_ASFLAGS): Add `-m32'.
51691
51692 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51693 (grub_host_size_t, grub_host_ssize_t): New types.
51694 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51695 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51696 `GRUB_HOST_SIZEOF_VOID_P'.
51697
51698 * include/grub/kernel.h (struct grub_module_header): Type of
51699 member offset changed to `grub_host_off_t'. Type of member size
51700 changed to `grub_host_size_t'.
51701 (struct grub_module_info): Type of member offset changed to
51702 `grub_host_off_t'. Type of member size changed to
51703 `grub_host_size_t'.
51704
51705 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51706
51707 Make GRUB's kernel compliant to Multiboot Specification.
51708
51709 * kern/i386/pc/startup.S (multiboot_header): New label.
51710 (multiboot_entry): Likewise.
51711 (multiboot_trampoline): Likewise.
51712
51713 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51714 Increased to 0x4A0.
51715
51716 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51717 put parentheses after a question mark.
51718 [!GRUB_UTIL] (my_mod): New variable.
51719
51720 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51721
51722 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51723
51724 Adds support for the XFS filesystem. Btrees are not supported
51725 yet.
51726
51727 * fs/xfs.c: New file.
51728
51729 * DISTLIST: Added `fs/xfs.c'.
51730
51731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51732 (grub_probefs_SOURCES): Likewise.
51733 (grub_emu_SOURCES): Likewise.
51734 (pkgdata_MODULES): Add `xfs.mod'.
51735 (xfs_mod_SOURCES): New variable.
51736 (xfs_mod_CFLAGS): Likewise.
51737
51738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51739 (pkgdata_MODULES): Add `xfs.mod'.
51740 (xfs_mod_SOURCES): New variable.
51741 (xfs_mod_CFLAGS): Likewise.
51742
51743 * util/grub-emu.c (main): Call `grub_xfs_init' and
51744 `grub_xfs_fini'.
51745
51746 * include/grub/fs.h (grub_xfs_init): New prototype.
51747 (grub_xfs_fini): Likewise.
51748
51749
51750 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51751
51752 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51753 color modes, allow greater than 16 colors to be configured as
51754 a default palette.
51755
51756 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51757
51758 * normal/completion.c (complete_arguments): Add the qualifier
51759 const into OPTIONS.
51760
51761 From Omniflux <omniflux+lists@omniflux.com>:
51762 * include/grub/terminfo.h: New file.
51763 * include/grub/tparm.h: Likewise.
51764 * include/grub/i386/pc/serial.h: Likewise.
51765 * term/terminfo.c: Likewise.
51766 * term/tparm.c: Likewise.
51767 * term/i386/pc/serial.c: Likewise.
51768 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51769 serial.mod.
51770 (terminfo_mod_SOURCES): New variable.
51771 (terminfo_mod_CFLAGS): Likewise.
51772 (serial_mod_SOURCES): Likewise.
51773 (serial_mod_CFLAGS): Likewise.
51774
51775 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51776
51777 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51778 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51779 and kern/powerpc/ieee1275/cmain.c, respectively.
51780
51781 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51782 * kern/powerpc/ieee1275/crt0.S: ... here.
51783
51784 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51785 * kern/powerpc/ieee1275/cmain.c: ... here.
51786
51787 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51788 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51789 instead of boot/powerpc/ieee1275/crt0.S and
51790 boot/powerpc/ieee1275/cmain.c, respectively.
51791
51792 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51793 sectors. It was not used anyway.
51794
51795 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51796
51797 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51798 `unused parameter' warning.
51799
51800 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51801
51802 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51803 function.
51804 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51805 getcharwidth.
51806
51807 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51808
51809 * include/grub/normal.h (enum grub_completion_type): Added
51810 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51811
51812 * normal/cmdline.c (print_completion): Handle
51813 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51814 * normal/menu_entry.c (store_completion): Likewise.
51815
51816 * normal/completion.c (complete_arguments): New function.
51817 (grub_normal_do_completion): Call `complete_arguments' when the
51818 current words start with a dash.
51819
51820 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51821
51822 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51823 `gzio.mod' instead of `io.mod').
51824
51825 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51826
51827 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51828 (DISTDIRS): Added io and video.
51829 Rewrite the search routine to make an output consistently.
51830
51831 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51832 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51833 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51834 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51835 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51836 util/powerpc/ieee1275/misc.c.
51837
51838 * include/grub/gzio.h: New file.
51839 * io/gzio.c: Likewise.
51840
51841 * kern/file.c (grub_file_close): Call grub_device_close only if
51842 FILE->DEVICE is not NULL.
51843
51844 * include/grub/mm.h [!NULL] (NULL): New macro.
51845
51846 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51847
51848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51849 (pkgdata_MODULES): Added gzio.mod.
51850 (gzio_mod_SOURCES): New variable.
51851 (gzio_mod_CFLAGS): Likewise.
51852
51853 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51854 (pkgdata_MODULES): Added gzio.mod.
51855 (gzio_mod_SOURCES): New variable.
51856 (gzio_mod_CFLAGS): Likewise.
51857
51858 * commands/cat.c: Include grub/gzio.h.
51859 (grub_cmd_cat): Use grub_gzfile_open instead of
51860 grub_file_open.
51861
51862 * commands/cmp.c: Include grub/gzio.h.
51863 (grub_cmd_cmp): Use grub_gzfile_open instead of
51864 grub_file_open.
51865
51866 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51867 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51868 grub_file_open.
51869 (grub_rescue_cmd_module): Likewise.
51870
51871 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51872
51873 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51874 kern/sparc64/ieee1275/init.c because it contains _start.
51875 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51876
51877 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51878
51879 * configure.ac: Add support for sparc64 host with ieee1275
51880 firmware.
51881 * configure: Generated from configure.ac.
51882 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51883 instead of int.
51884 (grub_ofdisk_read): Likewise.
51885 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51886 pointers as (void *) to remove a warning.
51887 (grub_ofdisk_close): Likewise.
51888 (grub_ofdisk_read): Likewise.
51889 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51890 returns, so make it return void to remove a warning.
51891 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51892 Corresponding prototype change.
51893 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51894 values, and cast the pointers as (void *) to remove a warning.
51895 (grub_mm_dump): Likewise.
51896 * conf/sparc64-ieee1275.mk: New file.
51897 * conf/sparc64-ieee1275.rmk: Likewise.
51898 * include/grub/sparc64/setjmp.h: Likewise.
51899 * include/grub/sparc64/types.h: Likewise.
51900 * include/grub/sparc64/ieee1275/console.h: Likewise.
51901 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51902 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51903 * include/grub/sparc64/ieee1275/time.h: Likewise.
51904 * kern/sparc64/cache.c: Likewise.
51905 * kern/sparc64/dl.c: Likewise.
51906 * kern/sparc64/ieee1275/init.c: Likewise.
51907 * kern/sparc64/ieee1275/openfw.c: Likewise.
51908
51909 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51910
51911 * util/console.c (grub_ncurses_putchar): If C is greater than
51912 0x7f, set C to a question mark.
51913 (grub_ncurses_getcharwidth): New function.
51914 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51915 getcharwidth.
51916
51917 * normal/menu.c (print_entry): Made aware of Unicode. First,
51918 convert TITLE to UCS-4, and predict the cursor position by
51919 grub_getcharwidth.
51920
51921 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51922 const to SRC.
51923 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51924
51925 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51926
51927 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51928 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51929 grub_strcat.
51930
51931 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
51932 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
51933 grub_strcpy and grub_strlen. Take it into account that a space
51934 character is inserted as a delimiter.
51935
51936 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51937
51938 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
51939 invalid magic in the error.
51940
51941 * commands/search.c: New file.
51942
51943 * util/grub-emu.c (main): Call grub_search_init and
51944 grub_search_fini.
51945
51946 * kern/rescue.c (grub_rescue_print_disks): Removed.
51947 (grub_rescue_print_devices): New function.
51948 (grub_rescue_cmd_ls): Use grub_device_iterate with
51949 grub_rescue_print_devices instead of grub_disk_dev_iterate with
51950 grub_rescue_print_disks.
51951
51952 * kern/partition.c (grub_partition_iterate): Return the result of
51953 PARTMAP->ITERATE instead of GRUB_ERRNO.
51954
51955 * kern/device.c: Include grub/partition.h.
51956 (grub_device_iterate): New function.
51957
51958 * include/grub/partition.h (grub_partition_iterate): Return int
51959 instead of grub_err_t.
51960
51961 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
51962 prototype.
51963 [GRUB_UTIL] (grub_search_fini): Likewise.
51964
51965 * include/grub/device.h (grub_device_iterate): New prototype.
51966
51967 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
51968 commands/search.c.
51969 (pkgdata_MODULES): Added search.mod.
51970 (search_mod_SOURCES): New variable.
51971 (search_mod_CFLAGS): Likewise.
51972
51973 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
51974 (pkgdata_MODULES): Added search.mod.
51975 (search_mod_SOURCES): New variable.
51976 (search_mod_CFLAGS): Likewise.
51977
51978 * commands/ls.c (grub_ls_list_disks): Renamed to ...
51979 (grub_ls_list_devices): ... this, and use grub_device_iterate.
51980 All callers changed.
51981
51982 * DISTLIST: Added commands/search.c.
51983
51984 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51985
51986 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
51987 conversion.
51988 (grub_getcharwidth): New function.
51989
51990 * kern/misc.c (grub_utf8_to_ucs4): New function.
51991
51992 * include/grub/term.h (struct grub_term): Added a new member
51993 "getcharwidth".
51994 (grub_getcharwidth): New prototype.
51995
51996 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
51997
51998 * term/i386/pc/console.c (map_char): New function. Segregated from
51999 grub_console_putchar.
52000 (grub_console_putchar): Use map_char.
52001 (grub_console_getcharwidth): New function.
52002 (grub_console_term): Specified grub_console_getcharwidth as
52003 getcharwidth.
52004
52005 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52006 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52007
52008 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52009 GRUB_ERRNO.
52010 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52011 on grub_strtoul completely.
52012 (write_char): Declare local variables in the beginning of the
52013 function.
52014 (grub_vesafb_getcharwidth): New function.
52015 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52016 getcharwidth.
52017
52018 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52019
52020 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52021 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52022 commands/i386/pc/vbetest.c.
52023
52024 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52025 call grub_vbe_get_controller_info again, because the returned
52026 information is volatile.
52027 (grub_vbe_set_video_mode): Mostly rewritten.
52028 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52029 grub_vbe_status_t correctly.
52030 (grub_vbe_get_video_mode_info): Likewise.
52031 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52032 several if statements.
52033
52034 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52035 * commands/i386/pc/vbeinfo.c: ... this.
52036
52037 * commands/i386/pc/vbe_test.c: Renamed to ...
52038 * commands/i386/pc/vbetest.c: ... this.
52039
52040 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52041 ...
52042 (grub_cmd_vbeinfo): ... this. Save video modes before
52043 iterating. Skip a video mode, if it is not available, not enough
52044 information is given or it is monochrome. Show the memory
52045 model. Leave the interpretation of MODEVAR to grub_strtoul
52046 completely.
52047 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52048 (GRUB_MOD_FINI): Likewise.
52049
52050 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52051 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52052 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52053 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52054 grub_strtoul completely.
52055 (real2pm): Removed.
52056 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52057 (GRUB_MOD_FINI): Likewise.
52058
52059 * normal/misc.c: Include grub/mm.h.
52060
52061 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52062 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52063 (vbe_list_modes_mod_SOURCES): Removed.
52064 (vbe_list_modes_mod_CFLAGS): Likewise.
52065 (vbe_test_mod_SOURCES): Likewise.
52066 (vbe_test_mod_CFLAGS): Likewise.
52067 (vbeinfo_mod_SOURCES): New variable.
52068 (vbeinfo_mod_CFLAGS): Likewise.
52069 (vbetest_mod_SOURCES): Likewise.
52070 (vbetest_mod_CFLAGS): Likewise.
52071
52072 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52073
52074 * normal/misc.c: New file.
52075
52076 * DISTLIST: Added normal/misc.c.
52077
52078 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52079 DISK to HOOK. Call HOOK with DISK.
52080 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52081 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52082 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52083
52084 * normal/menu_entry.c (struct screen): Added a new member
52085 "completion_shown".
52086 (completion_buffer): New global variable.
52087 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52088 (store_completion): New function.
52089 (complete): Likewise.
52090 (clear_completions): Likewise.
52091 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52092 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52093 a tab, call complete.
52094
52095 * normal/completion.c (disk_dev): Removed.
52096 (print_simple_completion): Likewise.
52097 (print_partition_completion): Likewise.
52098 (print_func): New global variable.
52099 (add_completion): Do not take the arguments WHAT or PRINT any
52100 longer. Added a new argument TYPE. Instead of printing directly,
52101 call PRINT_FUNC if not NULL.
52102 All callers changed.
52103 (complete_device): Use a local variable DEV instead of
52104 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52105 (grub_normal_do_completion): Take a new argument HOOK. Do not
52106 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52107 empty string, return NULL instead.
52108 All callers changed.
52109
52110 * normal/cmdline.c (print_completion): New function.
52111
52112 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52113 to HOOK.
52114 All callers changed.
52115
52116 * kern/disk.c (grub_print_partinfo): Removed.
52117
52118 * include/grub/partition.h (struct grub_partition_map): Add a new
52119 argument DISK into HOOK of ITERATE.
52120 (grub_partition_iterate): Add a new argument DISK to HOOK.
52121
52122 * include/grub/normal.h (enum grub_completion_type): New enum.
52123 (grub_completion_type_t): New type.
52124 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52125 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52126 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52127 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52128 (grub_normal_do_completion): Added a new argument HOOK.
52129 (grub_normal_print_device_info): New prototype.
52130
52131 * include/grub/disk.h (grub_print_partinfo): Removed.
52132
52133 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52134 (normal_mod_SOURCES): Likewise.
52135 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52136 (normal_mod_SOURCES): Likewise.
52137
52138 * commands/ls.c (grub_ls_list_disks): Use
52139 grub_normal_print_device_info instead of grub_print_partinfo. Free
52140 PNAME.
52141 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52142 duplicating the code.
52143
52144 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52145
52146 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52147 follow GCS more precisely.
52148 * commands/i386/pc/vbe_test.c: Likewise.
52149 * include/grub/i386/pc/vbe.h: Likewise.
52150 * term/i386/pc/vesafb.c: Likewise.
52151 * video/i386/pc/vbe.c: Likewise.
52152
52153 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52154
52155 * DISTLIST: Added term/i386/pc/vesafb.c
52156 DISTLIST: Added video/i386/pc/vbe.c
52157 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52158 DISTLIST: Added commands/i386/pc/vbe_test.c.
52159 * commands/i386/pc/vbe_list_modes.c: New file.
52160 * commands/i386/pc/vbe_test.c: Likewise.
52161 * term/i386/pc/vesafb.c: Likewise.
52162 * video/i386/pc/vbe.c: Likewise.
52163 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52164 (grub_vbe_probe) Added prototype.
52165 (grub_vbe_set_video_mode) Likewise.
52166 (grub_vbe_get_video_mode) Likewise.
52167 (grub_vbe_get_video_mode_info) Likewise.
52168 (grub_vbe_set_pixel_rgb) Likewise.
52169 (grub_vbe_set_pixel_index) Likewise.
52170 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52171 (pkgdata_MODULES): Added vesafb.mod.
52172 (pkgdata_MODULES): Added vbe_list_modes.mod.
52173 (pkgdata_MODULES): Added vbe_test.mod.
52174 (vbe_mod_SOURCES): Added.
52175 (vbe_mod_CFLAGS): Likewise.
52176 (vesafb_mod_SOURCES): Likewise.
52177 (vesafb_mod_CFLAGS): Likewise.
52178 (vbe_list_modes_mod_SOURCES): Likewise.
52179 (vbe_list_modes_mod_CFLAGS): Likewise.
52180 (vbe_test_mod_SOURCES): Likewise.
52181 (vbe_test_mod_CFLAGS): Likewise.
52182
52183 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52184
52185 * normal/command.c (grub_command_execute): If INTERACTIVE is
52186 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52187 CMDLINE. Disable the pager if INTERACTIVE is true.
52188 All callers are changed.
52189
52190 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52191 before reading a config file.
52192 * normal/main.c (read_config_file): Even if a command is not
52193 found, register it if it is within an entry.
52194
52195 * util/grub-emu.c: Include sys/types.h and unistd.h.
52196 (options): Added --hold.
52197 (struct arguments): Added a new member "hold".
52198 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52199 missing.
52200 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52201 cleared by a debugger, if it is not zero.
52202
52203 * include/grub/normal.h (grub_command_execute): Add an argument
52204 INTERACTIVE.
52205
52206 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52207
52208 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52209
52210 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52211
52212 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52213 program with another one, because the old one didn't detect a bug
52214 in gcc-3.4. Always use regparm 2, because the new test is still
52215 not enough for gcc-4.0. Someone must investigate a simple test
52216 case which detects a bug in gcc-4.0.
52217
52218 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52219
52220 * DISTLIST: Added normal/completion.c.
52221
52222 * normal/completion.c: New file.
52223
52224 * term/i386/pc/console.c (grub_console_getwh): New function.
52225 (grub_console_term): Assign grub_console_getwh to getwh.
52226
52227 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52228 function is defined in normal/completion.c as
52229 grub_normal_do_completion.
52230 (grub_cmdline_get): Use grub_normal_do_completion instead of
52231 grub_tab_complete.
52232
52233 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52234 returns non-zero, otherwise return 0.
52235 (grub_partition_iterate): First, probe the partition map. Then,
52236 call ITERATE only for this partition map.
52237
52238 * kern/misc.c (grub_strncmp): Rewritten.
52239
52240 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52241 returns non-zero. Otherwise return 0.
52242
52243 * include/grub/partition.h (grub_partition_map_iterate): Return
52244 int instead of void.
52245
52246 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52247
52248 * include/grub/misc.h (grub_strncmp): Change the type of N to
52249 grub_size_t.
52250
52251 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52252 of void.
52253
52254 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52255 unsigned explicitly before comparing it with I.
52256
52257 * kern/main.c (grub_env_write_root): Add the attribute unused into
52258 VAR.
52259
52260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52261 normal/completion.c.
52262 (normal_mod_SOURCES): Likewise.
52263 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52264 (normal_mod_SOURCES): Likewise.
52265
52266 * normal/command.c (grub_iterate_commands): If ITERATE returns
52267 non-zero, return one immediately.
52268
52269 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52270
52271 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52272 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52273 descriptions.
52274 (grub_vbe_get_controller_info): New function.
52275 (grub_vbe_get_mode_info): Likewise.
52276 (grub_vbe_set_mode): Likewise.
52277 (grub_vbe_get_mode): Likewise.
52278 (grub_vbe_set_memory_window): Likewise.
52279 (grub_vbe_get_memory_window): Likewise.
52280 (grub_vbe_set_scanline_length): Likewise.
52281 (grub_vbe_get_scanline_length): Likewise.
52282 (grub_vbe_set_display_start): Likewise.
52283 (grub_vbe_get_display_start): Likewise.
52284 (grub_vbe_set_palette_data): Likewise.
52285 * include/grub/i386/pc/vbe.h: New file.
52286
52287 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52288
52289 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52290 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52291 * DISTLIST: Likewise.
52292 * kern/ieee1275/of.c: Moved to ...
52293 * kern/ieee1275/ieee1275.c: ... here.
52294
52295 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52296
52297 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52298 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52299 Pass 0 as `end' parameter to grub_strtoul().
52300
52301 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52302
52303 * include/grub/powerpc/ieee1275/console.h: Do not include
52304 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52305 ifdef.
52306 (grub_console_cur_color): Remove i386-specific prototype.
52307 (grub_console_real_putchar): Likewise.
52308 (grub_console_checkkey): Likewise.
52309 (grub_console_getkey): Likewise.
52310 (grub_console_getxy): Likewise.
52311 (grub_console_gotoxy): Likewise.
52312 (grub_console_cls): Likewise.
52313 (grub_console_setcursor): Likewise.
52314 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52315 Include <grub/machine/console.h>.
52316 * term/ieee1275/ofconsole.c: Likewise.
52317
52318 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52319
52320 * Makefile.in (LIBLZO): New variable.
52321
52322 * configure.ac: Check for LZO version 2.
52323
52324 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52325 lzo/lzo1x.h instead of lzo1x.h.
52326
52327 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52328 of -llzo.
52329
52330 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52331 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52332
52333 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52334 copying the data from PARTITION to P.
52335
52336 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52337
52338 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52339 negative, unload the module.
52340
52341 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52342 map is "pc_partition_map" but not "pc".
52343 (usage): Fix the description. The options are --boot-image and
52344 --core-image but not --boot-file or --core-file.
52345 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52346 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52347 DEFAULT_DIRECTORY.
52348
52349 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52350 --core-file. Specify INSTALL_DEVICE as an argument.
52351
52352 * util/console.c: Include config.h.
52353 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52354 [HAVE_NCURSES_H]: Include ncurses.h.
52355 [HAVE_CURSES_H]: Include curses.h.
52356 [!A_NORMAL] (A_NORMAL): Defined as zero.
52357 [!A_STANDOUT] (A_STANDOUT): Likewise.
52358
52359 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52360 -lncurses.
52361 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52362
52363 * configure.ac: Check for curses libraries and headers.
52364
52365 * Makefile.in (LIBCURSES): New variable.
52366
52367 * genmk.rb (Script::rule): Set the executable bits.
52368
52369 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52370 name of the PC partition map is "pc_partition_map" but not "pc".
52371
52372 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52373
52374 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52375 (modules): Likewise.
52376 (usage): Added descriptions for --modules and --grub-probefs.
52377 Handle --modules and --grub-probefs. Save the arguments in MODULES
52378 and GRUB_PROBEFS, respectively.
52379 Auto-detect a filesystem module against GRUBDIR. If the result is
52380 empty and modules are not specified explicitly, abort the
52381 installation. Add the result to MODULES.
52382
52383 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52384 disk/powerpc/ieee1275/ofdisk.c,
52385 include/grub/powerpc/ieee1275/init.h and
52386 term/powerpc/ieee1275/ofconsole.c.
52387 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52388 term/ieee1275/ofconsole.c.
52389
52390 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52391
52392 * COPYING: Upgraded to the latest version. Only the address of the
52393 FSF office has changed.
52394
52395 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52396
52397 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52398 kern/ieee1275.c with kern/ieee1275/of.c.
52399
52400 * kern/ieee1275.c: Moved to ...
52401 * kern/ieee1275/of.c: ... here.
52402
52403 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52404
52405 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52406 readability.
52407
52408 * config.guess: Updated to the latest version from gnulib.
52409 * config.sub: Likewise.
52410 * install.sh: Likewise.
52411 * mkinstalldirs: Likewise.
52412
52413 * include/grub/console.h: Removed. This file is arch-specific. Do
52414 not put this in include/grub.
52415
52416 * include/grub/i386/pc/console.h: Resurrected.
52417
52418 * util/console.c: Include grub/machine/console.h instead of
52419 grub/console.h.
52420 * util/grub-emu.c: Likewise.
52421
52422 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52423
52424 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52425 hardcoded value.
52426
52427 From Vincent Pelletier <subdino2004@yahoo.fr>
52428 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52429 Redefined to use grub_getwh.
52430 (grub_term): New member named getwh.
52431 (grub_getwh): New prototype.
52432 * kern/term.c (grub_getwh): New function.
52433 * term/i386/pc/console.c (grub_console_getwh): New function.
52434 (grub_console_term): New member `getwh'.
52435 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52436 (grub_vga_term): New member `getwh'.
52437 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52438 grub_ssize_t.
52439 (grub_ofconsole_getw): New function.
52440 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52441 (grub_ofconsole_term): New field named getwh and new initial
52442 value.
52443
52444 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52445
52446 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52447 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52448 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52449 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52450 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52451 of <grub/machine/ieee1275.h>.
52452 * commands/ieee1275/reboot.c: Likewise.
52453 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52454 * kern/ieee1275.c: ... to here. All users updated. Change all
52455 parameter structs to use new type `grub_ieee1275_cell_t'.
52456 * term/powerpc/ieee1275/ofconsole.c: Move ...
52457 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52458 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52459 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52460 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52461 to return int.
52462 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52463 Remove unused prototypes. All users updated.
52464 * include/grub/powerpc/ieee1275/console.h: Removed.
52465 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52466 `grub_ieee1275_cell_t'.
52467 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52468 Cast comparisons with -1 to the correct type.
52469 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52470 type to match `grub_ieee1275_entry_fn'.
52471
52472 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52473
52474 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52475
52476 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52477 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52478 partmap/sun.c.
52479 (grub_probefs_SOURCES): New variable.
52480
52481 * util/i386/pc/grub-probefs.c: New file.
52482
52483 * util/i386/pc/grub-setup.c (main): Call
52484 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52485 grub_hfs_init and grub_jfs_init to initialize the system. Call
52486 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52487 grub_pc_partition_map_fini to finish the system.
52488
52489 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52490
52491 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52492 function.
52493 (grub_multiboot_load_elf32): Likewise.
52494 (grub_multiboot_is_elf64): Likewise.
52495 (grub_multiboot_load_elf64): Likewise.
52496 (grub_multiboot_load_elf): Likewise.
52497 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52498 an ELF32 or ELF64 file.
52499 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52500
52501 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52502 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52503 NULL before calling FS->LABEL.
52504 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52505 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52506 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52507 before calling FS->LABEL.
52508
52509 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52510
52511 * util/i386/pc/grub-install.in (datadir): New variable.
52512 (libdir): Removed.
52513 (pkgdatadir): New variable.
52514 (pkglibdir): Removed.
52515
52516 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52517
52518 * DISTLIST: Added util/i386/pc/grub-install.in.
52519
52520 * util/i386/pc/grub-install.in: New file.
52521
52522 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52523 (grub_install_SOURCES): Likewise.
52524
52525 * genmk.rb: Added support for scripts.
52526 (Script): New class.
52527 (scripts): New variable.
52528
52529 * Makefile.in (install-local): Install sbin_SCRIPTS by
52530 INSTALL_SCRIPT.
52531 (uninstall): Remove sbin_SCRIPTS.
52532
52533 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52534 device, try to get a GRUB device by
52535 grub_util_biosdisk_get_grub_dev.
52536 Free DEST_DEV.
52537
52538 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52539 description for --device-map.
52540
52541 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52542
52543 Change the semantics of variable hooks. They now return strings
52544 instead of error values.
52545
52546 * util/i386/pc/grub-setup.c: Include grub/env.h.
52547 (setup): Use grub_device_set_root instead of grub_env_set.
52548
52549 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52550 grub_env_get instead of grub_device_set_root and
52551 grub_device_get_root, respectively.
52552
52553 * kern/main.c (grub_env_write_root): New function.
52554 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52555 grub_env_set instead of grub_device_set_root.
52556
52557 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52558 many variables.
52559 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52560 rather than calling ENV->WRITE_HOOK afterwards.
52561 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52562 passing a pointer of a pointer.
52563 (grub_register_variable_hook): Change the types of "read_hook" and
52564 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52565 respectively.
52566 Allocate the default empty string on the heap, because this string
52567 may be freed later.
52568
52569 * kern/device.c: Include grub/env.h.
52570 (grub_device_set_root): Removed.
52571 (grub_device_get_root): Likewise.
52572 (grub_device_open): Use grub_env_get instead of
52573 grub_device_get_root.
52574
52575 * include/grub/env.h (grub_env_read_hook_t): New type.
52576 (grub_env_write_hook_t): Likewise.
52577 (grub_env_var): Change the types of "read_hook" and "write_hook"
52578 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52579 (grub_register_variable_hook): Likewise.
52580
52581 * include/grub/device.h (grub_device_set_root): Removed.
52582 (grub_device_set_root): Likewise.
52583
52584 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52585 make sure that DIRNAME terminates with '/', so that
52586 grub_fat_find_dir will fail if PATH is not a directory.
52587
52588 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52589 from DIRNAME.
52590 Use the qualifier auto for print_files and print_files_long.
52591 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52592 as a regular file.
52593 Put a newline only if there is no error.
52594 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52595 used.
52596
52597 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52598
52599 * kern/partition.c (grub_partition_probe): Initialize PART to
52600 NULL. Otherwise, when no partition map is registered, this returns
52601 a garbage.
52602
52603 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52604
52605 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52606 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52607 valid.
52608
52609 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52610
52611 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52612 information on each device, if it does not have partitions. Print
52613 "Device" instead of "Disk", because this function is not specific
52614 to disk devices.
52615
52616 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52617 static to ensure that it is put on the memory rather than a
52618 register.
52619
52620 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52621
52622 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52623 (grub_cat_init): Likewise.
52624 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52625 (options): Likewise.
52626 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52627 (grub_configfile_init): Likewise.
52628 * font/manager.c (GRUB_MOD_INIT): Likewise.
52629 * commands/help.c (GRUB_MOD_INIT): Likewise.
52630 (grub_help_init): Likewise.
52631 * normal/command.c (grub_command_init): Likewise.
52632 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52633 * disk/loopback.c (grub_loop_init): Likewise.
52634 (GRUB_MOD_INIT): Likewise.
52635 * commands/ls.c (grub_ls_init): Likewise.
52636 (GRUB_MOD_INIT): Likewise.
52637 (options): Likewise.
52638 * commands/boot.c (grub_boot_init): Likewise.
52639 (GRUB_MOD_INIT): Likewise.
52640 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52641 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52642 (GRUB_MOD_INIT): Likewise.
52643 * commands/cmp.c (grub_cmp_init): Likewise.
52644 (GRUB_MOD_INIT): Likewise.
52645
52646 * normal/arg.c: Use <> instead of "" to include header files.
52647 (SHORT_ARG_HELP): New macro.
52648 (SHORT_ARG_USAGE): Likewise.
52649 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52650 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52651 descriptions.
52652 (find_short): Check if C is 'h' or 'u' explicitly.
52653 (grub_arg_show_help): Use space characters instead of tabs. Treat
52654 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52655 are shown with --help and --usage only if they are not used for
52656 the command itself.
52657 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52658 'h' and 'u'.
52659
52660 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52661 const into "longarg". Change the type of "shortarg" to int.
52662
52663 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52664
52665 * boot/i386/pc/boot.S (boot_drive_check): New label.
52666
52667 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52668 macro.
52669
52670 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52671 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52672
52673 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52674
52675 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52676 When turning off Gate A20, skip the check and return immediately,
52677 because this is not fatal usually.
52678
52679 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52680
52681 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52682 be 0x7C00 instead of 0x8000.
52683
52684 * boot/i386/pc/pxeboot.S: Rewritten.
52685
52686 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52687 EXT_C.
52688 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52689 result.
52690
52691 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52692
52693 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52694 robustness. This routine now supports a BIOS call and System
52695 Control Port A to modify the gate A20.
52696
52697 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52698 Increased to 0x440.
52699
52700 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52701
52702 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52703 device path and resulting ihandle.
52704 (grub_ofdisk_close): dprintf the ihandle being closed.
52705 (grub_ofdisk_read): dprintf function parameters.
52706 * kern/mm.c (grub_mm_init_region): Likewise.
52707 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52708 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52709 size, and boot arguments.
52710 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52711 before loading into memory.
52712 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52713 before loading into memory.
52714
52715 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52716
52717 * kern/mm.c: Added much documentation.
52718 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52719 8, set to 5 instead of 8.
52720
52721 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52722
52723 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52724
52725 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52726 (grub_mkdevicemap_SOURCES): New variable.
52727
52728 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52729 lib/device.c of GRUB Legacy.
52730
52731 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52732
52733 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52734 instead of PATH is NULL.
52735
52736 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52737
52738 * commands/cmp.c (BUFFER_SIZE): New macro.
52739 (grub_cmd_cmp): Close the right file at the right time. Compare
52740 only data just read. Don't report files of different size as
52741 identical. Dynamically allocate buffers. Move variable
52742 declarations at the beginning of function.
52743
52744 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52745
52746 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52747 reverse.
52748
52749 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52750
52751 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52752 when backspace is pressed at beginning of line.
52753
52754 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52755
52756 * DISTLIST: Added genfslist.sh.
52757
52758 * normal/main.c (fs_module_list): New variable.
52759 (autoload_fs_module): New function.
52760 (read_fs_list): Likewise.
52761 (grub_normal_execute): Call read_fs_list.
52762
52763 * kern/fs.c (grub_fs_autoload_hook): New variable.
52764 (grub_fs_probe): Added support for auto-loading.
52765
52766 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52767 (grub_fs_module_list_t): New type.
52768
52769 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52770 (grub_fs_autoload_hook): New prototype.
52771
52772 * genfslist.sh: New file.
52773
52774 * genmk.rb: Added a rule to generate a filesystem list.
52775
52776 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52777
52778 * configure.ac: Fix the test for cross-compiling.
52779
52780 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52781 define GRUB_UTIL anymore.
52782
52783 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52784 so this function works on other systems than just big endian.
52785 (load_modules): Likewise.
52786 (add_segments): Likewise.
52787
52788 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52789
52790 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52791 contains `l' modifier, get a long from va_arg().
52792
52793 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52794
52795 * kern/mm.c (grub_free): If the next free block which is being
52796 merged is the first free block, set the first block to the block
52797 being freed.
52798 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52799
52800 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52801
52802 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52803 `grub_ieee1275_chosen'.
52804
52805 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52806
52807 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52808 (grub_ieee1275_chosen): New variable.
52809 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52810 `chosen'.
52811 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52812 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52813 Rename first argument to `phandle' for consistency.
52814 (grub_ieee1275_get_property_length): Likewise.
52815 (grub_ieee1275_next_property): Likewise. Change type of first argument
52816 to grub_ieee1275_phandle_t.
52817 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52818 Move export next to declaration.
52819 (grub_ieee1275_chosen): New variable.
52820 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52821 Correct cosmetic typo.
52822 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52823 `grub_ieee1275_chosen'.
52824 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52825 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52826 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52827 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52828 `grub_ieee1275_chosen'.
52829
52830 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52831
52832 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52833 /chosen/bootargs.
52834 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52835 /chosen/bootargs as "variable=value" pairs.
52836
52837 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52838
52839 * include/grub/misc.h (grub_dprintf): New macro.
52840 (grub_real_dprintf): New prototype.
52841 (grub_strword): Likewise.
52842 (grub_iswordseparator): Likewise.
52843 * kern/misc.c (grub_real_dprintf): New function.
52844 (grub_strword): Likewise.
52845 (grub_iswordseparator): Likewise.
52846
52847 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52848
52849 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52850 (roundup): Remove macro.
52851 (grub_ieee1275_flags): Make static.
52852 (grub_ieee1275_realmode): Remove.
52853 (grub_ieee1275_test_flag): New function.
52854 (grub_ieee1275_set_flag): Likewise.
52855 (find_options): Rename to `grub_ieee1275_find_options'; update
52856 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52857 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52858 (cmain): New prototype.
52859 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52860 `grub_ieee1275_flags' directly.
52861 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52862 machine/biosdisk.h.
52863 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52864 Don't include grub/machine/init.h.
52865 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52866 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52867 Remove prototype.
52868 (grub_ieee1275_realmode): Likewise.
52869 (grub_ieee1275_flag): New enum.
52870 (grub_ieee1275_test_flag): New prototype.
52871 (grub_ieee1275_set_flag): New prototype.
52872 * include/grub/powerpc/ieee1275/init.h: Remove file.
52873 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52874 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52875 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52876 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52877 comment.
52878 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52879 `grub_ieee1275_test_flag'.
52880 (grub_ieee1275_encode_devname): Likewise.
52881
52882 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52883
52884 * include/grub/powerpc/ieee1275/ieee1275.h
52885 (grub_ieee1275_encode_devname): New prototype.
52886 (grub_ieee1275_get_filename): Likewise.
52887 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52888 function.
52889 (grub_set_prefix): Likewise.
52890 (grub_machine_init): Call grub_set_prefix.
52891 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52892 (grub_parse_type): New enum.
52893 (grub_ieee1275_get_devargs): New function.
52894 (grub_ieee1275_get_devname): Likewise.
52895 (grub_ieee1275_parse_args): Likewise.
52896 (grub_ieee1275_get_filename): Likewise.
52897 (grub_ieee1275_encode_devname): Likewise.
52898
52899 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52900
52901 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52902 `grub_loader_unset'.
52903
52904 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52905
52906 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52907 instead of grub_ieee1275_interpret.
52908 (grub_halt_init): New function.
52909 (grub_halt_fini): Likewise.
52910 (GRUB_MOD_INIT): Correct message grammar.
52911 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52912 instead of grub_ieee1275_interpret.
52913 (grub_reboot_init): New function.
52914 (grub_reboot_fini): Likewise.
52915 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52916 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52917 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52918 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52919 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52920 function.
52921 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52922 Add prototype.
52923 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52924 prototype.
52925 (grub_halt): Likewise.
52926 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52927 (cmain): Remove __attribute__((unused)).
52928 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
52929 (grub_heap_len): Likewise.
52930 (grub_machine_fini): New function.
52931 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
52932 (grub_halt): Likewise.
52933 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
52934 function.
52935 * util/powerpc/ieee1275/misc.c: New file.
52936
52937 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
52938
52939 * DISTLIST: New file.
52940 * gendistlist.sh: Likewise.
52941
52942 * Makefile.in (COMMON_DISTFILES): Removed.
52943 (BOOT_DISTFILES): Likewise.
52944 (CONF_DISTFILES): Likewise.
52945 (DISK_DISTFILES): Likewise.
52946 (FS_DISTFILES): Likewise.
52947 (INCLUDE_DISTFILES): Likewise.
52948 (KERN_DISTFILES): Likewise.
52949 (LOADER_DISTFILES): Likewise.
52950 (TERM_DISTFILES): Likewise.
52951 (UTIL_DISTFILES): Likewise.
52952 (DISTFILES): Likewise.
52953 (uninstall): Uninstall files in $(pkgdata_DATA).
52954 (DISTLIST): New target.
52955 (distdir): Use the contents of the file DISTLIST to get a list of
52956 distributed files.
52957
52958 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
52959
52960 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
52961 descriptor. This is ported from GRUB Legacy.
52962
52963 * gencmdlist.sh: Added an extra semicolon to make it work with
52964 old sed versions. Reported by Robert Bihlmeyer
52965 <robbe@orcus.priv.at>.
52966
52967 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
52968
52969 Automatic loading of commands is supported.
52970
52971 * normal/main.c (read_command_list): New function.
52972 (grub_normal_execute): Call read_command_list.
52973
52974 * normal/command.c (grub_register_command): Return zero or CMD.
52975 Allocate CMD->NAME from the heap.
52976 Initialize CMD->MODULE_NAME to zero.
52977 Find the same name as well. If the same command is found and it is
52978 a dummy command, overwrite members. If it is not a dummy command,
52979 return zero.
52980 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
52981 (grub_command_find): If a dummy command is found, load a module
52982 and retry to find a command only once.
52983
52984 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
52985 make sure that each command is loaded.
52986
52987 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
52988 macro.
52989 (struct grub_command): Remove const from the member `name'.
52990 Add a new member `module_name'.
52991 (grub_register_command): Return grub_command_t.
52992
52993 * commands/help.c (grub_cmd_help): Call grub_command_find to make
52994 sure that each command is loaded.
52995
52996 * genmk.rb (PModule::rule): Specify a module name without the
52997 suffix ".mod" to gencmdlist.sh.
52998
52999 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53000
53001 * gencmdlist.sh: New file.
53002
53003 * genmk.rb (PModule::rule): Generate a rule for a command list.
53004 Clean command.lst.
53005 Generate command.lst from $(COMMANDFILES).
53006
53007 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53008 (DATA): Added $(pkgdata_DATA).
53009 (install-local): Install files in $(pkgdata_DATA).
53010
53011 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53012
53013 * term/i386/pc/vga.c (debug_command): Removed.
53014 (GRUB_MOD_INIT): Do not register the command "debug".
53015
53016 From Hollis Blanchard:
53017 * commands/configfile.c: New file.
53018 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53019 commands/configfile.c.
53020 (pkgdata_MODULES): Added configfile.mod.
53021 (configfile_mod_SOURCES): New variable.
53022 (configfile_mod_CFLAGS): Likewise.
53023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53024 commands/configfile.c.
53025 (pkgdata_MODULES): Added configfile.mod.
53026 (configfile_mod_SOURCES): New variable.
53027 (configfile_mod_CFLAGS): Likewise.
53028 * util/grub-emu.c (main): Call grub_configfile_init and
53029 grub_configfile_fini.
53030 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53031 prototype.
53032 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53033
53034 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53035
53036 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53037 address.
53038
53039 * commands/help.c (grub_cmd_help): Do not print newlines after
53040 the last command in print_command_help.
53041
53042 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53043
53044 * commands/default.h: New file.
53045 * commands/timeout.h: Likewise.
53046 * normal/context.c: Likewise.
53047
53048 * util/misc.c: Do not include sys/times.h.
53049 Include sys/time.h and grub/machine/time.h.
53050 (grub_get_rtc): Rewritten with gettimeofday.
53051
53052 * util/grub-emu.c (main): Call grub_default_init and
53053 grub_timeout_init before grub_normal_init, and call
53054 grub_timeout_fini and grub_default_fini after grub_main.
53055
53056 * util/console.c (grub_ncurses_checkkey): Return the read
53057 character or -1.
53058
53059 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53060 timeouts.
53061
53062 * normal/main.c (read_config_file): Push MENU. If this fails,
53063 print an error and wait for a user input.
53064 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53065 If a menu is empty or an error occurs, pop MENU.
53066 (grub_normal_execute): Pop and free MENU after grub_menu_run
53067 returns.
53068
53069 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53070
53071 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53072 include time.h.
53073 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53074 without GRUB_UTIL.
53075 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53076 time.h.
53077 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53078 without GRUB_UTIL.
53079
53080 * include/grub/normal.h (struct grub_menu_list): New struct.
53081 (grub_menu_list_t): New type.
53082 (struct grub_context): New struct.
53083 (grub_context_t): New type.
53084 (grub_register_command): Got rid of EXPORT_FUNC.
53085 (grub_unregister_command): Likewise.
53086 (grub_context_get): New prototype.
53087 (grub_context_get_current_menu): Likewise.
53088 (grub_context_push_menu): Likewise.
53089 (grub_context_pop_menu): Likewise.
53090 [GRUB_UTIL] (grub_default_init): Likewise.
53091 [GRUB_UTIL] (grub_default_fini): Likewise.
53092 [GRUB_UTIL] (grub_timeout_init): Likewise.
53093 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53094
53095 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53096 commands/timeout.c and normal/context.c.
53097 (pkgdata_MODULES): Added default.mod and timeout.mod.
53098 (normal_mod_SOURCES): Added normal/context.c.
53099 (default_mod_SOURCES): New variable.
53100 (default_mod_CFLAGS): Likewise.
53101 (timeout_mod_SOURCES): Likewise.
53102 (timeout_mod_CFLAGS): Likewise.
53103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53104 conf/i386-pc.rmk.
53105 (pkgdata_MODULES): Added default.mod and timeout.mod.
53106 (normal_mod_SOURCES): Added normal/context.c.
53107 (default_mod_SOURCES): New variable.
53108 (default_mod_CFLAGS): Likewise.
53109 (timeout_mod_SOURCES): Likewise.
53110 (timeout_mod_CFLAGS): Likewise.
53111
53112 * Makefile.in (all-local): Added $(MKFILES).
53113
53114 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53115
53116 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53117 (grub_emu_SOURCES): Likewise.
53118 (pkgdata_MODULES): Add `sun.mod'.
53119 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53121 `partmap/sun.c'.
53122 (pkgdata_MODULES): Add `sun.mod'.
53123 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53124 * include/grub/partition.h (grub_sun_partition_map_init): New
53125 prototype.
53126 (grub_sun_partition_map_fini): Likewise.
53127 * partmap/sun.c: New file.
53128 * util/grub-emu.c (main): Initialize and de-initialize the sun
53129 partitionmap support.
53130
53131 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53132
53133 This implements an Emacs-like menu entry editor.
53134
53135 * normal/menu_entry.c: New file.
53136
53137 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53138 characters to ASCII.
53139 (saved_char): New variable.
53140 (grub_ncurses_checkkey): Rewritten completely.
53141 (grub_ncurses_getkey): Likewise.
53142 (grub_ncurses_init): Call raw instead of cbreak.
53143
53144 * normal/menu.c (print_entry): Do not put a space.
53145 (init_page): Renamed to ...
53146 (grub_menu_init_page): ... this. All callers changed.
53147 (edit_menu_entry): Removed.
53148 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53149
53150 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53151
53152 * kern/misc.c (grub_vprintf): Call grub_refresh.
53153
53154 * normal/menu.c (DISP_LEFT): Renamed to ...
53155 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53156 * normal/menu.c (DISP_UP): Renamed to ...
53157 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53158 * normal/menu.c (DISP_RIGHT): Renamed to ...
53159 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53160 * normal/menu.c (DISP_DOWN): Renamed to ...
53161 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53162 * normal/menu.c (DISP_HLINE): Renamed to ...
53163 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53164 * normal/menu.c (DISP_VLINE): Renamed to ...
53165 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53166 * normal/menu.c (DISP_UL): Renamed to ...
53167 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53168 * normal/menu.c (DISP_UR): Renamed to ...
53169 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53170 * normal/menu.c (DISP_LL): Renamed to ...
53171 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53172 * normal/menu.c (DISP_LR): Renamed to ...
53173 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53174 * normal/menu.c (TERM_WIDTH): Renamed to ...
53175 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53176 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53177 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53178 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53179 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53180 * normal/menu.c (TERM_MARGIN): Renamed to ...
53181 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53182 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53183 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53184 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53185 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53186 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53187 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53188 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53189 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53190 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53191 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53192 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53193 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53194 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53195 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53196 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53197 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53198 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53199 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53200 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53201 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53202 All callers changed.
53203
53204 * include/grub/normal.h: New prototype.
53205
53206 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53207 normal/menu_entry.c.
53208 (normal_mod_SOURCES): Likewise.
53209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53210 (normal_mod_SOURCES): Likewise.
53211
53212 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53213
53214 * include/grub/normal.h (grub_halt_init): New prototype.
53215 (grub_halt_fini): Likewise.
53216 (grub_reboot_init): Likewise.
53217 (grub_reboot_fini): Likewise.
53218
53219 * util/grub-emu.c: Include signal.h.
53220 (main_env): New global variable.
53221 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53222 catch C-c.
53223 (grub_machine_fini): New function.
53224 (main): Call grub_halt_init and grub_reboot_init before
53225 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53226 Call setjmp with MAIN_ENV to go back afterwards.
53227 Call grub_machine_fini right before return.
53228
53229 * include/grub/util/misc.h: Include setjmp.h.
53230 (main_env): New prototype.
53231
53232 * include/grub/kernel.h (grub_machine_fini): New prototype.
53233 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53234 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53235
53236 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53237 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53238 * term/i386/pc/console.c (grub_console_fini): Likewise.
53239
53240 * util/i386/pc/misc.c: New file.
53241
53242 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53243 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53244 commands/i386/pc/reboot.c.
53245
53246 2005-02-14 Guillem Jover <guillem@hadrons.org>
53247
53248 * include/grub/dl.h (grub_dl_check_header): New prototype.
53249 (grub_arch_dl_check_header): Change return type to grub_err_t,
53250 remove size parameter and export function. Update all callers.
53251 * kern/dl.c (grub_dl_check_header): New function.
53252 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53253 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53254 are inside the core.
53255 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53256 independent ELF header checks.
53257 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53258 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53259 `grub_dl_check_header' instead of explicit checks. Check for the
53260 ELF type.
53261 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53262 `grub_dl_check_header' instead of explicit checks. Remove arch
53263 specific ELF header checks.
53264
53265 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53266 argument SIZE.
53267
53268 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53269
53270 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53271 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53272
53273 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53274
53275 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53276 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53277 (part_map_iterate): Clear `grub_errno' and return 0 if
53278 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53279 * partmap/amiga.c (amiga_partition_map_iterate): Return
53280 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53281 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53282
53283 2005-02-01 Guillem Jover <guillem@hadrons.org>
53284
53285 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53286 help info.
53287
53288 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53289
53290 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53291 Removed prototype.
53292 (grub_rescue_cmd_linux): New prototype.
53293 (grub_rescue_cmd_initrd): Likewise.
53294 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53295 `bi_rec'.
53296 (grub_linux_release_mem): Release the memory for the initrd.
53297 (grub_load_linux): Renamed from this...
53298 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53299 Changed `entry' not to be static. Loop over memory regions to
53300 find another one when the default fails.
53301 (grub_rescue_cmd_initrd): New function.
53302 (grub_linux_init): Remove function.
53303 (grub_linux_fini): Likewise.
53304 (GRUB_MOD_INIT): Register `initrd'.
53305 (GRUB_MOD_FINI): Unregister `initrd'.
53306 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53307 Function removed.
53308 (grub_linux_normal_fini): Likewise.
53309 (GRUB_MOD_INIT): Register `initrd'.
53310 (GRUB_MOD_FINI): Unregister `initrd'.
53311
53312 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53313
53314 * commands/help.c: New file.
53315 * normal/arg.c (show_help): Renamed to...
53316 (grub_arg_show_help): ... this.
53317 * commands/i386/pc/halt.c: New file.
53318 * commands/i386/pc/reboot.c: Likewise.
53319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53320 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53321 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53322 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53323 variables.
53324 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53325 `commands/help.c'.
53326 (pkgdata_MODULES): Add `help.mod'.
53327 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53328 * grub/i386/pc/init.h (grub_reboot): New prototype.
53329 (grub_halt): Likewise.
53330 * include/grub/normal.h (grub_arg_show_help): New prototype.
53331 (grub_help_init): Likewise.
53332 (grub_help_fini): Likewise.
53333 * util/grub-emu.c (main): Initialize and deinitialize the help
53334 command.
53335
53336 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53337
53338 * normal/command.c (grub_command_init): Fixed the description of
53339 the `set' and `unset' commands.
53340
53341 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53342
53343 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53344 function.
53345 * commands/ieee1275/halt.c: New file.
53346 * commands/ieee1275/reboot.c: Likewise.
53347 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53348 `__attribute__ ((unused))'. Some GCS related fixed.
53349 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53350 (grub_suspend_fini): Likewise.
53351 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53352 and `halt.mod'.
53353 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53354 (halt_mod_CFLAGS): New variables.
53355 * include/grub/powerpc/ieee1275/ieee1275.h
53356 (grub_ieee1275_interpret): New prototype.
53357
53358 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53359
53360 * include/grub/misc.h (memmove): New prototype.
53361 (memcpy): Likewise.
53362
53363 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53364
53365 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53366 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53367
53368 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53369
53370 * kern/misc.c (grub_strndup): Function rewritten.
53371
53372 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53373
53374 * normal/menu.c (TERM_WIDTH): Macro redefined.
53375 (TERM_TOP_BORDER_Y): Likewise.
53376 (draw_border): Replaced while-loop by a for-loop. Make the number
53377 of lines consistent with the number of lines displayed in
53378 print_entries. Added a margin below the rectangle.
53379 (print_entry): Make the entry fit in the rectangle.
53380 (print_entries): Display the scroll arrows next to the right
53381 border.
53382
53383 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53384
53385 * fs/minix.c (grub_minix_find_file): Reserve more space for
53386 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53387 `grub_strncpy' to copy `path' into it.
53388
53389 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53390
53391 Add the loopback device, a device via which files can be accessed
53392 as devices.
53393
53394 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53395 (pkgdata_MODULES): Add loopback.mod.
53396 (loopback_mod_SOURCES): New variable.
53397 (loopback_mod_CFLAGS): Likewise.
53398 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53399 `disk/loopback.c'.
53400 (pkgdata_MODULES): Add loopback.mod.
53401 (loopback_mod_SOURCES): New variable.
53402 (loopback_mod_CFLAGS): Likewise.
53403 * disk/loopback.c: new file.
53404 * include/grub/normal.h (grub_loop_init): New prototype.
53405 (grub_loop_fini): New prototype.
53406 * util/grub-emu.c (main): Initialize and de-initialize loopback
53407 support.
53408 * include/grub/disk.h (grub_disk_dev_id): Add
53409 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53410
53411 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53412
53413 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53414 function.
53415 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53416 (suspend_mod_SOURCES): New variable.
53417 (suspend_mod_CFLAGS): Likewise.
53418 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53419 New prototype.
53420 * commands/ieee1275/suspend.c: New file.
53421
53422 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53423
53424 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53425 ((unused))' to `__attribute__ ((used))'.
53426 (GRUB_MOD_FINI): Likewise.
53427 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53428 * genmk.rb (PModule): Assign space to common symbols when linking
53429 modules.
53430
53431 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53432
53433 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53434 `unsigned' arguments to `grub_size_t'.
53435 (grub_malloc): Likewise.
53436 (grub_realloc): Likewise.
53437 (grub_memalign): Likewise.
53438 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53439 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53440 * util/misc.c (grub_malloc): Likewise.
53441 (grub_realloc): Likewise.
53442 * kern/mm.c (get_header_from_pointer): Change the casts to
53443 `unsigned' into a cast to `grub_size_t'.
53444
53445 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53446 point to `currnode' when `currnode' is changed.
53447
53448 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53449 Schottelius <nico-linux@schottelius.org>.
53450
53451 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53452
53453 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53454 (note_path): Remove variable.
53455 (GRUB_IEEE1275_NOTE_NAME): New macro.
53456 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53457 (grub_ieee1275_note_hdr): New structure.
53458 (grub_ieee1275_note_desc): Likewise.
53459 (grub_ieee1275_note): Likewise.
53460 (load_note): Remove `dir' argument. All callers updated. Remove
53461 `note_img' and `path'. Do not load a file from `note_path'.
53462 Initialize a struct grub_ieee1275_note and write that to `out'.
53463 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53464
53465 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53466
53467 * util/misc.c (grub_util_read_image): Revert last change. It
53468 called `grub_util_read_at', which seeks from the beginning of the
53469 file.
53470
53471 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53472
53473 * TODO: Add note about endianness in grub-mkimage.
53474 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53475 section.
53476 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53477 (grub_mkimage_SOURCES): New target.
53478 * include/grub/kernel.h (grub_start_addr): Remove variable.
53479 (grub_end_addr): Likewise.
53480 (grub_total_module_size): Likewise.
53481 (grub_kernel_image_size): Likewise.
53482 (GRUB_MODULE_MAGIC): New constant.
53483 (grub_module_info): New structure.
53484 (grub_arch_modules_addr): New prototype.
53485 (grub_get_end_addr): Remove prototype.
53486 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53487 * include/grub/powerpc/ieee1275/kernel.h: New file.
53488 * include/grub/util/misc.h (grub_util_get_fp_size): New
53489 prototype.
53490 (grub_util_read_at): Likewise.
53491 (grub_util_write_image_at): Likewise.
53492 * kern/main.c (grub_get_end_addr): Remove function.
53493 (grub_load_modules): Call grub_arch_modules_addr instead of using
53494 grub_end_addr. Look for a grub_module_info struct in memory. Use
53495 the grub_module_info fields instead of calling grub_get_end_addr
53496 as loop conditions. Move grub_add_unused_region code here.
53497 (grub_add_unused_region): Remove function.
53498 * kern/i386/pc/init.c: Include grub/cache.h.
53499 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53500 one call to add_mem_region.
53501 (grub_arch_modules_addr): New function.
53502 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53503 (grub_total_module_size): Likewise.
53504 Include grub/machine/kernel.h.
53505 (grub_arch_modules_addr): New function.
53506 * util/grub-emu.c (grub_end_addr): Remove variable.
53507 (grub_total_module_size): Likewise.
53508 (grub_arch_modules_addr): New function.
53509 * util/misc.c: Include unistd.h.
53510 (grub_util_get_fp_size): New function.
53511 (grub_util_read_at): Likewise.
53512 (grub_util_write_image_at): Likewise.
53513 (grub_util_read_image): Call grub_util_read_at.
53514 (grub_util_write_image): Call grub_util_write_image_at.
53515 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53516 additional memory in kernel_img for a struct grub_module_info.
53517 Fill in that grub_module_info.
53518 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53519
53520 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53521
53522 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53523 New function.
53524 * include/grub/powerpc/ieee1275/ieee1275.h
53525 (grub_ieee1275_milliseconds): New prototype.
53526 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53527 Change to 1000.
53528 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53529 grub_ieee1275_milliseconds.
53530
53531 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53532
53533 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53534 variable.
53535 (find_options): New function.
53536 (cmain): Call find_options.
53537 * include/grub/powerpc/ieee1275/ieee1275.h
53538 (grub_ieee1275_realmode): New extern variable.
53539 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53540 grub_map if grub_ieee1275_realmode is false.
53541
53542 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53543
53544 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53545 lines are inserted and make it work like readline. Reported by
53546 Vincent Pelletier <subdino2004@yahoo.fr>.
53547
53548 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53549
53550 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53551
53552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53553 `kern/powerpc/cache.S'.
53554
53555 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53556
53557 * genmk.rb: Handle the `Program' class in the main loop. Written
53558 by Johan Rydberg <jrydberg@gnu.org>.
53559 (Program): New class.
53560 (programs): New variable.
53561 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53562 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53563 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53564 (help_arch): Function removed.
53565 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53566 `powerpc/libgcc.h' and `loader.h'.
53567 (pkgdata_PROGRAMS): New variable.
53568 (sbin_UTILITIES): Variable removed.
53569 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53570 (grubof_SOURCES): Variable re-defined so it only includes the
53571 core functionality.
53572 (grubof_CFLAGS): Remove `-DGRUBOF'.
53573 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53574 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53575 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53576 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53577 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53578 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53579 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53580 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53581 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53582 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53583 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53584 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53585 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53586 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53587 (pc_mod_CFLAGS): New variables.
53588 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53589 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53590 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53591 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53592 Moved from here...
53593 * include/grub/i386/pc/init.h (grub_os_area_addr)
53594 (rub_os_area_size): ... to here.
53595 * include/grub/powerpc/ieee1275/ieee1275.h
53596 (grub_ieee1275_entry_fn): Export symbol.
53597 * include/grub/powerpc/ieee1275/init.h: New file.
53598 * include/grub/powerpc/libgcc.h: Likewise.
53599 * include/grub/cache.h: Likewise.
53600 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53601 <hollis@penguinppc.org>.
53602 * kern/dl.c: Include <grub/cache.h>.
53603 (grub_dl_flush_cache): New function.
53604 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53605 for this module.
53606 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53607 (grub_console_init): Removed prototypes.
53608 (grub_machine_init): Don't initialize the modules anymore.
53609 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53610 static.
53611 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53612 Macro undef removed.
53613 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53614 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53615 relocation `R_PPC_REL32'. Return an error when the relocation is
53616 unknown.
53617 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53618 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53619 * util/misc.c (grub_arch_sync_caches): Likewise.
53620
53621 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53622
53623 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53624 `symlist.c', add `grubof_symlist.c'.
53625 (symlist.c): Variable removed.
53626 (grubof_HEADERS): Variable added.
53627 (grubof_symlist.c): New target.
53628 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53629 `kernel_img_HEADERS'.
53630 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53631 * kern/powerpc/dl.c: New file.
53632 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53633 Function removed.
53634 (grub_arch_dl_relocate_symbols): Likewise.
53635 (grub_register_exported_symbols): Likewise.
53636
53637 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53638
53639 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53640 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53641 to fail instead. Reported by Vincent Pelletier
53642 <subdino2004@yahoo.fr>.
53643
53644 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53645 it is not allocated. Reported by Vincent Pelletier
53646 <subdino2004@yahoo.fr>.
53647
53648 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53649 output so the output looks better.
53650
53651 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53652
53653 Modulize the partition map support and add support for the amiga
53654 partition map.
53655
53656 * commands/ls.c: Include <grub/partition.h> instead of
53657 <grub/machine/partition.h>.
53658 * kern/disk.c: Likewise.
53659 * kern/rescue.c: Likewise.
53660 * loader/i386/pc/chainloader.c: Likewise.
53661 * normal/cmdline.c: Likewise.
53662 * kern/powerpc/ieee1275/init.c: Likewise.
53663 (grub_machine_init): Call `grub_pc_partition_map_init',
53664 `grub_amiga_partition_map_init' and
53665 `grub_apple_partition_map_init'.
53666 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53667 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53668 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53669 `partition.h' and `pc_partition.h'.
53670 (grub_setup_SOURCES): Remove
53671 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53672 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53673 (grub_emu_SOURCES): Likewise.
53674 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53675 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53676 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53677 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53678 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53679 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53680 (grubof_SOURCES): Likewise.
53681 * disk/i386/pc/partition.c: File removed.
53682 * disk/powerpc/ieee1275/partition.c: Likewise.
53683 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53684 * include/grub/i386/pc/partition.h: Likewise.
53685 * kern/partition.c: New file.
53686 * partmap/amiga.c: Likewise.
53687 * partmap/apple.c: Likewise.
53688 * partmap/pc.c: Likewise.
53689 * include/grub/partition.h: Likewise..
53690 * include/grub/pc_partition.h: Likewise.
53691 * util/grub-emu.c: Include <grub/partition.h> instead of
53692 <grub/machine/partition.h>.
53693 (main): Call `grub_pc_partition_map_init',
53694 `grub_amiga_partition_map_init' and
53695 `grub_apple_partition_map_init' and deinitialize afterwards.
53696 * util/i386/pc/biosdisk.c: Include `#include
53697 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53698 `<grub/machine/partition.h>'.
53699 * util/i386/pc/grub-setup.c: Likewise.
53700 * util/i386/pc/biosdisk.c: Likewise.
53701 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53702 partition information in case of a PC partition.
53703 * util/i386/pc/grub-setup.c: Include `#include
53704 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53705 `<grub/machine/partition.h>'.
53706 (setup): Only access the PC specific partition information in case
53707 of a PC partition.
53708
53709 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53710
53711 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53712 (grub_longjmp): Likewise.
53713 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53714 20.
53715 * normal/powerpc/setjmp.S: New file.
53716 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53717 `normal/powerpc/setjmp.S'.
53718 (grubof_CFLAGS): Add `-DGRUBOF'.
53719 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53720 [GRUB_UTIL && !GRUBOF].
53721
53722 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53723
53724 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53725 property named `name'. Correctly handle the error returned by
53726 `grub_ieee1275_finddevice' if a device can not be opened.
53727
53728 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53729
53730 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53731 `actual' for negativity.
53732 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53733 kern/fshelp.c.
53734
53735 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53736
53737 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53738 (PAGE_OFFSET): New macro.
53739 (CRTC_ADDR_PORT): Likewise.
53740 (CRTC_DATA_PORT): Likewise.
53741 (START_ADDR_HIGH_REGISTER): Likewise.
53742 (START_ADDR_LOW_REGISTER): Likewise.
53743 (GRAPHICS_ADDR_PORT): Likewise.
53744 (GRAPHICS_DATA_PORT): Likewise.
53745 (READ_MAP_REGISTER): Likewise.
53746 (INPUT_STATUS1_REGISTER): Likewise.
53747 (INPUT_STATUS1_VERTR_BIT): Likewise.
53748 (page): New variable.
53749 (wait_vretrace): New function.
53750 (set_read_map): Likewise.
53751 (set_start_address): Likewise.
53752 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53753 the right page.
53754 (check_vga_mem): Take the page into account.
53755 (write_char): Likewise.
53756 (write_cursor): Likewise.
53757 (scroll_up): Likewise. Copy the page to the page that is not
53758 shown and switch between both pages.
53759 (grub_vga_putchar): Fix off by one error.
53760 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53761 account.
53762
53763 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53764
53765 Add support for iso9660 (including rockridge).
53766
53767 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53768 (iso9660_mod_SOURCES): New variable.
53769 (iso9660_mod_CFLAGS): Likewise.
53770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53771 * include/grub/fs.h (grub_iso9660_init): New prototype.
53772 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53773 * fs/iso9660.c: New file.
53774
53775 * include/grub/misc.h (grub_strncat): New prototype.
53776 * kern/misc.c (grub_strncat): New function.
53777
53778 * fs/hfs.c (grub_hfs_mount): Translate the error
53779 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53780 * fs/jfs.c (grub_jfs_mount): Likewise.
53781 * fs/ufs.c (grub_ufs_mount): Likewise.
53782
53783 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53784
53785 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53786 which initialized BAT registers.
53787 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53788 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53789 Move from here...
53790 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53791 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53792 ... to here.
53793 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53794 (grub_mapclaim): Likewise.
53795 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53796 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53797 hand.
53798
53799 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53800
53801 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53802 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53803 -ffreestanding and -msoft-float.
53804
53805 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53806
53807 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53808 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53809 set in grub_ieee1275_flags.
53810
53811 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53812
53813 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53814 prototype.
53815 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53816 grub_console_init first.
53817 Change the memory range used for grub_ieee1275_claim and
53818 grub_mm_init_region.
53819 Print an error message if the claim fails.
53820 Include <grub/misc.h>.
53821
53822 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53823
53824 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53825 Call grub_children_iterate for device nodes of type `scsi',
53826 `ide', or `ata'.
53827 (grub_ofdisk_open): Remove manual device alias resolution.
53828 Fix memory leak when device cannot be opened.
53829 * include/grub/powerpc/ieee1275/ieee1275.h
53830 (grub_children_iterate): New prototype.
53831 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53832 New function.
53833 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53834 Return -1 if args.size was -1.
53835
53836 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53837
53838 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53839 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53840 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53841 Open Firmware's memory for it; claim memory from _start to _end.
53842 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53843 (_end): New extern.
53844 (_start): Zero BSS from __bss_start to _end.
53845 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53846 New extern.
53847 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53848
53849 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53850
53851 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53852 -1 if args.base was -1.
53853
53854 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53855
53856 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53857 escape sequence instead of a literal ^L. Also call
53858 grub_ofconsole_gotoxy.
53859
53860 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53861
53862 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53863 void * arguments to grub_addr_t. All callers updated. Also make
53864 the `result' argument optional.
53865 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53866 All callers updated.
53867
53868 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53869
53870 * commands/ls.c (grub_ls_list_files): Use the string following the
53871 initial ')', if present, as the filesystem path.
53872 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53873
53874 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53875
53876 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53877
53878 Make the source code of the menu interface more readable.
53879
53880 * normal/menu.c: Include grub/mm.h.
53881 (TERM_WIDTH): New macro.
53882 (TERM_HEIGHT): Likewise.
53883 (TERM_INFO_HEIGHT): Likewise.
53884 (TERM_MARGIN): Likewise.
53885 (TERM_SCROLL_WIDTH): Likewise.
53886 (TERM_TOP_BORDER_Y): Likewise.
53887 (TERM_LEFT_BORDER_X): Likewise.
53888 (TERM_BORDER_WIDTH): Likewise.
53889 (TERM_MESSAGE_HEIGHT): Likewise.
53890 (TERM_BORDER_HEIGHT): Likewise.
53891 (TERM_NUM_ENTRIES): Likewise.
53892 (TERM_FIRST_ENTRY_Y): Likewise.
53893 (TERM_ENTRY_WIDTH): Likewise.
53894 (TERM_CURSOR_X): Likewise.
53895 (draw_border): Use macros instead of magic numbers.
53896 (print_entry): Likewise.
53897 (print_entries): Likewise.
53898 (run_menu): Likewise. Also, handle the key 'e'.
53899 (run_menu_entry): Ignore empty command lines.
53900 (print_message): Added a new argument EDIT. If EDIT is true,
53901 print a different message.
53902 (init_page): Likewise.
53903 (edit_menu_entry): New function. Not implemented yet.
53904
53905 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53906
53907 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53908 can be loaded from normal mode.
53909
53910 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53911 `multiboot.mod'.
53912 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53913 (multiboot_mod_CFLAGS): New variables.
53914 * loader/i386/pc/linux_normal.c: New file.
53915 * loader/i386/pc/multiboot_normal.c: Likewise.
53916
53917 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53918 attribute `unused'.
53919
53920 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53921 `fdiro' to read the mode information from instead of `diro'.
53922
53923 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53924 looking up a symlink.
53925
53926 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53927 macro.
53928 * normal/command.c (grub_command_execute): Don't parse the
53929 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
53930 flags of the command.
53931
53932 * normal/menu.c (grub_menu_run): Fix typo.
53933
53934 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
53935
53936 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
53937
53938 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
53939 `y + 1' instead of `y - 1'.
53940
53941 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
53942
53943 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
53944
53945 From Hollis Blanchard <hollis@penguinppc.org>:
53946 * kern/misc.c (memmove): New alias for grub_memmove.
53947 (memcmp): New alias for grub_memcmp.
53948 (memset): New alias for grub_memset.
53949 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53950 Change "int handle" to "grub_ieee1275_phandle_t handle".
53951 * include/grub/powerpc/ieee1275/ieee1275.h
53952 (grub_ieee1275_get_property): Likewise.
53953
53954 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
53955
53956 Added normal mode command `chainloader' as module chain.mod, which
53957 depends on normal.mod and _chain.mod.
53958
53959 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
53960 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
53961 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
53962 Deleted prototype.
53963 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
53964 but arguments parsing moved to ...
53965 (grub_chainloader_cmd): ... here. New function.
53966 * include/grub/i386/pc/chainloader.h: New file.
53967 * loader/i386/pc/chainloader_normal.c: Likewise.
53968
53969 2004-09-11 Marco Gerards <metgerards@student.han.nl>
53970
53971 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
53972 (grub_mkimage_LDFLAGS): Likewise.
53973 (grub_emu_SOURCES): Likewise.
53974 (kernel_img_HEADERS): Added fshelp.h.
53975 * fs/ext2.c: Include <grub/fshelp.h>.
53976 (FILETYPE_REG): New macro.
53977 (FILETYPE_INO_REG): Likewise.
53978 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
53979 Changed all users.
53980 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
53981 all users.
53982 (grub_fshelp_node): New struct.
53983 (grub_ext2_data): Added member `diropen'. Changed member `inode'
53984 to a pointer.
53985 (grub_ext2_get_file_block): Removed function.
53986 (grub_ext2_read_block): New function.
53987 (grub_ext2_read_file): Replaced parameter `data' by `node'.
53988 This function was written.
53989 (grub_ext2_mount): Read the root inode. Create a diropen struct.
53990 (grub_ext2_find_file): Removed function.
53991 (grub_ext2_read_symlink): New function.
53992 (grub_ext2_iterate_dir): Likewise.
53993 (grub_ext2_open): Rewritten.
53994 (grub_ext2_dir): Rewritten.
53995 * include/grub/fshelp.h: New file.
53996 * fs/fshelp.c: Likewise.
53997
53998 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
53999
54000 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54001 (print_message): Add a missing newline.
54002 (run_menu): Added timeout support.
54003 (run_menu_entry): New local function.
54004 (grub_menu_run): Added support for booting.
54005
54006 * kern/loader.c (grub_loader_is_loaded): New function.
54007
54008 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54009 (grub_get_rtc): Exported.
54010
54011 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54012 (grub_get_rtc): Exported.
54013
54014 * include/grub/normal.h (struct grub_command_list): Remove
54015 constant from the member `command'.
54016
54017 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54018
54019 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54020
54021 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54022
54023 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54024
54025 Add support for the JFS filesystem.
54026
54027 * fs/jfs.c: New file.
54028 * include/grub/fs.h (grub_jfs_init): New prototype.
54029 (grub_jfs_fini): New prototype.
54030 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54031 (grub_emu_SOURCES): Likewise.
54032 (pkgdata_MODULES): Add jfs.mod.
54033 (jfs_mod_SOURCES): New variable.
54034 (jfs_mod_CFLAGS): Likewise.
54035 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54036 (grubof_SOURCES): Likewise.
54037 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54038
54039 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54040 endian to the host endian.
54041 (grub_fat_utf16_to_utf8): Move function from there...
54042 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54043 the endianness of the source string anymore.
54044 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54045
54046 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54047
54048 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54049 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54050 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54051 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54052
54053 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54054 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54055 for `node_found' and `it_dir'.
54056 (grub_hfs_dir): Add prototype for `dir_hook'.
54057
54058 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54059 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54060 and `indir32' to silence a gcc warning.
54061
54062 * include/grub/fs.h (grub_hfs_init): New prototype.
54063 (grub_hfs_fini): Likewise.
54064
54065
54066 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54067
54068 Each disk device has its own id now. This is useful to make use
54069 of multiple disk devices.
54070
54071 * include/grub/disk.h (grub_disk_dev_id): New enum.
54072 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54073 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54074
54075 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54076 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54077
54078 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54079 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54080
54081 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54082 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54083
54084 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54085 "id" which is used by the cache manager.
54086
54087 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54088 of just "GRUB".
54089
54090 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54091
54092 * fs/hfs.c: New file.
54093 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54094 (grub_emu_SOURCES): Likewise.
54095 (pkgdata_MODULES): Add hfs.mod.
54096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54097 (grubof_SOURCES): Likewise.
54098 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54099
54100 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54101 * kern/misc.c (grub_strncasecmp): Add function.
54102
54103 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54104
54105 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54106 with parentheses.
54107
54108 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54109 (grub_ext2_dir): In case the directory entry type is unknown, read
54110 it from the inode.
54111
54112 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54113
54114 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54115 grub_load_linux instead of grub_rescue_cmd_linux as second
54116 argument of grub_rescue_register_command.
54117
54118 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54119
54120 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54121
54122 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54123 function.
54124 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54125 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54126 `loader/powerpc/ieee1275/linux.c',
54127 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54128 * include/grub/powerpc/ieee1275/ieee1275.h
54129 (grub_ieee1275_release): New prototype.
54130 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54131 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54132 normal, boot, linux and linux_normal.
54133 * loader/powerpc/ieee1275/linux.c: New file.
54134 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54135
54136 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54137
54138 * normal/arg.c (grub_arg_parse): Correct error handling after
54139 reallocating the argumentlist (check if `argl' is not null instead
54140 of checking if `args' is not null).
54141 * kern/mm.c (grub_realloc): Return the same pointer when using the
54142 same region, instead of returning the header address.
54143
54144 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54145
54146 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54147 one block instead of two when looking for the initial partition.
54148 (grub_partition_probe): Initialize the local variable `p' with 0.
54149 Use base 10 for the grub_strtoul call.
54150 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54151 need for one local variable.
54152 (grub_strtoul): Don't add the new value to `num', instead of that
54153 just assign it.
54154
54155 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54156
54157 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54158 (pxeboot_img_SOURCES): New variable.
54159 (pxeboot_img_ASFLAGS): Likewise.
54160 (pxeboot_img_LDFLAGS): Likewise.
54161 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54162 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54163 <lode_leroy@hotmail.com>.
54164
54165 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54166
54167 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54168 there was no input.
54169
54170 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54171
54172 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54173 the history buffer logic.
54174
54175 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54176
54177 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54178 (FILETYPE_INO_SYMLINK): New macros.
54179 (grub_ext2_find_file): Check if the node is a directory using the
54180 inode stat information instead of using the filetype in the
54181 dirent. Exclude the first character of an absolute symlink.
54182 (grub_ext2_dir): Mask out the filetype part of the mode member of
54183 the inode.
54184
54185 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54186
54187 Add support for UFS version 1 and 2. Add support for the minix
54188 filesystem version 1 and 2, both the variants with 14 and 30 long
54189 filenames.
54190
54191 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54192 fs/minix.c.
54193 (grub_emu_SOURCES): Likewise.
54194 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54195 (ufs_mod_SOURCES): New variable.
54196 (ufs_mod_CFLAGS): Likewise.
54197 (minix_mod_SOURCES): Likewise.
54198 (minix_mod_CFLAGS): Likewise.
54199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54200 fs/minix.c.
54201 (grubof_SOURCES): Likewise.
54202 * fs/ufs.c: New file.
54203 * fs/minix.c: New file.
54204 * include/grub/fs.h (grub_ufs_init): New prototype.
54205 (grub_ufs_fini): Likewise.
54206 (grub_minix_init): Likewise.
54207 (grub_minix_fini): Likewise.
54208 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54209 minix fs.
54210
54211 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54212
54213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54214 commands/ls.c, commands/terminal.c, commands/boot.c,
54215 commands/cmp.c and commands/cat.c.
54216 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54217
54218 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54219 "env.h"
54220
54221 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54222
54223 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54224 and grub_, respectively. Because the conversion is trivial and
54225 mechanical, I omit the details here. Please refer to the CVS
54226 if you need more information.
54227
54228 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54229
54230 * include/pupa: Renamed to ...
54231 * include/grub: ... this.
54232 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54233 * util/i386/pc/grub-mkimage.c: ... this.
54234 * util/i386/pc/pupa-setup.c: Renamed to ...
54235 * util/i386/pc/grub-setup.c: ... this.
54236 * util/pupa-emu.c: Renamed to ...
54237 * util/grub-emu.c: ... this.
54238
54239 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54240
54241 Add support for the newworld apple macintosh (PPC). This has been
54242 tested on the powerbook 2000 only. It only adds support for
54243 generic ieee1275 functions, console and disk support. This should
54244 be easy to port to other architectures with support for Open
54245 Firmware.
54246
54247 * configure.ac: Accept the powerpc as host_cpu. In the case of
54248 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54249 specific tests are only executed while building for the i386.
54250 Inverse test for crosscompile.
54251 * genmk.rb (Utility): Allow assembler files.
54252 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54253 * conf/powerpc-ieee1275.rmk: New file.
54254 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54255 * disk/powerpc/ieee1275/partition.c: Likewise.
54256 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54257 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54258 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54259 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54260 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54261 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54262 * include/pupa/powerpc/ieee1275/loader.h
54263 * include/pupa/powerpc/setjmp.h: Likewise.
54264 * include/pupa/powerpc/types.h: Likewise.
54265 * kern/powerpc/ieee1275/init.c: Likewise.
54266 * kern/powerpc/ieee1275/openfw.c: Likewise.
54267 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54268
54269 These files were written by Johan Rydberg
54270 (jrydberg@night.trouble.net) and I only modified them slightly.
54271
54272 * boot/powerpc/ieee1275/cmain.c: New file.
54273 * boot/powerpc/ieee1275/crt0.S: Likewise.
54274 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54275 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54276
54277 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54278
54279 * Makefile.in: Update copyright.
54280 * genmodsrc.sh: Likewise.
54281 * gensymlist.sh: Likewise.
54282 * term/i386/pc/vga.c: Indent correctly.
54283
54284 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54285 bugreporting address.
54286 * util/i386/pc/pupa-setup.c (usage): Likewise,
54287 (main): Call pupa_ext2_init and pupa_ext2_fini.
54288
54289 * fs/fat.c (log2): Renamed to ...
54290 (fat_log2): ... this.
54291 All callers changed.
54292 * kern/misc.c (memcpy): Alias to pupa_memmove.
54293 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54294 lvalue cast.
54295 * util/console.c (pupa_ncurses_fini): Return 0.
54296
54297 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54298 Move fail label here.
54299 [__GNU__]: Don't warn when using stat.
54300 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54301 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54302 long int. Use strtol instead of strtoul.
54303
54304 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54305
54306 * commands/boot.c: New file.
54307 * commands/cat.c: Likewise.
54308 * commands/cmp.c: Likewise.
54309 * commands/ls.c: Likewise.
54310 * commands/terminal.c: Likewise.
54311 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54312 (pupa_register_command): Changed interface to match the new
54313 argument parser.
54314 (pupa_command_execute): Changed (almost rewritten) so it uses
54315 pupa_split_command. Added support for setting variables using the
54316 syntax `foo=bar'.
54317 (rescue_command): Changed to work with the new argument parser.
54318 (terminal_command): Moved from here to commands/terminal.c.
54319 (set_command): New function.
54320 (unset_command): New function.
54321 (insmod_command): New function.
54322 (rmmod_command): New function.
54323 (lsmod_command): New function.
54324 (pupa_command_init): Don't initialize the command terminal
54325 anymore. Initialize the commands set, unset, insmod, rmmod and
54326 lsmod.
54327 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54328 (kernel_img_HEADERS): Add arg.h and env.h.
54329 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54330 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54331 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54332 normal/arg.c.
54333 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54334 terminal.mod.
54335 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54336 (boot_mod_SOURCES): New variable.
54337 (terminal_mod_SOURCES): Likewise.
54338 (ls_mod_SOURCES): Likewise.
54339 (cmp_mod_SOURCES): Likewise.
54340 (cat_mod_SOURCES): Likewise.
54341
54342 * normal/arg.c: New file.
54343 * kern/env.c: Likewise.
54344 * include/pupa/arg.h: Likewise.
54345 * include/pupa/env.h: Likewise.
54346 * font/manager.c (font_command): Changed to match argument parsing
54347 interface changes.
54348 (PUPA_MOD_INIT): Likewise.
54349 * hello/hello.c (pupa_cmd_hello): Likewise.
54350 (PUPA_MOD_INIT): Likewise.
54351 * include/pupa/disk.h: Include <pupa/device.h>.
54352 (pupa_print_partinfo): New prototype.
54353 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54354 (pupa_dl_get_prefix): Likewise.
54355 * include/pupa/misc.h: Include <pupa/err.h>.
54356 (pupa_isgraph): New prototype.
54357 (pupa_isdigit): Likewise.
54358 (pupa_split_cmdline): Likewise.
54359 * include/pupa/normal.h: Include <pupa/arg.h>.
54360 (pupa_command): Changed the prototype of the member `func' to
54361 match the argument parsing interface. Added member `options'.
54362 (pupa_register_command): Updated to match function.
54363 (pupa_arg_parse): New prototype.
54364 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54365 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54366 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54367 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54368 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54369 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54370 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54371 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54372 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54373 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54374 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54375 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54376 * kern/disk.c: Include <pupa/file.h>.
54377 (pupa_print_partinfo): New function.
54378 * kern/dl.c: Include <pupa/env.h>.
54379 (pupa_dl_dir): Variable removed.
54380 (pupa_dl_load): Use the environment variable `prefix' instead of
54381 the variable pupa_dl_dir.
54382 (pupa_dl_set_prefix): Function removed.
54383 (pupa_dl_get_prefix): Likewise.
54384 * kern/i386/pc/init.c: Include <pupa/env.h>.
54385 (pupa_machine_init): Use the environment variable `prefix' instead of
54386 using pupa_dl_set_prefix to set the prefix.
54387 * kern/main.c: Include <pupa/env.h>.
54388 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54389 using pupa_dl_get_prefix to get the prefix.
54390 * kern/misc.c: Include <pupa/env.h>.
54391 (pupa_isdigit): New function.
54392 (pupa_isgraph): Likewise.
54393 (pupa_ftoa): Likewise.
54394 (pupa_vsprintf): Added support for printing values of the type
54395 `double'. Make it possible to format variable output when using
54396 formatting like `%1.2%f'.
54397 (pupa_split_cmdline): New function.
54398 * kern/rescue.c: Include <pupa/env.h>.
54399 (next_word): Removed function.
54400 (pupa_rescue_cmd_prefix): Likewise.
54401 (pupa_rescue_cmd_set): New function.
54402 (pupa_rescue_cmd_unset): New function.
54403 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54404 split the command line instead of splitting it here. Added
54405 support for setting variables using the syntax `foo=bar'. Don't
54406 initialize the prefix command anymore. Initialized the set and
54407 unset commands.
54408 * normal/cmdline.c: Include <pupa/env.h>.
54409 (pupa_tab_complete): Added prototypes for print_simple_completion,
54410 print_partition_completion, add_completion, iterate_commands,
54411 iterate_dev, iterate_part and iterate_dir. Moved code to print
54412 partition information from here to kern/disk.c.
54413 (pupa_cmdline_run): Don't check if the function exists anymore.
54414 * normal/main.c: Include <pupa/env.h>.
54415 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54416 instead of using pupa_dl_get_prefix to get the prefix.
54417 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54418 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54419 warning.
54420 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54421 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54422 ((unused))' to silence a gcc warning.
54423 (pupa_vga_setcolor): Likewise.
54424 (debug_command): Changed to match argument parsing
54425 interface changes.
54426 * util/pupa-emu.c: Include <pupa/env.h>.
54427 (options): Added 0's for unused fields to silence a gcc warning.
54428 (argp): Likewise.
54429 (main): Use the environment variable `prefix' instead of using
54430 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54431 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54432 and terminal.
54433
54434 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54435 * util/misc.c: Include <malloc.h>.
54436 (pupa_malloc): Rewritten so errors are correctly reported.
54437 (pupa_realloc): Likewise.
54438 (pupa_memalign): Likewise.
54439 (pupa_mm_init_region): Declare unused variables with
54440 `__attribute__ ((unused))' to silence a gcc warning.
54441 * normal/i386/setjmp.S: Remove tab at the end of the file to
54442 silence a gcc warning.
54443 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54444 variables with `__attribute__ ((unused))' to silence a gcc
54445 warning.
54446 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54447 local variable i unsigned to silence a gcc warning.
54448
54449 * kern/term.c: Include <pupa/misc.h>.
54450 (pupa_more_lines): New variable.
54451 (pupa_more): Likewise.
54452 (pupa_putcode): When the pager is active pause at the end of every
54453 screen.
54454 (pupa_set_more): New function.
54455 * include/pupa/term.h (pupa_set_more): New prototype.
54456
54457
54458 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54459
54460 Now this project is GRUB 2 rather than PUPA. The location of
54461 the CVS repository was moved to GRUB's.
54462
54463 * configure.ac: Use bug-grub as the reporting address.
54464 Use GRUB instead of PUPA.
54465 Change the version number to 1.90.
54466
54467 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54468
54469 * genkernsyms.sh: Updated copyright information.
54470 * genmk.rb: Likewise.
54471 * genmodsrc.sh: Likewise.
54472 * gensymlist.sh: Likewise.
54473 * boot/i386/pc/boot.S: Likewise.
54474 * boot/i386/pc/diskboot.S: Likewise.
54475 * disk/i386/pc/biosdisk.c: Likewise.
54476 * disk/i386/pc/partition.c: Likewise.
54477 * font/manager.c: Likewise.
54478 * fs/ext2.c: Likewise.
54479 * fs/fat.c: Likewise.
54480 * include/pupa/boot.h: Likewise.
54481 * include/pupa/device.h: Likewise.
54482 * include/pupa/disk.h: Likewise.
54483 * include/pupa/dl.h: Likewise.
54484 * include/pupa/elf.h: Likewise.
54485 * include/pupa/err.h: Likewise.
54486 * include/pupa/file.h: Likewise.
54487 * include/pupa/font.h: Likewise.
54488 * include/pupa/fs.h: Likewise.
54489 * include/pupa/kernel.h: Likewise.
54490 * include/pupa/loader.h: Likewise.
54491 * include/pupa/misc.h: Likewise.
54492 * include/pupa/mm.h: Likewise.
54493 * include/pupa/net.h: Likewise.
54494 * include/pupa/normal.h: Likewise.
54495 * include/pupa/rescue.h: Likewise.
54496 * include/pupa/setjmp.h: Likewise.
54497 * include/pupa/symbol.h: Likewise.
54498 * include/pupa/term.h: Likewise.
54499 * include/pupa/types.h: Likewise.
54500 * include/pupa/i386/setjmp.h: Likewise.
54501 * include/pupa/i386/types.h: Likewise.
54502 * include/pupa/i386/pc/biosdisk.h: Likewise.
54503 * include/pupa/i386/pc/boot.h: Likewise.
54504 * include/pupa/i386/pc/console.h: Likewise.
54505 * include/pupa/i386/pc/init.h: Likewise.
54506 * include/pupa/i386/pc/kernel.h: Likewise.
54507 * include/pupa/i386/pc/linux.h: Likewise.
54508 * include/pupa/i386/pc/loader.h: Likewise.
54509 * include/pupa/i386/pc/memory.h: Likewise.
54510 * include/pupa/i386/pc/multiboot.h: Likewise.
54511 * include/pupa/i386/pc/partition.h: Likewise.
54512 * include/pupa/i386/pc/time.h: Likewise.
54513 * include/pupa/i386/pc/vga.h: Likewise.
54514 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54515 * include/pupa/util/getroot.h: Likewise.
54516 * include/pupa/util/misc.h: Likewise.
54517 * include/pupa/util/resolve.h: Likewise.
54518 * kern/device.c: Likewise.
54519 * kern/disk.c: Likewise.
54520 * kern/dl.c: Likewise.
54521 * kern/err.c: Likewise.
54522 * kern/file.c: Likewise.
54523 * kern/fs.c: Likewise.
54524 * kern/loader.c: Likewise.
54525 * kern/main.c: Likewise.
54526 * kern/misc.c: Likewise.
54527 * kern/mm.c: Likewise.
54528 * kern/rescue.c: Likewise.
54529 * kern/term.c: Likewise.
54530 * kern/i386/dl.c: Likewise.
54531 * kern/i386/pc/init.c: Likewise.
54532 * kern/i386/pc/lzo1x.S: Likewise.
54533 * kern/i386/pc/startup.S: Likewise.
54534 * loader/i386/pc/chainloader.c: Likewise.
54535 * loader/i386/pc/linux.c: Likewise.
54536 * loader/i386/pc/multiboot.c: Likewise.
54537 * normal/cmdline.c: Likewise.
54538 * normal/command.c: Likewise.
54539 * normal/main.c: Likewise.
54540 * normal/menu.c: Likewise.
54541 * normal/i386/setjmp.S: Likewise.
54542 * term/i386/pc/console.c: Likewise.
54543 * term/i386/pc/vga.c: Likewise.
54544 * util/console.c: Likewise.
54545 * util/genmoddep.c: Likewise.
54546 * util/misc.c: Likewise.
54547 * util/pupa-emu.c: Likewise.
54548 * util/resolve.c: Likewise.
54549 * util/unifont2pff.rb: Likewise.
54550 * util/i386/pc/biosdisk.c: Likewise.
54551 * util/i386/pc/getroot.c: Likewise.
54552 * util/i386/pc/pupa-mkimage.c: Likewise.
54553 * util/i386/pc/pupa-setup.c: Likewise.
54554
54555 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54556
54557 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54558 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54559 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54560 reading and reset it after reading.
54561 (pupa_ext2_close): Return PUPA_ERR_NONE.
54562
54563 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54564 Correct value.
54565 (struct linux_kernel_header): Add kernel_version and
54566 initrd_addr_max.
54567 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54568 pupa_file_read succeeds.
54569 (pupa_rescue_cmd_initrd): Implement.
54570
54571 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54572
54573 * fs/ext2.c (pupa_ext2_label): New function.
54574 (pupa_ext2_fs): Added label.
54575 * fs/fat.c (pupa_fat_label): New function.
54576 (pupa_fat_fs): Added label.
54577 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54578
54579 * kern/misc.c (pupa_strndup): New function.
54580 * include/pupa/misc.h (pupa_strndup): New prototype.
54581
54582 * include/pupa/normal.h: Include <pupa/err.h>.
54583 (pupa_set_history): New prototype.
54584 (pupa_iterate_commands): New prototype.
54585 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54586 <pupa/disk.h>, <pupa/file.h>.
54587 (hist_size): New variable.
54588 (hist_lines): Likewise.
54589 (hist_end): Likewise.
54590 (hist_used): Likewise.
54591 (pupa_set_history): New function.
54592 (pupa_history_get): Likewise.
54593 (pupa_history_add): Likewise.
54594 (pupa_history_replace): Likewise.
54595 (pupa_tab_complete): Likewise.
54596 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54597 completion shows partitionnames while completing partitions, this
54598 feature was suggested by Jeff Bailey.
54599 * normal/command.c (pupa_iterate_commands): New function.
54600 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54601 (pupa_normal_init): Initialize history buffer.
54602 (PUPA_MOD_INIT): Likewise.
54603 (pupa_normal_fini): Free the history buffer.
54604 (PUPA_MOD_FINI): Likewise.
54605
54606 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54607 key.
54608
54609 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54610 * configure.ac [i386]: Check for regparam bug.
54611 (NESTED_FUNC_ATTR) [! i386]: Defined.
54612
54613 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54614
54615 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54616 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54617 (pupa_emu_SOURCES): New variable.
54618 (pupa_emu_LDFLAGS): Likewise.
54619 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54620 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54621 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54622 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54623 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54624 (pupa_jmp_buf): New typedef.
54625 (pupa_setjmp) [PUPA_UTIL]: New macro.
54626 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54627 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54628 (pupa_refresh): New prototype.
54629 * include/pupa/util/getroot.h: New file.
54630 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54631 it.
54632 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54633 (pupa_rescue_cmd_cat): Likewise.
54634 (pupa_rescue_cmd_ls): Likewise.
54635 (pupa_rescue_cmd_testload): Likewise.
54636 (pupa_rescue_cmd_lsmod): Likewise.
54637 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54638 * normal/menu.c (run_menu): Likewise.
54639 * kern/term.c (pupa_cls): Likewise.
54640 (pupa_refresh): New function.
54641 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54642 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54643 * util/console.c: New file.
54644
54645 * util/i386/pc/getroot.c: New file.
54646 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54647 (pupa_putchar): New function.
54648 (pupa_refresh): Likewise.
54649 (xgetcwd): Function moved to ...
54650 (strip_extra_slashes): Likewise.
54651 (get_prefix): Likewise.
54652 * util/i386/pc/getroot.c: ... here.
54653 (find_root_device): Function moved and renamed to...
54654 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54655 Changed all callers.
54656 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54657 and renamed to...
54658 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54659 Changed all callers.
54660 * util/misc.c (pupa_memalign): New function.
54661 (pupa_mm_init_region): Likewise.
54662 (pupa_register_exported_symbols): Likewise.
54663 (pupa_putchar): Function removed.
54664 * util/pupa-emu.c: New file.
54665
54666 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54667
54668 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54669 (_multiboot_mod_SOURCES): New variable.
54670 (_multiboot_mod_CFLAGS): Likewise.
54671 * loader/i386/pc/multiboot.c: New file.
54672 * include/pupa/i386/pc/multiboot.h: Likewise.
54673 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54674 (pupa_multiboot_real_boot): New function.
54675 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54676 (pupa_multiboot_real_boot): New prototype.
54677 (pupa_rescue_cmd_multiboot): Likewise
54678 (pupa_rescue_cmd_module): Likewise.
54679
54680 * kern/loader.c (pupa_loader_set): Continue when
54681 pupa_loader_unload_func() fails.
54682 (pupa_loader_unset): New function.
54683 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54684
54685 * kern/misc.c (pupa_stpcpy): New function.
54686 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54687
54688 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54689
54690 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54691 for available extensions.
54692
54693 * include/pupa/i386/pc/time.h: New file.
54694 * kern/disk.c: Include <pupa/machine/time.h>.
54695 (PUPA_CACHE_TIMEOUT): New macro.
54696 (pupa_last_time): New variable.
54697 (pupa_disk_open): Flush the cache when there was a timeout.
54698 (pupa_disk_close): Reset the timer.
54699 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54700 pupa_currticks.
54701 * util/misc.c: Include <sys/times.h>
54702 (pupa_get_rtc): New function.
54703
54704 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54705
54706 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54707 as blocks.
54708 (pupa_ext2_get_file_block): Use blocks member.
54709
54710 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54711 first block. Return -1 instead of pupa_errno on error.
54712
54713 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54714
54715 * README: In the pupa-mkimage example use _chain instead of chain
54716 and ext2 instead of fat.
54717 * TODO: Replace ext2fs with jfs as an example. Add an item for
54718 adding journal playback for ext2fs.
54719 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54720 (pkgdata_MODULES): Added ext2.mod.
54721 (ext2_mod_SOURCES): New variable.
54722 (ext2_mod_CFLAGS): Likewise.
54723 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54724 * include/pupa/misc.h (pupa_strncpy): New prototype.
54725 (pupa_strcat): Likewise.
54726 (pupa_strncmp): Likewise.
54727 * kern/misc.c (pupa_strcat): Enable function.
54728 (pupa_strncpy): New function.
54729 (pupa_strncmp): Likewise.
54730 * fs/ext2.c: New file.
54731
54732 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54733 when the read failed before retrying.
54734 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54735 (_FILE_OFFSET_BITS): Likewise.
54736 * configure.ac: Added AC_SYS_LARGEFILE.
54737
54738 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54739
54740 * genmk.rb (PModule#rule): Make sure to get only symbol names
54741 from the output of nm.
54742 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54743
54744 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54745
54746 I forgot to check in these changes for a long time. This adds
54747 incomplete support for VGA console, and this is still very
54748 buggy. Also, a lot of consideration is required for I18N,
54749 UNICODE, and VGA font issues. Therefore, assume that this is
54750 such that "better than nothing".
54751
54752 * font/manager.c: New file.
54753 * include/pupa/font.h: Likewise.
54754 * include/pupa/i386/pc/vga.h: Likewise.
54755 * term/i386/pc/vga.c: Likewise.
54756 * util/unifont2pff.rb: Likewise.
54757
54758 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54759 (pkgdata_MODULES): Added vga.mod and font.mod.
54760 (vga_mod_SOURCES): New variables.
54761 (vga_mod_CFLAGS): Likewise.
54762 (font_mod_SOURCES): Likewise.
54763 (font_mod_CFLAGS): Likewise.
54764
54765 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54766
54767 * include/pupa/term.h: Include pupa/err.h.
54768 (struct pupa_term): Added init and fini.
54769 Changed the argument of putchar to pupa_uint32_t.
54770
54771 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54772 (pupa_console_real_putchar): New prototype.
54773 (pupa_console_putchar): Removed.
54774 (pupa_console_checkkey): Exported.
54775 (pupa_console_getkey): Likewise.
54776
54777 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54778 characters.
54779
54780 * kern/term.c (pupa_term_set_current): Rewritten.
54781 (pupa_putchar): Likewise.
54782 (pupa_putcode): New function.
54783
54784 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54785 (pupa_console_real_putchar): ... this.
54786 (pupa_vga_set_mode): New function.
54787 (pupa_vga_get_font): Likewise.
54788
54789 * normal/command.c: Include pupa/term.h.
54790 (terminal_command): New function.
54791 (pupa_command_init): Register the command "terminal".
54792
54793 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54794 (DISP_UP): Likewise.
54795 (DISP_RIGHT): Likewise.
54796 (DISP_DOWN): Likewise.
54797 (DISP_HLINE): Likewise.
54798 (DISP_VLINE): Likewise.
54799 (DISP_UL): Likewise.
54800 (DISP_UR): Likewise.
54801 (DISP_LL): Likewise.
54802 (DISP_LR): Likewise.
54803
54804 * term/i386/pc/console.c (pupa_console_putchar): New function.
54805
54806 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54807
54808 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54809 FIX. Reverse the path_list.
54810
54811 * include/pupa/normal.h: Export pupa_register_command and
54812 pupa_unregister_command.
54813
54814 * hello/hello.c (pupa_cmd_hello): New module.
54815 * conf/i386-pc.rmk: Added hello.mod.
54816
54817 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54818
54819 * kern/i386/pc/lzo1x.S: New file.
54820
54821 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54822 (compress_kernel): New variable.
54823 (generate_image): Heavily modified to support compressing a
54824 large part of the core image.
54825
54826 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54827 leak.
54828 (pupa_util_load_image): New function.
54829
54830 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54831 (pupa_compressed_size): New variable.
54832 (codestart): Enable Gate A20 here.
54833 Decompress the compressed part of the core image.
54834 Rearrange the code to put functions and variables which are
54835 required for initialization in the non-compressed part.
54836 Include lzo1x.S.
54837
54838 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54839 here.
54840
54841 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54842
54843 * include/pupa/i386/pc/kernel.h
54844 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54845 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54846 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54847 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54848 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54849
54850 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54851
54852 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54853 (Utility#rule): Likewise.
54854
54855 * configure.ac: Check if LZO is available.
54856
54857 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54858
54859 * include/pupa/normal.h: New file.
54860 * include/pupa/setjmp.h: Likewise.
54861 * include/pupa/i386/setjmp.h: Likewise.
54862 * normal/cmdline.c: Likewise.
54863 * normal/command.c: Likewise.
54864 * normal/main.c: Likewise.
54865 * normal/menu.c: Likewise.
54866 * normal/i386/setjmp.S: Likewise.
54867
54868 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54869 (pupa_rescue_cmd_initrd): Likewise.
54870
54871 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54872 Likewise.
54873
54874 * kern/i386/pc/startup.S (translation_table): New variable.
54875 (translate_keycode): New function.
54876 (pupa_console_getkey): Call translate_keycode.
54877
54878 * kern/rescue.c (attempt_normal_mode): New function.
54879 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54880 it failed, print a message.
54881
54882 * kern/mm.c (pupa_real_malloc): Print more information when a
54883 free magic is broken.
54884 (pupa_free): If the first free header is not free actually, set
54885 it to P.
54886
54887 * kern/main.c (pupa_load_normal_mode): Just load the module
54888 "normal".
54889 (pupa_main): Don't print the message
54890 "Entering into rescue mode..." here.
54891
54892 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54893 Declared.
54894 (pupa_rescue_cmd_initrd): Likewise.
54895 (pupa_rescue_cmd_initrd): Likewise.
54896
54897 * include/pupa/symbol.h (FUNCTION): Specify the type.
54898 (VARIABLE): Likewise.
54899
54900 * include/pupa/err.h (pupa_err_t): Added
54901 PUPA_ERR_UNKNOWN_COMMAND.
54902
54903 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54904 (pupa_dl_get_prefix): Likewise.
54905
54906 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54907 Added _chain.mod and _linux.mod instead of chain.mod and
54908 linux.mod.
54909 (chain_mod_SOURCES): Renamed to ...
54910 (_chain_mod_SOURCES): ... this.
54911 (chain_mod_CFLAGS): Renamed to ...
54912 (_chain_mod_CFLAGS): ... this.
54913 (linux_mod_SOURCES): Renamed to ...
54914 (_linux_mod_SOURCES): ... this.
54915 (linux_mod_CFLAGS): Renamed to ...
54916 (_linux_mod_CFLAGS): ... this.
54917 (normal_mod_SOURCES): New variable.
54918 (normal_mod_CFLAGS): Likewise.
54919 (normal_mod_ASFLAGS): Likewise.
54920
54921 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54922
54923 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54924 possible.
54925
54926 * kern/dl.c (pupa_dl_ref): Refer depending modules
54927 recursively.
54928 (pupa_dl_unref): Unrefer depending modules recursively.
54929 Don't call pupa_dl_unload implicitly, because PUPA can crash if
54930 a module is unloaded before one depending on that module is
54931 unloaded.
54932 (pupa_dl_unload): Unload depending modules explicitly,
54933 if possible.
54934
54935 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
54936
54937 * include/pupa/i386/pc/linux.h: New file.
54938 * loader/i386/pc/linux.c: Likewise.
54939
54940 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
54941 Removed.
54942 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
54943 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
54944 of PUPA_CHAINLOADER_BOOT_SECTOR.
54945
54946 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
54947 (pupa_linux_prot_size): New variable.
54948 (pupa_linux_tmp_addr): Likewise.
54949 (pupa_linux_real_addr): Likewise.
54950 (pupa_linux_boot_zimage): New function.
54951 (pupa_linux_boot_bzimage): Likewise.
54952
54953 * kern/i386/pc/init.c (struct mem_region): New structure.
54954 (MAX_REGIONS): New macro.
54955 (mem_regions): New variable.
54956 (num_regions): Likewise.
54957 (pupa_os_area_addr): Likewise.
54958 (pupa_os_area_size): Likewise.
54959 (pupa_lower_mem): Likewise.
54960 (pupa_upper_mem): Likewise.
54961 (add_mem_region): New function.
54962 (compact_mem_regions): Likewise.
54963 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
54964 the size of the conventional memory and that of so-called upper
54965 memory (before the first memory hole).
54966 Instead of adding each found region to free memory, use
54967 add_mem_region and add them after removing overlaps.
54968 Also, add only 1/4 of the upper memory to free memory. The rest
54969 is used for loading OS images. Maybe this is ad hoc, but this
54970 makes it much easier to relocate OS images when booting.
54971
54972 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
54973 (pupa_enter_rescue_mode): Don't register initrd and module.
54974
54975 * kern/mm.c: Include pupa/dl.h.
54976
54977 * kern/main.c: Include pupa/file.h and pupa/device.h.
54978
54979 * kern/loader.c (pupa_loader_load_module_func): Removed.
54980 (pupa_loader_load_module): Likewise.
54981
54982 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
54983 ``.o''.
54984
54985 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
54986 (pupa_linux_tmp_addr): Likewise.
54987 (pupa_linux_real_addr): Likewise.
54988 (pupa_linux_boot_zimage): Likewise.
54989 (pupa_linux_boot_bzimage): Likewise.
54990
54991 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
54992 (pupa_upper_mem): Likewise.
54993 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
54994 module is too dangerous.
54995
54996 * include/pupa/loader.h (pupa_os_area_addr): Declared.
54997 (pupa_os_area_size): Likewise.
54998 (pupa_loader_set): Remove the first argument. Loader doesn't
54999 manage modules or initrd any longer.
55000 (pupa_loader_load_module): Removed.
55001
55002 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55003 (linux_mod_SOURCES): New variable.
55004 (linux_mod_CFLAGS): Likewise.
55005
55006 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55007
55008 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55009 the length of a blocklist correctly.
55010
55011 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55012 Use ioctl only if the OS file is a block device.
55013 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55014 not very useful for normal files.
55015
55016 * kern/main.c (pupa_set_root_dev): New function.
55017 (pupa_load_normal_mode): Likewise.
55018 (pupa_main): Call those above.
55019
55020 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55021 pupa_uint16_t.
55022
55023 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55024
55025 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55026
55027 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55028 (setup): Configure the installed partition information and the
55029 dl prefix.
55030
55031 * loader/i386/pc/chainloader.c (my_mod): New variable.
55032 (pupa_chainloader_unload): New function.
55033 (pupa_rescue_cmd_chainloader): Refer itself.
55034 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55035
55036 * kern/i386/pc/startup.S (install_partition): Removed.
55037 (version_string): Likewise.
55038 (config_file): Likewise.
55039 (pupa_install_dos_part): New variable.
55040 (pupa_install_bsd_part): Likewise.
55041 (pupa_prefix): Likewise.
55042 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55043
55044 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55045 and pupa/misc.h.
55046 (make_install_device): New function.
55047 (pupa_machine_init): Set the dl prefix.
55048
55049 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55050 (buf): Renamed to ...
55051 (linebuf): ... this.
55052 (pupa_rescue_cmd_prefix): New function.
55053 (pupa_rescue_cmd_insmod): Likewise.
55054 (pupa_rescue_cmd_rmmod): Likewise.
55055 (pupa_rescue_cmd_lsmod): Likewise.
55056 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55057 rmmod and lsmod.
55058
55059 * kern/mm.c (pupa_memalign): If failed even after invalidating
55060 disk caches, unload unneeded modules and retry.
55061
55062 * kern/misc.c (pupa_memmove): New function.
55063 (pupa_memcpy): Removed.
55064 (pupa_strcpy): New function.
55065 (pupa_itoa): Made static.
55066
55067 * kern/dl.c (pupa_dl_iterate): New function.
55068 (pupa_dl_ref): Likewise.
55069 (pupa_dl_unref): Likewise.
55070 (pupa_dl_unload): Return if succeeded or not.
55071 (pupa_dl_unload_unneeded): New function.
55072 (pupa_dl_unload_all): Likewise.
55073 (pupa_dl_init): Renamed to ...
55074 (pupa_dl_set_prefix): ... this.
55075 (pupa_dl_get_prefix): New function.
55076
55077 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55078 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55079 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55080 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55081 (pupa_install_dos_part): Declared.
55082 (pupa_install_bsd_part): Likewise.
55083 (pupa_prefix): Likewise.
55084 (pupa_boot_drive): Likewise.
55085
55086 * include/pupa/types.h: Fix a typo.
55087
55088 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55089 pupa_memmove.
55090 (pupa_memmove): Declared.
55091 (pupa_strcpy): Likewise.
55092
55093 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55094 pupa_mod_init takes one argument, its own module.
55095 (pupa_dl_unload_unneeded): Declared.
55096 (pupa_dl_unload_all): Likewise.
55097 (pupa_dl_ref): Likewise.
55098 (pupa_dl_unref): Likewise.
55099 (pupa_dl_iterate): Likewise.
55100 (pupa_dl_init): Renamed to ...
55101 (pupa_dl_set_prefix): ... this.
55102 (pupa_dl_get_prefix): Declared.
55103
55104 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55105 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55106 unloaded.
55107 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55108 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55109
55110 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55111 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55112
55113 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55114
55115 * util/i386/pc/pupa-setup.c (setup): Define the internal
55116 function find_first_partition_start at the top level, because GCC
55117 3.0.x cannot compile internal functions in deeper scopes
55118 correctly.
55119 (find_root_device): Use lstat instead of stat.
55120 Don't follow symbolic links.
55121 Fix the path-constructing code.
55122
55123 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55124 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55125 by a BLKGETSIZE ioctl first, because block devices don't fill
55126 the member st_mode of the structure stat on Linux.
55127 [__linux__] (linux_find_partition): Use a temporary buffer
55128 REAL_DEV for the working space. Copy it to DEV before returning.
55129 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55130 buffer cache consistent.
55131 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55132 strncmp. The previous value was merely wrong.
55133 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55134
55135 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55136 FAT size is 12. The previous value was merely wrong.
55137
55138 * kern/main.c (pupa_main): Don't split the starting message from
55139 newlines.
55140
55141 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55142 LF, because BIOS goes crazy about character attributes in this
55143 case.
55144
55145 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55146
55147 * include/i386/pc/util/biosdisk.h: New file.
55148 * util/i386/pc/biosdisk.c: Likewise.
55149 * util/i386/pc/pupa-setup.c: Likewise.
55150
55151 * Makefile.in (INCLUDE_DISTFILES): Added
55152 include/pupa/i386/pc/util/biosdisk.h.
55153 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55154 directory util/i386/pc.
55155 (install-local): Added a rule for sbin_UTILITIES.
55156 (uninstall): Likewise.
55157
55158 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55159
55160 * util/misc.c (xrealloc): New function.
55161 (pupa_malloc): Likewise.
55162 (pupa_free): Likewise.
55163 (pupa_realloc): Likewise.
55164 (pupa_stop): Likewise.
55165 (pupa_putchar): Likewise.
55166
55167 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55168
55169 * include/pupa/util/misc.h (xrealloc): Declared.
55170
55171 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55172 macro.
55173 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55174 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55175
55176 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55177 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55178
55179 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55180 way should be implemented.
55181 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55182
55183 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55184 the size of NAME for safety.
55185 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55186 0x88.
55187
55188 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55189 (pupa_setup_SOURCES): Likewise.
55190
55191 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55192
55193 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55194
55195 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55196 bunch of pushl's from pusha, because this destroys the return
55197 value.
55198
55199 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55200
55201 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55202 This means that any missing prototypes could be fatal. Also, you
55203 must take care when writing assembly code. See the comments at
55204 the beginning of startup.S, for more details.
55205
55206 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55207 compilation mechanism.
55208 (pupa_chainloader_real_boot): Likewise.
55209 (pupa_biosdisk_rw_int13_extensions): Likewise.
55210 (pupa_biosdisk_rw_standard): Likewise.
55211 (pupa_biosdisk_check_int13_extensions): Likewise.
55212 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55213 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55214 (pupa_get_memsize): Likewise.
55215 (pupa_get_mmap_entry): Likewise.
55216 (pupa_console_putchar): Likewise.
55217 (pupa_console_setcursor): Likewise.
55218 (pupa_getrtsecs): Use pushl instead of push.
55219
55220 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55221 memory instead of the stack for a mmap entry, because some
55222 BIOSes may ignore the maximum size and overflow.
55223
55224 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55225
55226 * genmk.rb (PModule#rule): Compile automatically generated
55227 sources with module-specific CFLAGS as well as other sources.
55228
55229 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55230
55231 * configure.ac: Check ld.
55232 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55233 respectively, before checking endianness and sizes.
55234
55235 * Makefile.in (LD): New variable.
55236
55237 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55238
55239 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55240
55241 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55242
55243 * Changelog: New file.
55244